📄 tag_vote.php
字号:
<?php include admintpl('header');?>
<?=$menu?>
<script type="text/javascript" src="<?=$rootpath?>/include/js/MyCalendar.js"></script>
<script type="text/javascript" src="<?=$rootpath?>/include/js/tag.js"></script>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td ></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=2>投票标签设置</th>
</tr>
<form name="myform" onsubmit="javascript:return doCheck();">
<input name="mod" type="hidden" value="<?=$mod?>">
<input name="file" type="hidden" value="<?=$file?>">
<input name="action" type="hidden" value="<?=$action?>">
<input name="item" type="hidden" value="<?=$item?>">
<input name="Preview" type="hidden" value="0">
<input name="Save" type="hidden" value="1">
<input name="itemid" type="hidden" value="<?=$itemid?>">
<input name="referer" type="hidden" value="<?=$referer?>">
<tr>
<td class="tablerow" width="45%"><b>配置名称</b><font color="red">*</font><br>只能由小写字母和数字组成,首字符必须为字母</td>
<td width="55%" class="tablerow"><input name="newdata[name]" id="name" type="text" size="20" value="<?=$data[name]?>"></td>
</tr>
<tr>
<td class="tablerow" width="45%"><b>配置说明</b><font color="red">*</font><br>请简单说明此标签调用内容</td>
<td class="tablerow"><input name="newdata[introduce]" id="introduce" type="text" size="50" value="<?=$data[introduce]?>"></td>
</tr>
<tr>
<td class="tablerowhighlight" colspan=2 align="center"><b>标签参数设置</b></td>
</tr>
<tr>
<td class="tablerow" width="45%"><b>是否分页显示</b><br />
只对单个栏目有效</td>
<td class="tablerow"><input type="radio" name="newdata[showpage]" value="1" <? if($data[showpage]) { ?>checked<? } ?> />
是
<input type="radio" name="newdata[showpage]" value="0" <? if(!$data[showpage]) { ?>checked<? } ?> />
否</td>
</tr>
<tr>
<td class="tablerow" width="45%"><b>每页投票数</b></td>
<td class="tablerow"><input name="newdata[votenum]" type="text" id="newdata[votenum]" value="<?=$data[votenum]?>" size="10"></td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>投票标题最大字符数</b></td>
<td class="tablerow"><input name="newdata[subjectlen]" type="text" size="10" value="<?=$data[subjectlen]?>"></td>
</tr>
<tr>
<td class="tablerow" width="45%"><b>每行显示投票标题列数</b></td>
<td class="tablerow"><select name='newdata[cols]'>
<option value='1' <? if($data[cols]==1) { ?>selected<? } ?>>1列</option>
<option value='2' <? if($data[cols]==2) { ?>selected<? } ?>>2列</option>
<option value='3' <? if($data[cols]==3) { ?>selected<? } ?>>3列</option>
<option value='4' <? if($data[cols]==4) { ?>selected<? } ?>>4列</option>
<option value='5' <? if($data[cols]==5) { ?>selected<? } ?>>5列</option>
<option value='6' <? if($data[cols]==6) { ?>selected<? } ?>>6列</option>
<option value='7' <? if($data[cols]==7) { ?>selected<? } ?>>7列</option>
<option value='8' <? if($data[cols]==8) { ?>selected<? } ?>>8列</option>
<option value='9' <? if($data[cols]==9) { ?>selected<? } ?>>9列</option>
<option value='10' <? if($data[cols]==10) { ?>selected<? } ?>>10列</option>
</select></td>
</tr>
<tr>
<td class="tablerow" width="45%"><b>是否在新窗口打开链接</b></td>
<td class="tablerow"><input name="newdata[target]" type="radio" value="1" checked="checked" <? if($data[target]) { ?>checked<? } ?>>是 <input type="radio" name="newdata[target]" value="0" <? if(!$data[target]) { ?>checked<? } ?>>否</td>
</tr>
<tr>
<td class="tablerow" width="45%"><b>此标签调用的模板</b></td>
<td class="tablerow">
<?=$showtpl?>
<input type="button" name="edittpl" value="修改选中的模板" onclick="window.location='?dir=plugin&file=template&action=tpledit&templatename=<?=$dtemplate?>&fn='+myform.tpl.value+'.htm&referer=<?=urlencode($PHP_URL)?>'" /></td>
</tr>
<tr>
<td class="tablerow"></td>
<td class="tablerow">
<input type="submit" name="Submit" value=" 保存 " onclick="javascript:doSave();">
<input type="submit" name="dopreview" value=" 预览 " onclick="return doPreview();">
<input type="reset" name="reset" value=" 重置 "> </td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -