edit.htm

来自「1.增加了近40项后台核心设置」· HTM 代码 · 共 100 行

HTM
100
字号
<?php
print <<<xydw_end
<SCRIPT language=JavaScript>
function Pagejump(value)
{
	if(value!= '') {
		window.location=('admin.php?action=edit&select=$select&page='+value);
	}
}
function Sjump(value)
{
	if(value!= '') {
		window.location=('admin.php?action=edit&select='+value);
	}
}
function delone(wid,name){
	   question = confirm('此操作不可逆,你确定吗?')
        if(question!= '0') {
		  window.location=('admin.php?action=edit&editjob=delete&del[0]='+wid+'&del_name='+name);
        }
}
function delonecom(value){
	   question = confirm('此操作不可逆,你确定吗?')
        if(question!= '0') {
		  window.location=(value);
        }
}
function delall(form){
	   question = confirm('此操作不可逆,你确定吗?如果你没有删除权限操作将会自动终止。')
        if(question!= '0') {
		  submit();
        }
}
function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
</SCRIPT>
 <table width="100%" border="0" cellpadding="3px" cellspacing="1px" align="center">
          <td>
xydw_end;
if($editjob == "move"){
foreach($del as $dely){
		$del_m.=$dely."|";
}
print <<<xydw_end
	<table width="98%"  border="0" cellpadding="3px" align="center">
      <tr>
        <td align=center><form name="form2" method="post" action=$thisurl><br><br>请选择要移动到的栏目:<select name=moveto><option>选择栏目</option>{$opt}</select>
		<br><br><input type='submit' name='movesub' value='提交'>
		<input type='hidden' name='moveall' value='{$del_m}'>
		<input type='hidden' name='editjob' value='move'>
		<input type='hidden' name='move_n' value='$move_n'></form>
		</td>
      </tr>
    </table>
xydw_end;
exit;
}print <<<xydw_end
	<table width="98%"  border="0" cellpadding="3px" align="center">
      <tr>
        <td colspan="2">说明:文章管理员只可以删除其栏目的文章。</td>
      </tr>
	  <tr><td><font color="#FF0000">查看方式:</font><a href='$thisurl&set=date'>按日期查看</a> | 按栏目查看:<select onchange=Sjump(this.options[this.selectedIndex].value) name=select><option>选择栏目</option>{$opt}</select>
	  <td align="right">每页显示{$page_size}条&nbsp;&nbsp;<font color=red>{$xydwpage}</font>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
	  <form name="form3" method="post" action=$thisurl>
	  <tr><td colspan="2" align="center">搜索:<input name="key" size="15" type="text"> 精确匹配<input type="checkbox" name="keyt" value="1">
	  搜索方式:<select name="keym"><option value="all">全部</option><option value="name">文章标题</option><option value="author">文章作者</option><option value="cont">文章内容</option></select>
	  搜索范围:<select name="keyw"><option value="all">所有栏目</option>{$opt}</select>
	   <input type="submit" value="提交" name="search"></td></tr></form>
	</table>
		  <table width="98%"  border="0" cellspacing="1px" cellpadding="3px" bgcolor="$tablecolor" align="center">
      <tr>
        <td align="center" class="head" colspan=6>文章管理</td>
      </tr>
      <tr bgcolor="$bcolor">
	    <td width="10%" align="center">编号[wid]</td>
        <td width="30%" align="center">文章[作者]</td>
        <td width="10%" align="center">日期</td>
		<td width="20%" align="center">所属栏目</td>
		<td width="20%" align="center">文章管理</td>
			<td width="10%" align="center">评论</td>
      </tr><form name="form1" method="post" action=$thisurl>{$viewall}
	  <tr bgcolor="$bcolor"><td align="right" colspan="6">每页显示{$page_size}条&nbsp;&nbsp;<font color=red>{$xydwpage}</font>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
      <tr>
        <td align="center" class="head" colspan=6>
		<input type='button' name='chkall' value='全选' onclick='CheckAll(this.form)'>
        <input type='reset' name='Reset' value='重置'>
		<input name=editjob type=radio value='move'> 移动
        <input name=editjob type=radio value='delete' checked> 删除
		<input type='submit' name='sub' value='提交'  onClick="delall();return false;"> </td></form>
      </tr>
	  </table>
		  </td>
        </tr>
    </table>
xydw_end;
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?