📄 input_channel.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>
<script language='javascript'>
<!--
function checkValue()
{
return true;
}
//-->
</script>
<form action='{ACTION}' method=POST name='frmInfo' enctype='multipart/form-data' onSubmit='return checkValue();'>
<table width="100%" border="0" cellspacing="0" cellpadding=5 class=adminlist>
<tr class='info_title'>
<td colspan="8"><strong>{Name}</strong></td>
</tr>
<!-- beginRow RowList -->
<tr class='info_content'>
<td width=150>{RowList.Caption}</td>
<td>
{RowList.Field}
</td>
<td width=200>{RowList.Descript} </td>
</tr>
<!-- endRow RowList -->
<tr align="center" class='info_bottom'>
<td colspan="4">
<input type="submit" value='{Caption}'>
<input type='hidden' value=1 name=btnSubmit>
<input type='button' value='返回(C)' accesskey='c' onClick='window.location="{CurrentURL}&code=view_result&ids={ChannelID}";'>
</td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -