📄 report_member_search.tpl
字号:
<link rel='stylesheet' href='js/calendar/calendar-mos.css'>
<script language='javascript' src=js/calendar/calendar.js></script>
<script type="text/javascript" src="js/calendar/lang/calendar-en.js"></script>
<script language='javascript'>
<!--
var calendar = null;
function selected(cal, date)
{
cal.sel.value = date; // just update the value of the input field
}
function closeHandler(cal)
{
cal.hide(); // hide the calendar
// don't check mousedown on document anymore (used to be able to hide the
// calendar when someone clicks outside it, see the showCalendar function).
Calendar.removeEvent(document, "mousedown", checkCalendar);
}
function checkCalendar(ev)
{
var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev);
for (; el != null; el = el.parentNode)
// FIXME: allow end-user to click some link without closing the
// calendar. Good to see real-time stylesheet change :)
if (el == calendar.element || el.tagName == "A") break;
if (el == null) {
// calls closeHandler which should hide the calendar.
calendar.callCloseHandler(); Calendar.stopEvent(ev);
}
}
function showCalendar(id)
{
var el = document.getElementById(id);
var cal = new Calendar(true, null, selected, closeHandler);
calendar = cal; // remember the calendar in the global
cal.setRange(1900, 2070); // min/max year allowed
calendar.create(); // create a popup calendar
calendar.sel = el; // inform it about the input field in use
calendar.showAtElement(el); // show the calendar next to the input field
Calendar.addEvent(document, "mousedown", checkCalendar);
}
function checkValue()
{
var Obj = document.frmSearch;
if(Obj.ShowField.selectedIndex == -1)
{
alert('请最少选择一个要显示的字段');
Obj.ShowField.focus();
return false;
}
return true;
}
//-->
</script>
<form action='{CurrentURL}&code=list' method='POST' name='frmSearch' onSubmit='return checkValue();' target=_blank>
<table width="100%" cellspacing=0 cellpadding=5 style='word-break:break-all' class=adminform>
<tr>
<td colspan="3" class='info_title'><strong>会员报表-选择条件</strong></td>
</tr>
<tr class='info_content'>
<td width="100">真实姓名:</td>
<td>
<input name="Name" type="text" id="Name" size="18">
</td>
<td width="150">真实姓名中的一部分</td>
</tr>
<tr class='info_content'>
<td width="100">注册时间:</td>
<td>
<input name="StartTime" type="text" size=12>
<input type=button value='..' onClick='showCalendar("StartTime");'> -
<input name="Expire" type="text" size=12>
<input type=button value='..' onClick='showCalendar("Expire");'>
</td>
<td width="150">会员注册时间范围</td>
</tr>
<tr class='info_content'>
<td width="100">所属分组:</td>
<td>
<select name='Group'>
<option value=''></option>
{GroupList}
</select>
</td>
<td width="150">会员注册时间范围</td>
</tr>
<tr class='info_content'>
<td>状态:</td>
<td>
<select name="Status">
<option value='-1'></option>
<option value='{USER_STATE_NEWREG}'>等验证</option>
<option value='{USER_STATE_NORMAL}'>正常</option>
<option value='{USER_STATE_DENY}'>已禁止</option>
</select>
</td>
<td>搜索指定状态的用户</td>
</tr>
<tr>
<td colspan="3" class='info_title'><strong>会员报表-选择排序字段</strong></td>
</tr>
<tr>
<td colspan=3>
<select name='OrderField'>
<option value='Name'>会员帐号</option>
<option value='TrueName'>真实姓名</option>
<option value='Email'>电子邮件</option>
<option value='GID'>用户组</option>
<option value='Balance'>余额</option>
<option value='Expenditure'>消费额</option>
<option value='County'>国家</option>
<option value='Province'>省份</option>
<option value='City'>市县</option>
<option value='Region'>地区</option>
<option value='RegTime'>注册时间</option>
<option value='Flag'>状态</option>
</select>
<select name='OrderMode'>
<option value=0>升序(a-zA-Z0-9)</option>
<option value=1>降序(z-aZ-A9-0)</option>
</select>
</td>
</tr>
<tr>
<td colspan="3" class='info_title'><strong>会员报表-选择显示的字段</strong></td>
</tr>
<tr>
<td colspan=3>
<select name='ShowField[]' size=10 multiple id=ShowField>
<!-- beginRow FieldList -->
<option value='{FieldList.Key}'>{FieldList.Value}</option>
<!-- endRow FieldList -->
</select><a href='javascript:selectAll(frmSearch.ShowField);'>全部</a>
</td>
</tr>
<tr>
<td colspan="3" class='info_title'><strong>会员报表-是否下载CSV文件</strong></td>
</tr>
<tr>
<td colspan=3>
<input type=radio name=csv value=1>是
<input type=radio name=csv value=0 checked>否
</td>
</tr>
<tr class='info_bottom'>
<td colspan="3" align="center" class="info_bottom">
<input type="submit" value="搜索">
<input name="btnSubmit" type="hidden" id="btnSubmit" value="1">
</td>
</tr>
</table>
</form>
<script language='javascript'>
<!--
function selectAll(Obj)
{
for(var i = 0; i < Obj.length; i++)
{
Obj.options[i].selected = true;
}
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -