?? channel_edit.php
字號:
</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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -