?? channel_edit.php
字號:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<script language='JavaScript' type='text/JavaScript'>
function CheckForm(){
if(document.myform.channelname.value==''){
ShowTabs(0);
alert('請輸入頻道名稱!');
document.myform.channelname.focus();
return false;
}
document.myform.templateid.value = template.document.template.templateid.value;
}
</script>
<script language="javascript">
var i=<?=$i?>;
var k=i;
{
i++;
if(i>50)
{
alert("參數過多!");
return;
}
document.all.setting.innerHTML+="<div id='setting"+i+"'><table cellpadding='0' cellspacing='0' border='0' width='100%'><tr align='center'><td class='tablerow' width='5%'>"+i+"</td><td class='tablerow' width='12%'><input name='myvariable[]' type='text' id='myvariable[]' size='12' maxlength='50'></td><td class='tablerow' width='34%'><textarea id='myvalue[]' name='myvalue[]' rows='3' cols='40'></textarea></td><td class='tablerow' width='25%'><textarea id='mynote[]' name='mynote[]' rows='3' cols='30'></textarea></td><td class='tablerow' width='15%'><input type='button' value=' 刪除 ' name='del' onClick=\"DelItem('setting"+i+"');\"></td><td class='tablerow' width='5%'></td></tr></table></div>";
}
function DelItem(myid)
{
i--;
setidval(myid,'');
}
function ResetItem()
{
document.all.setting.innerHTML= old;
i=k;
}
</script>
<body onload="old = document.all.setting.innerHTML">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<?=$menu?>
<form name="myform" method="post" action="?file=channel&action=edit&channelid=<?=$channelid?>&save=1" onSubmit='return CheckForm();'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr align='center' height='24'>
<td id='TabTitle' class='title2' onclick='ShowTabs(0)'>基本信息</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(1)'>權限設置</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(2)'>上傳選項</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(3)'>生成方式</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(4)'>自定義參數</td>
<td> </td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tbody id='Tabs' style='display:'>
<th colspan=2>基本信息</th>
<tr>
<td width='25%' class='tablerow'><strong>頻道名稱</strong></td>
<td class='tablerow'><input name='channel[channelname]' type='text' id='channelname' size='40' maxlength='50' value='<?=$channelname?>'></td>
</tr>
<tr>
<td class='tablerow'><strong>頻道圖片</strong></td>
<td class='tablerow'><input name='channel[channelpic]' type='text' id='channelpic' size='40' maxlength='50' value='<?=$channelpic?>'> <input type="button" value=" 上傳 " onclick="javascript:openwinx('?mod=phpcms&file=uppic&channelid=<?=$channelid?>&uploadtext=channelpic&width=100&height=100','upload','350','200')"></td>
</tr>
<tr>
<td class='tablerow'><strong>頻道說明</strong><br></td>
<td class='tablerow'><input name='channel[introduce]' type='text' id='introduce' size='40' maxlength='255' value='<?=$introduce?>'></td>
</tr>
<tr>
<td class='tablerow'><strong>頻道關鍵詞</strong><br>針對搜索引擎設置的關鍵詞</td>
<td class='tablerow'><input name='channel[meta_keywords]' type='text' id='meta_keywords' size='40' maxlength='30' value='<?=$meta_keywords?>'></td>
</tr>
<tr>
<td class='tablerow'><strong>頻道內容描述</strong><br>針對搜索引擎設置的網頁描述</td>
<td class='tablerow'><input name='channel[meta_description]' type='text' id='meta_description' size='40' maxlength='30' value='<?=$meta_description?>'></td>
</tr>
<tr>
<td class='tablerow'><strong>頻道類型</strong><br>請慎重選擇,頻道一旦添加后就不能再更改頻道類型。</td>
<td class='tablerow'>
<input name='channel[channeltype]' id='channeltype' type='radio' value='1' <?php if($channeltype){ ?>checked <?php }else{ ?>disabled <?php } ?> onClick="channelsetting.style.display=''"><font color=blue><b>系統內部頻道</b></font><br> 系統內部頻道指的是在本系統現有功能模塊(新聞、文章、圖片等)基礎上添加新的頻道,新頻道具備和所使用功能模塊完全相同的功能。例如,添加一個名為“新聞”的新頻道,新頻道使用“文章”模塊的功能,則新添加的“新聞”頻道具有原文章頻道的所有功能。
<table id='channelsetting' width='100%' border='0' cellpadding='2' cellspacing='1' style='display:<?php if(!$channeltype){ ?>none<?php }?>'>
<tr>
<td width='200' class='tablerow'><strong>頻道使用的功能模型:</strong></td>
<td>
<select name='channel[module]' id='module' disabled>
<?php foreach($modules as $m){ ?>
<option value='<?=$m['module']?>' <?php if($m['module']==$module){ ?>selected <?php } ?>><?=$m['modulename']?></option>
<?php } ?>
</select>
<font color=red>請慎重選擇,添加后就不能修改此項。</font></td>
</tr>
<tr>
<td width='200' class='tablerow'><strong>頻道目錄:</strong><br>
<font color='#FF0000'>只能是英文</font> <font color='#0000FF'>樣例:</font>news、soft</td>
<td><input name='channel[channeldir]' type='text' id='channeldir' size='20' maxlength='50' value='<?=$channeldir?>' disabled> <font color='#FF0000'>* 請慎重錄入,添加后就不能修改此項。</font></td>
</tr>
<tr>
<td width='200' class='tablerow'><strong>綁定域名:</strong><br>
<font color='#FF0000'>如果不綁定則請不要填寫</font><br></td>
<td><input name='channel[channeldomain]' type='text' id='channeldomain' size='20' maxlength='50' value='<?=$channeldomain?>'></td>
</tr>
</table>
<br><br>
<input name='channel[channeltype]' id='channeltype' type='radio' value='0' <?php if(!$channeltype){ ?>checked <?php }else{ ?>disabled <?php } ?> onClick="channelsetting.style.display='none'"><font color=blue><b>外部頻道</b></font><br> 外部頻道指鏈接到本系統以外的地址中。當此頻道準備鏈接到網站中的其他系統時,請使用這種方式。<br>
鏈接地址:<input name='channel[linkurl]' type='text' id='linkurl' size='40' maxlength='200' value='<?=$linkurl?>' <?php if($channeltype){ ?>readonly<?php }?>> <?php if(!$channeltype){ ?><?=$page_select?><?php } ?>
</td>
</tr>
<tr>
<td width='25%' class='tablerow'><strong>頻道的默認風格</strong></td>
<td class='tablerow'>
<?=$skinid?>
</td>
</tr>
<tr>
<td class='tablerow'><strong>頻道首頁的默認模板</strong></td>
<td class='tablerow'>
<input type="hidden" id="templateid" name="channel[templateid]" value="<?=$templateid?>">
<iframe id="template" src="?mod=phpcms&file=template&action=showselect&name=templateid&type=index&templateid=<?=$templateid?>&module=<?=$module?>" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="250" height="22"></iframe>
</td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>權限設置</th>
<tr>
<td width='30%' class='tablerow'><strong>頻道權限:</strong><br><font color='red'>頻道權限為繼承關系,當頻道設為“認證頻道”時,其下的欄目設為“開放欄目”也無效。相反,如果頻道設為“開放頻道”,其下的欄目可以自由設置權限。</font></td>
<td class='tablerow'>
<table>
<tr><td width='80' valign='top'><input type='radio' name='channel[channelpurview]' value='0' <?php if($channelpurview==0){ ?>checked <?php } ?>>開放頻道</td>
<td>任何人(包括游客)可以瀏覽此頻道下的信息。可以在欄目設置中再指定具體的權限。</td></tr>
<tr><td width='80' valign='top'><input type='radio' name='channel[channelpurview]' value='1' <?php if($channelpurview==1){ ?>checked <?php } ?>>認證頻道</td>
<td>游客不能瀏覽,并在下面指定允許瀏覽的會員組。如果頻道設置為認證頻道,則此頻道的“生成HTML”選項只能設為“不生成HTML”。</td></tr>
</table>
</td>
</tr>
<tr>
<td class='tablerow'><strong>允許瀏覽此頻道的會員組:</strong><br>如果頻道權限設置為“認證頻道”,請在此設置允許瀏覽此頻道的會員組</td>
<td class='tablerow'>
<?=$arrgroupid_browse?>
</td>
</tr>
<tr>
<td width='200' class='tablerow'><strong>無權限瀏覽信息時的提示信息:</strong><br>支持HTML代碼,可使用類似{$_groupid}格式的變量</td>
<td class='tablerow'><textarea name='channel[purview_message]' cols='70' rows='5'><?=$purview_message?></textarea></td>
</tr>
<tr>
<td width='200' class='tablerow'><strong>信息需要扣點數時的提示信息:</strong><br>支持HTML代碼,可使用類似{$readpoint}格式的變量</td>
<td class='tablerow'><textarea name='channel[point_message]' cols='70' rows='5'><?=$point_message?></textarea></td>
</tr>
<tr>
<td width='200' class='tablerow'><strong>是否允許投稿</strong></td>
<td class='tablerow'>
<input name='channel[enablecontribute]' type='radio' value='1' <?php if($enablecontribute==1){ ?>checked <?php } ?>>是
<input name='channel[enablecontribute]' type='radio' value='0' <?php if($enablecontribute==0){ ?>checked <?php } ?>>否
</td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -