📄 ad_post.tpl
字号:
{{include file="header.tpl"}}
<div class="pagetitle">广告管理</div>
<form name="form1" method="post">
<input type="hidden" name="op" value="change" />
<table class="tborder" cellSpacing="1" cellPadding="4" align="center">
<tr><td colspan="2" class="tcat">广告管理</td></tr>
<tr class="alt1">
<td align="right" width="20%">位置:</td>
<td><select name="ad_place" class="formInput" onchange="location.href='ad.php?place='+this.value;">
{{html_options options=$ad_place selected=$current_place}}
</select></td>
</tr>
<tr class="alt2">
<td align="right" valign="top">代码:</td>
<td><textarea class="formInput" name="ad_code" cols="80" rows="15">{{$ad.ad_code|escape:"html"}}</textarea><br /><span class="form_clue">广告代码请限制在5000字符以内。留空将删除此位置的广告</span><br /><input type="checkbox" name="pause" value="1" {{if $ad.is_pause}}checked="checked"{{/if}} />暂停显示</td>
</tr>
<tr>
<td colspan="2" class="tfoot" align="center">
<input type="submit" class="formButton" id="submit" accessKey="s" value=" 修改(S) " />
<input class="formButton" accessKey="p" type="reset" value="预览(P)" onclick="executePreview();" />
<input class="formButton" accessKey="r" type="reset" value="重置(R)" />
<input class="formButton" type="button" accessKey="n" value=" 返回(N) " onclick='javascript:history.back();' />
</td>
</tr>
</table>
</form>
<form name="preview" method="post" target="preview">
<input type="hidden" name="op" value="preview" />
<input type="hidden" name="preview_place" />
<input type="hidden" name="preview_code" />
</form>
<script type="text/javascript">
function executePreview()
{
var ad_code = document.form1.ad_code.value;
if ('' == ad_code)
{
alert('没有可预览内容!');
return false;
}
document.preview.preview_place.value = document.form1.ad_place.value;
document.preview.preview_code.value = ad_code;
document.preview.submit();
}
</script>
{{include file="footer.tpl"}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -