?? tag_speciallist.php
字號(hào):
<?php include admintpl('header');?>
<?=$menu?>
<script type="text/javascript" src="<?=PHPCMS_PATH?>include/js/MyCalendar.js"></script>
<script type="text/javascript" src="<?=PHPCMS_PATH?>include/js/tag.js"></script>
<table cellpadding="2" cellspacing="1" border="0" align=center class="tableBorder" >
<tr>
<td class="submenu" align=center><?=$_CHA['channelname']?>頻道 - <?=$funcs[$func]?>管理</td>
</tr>
<tr>
<td class="tablerow"><b>管理選項(xiàng):</b><a href="?mod=<?=$mod?>&file=<?=$file?>&action=set&func=<?=$func?>&channelid=<?=$channelid?>">添加<?=$funcs[$func]?></a> | <a href="?mod=<?=$mod?>&file=<?=$file?>&action=manage&func=<?=$func?>&channelid=<?=$channelid?>">管理<?=$funcs[$func]?></a></td>
</tr>
</table>
<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><?=$funcs[$func]?>設(shè)置</th>
</tr>
<form name="myform" method="get" action="?" onsubmit="javascript:return doCheck();">
<input name="mod" type="hidden" value="<?=$mod?>">
<input name="file" type="hidden" value="<?=$file?>">
<input name="channelid" type="hidden" value="<?=$channelid?>">
<input name="action" type="hidden" value="save">
<input name="tagid" type="hidden" value="<?=$tagid?>">
<input name="func" type="hidden" value="<?=$func?>">
<input name="referer" type="hidden" value="<?=$PHP_REFERER?>">
<tr>
<td class="tablerow" width="40%"><b>配置名稱</b><font color="red">*</font><br/>只能由字母、數(shù)字和下劃線組成,例如:new_article</td>
<td class="tablerow">
<input name="tag" id="tag" type="text" size="20" value="<?=$my?><?=$tag?>" <?php if($tagid){?>disabled<?php } ?>> <input type="button" name="submit" value=" 檢查是否已經(jīng)存在 " onclick="javascript:openwinx('?mod=<?=$mod?>&file=<?=$file?>&action=tag_exists&tag='+myform.tag.value,'tag_exists','450','160')"> <br/>
為避免與系統(tǒng)內(nèi)置標(biāo)簽沖突,自定義標(biāo)簽配置名前面會(huì)自動(dòng)加上 <font color="red">my_</font> 為前綴
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>配置說(shuō)明</b><font color="red">*</font><br/>對(duì)標(biāo)簽進(jìn)行簡(jiǎn)單描述(可用中文),例如:最新文章</td>
<td class="tablerow"><input name="tagname" id="tagname" type="text" size="60" value="<?=$tagname?>"></td>
</tr>
<tr>
<td class="tablerowhighlight" colspan=2 align="center"><b>標(biāo)簽參數(shù)設(shè)置</b></td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>所屬頻道</b></td>
<td class="tablerow"><input name="newdata[channelid]" id="setchannelid" type="text" size="15" value="<?=$data[channelid]?>">
<select name='selectchannelid' onchange="javascript:myform.setchannelid.value=this.value">
<option>請(qǐng)選擇頻道</option>
<option value='$channelid'>$channelid</option>
<?php
foreach($_CHANNEL as $id=>$channel)
{
if($channel[channeltype])
{
$selected = $id == $channelid ? "selected" : "";
?>
<option value='<?=$id?>' <?=$selected?>><?=$channel[channelname]?></option>
<?php
}
}
?>
</select>
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>調(diào)用專題ID</b><br>多個(gè)ID之前用半角逗號(hào)隔開(kāi),0表示不限專題</td>
<td class="tablerow">
<input name="newdata[specialid]" type="text" size="20" value="<?=$data[specialid]?>" id="specialid">
<br>
<?=$special_select?>
選擇時(shí)專題ID會(huì)自動(dòng)加入到表單中
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>是否分頁(yè)顯示</b></td>
<td class="tablerow"><input type="radio" name="newdata[page]" value="1" <? if($data[page]) { ?>checked<? } ?>>是 <input type="radio" name="newdata[page]" value="0" <? if(!$data[page]) { ?>checked<? } ?>>否</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>每頁(yè)專題數(shù)</b></td>
<td class="tablerow"><input name="newdata[specialnum]" type="text" size="10" value="<?=$data[specialnum]?>"></td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>專題名稱最大字符數(shù)</b></td>
<td class="tablerow"><input name="newdata[specialnamelen]" type="text" size="10" value="<?=$data[specialnamelen]?>"> 一個(gè)漢字=兩個(gè)英文字符,若為0,則不顯示專題名稱</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>專題介紹最大字符數(shù)</b></td>
<td class="tablerow"><input name="newdata[descriptionlen]" type="text" size="10" value="<?=$data[descriptionlen]?>"> 一個(gè)漢字=兩個(gè)英文字符,若為0,則不顯示專題簡(jiǎn)介</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>是否為推薦專題</b></td>
<td class="tablerow"><input type="radio" name="newdata[iselite]" value="1" <? if($data[iselite]) { ?>checked<? } ?>>是 <input type="radio" name="newdata[iselite]" value="0" <? if(!$data[iselite]) { ?>checked<? } ?>>否</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>多少天以內(nèi)的專題</b></td>
<td class="tablerow"><input name="newdata[datenum]" type="text" size="5" value="<?=$data[datenum]?>" id="datenum"> 天
<select name='selectdatenum' onclick="javascript:myform.datenum.value=this.value">
<option value='0' <? if($data[datenum]==0) { ?>selected<? } ?>>不限天數(shù)</option>
<option value='7' <? if($data[datenum]==7) { ?>selected<? } ?>>一周以內(nèi)</option>
<option value='14' <? if($data[datenum]==14) { ?>selected<? } ?>>兩周以內(nèi)</option>
<option value='30' <? if($data[datenum]==30) { ?>selected<? } ?>>一個(gè)月內(nèi)</option>
<option value='60' <? if($data[datenum]==60) { ?>selected<? } ?>>兩個(gè)月內(nèi)</option>
<option value='90' <? if($data[datenum]==90) { ?>selected<? } ?>>三個(gè)月內(nèi)</option>
<option value='180' <? if($data[datenum]==180) { ?>selected<? } ?>>半年以內(nèi)</option>
<option value='365' <? if($data[datenum]==365) { ?>selected<? } ?>>一年以內(nèi)</option>
</select>
您可以從下拉框中選擇
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>顯示方式</b></td>
<td class="tablerow">
<input type="radio" name="newdata[showtype]" value="1" <? if($data[showtype]==1) { ?>checked<? } ?>>圖片+專題名稱+專題簡(jiǎn)介:上下排列<br>
<input type="radio" name="newdata[showtype]" value="2" <? if($data[showtype]==2) { ?>checked<? } ?>>(圖片+專題名稱:上下排列)+專題簡(jiǎn)介:左右排列<br>
<input type="radio" name="newdata[showtype]" value="3" <? if($data[showtype]==3) { ?>checked<? } ?>>圖片+(專題名稱+專題簡(jiǎn)介:上下排列):左右排列<br>
<input type="radio" name="newdata[showtype]" value="4" <? if($data[showtype]==4) { ?>checked<? } ?>>專題名稱+(圖片+專題簡(jiǎn)介:左右排列):上下排列<br>
<input type="radio" name="newdata[showtype]" value="5" <? if($data[showtype]==5) { ?>checked<? } ?>>專題名稱+(圖片+專題簡(jiǎn)介:混合排列):上下排列<br>
<input type="radio" name="newdata[showtype]" value="6" <? if($data[showtype]==6) { ?>checked<? } ?>>專題名稱+專題簡(jiǎn)介:上下排列
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>圖片寬度</b></td>
<td class="tablerow"><input name="newdata[imgwidth]" type="text" size="5" value="<?=$data[imgwidth]?>"> px</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>圖片高度</b></td>
<td class="tablerow"><input name="newdata[imgheight]" type="text" size="5" value="<?=$data[imgheight]?>"> px</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>顯示專題列數(shù)</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="40%"><b>此標(biāo)簽調(diào)用的模板</b></td>
<td class="tablerow">
<?=$showtpl?>
<input type="button" name="edittpl" value="修改選中模板" onclick="window.location='?mod=phpcms&file=template&channelid=<?=$channelid?>&action=edit&templateid='+myform.templateid.value+'&module=<?=$mod?>&referer=<?=urlencode($PHP_URL)?>'"> [注:只能修改非默認(rèn)模板]
</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=" 預(yù)覽 " onclick="return doPreview();">
<input type="reset" name="reset" value=" 重置 "> </td>
</tr>
</form>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -