channel_edit.php
来自「网站代码」· PHP 代码 · 共 322 行 · 第 1/2 页
PHP
322 行
</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='20'> </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='20'> Byte</td>
</tr>
<tr>
<td class='tablerow'><strong>允许上传的文件类型</strong></td>
<td class='tablerow'>
<input name='channel[uploadfiletype]' type='text' id='uploadfiletype' value='<?=$uploadfiletype?>' size='60' maxlength='100'>
</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 } ?>>首页和内容页为HTML,栏目和专题页为php<br>
<input type='radio' name='channel[htmlcreatetype]' value='3' <?php if($htmlcreatetype==3){ ?>checked <?php } ?>>首页、内容页、栏目和专题的首页为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"><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 + =
减小字号Ctrl + -
显示快捷键?