📄 search_sale_product.tpl
字号:
<link rel='stylesheet' href='templates/{Lang}/css/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);
}
</script>
<form name="form1" method="GET" action="{ACTION}">
<table width="100%" border="0" cellspacing=0 cellpadding=5 class=adminform>
<tr class="info_title">
<td colspan="3"><strong>搜索促销商品</strong></td>
</tr>
<tr class='info_content'>
<td>商品编号:</td>
<td>
<input name="Coding" type="text" id="Coding" size="18">
</td>
<td>搜索指定商品编号的附件</td>
</tr>
<tr class='info_content'>
<td>有效时间:</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>促销商品有效时间范围</td>
</tr>
<tr class='info_bottom'>
<td colspan="3" align="center">
<input type="submit" value="搜索">
<input name="act" type="hidden" id="btnSubmit" value="sale_product">
<input type="button" value="取消(C)" onClick="doCancle();"> </td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -