📄 report_product_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="Coding" type="text" id="Coding" size="18">
</td>
<td width="150">商品编号中的一部分</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>
<input name="StartTime2" type="text" size=12>
<input type=button value='..' onClick='showCalendar("StartTime2");'> -
<input name="Expire2" type="text" size=12>
<input type=button value='..' onClick='showCalendar("Expire2");'>
</td>
<td width="150">商品下架时间范围</td>
</tr>
<tr class='info_content'>
<td width="100">定价范围:</td>
<td>
<input name="StartPrice" type="text" size=8>
-
<input name="EndPrice" type="text" size=8>
</td>
<td width="150">商品定价范围</td>
</tr>
<tr class='info_content'>
<td width="100">所属分类:</td>
<td>
<select name='CategoryID'>
<option value=''></option>
{CategoryList}
</select>
</td>
<td width="150">商品所属分类</td>
</tr>
<tr>
<td colspan="3" class='info_title'><strong>商品报表-选择排序字段</strong></td>
</tr>
<tr>
<td colspan=3>
<select name='OrderField'>
<option value='Coding'>商品编号</option>
<option value='Name'>商品名称</option>
<option value='CategoryID'>所属分类</option>
<option value='Quantity'>库存数量</option>
<option value='Summary'>简短描述</option>
<option value='SendTime'>上架时间</option>
<option value='Expire'>下架时间</option>
<option value='Price'>正常价格</option>
<option value='SalePrice'>折扣价格</option>
<option value='IsSale'>是否折扣</option>
<option value='Unit'>单位</option>
<option value='ViewTimes'>查看次数</option>
<option value='BuyTimes'>购买次数</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 + -