📄 channel_edit.php
字号:
</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>
</tr>
<tr>
<td width='200' class='tablerow'><strong>投稿是否需要审核</strong><br>设定为需要审核时,如果某组会员有“发表信息不需审核”的特权,则此会员组不受此限。</td>
<td class='tablerow'>
<input name='channel[enablecheck]' type='radio' value='1' <?php if($enablecheck==1){ ?>checked <?php } ?>>是 <font color='blue'>需要审核员进行审核</font><br>
<input name='channel[enablecheck]' type='radio' value='0' <?php if($enablecheck==0){ ?>checked <?php } ?>>否 <font color='blue'>在本频道发表信息不需要管理员审核</font><br>
</td>
</tr>
<tr>
<td width='200' class='tablerow'><strong>退稿时站内短信/Email通知内容:</strong><br>不支持HTML代码</td>
<td class='tablerow'><textarea name='channel[emailofreject]' cols='70' rows='5'><?=$emailofreject?></textarea></td>
</tr>
<tr>
<td width='200' class='tablerow'><strong>稿件被采用时站内短信/Email通知内容:</strong><br>不支持HTML代码</td>
<td class='tablerow'><textarea name='channel[emailofpassed]' cols='70' rows='5'><?=$emailofpassed?></textarea></td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>上传选项</th>
<tr>
<td width='25%' class='tablerow'><strong>是否允许在本频道上传文件</strong></td>
<td class='tablerow'>
<input type='radio' name='channel[enableupload]' value='1' <?php if($enableupload==1){ ?>checked <?php } ?>> 是
<input type='radio' name='channel[enableupload]' value='0' <?php if($enableupload==0){ ?>checked <?php } ?>> 否
</td>
</tr>
<tr>
<td class='tablerow'><strong>上传文件的保存目录</strong></td>
<td class='tablerow'><input name='channel[uploaddir]' type='text' id='uploaddir' value='<?=$uploaddir?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td class='tablerow'><strong>允许上传的最大文件大小</strong></td>
<td class='tablerow'><input name='channel[maxfilesize]' type='text' id='maxfilesize' value='<?=$maxfilesize?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td class='tablerow'><strong>允许上传的文件类型</strong></td>
<td class='tablerow'>
<input name='channel[uploadfiletype]' type='text' id='uploadfiletype' value='<?=$uploadfiletype?>' size='40' maxlength='50'>
</td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>生成方式</th>
<tr>
<td width='25%' class='tablerow'><strong>生成HTML方式</strong></td>
<td class='tablerow'>
<input type='radio' name='channel[htmlcreatetype]' value='0' <?php if($htmlcreatetype==0){ ?>checked <?php } ?>>不生成 <font color='blue'>如果你觉得生成html很麻烦,可以选择此项</font><br>
<input type='radio' name='channel[htmlcreatetype]' value='1' <?php if($htmlcreatetype==1){ ?>checked <?php } ?>>全部生成 <font color='blue'>此方式在生成后将最节省系统资源,但当信息量大时,生成过程将比较长。</font><br>
<input type='radio' name='channel[htmlcreatetype]' value='2' <?php if($htmlcreatetype==2){ ?>checked <?php } ?> disabled>首页和内容页为HTML,栏目和专题页为php<br>
<input type='radio' name='channel[htmlcreatetype]' value='3' <?php if($htmlcreatetype==3){ ?>checked <?php } ?> disabled>首页、内容页、栏目和专题的首页为HTML,其他页为php <font color='red'><b>(推荐)</b></font>
</td>
</tr>
<tr>
<td width='25%' class='tablerow'><strong>URL静态化</strong><br>构造静态化URL有利于搜索优化,但是会略微增加服务器负担</td>
<td class='tablerow'>
<input type='radio' name='channel[urltype]' value='0' <?php if($urltype==0){ ?>checked <?php } ?>>不进行url静态化<br>
<input type='radio' name='channel[urltype]' value='1' <?php if($urltype==1){ ?>checked <?php } ?>>构造的URL类似于 ./list.php?catid-1/page-5.html <font color='blue'></font><br>
<input type='radio' name='channel[urltype]' value='2' <?php if($urltype==2){ ?>checked <?php } ?>>构造的URL类似于 ./list-1-5.html(需要服务器支持Apache的Mod_Rewrite功能)<br>
</td>
</tr>
<tr>
<td class='tablerow'><strong>自动生成HTML时的生成方式</strong></td>
<td class='tablerow'>
<input name='channel[autocreatetype]' type='radio' value='0' <?php if($autocreatetype==0){ ?>checked <?php } ?>>不自动生成,由管理员手工生成相关页面<br>
<input name='channel[autocreatetype]' type='radio' value='1' <?php if($autocreatetype==1){ ?>checked <?php } ?>>自动生成全部所需页面<br> <font color='blue'>当“生成HTML方式”设置为“全部生成”时,将生成所有页面;当“生成HTML方式”设置为后两种时,会根据设置的选项生成有关页面。</font><br>
<input name='channel[autocreatetype]' type='radio' value='2' <?php if($autocreatetype==2){ ?>checked <?php } ?>>自动生成部分所需页面<br> <font color='blue'>仅当“生成HTML方式”设置为“全部生成”时方有效。此方式只生成首页、内容页、栏目和专题的首页,其他页面由管理员手工生成。</font>
</td>
</tr>
<tr>
<td class="tablerow"><b>生成文件的扩展名</b></td>
<td class="tablerow">
<input name="channel[fileext]" type="text" size="8" id="fileext" value="<?=$fileext?>"> 请选择
<select name="ext" id="ext" onchange="javascript:myform.fileext.value=myform.ext.value">
<option value='htm' <?php if($fileext=='htm'){ ?>selected<?php } ?>>htm</option>
<option value='html' <?php if($fileext=='html'){ ?>selected<?php } ?>>html</option>
<option value='shtm' <?php if($fileext=='shtm'){ ?>selected<?php } ?>>shtm</option>
<option value='shtml' <?php if($fileext=='shtml'){ ?>selected<?php } ?>>shtml</option>
</select>
</td>
</tr>
<tr>
<td class='tablerow'><strong>栏目列表文件的生成方式</strong></td>
<td class='tablerow'>
文件前缀:<input name='channel[listfilepre]' type='text' id='listfilepre' value='<?=$listfilepre?>' size='40' maxlength='50'><br>
<input name='channel[listfiletype]' type='radio' value='0' <?php if($listfiletype==0){ ?>checked <?php } ?>>列表文件分目录保存在所属栏目的文件夹中<br> <font color='blue'>例:news/it/net/index.html(栏目首页)<br> news/it/net/List_2.html(第二页)</font><br>
<input name='channel[listfiletype]' type='radio' value='1' <?php if($listfiletype==1){ ?>checked <?php } ?>>列表文件统一保存在指定的“List”文件夹中<br> <font color='blue'>例:news/list/List_236.html(栏目首页)<br> news/list/List_236_2.html(第二页)</font><br>
<input name='channel[listfiletype]' type='radio' value='2' <?php if($listfiletype==2){ ?>checked <?php } ?>>列表文件统一保存在频道文件夹中<br> <font color='blue'>例:news/List_236.html(栏目首页)<br> news/List_236_2.html(第二页)</font><br>
</td>
</tr>
<tr>
<td class='tablerow'><strong>内容页文件的生成方式</strong></td>
<td class='tablerow'>
文件前缀:<input name='channel[contentfilepre]' type='text' id='contentfilepre' value='<?=$contentfilepre?>' size='40' maxlength='50'><br>
<input type='radio' name='channel[contentfiletype]' value='0' <?php if($contentfiletype==0){ ?>checked <?php } ?>> 频道/年份/月日/文件(先按年份,再按日期分,每日一个目录)<br> <font color='blue'>例:news/2006/0401/163.html</font><br>
<input type='radio' name='channel[contentfiletype]' value='1' <?php if($contentfiletype==1){ ?>checked <?php } ?>> 频道/大类/小类/月份/文件(栏目分级,再按月份保存)<br> <font color='blue'>例:news/it/net/200408/1368.html</font><br>
<input type='radio' name='channel[contentfiletype]' value='2' <?php if($contentfiletype==2){ ?>checked <?php } ?>> 频道/html/文件(直接放在指定的“HTML”文件夹中)<br> <font color='blue'>例:news/HTML/1368.html</font><br>
<input type='radio' name='channel[contentfiletype]' value='3' <?php if($contentfiletype==3){ ?>checked <?php } ?>> 频道/文件(直接放在频道目录中)<br> <font color='blue'>例:news/1368.html</font><br>
</td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=6>自定义参数</th>
<tr align='center'>
<td width="5%" class="tablerowhighlight">序号</td>
<td width="12%" class="tablerowhighlight">参数名</td>
<td width="34%" class="tablerowhighlight">参数值</td>
<td width="25%" class="tablerowhighlight">参数说明</td>
<td width="15%" class="tablerowhighlight">变量名</td>
<td width="5%" class="tablerowhighlight">删除</td>
</tr>
<tr align="center" bgColor='#F1F3F5'>
<td colspan=6>
<div id="setting">
<?php
if(is_array($settings)){
$k=1;
foreach($settings as $id => $setting){
?>
<div id="setting<?=$k?>">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr align='center'>
<td class="tablerow" width="5%"><?=$k?></td>
<td class="tablerow" width="12%">
<?=$setting['variable']?>
<input name="myvariable[<?=$setting['variable']?>]" type="hidden" id="myvariable[<?=$setting['variable']?>]" size="12" maxlength="50" value="<?=$setting['variable']?>" readonly>
</td>
<td class="tablerow" width="34%"><textarea id="myvalue[<?=$setting['variable']?>]" name="myvalue[<?=$setting['variable']?>]" rows="3" cols="40"><?=$setting['value']?></textarea></td>
<td class="tablerow" width="25%" align="left" >
<?=$setting['note']?>
<input name="mynote[<?=$setting['variable']?>]" type="hidden" id="mynote[<?=$setting['variable']?>]" size="12" maxlength="50" value="<?=$setting['note']?>">
</td>
<td class="tablerow" width="15%">$_PHPCMS['<?=$setting['variable']?>']</td>
<td class="tablerow" width="5%">
<input type="checkbox" value="<?=$setting['variable']?>" name="delete[<?=$setting['variable']?>]">
</td>
</tr>
</table>
</div>
<?php
$k++;
}
}
?>
</div>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<input type="button" value="增加参数" name="add" onClick="AddItem();">
<input type="button" value="重置参数" name="reset" onClick="ResetItem();">
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><input type="submit" name="Submit" value="保存设置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -