📄 editsort.htm
字号:
<!--
<?php
print <<<EOT
-->
<table border="0" cellspacing="1" cellpadding="3" width="100%" class="tablewidth">
<form name="form1" method="post" action="?lfj=$lfj&action=$job">
<tr align="center">
<td colspan="2" class="head">栏目修改</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"><font color="#0000FF">打开详细选项设置>>></font><font color="#FF0000">
<input type="checkbox" name="showmore" value="checkbox" id="showmore" onClick="show_more(0);" checked>
[<a href="../list.php?fid=$fid" target="_blank">浏览前台</a>]
[<a href="list.php?lfj=artic&job=list&fid=$fid" target="_blank">管理视频</a>]</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="40%">当前栏目:</td>
<td width="60%"> $sort_fid</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="40%">修改后的栏目名称:</td>
<td width="60%">
<input type="text" name="postdb[name]" value="$rsdb[name]">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="40%">修改后属于哪个分类:</td>
<td width="60%"> $sort_fup</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="40%">设置为分类或栏目:</td>
<td width="60%">
<input type="radio" name="postdb[type]" value="1" $typedb[1]>
分类
<input type="radio" name="postdb[type]" value="0" $typedb[0]>
栏目</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="40%">是否在首页显示本栏目视频(不包括子栏目视频):</td>
<td width="60%">
<input type="radio" name="postdb[index_show]" value="1" $index_show[1]>
显示
<input type="radio" name="postdb[index_show]" value="0" $index_show[0]>
不显示
</td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">发表视频的用户组,(不设置,则所有用户组有权限.而管理员不受限制):</td>
<td width="60%"> $group_post</td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">观看视频的用户组,(不设置,则所有用户组有权限.而管理员不受限制):</td>
<td width="60%"> $group_viewcontent</td>
</tr> <tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">是否禁止在父栏目显示本栏目的视频列表<br>
(当父栏目下有很多子栏目的时候,就没必要全部显示出来)</td>
<td width="60%">
<input type="radio" name="postdb[forbidshow]" value="0" $forbidshow[0]>
显示
<input type="radio" name="postdb[forbidshow]" value="1" $forbidshow[1]>
不显示 </td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">列表页视频排序方式:</td>
<td width="60%">
<select name="postdb[listorder]">
<option value="0" $listorder[0]>默认</option>
<option value="1" $listorder[1]>发表时间降序</option>
<option value="2" $listorder[2]>发表时间升序</option>
<option value="3" $listorder[3]>点击率降序</option>
<option value="4" $listorder[4]>点击率升序</option>
<option value="5" $listorder[5]>最近浏览</option>
<option value="6" $listorder[6]>随机显示(数据大时,很影响速度)</option>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">列表页每页显示多少视频:</td>
<td width="60%">
<input type="text" name="postdb[maxperpage]" size="5" value="$rsdb[maxperpage]">
行 (留空则以默认为标准)</td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td>若有子栏目,每个子栏目显示多少视频:</td>
<td width="60%">
<input type="text" name="sonTitleRow" size="5" value="{$rsdb[config][sonTitleRow]}">
行 (留空则以默认为标准) </td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td>若有子栏目,每个视频标题显示多少个字节(一汉字相当于两个字节)</td>
<td width="60%">
<input type="text" name="sonTitleLeng" size="5" value="{$rsdb[config][sonTitleLeng]}">
个 (留空则以默认为标准) </td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">如有子栏目,子栏目视频排序方式:</td>
<td width="60%">
<select name="sonListorder">
<option value="0" $sonListorder[0]>默认(效率很高)</option>
<option value="1" $sonListorder[1]>发表时间降序</option>
<option value="2" $sonListorder[2]>点击率降序</option>
<option value="3" $sonListorder[3]>最近浏览</option>
<option value="4" $sonListorder[4]>随机显示(数据大时,效率极低)</option>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">跳转到外部地址:<br>
(输入其它地址后,将不会显示本栏目) </td>
<td width="60%">
<input type="text" name="postdb[jumpurl]" value="$rsdb[jumpurl]" size="60">
</td>
</tr>
<!--
EOT;
if($IS_BIZ){
print <<<EOT
-->
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">静态网页表现形式:<br>
(留空则以系统默认为标准)<br>
系统默认是:<br>
列表页:<font color="#0000FF">$webdb[Mv_list_filename]</font><br>
内容页:<font color="#0000FF">$webdb[Mv_bencandy_filename]</font><br>
你可以把<font color="#FF0000">html/</font>去除,则在本系统的根目录,你也可以把<font color="#FF0000">{\$dirid}/</font>删除,这样的话,存在一个问题就是一个栏目如果太多文章就会造成一个目录太多文件,<font color="#FF0000">{\$fid}</font>可以换成栏目的英文名,内容页也可以换成日期的组合,日期的格式是<br>
{\$time_Y} 年(如:2008) {\$time_y} 年(如:08)<br>
{\$time_m} 月 {\$time_d} 日 {\$time_W} 周(如:第21周)<br>
{\$time_H} 时 {\$time_i} 分 {\$time_s} 秒<br>
<br>
<br>
<br>
<br>
</td>
<td width="60%">
<p>列表页:
<input type="text" name="postdb[list_html]" value="$rsdb[list_html]" id="list_html" size="50">
<span style="display:$smallsort"><br>
内容页:
<input type="text" name="postdb[bencandy_html]" value="$rsdb[bencandy_html]" id="bencandy_html" size="50">
</span></p>
<p>选择样式: [<a href="javascript:choose_html(1);"><font color="#0000FF">最佳</font></a>]
[<a href="javascript:choose_html(2);"><font color="#0000FF">个性1</font></a>]
[<a href="javascript:choose_html(3);"><font color="#0000FF">个性2</font></a>]</p>
<SCRIPT LANGUAGE="JavaScript">
<!--
function choose_html(t){
if(t==1){
var list="html/{\$fid}/{\$page}.htm";
var show="html/{\$fid}/{\$dirid}/{\$id}/{\$page}.htm";
}else if(t==2){
var list="$htmldirname/{\$page}.html";
var show="$htmldirname/{\$time_Y}{\$time_m}{\$time_d}/{\$id}-{\$page}.html";
}else if(t==3){
var list="$htmldirname/list-{\$page}.html";
var show="$htmldirname/show-{\$time_Y}{\$time_W}/{\$time_Y}{\$time_m}{\$time_d}{\$time_H}{\$time_i}{\$time_s}-{\$page}.html";
}
document.getElementById("bencandy_html").value=show;
document.getElementById("list_html").value=list;
}
//-->
</SCRIPT>
注意:内容页的{\$id}如果去除的话,必须把日期的时分秒都补上,不然的话,会有文件雷同<br>
自己修改样式注意的是,不能为汉字,确保内容页文件不能雷同,确保一个目录文件不能大于3000个</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">栏目LOGO装饰图片:</td>
<td width="60%">
<input type="text" name="postdb[logo]" value="$rsdb[logo]" size="60">
</td>
</tr>
<tr bgcolor="#FFFFFF" class="hidetr">
<td width="40%">栏目描述(支持HTML):</td>
<td width="60%">
<textarea name="postdb[descrip]" cols="50" rows="7">$rsdb[descrip]</textarea>
</td>
</tr>
<tr align="center">
<td colspan="2" bgcolor="#FFFFFF">
<input type="submit" name="Submit" value="提交">
</td>
</tr>
</form>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
function show_more(va){
var s=document.getElementsByTagName("tr");
for(var i=0;i<s.length;i++){
if( document.form1.showmore.checked==true ||va==1 ){
if(s[i].className=='hidetr'){
s[i].style.display="";
}
}else{
if(s[i].className=='hidetr'){
s[i].style.display="none";
}
}
}
}
//show_more(1);
//-->
</SCRIPT>
<!--
EOT;
?>
-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -