channel_add.php

来自「网站代码」· PHP 代码 · 共 328 行 · 第 1/2 页

PHP
328
字号
	</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'></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'></textarea></td>
    </tr>
    <tr>
      <td width='200' class='tablerow'><strong>是否允许投稿</strong></td>
      <td class='tablerow'>
	  <input name='channel[enablecontribute]' type='radio' value='1' checked>是
	  <input name='channel[enablecontribute]' type='radio' value='0'>否
	  </td>
    </tr>
    <tr>
	<td width='200' class='tablerow'><strong>投稿是否需要审核</strong><br>设定为需要审核时,如果某组会员有“发表信息不需审核”的特权,则此会员组不受此限。</td>
	<td class='tablerow'>
	<input name='channel[enablecheck]' type='radio' value='1' checked>是&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>需要审核员进行审核</font><br>
	<input name='channel[enablecheck]' type='radio' value='0'>否&nbsp;&nbsp;&nbsp;&nbsp;<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'></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'></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' checked> 是&nbsp;&nbsp;&nbsp;&nbsp;
	  <input type='radio' name='channel[enableupload]' value='0'> 否
     </td>
    </tr>
    <tr>
      <td  class='tablerow'><strong>上传文件的保存目录</strong></td>
      <td class='tablerow'><input name='channel[uploaddir]' type='text' id='uploaddir' value='uploadfile' size='20' maxlength='50'></td>
    </tr>
    <tr>
      <td  class='tablerow'><strong>允许上传的最大文件大小</strong></td>
      <td class='tablerow'><input name='channel[maxfilesize]' type='text' id='maxfilesize' value='1024000' size='20' maxlength='50'> Byte</td>
    </tr>
    <tr>
      <td  class='tablerow'><strong>允许上传的文件类型</strong></td>
      <td class='tablerow'>
<input name='channel[uploadfiletype]' type='text' id='uploadtype' value='gif|jpg|jpeg|bmp|swf|rm|mp3|wav|mid|midi|ra|avi|mpg|mpeg|asf|asx|wma|mov|rar|zip|exe|doc|xls|chm|hlp' 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'>不生成,不进行伪静态搜索优化&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>如果你觉得生成html很麻烦,可以选择此项</font><br>
<input type='radio' name='channel[htmlcreatetype]' value='1'>全部生成&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>此方式在生成后将最节省系统资源,但当信息量大时,生成过程将比较长。</font><br>
<input type='radio' name='channel[htmlcreatetype]' value='2'>首页和内容页生成HTML,栏目和专题页不生成<br>
<input type='radio' name='channel[htmlcreatetype]' value='3' checked>首页、内容页、栏目和专题的首页生成HTML,其他页不生成 <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'>不进行url静态化<br>
<input type='radio' name='channel[urltype]' value='1' checked>构造的URL类似于 ./list.php?catid-1/page-5.html&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'></font><br>
<input type='radio' name='channel[urltype]' value='2'>构造的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="htm"> 请选择 
<select name="ext" id="ext" onchange="javascript:myform.fileext.value=myform.ext.value">
<option value='htm'>htm</option>
<option value='html'>html</option>
<option value='shtm'>shtm</option>
<option value='shtml'>shtml</option>
<option value='php'>php</option>
</select>
	  </td>
    </tr>
    <tr>
      <td  class='tablerow'><strong>栏目列表文件的生成方式</strong></td>
      <td class='tablerow'>
文件前缀:<input name='channel[listfilepre]' type='text' id='listfilepre' value='list_' size='40' maxlength='50'><br>
<input name='channel[listfiletype]' type='radio' value='0' checked>列表文件分目录保存在所属栏目的文件夹中<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>例:news/it/net/index.html(栏目首页)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news/it/net/List_2.html(第二页)</font><br>
<input name='channel[listfiletype]' type='radio' value='1'>列表文件统一保存在指定的“List”文件夹中<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>例:news/list/List_236.html(栏目首页)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;news/list/List_236_2.html(第二页)</font><br>
<input name='channel[listfiletype]' type='radio' value='2'>列表文件统一保存在频道文件夹中<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>例:news/List_236.html(栏目首页)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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='catpre' value='content_' size='40' maxlength='50'><br>
<input type='radio' name='channel[contentfiletype]' value='0' checked> 频道/年份/月日/文件(先按年份,再按日期分,每日一个目录)<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>例:news/2006/0401/163.html</font><br>
<input type='radio' name='channel[contentfiletype]' value='1'> 频道/大类/小类/月份/文件(栏目分级,再按月份保存)<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>例:news/it/net/200408/1368.html</font><br>
<input type='radio' name='channel[contentfiletype]' value='2'> 频道/html/文件(直接放在指定的“HTML”文件夹中)<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color='blue'>例:news/HTML/1368.html</font><br>
<input type='radio' name='channel[contentfiletype]' value='3'> 频道/文件(直接放在频道目录中)<br>&nbsp;&nbsp;&nbsp;&nbsp;<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">
<div id="setting1">
     <table cellpadding="0" cellspacing="0" border="0" width="100%">
          <tr align='center'> 
            <td class="tablerow" width="5%">1</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%" align="left" >
              <textarea id='mynote[]' name='mynote[]' rows='3' cols='30'></textarea>
             </td>
			<td class="tablerow" width="15%"><input type='button' value=' 删除 ' name='del' onClick="DelItem('setting1');"></td>
			<td class="tablerow" width="5%">
	        </td>
          </tr>
      </table>
</div>
   </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 + -
显示快捷键?