?? tag_linklist.php
字號:
<?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>管理選項:</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)簽配置名前面會自動加上 <font color="red">my_</font> 為前綴
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>配置說明</b><font color="red">*</font><br/>對標(biāo)簽進行簡單描述(可用中文),例如:最新文章</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>請選擇頻道</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>鏈接類型</b></td>
<td class="tablerow"><input type="radio" name="newdata[linktype]" value="0" <? if($data[linktype]==0) { ?>checked<? } ?>> 文字鏈接
<input type="radio" name="newdata[linktype]" value="1" <? if($data[linktype]==1) { ?>checked<? } ?>> Logo鏈接<br>
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>是否分頁</b></td>
<td class="tablerow">
<input type="radio" name="newdata[page]" value="$page" <? 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>每頁顯示鏈接數(shù)</b></td>
<td class="tablerow"><input name="newdata[sitenum]" type="text" size="5" value="<?=$data[sitenum]?>"> </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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -