⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sort_manage.asp

📁 K风搜索 2.1商业版 完整功能版 后台http://XXXXXX/admin/ 管理帐号:admin 管理密码:admin 安全密码: ks21 网站设置http://XXXXXX/
💻 ASP
字号:
<!--#include file="../setup.asp"-->
<!--#include file="login_admin.asp"-->
<%
'================================================================================
'Product:K-Search Version 2.1
'本“软件产品”受《中华人民共和国著作权法》和《中华人民共和国计算机软件保护条例》 
'和国际条约的保护。如未经授权而擅自复制或传播本程序(或其中任何部分),将受到严厉
'的刑事及民事制裁,并将在法律许可的范围内受到最大可能的起诉!
'Homepage:http://www.lucoo.com/
'--------------------------------------------------------------------------------
'Copyright(c) 2005 lucoo.com All Rights Reserved 绿色互联 版权所有
'================================================================================
if session("rank")<>1 then
response.write "<Script>window.alert('您的管理员级别不能操作!');history.go(-1);</Script>"
response.end
end if
%>
<!--#include file="conn.asp"-->
<html>
<head>
<title>管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<script language="JavaScript">
function sort_edit(sort,sort_id,move_id,id){
var sort;
var sort_id;
var move_id;
var id;
forms.sort.value=sort;
forms.sort_id.value=sort_id;
forms.move_id.value=move_id;
forms.action.value='edit';
forms.id.value=id;
}
</script>
<script language=Javascript>
function checkall(all)
{
  var a = document.getElementsByName("id");
  for (var i=0; i<a.length; i++) a[i].checked = all.checked;
}
</script>
<script language="JavaScript">
function sort_delete(sort_id,id){
var id;
var sort_id;
if (confirm("确定删除吗?")){
document.location.href="sort_ok.asp?action=del&sort_id="+sort_id+"&id="+id+"";
}
}
</script> 
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="top.asp"-->
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <form name="forms" method="post" action="sort_ok.asp">
          <tr bgcolor="#f5f5f5"> 
            <td width="60" height="25" valign="bottom" bgcolor="#e1e1e1"><table border="0" align="center" cellpadding="0" cellspacing="0">
                <tr align="center"> 
                  <td width="55" height="22">分类管理</td>
                </tr>
              </table></td>
            <td width="60" valign="bottom"><table border="0" align="center" cellpadding="0" cellspacing="0">
                <tr align="center"> 
                  <td width="55" height="22">分类名称</td>
                </tr>
              </table></td>
            <td width="80" align="center"><input name="sort" type="text" id="sort" size="10"></td>
            <td width="55" valign="bottom"> <table border="0" align="center" cellpadding="0" cellspacing="0">
                <tr align="center"> 
                  <td width="50" height="22">上级ID</td>
                </tr>
              </table></td>
            <td width="50" align="center"><input name="sort_id" type="text" id="sort_id" size="5"></td>
            <td width="55" valign="bottom"><table border="0" align="center" cellpadding="0" cellspacing="0">
                <tr align="center"> 
                  <td width="50" height="22">移动ID</td>
                </tr>
              </table></td>
            <td width="100" align="center"><input name="move_id" type="text" id="move_id" size="5"> 
              <a href="#" onClick="window.open ('move_sort.asp?sort_id=0','newwindow','left=0,top=0,height=400,width=625,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no',0)">选择分类</a></td>
            <td width="45" align="center"><input type="submit" value="确定"></td>
            <td width="40" valign="bottom"><table border="0" align="center" cellpadding="0" cellspacing="0">
                <tr align="center"> 
                  <td width="30" height="22">操作</td>
                </tr>
              </table></td>
            <td width="50" align="center">
<input readonly name="action" type="text" id="action" value="add" size="5"> 
            </td>
            <td>&nbsp;<input type="hidden" name="id" id="id"></td>
          </tr>
        </form>
      </table>
      <table border="0" cellpadding="0" cellspacing="5">
	  <form name="form" method="get" action="sort_ok.asp">
        <tr> 
          <td> 
            <% 
dim rs
set rs=server.createobject("adodb.recordset")             
rs.open "select * from sort where sort_id=0",conn,1,1
if rs.eof and rs.bof then
'
else
do while not rs.eof
%>
            <table border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="250" bgcolor="#FFFFFF"> 
                  <%if not rs.eof then
				  response.write "<br>"
                  response.write "<input name='id' type='checkbox' id='id' value='"&rs("id")&"'>"
                   if rs("move_id")>0 then
                  response.write "<a href='sort.asp?sort_id="&rs("move_id")&"' target='_blank'><b>"&rs("sort")&"@</b></a>"
                  else
                  response.write "<a href='sort.asp?sort_id="&rs("id")&"'><b>"&rs("sort")&"</b></a>"
                  end if
				  response.write "<br>[<a href=""javascript:sort_edit('"&rs("sort")&"',"&rs("sort_id")&","&rs("move_id")&","&rs("id")&")"">编辑</a>][<a href=""javascript:sort_delete("&rs("sort_id")&","&rs("id")&")"">删除</a>]"
rs.movenext
end if
%>
</td>
                <td width="250" bgcolor="#FFFFFF"> 
                  <%if not rs.eof then
				  response.write "<br>"
                  response.write "<input name='id' type='checkbox' id='id' value='"&rs("id")&"'>"
                   if rs("move_id")>0 then
                  response.write "<a href='sort.asp?sort_id="&rs("move_id")&"' target='_blank'><b>"&rs("sort")&"@</b></a>"
                  else
                  response.write "<a href='sort.asp?sort_id="&rs("id")&"'><b>"&rs("sort")&"</b></a>"
                  end if
				  response.write "<br>[<a href=""javascript:sort_edit('"&rs("sort")&"',"&rs("sort_id")&","&rs("move_id")&","&rs("id")&")"">编辑</a>][<a href=""javascript:sort_delete("&rs("sort_id")&","&rs("id")&")"">删除</a>]"
rs.movenext
end if
%></td>
                <td width="250" bgcolor="#FFFFFF"> 
                  <%if not rs.eof then
				  response.write "<br>"
                  response.write "<input name='id' type='checkbox' id='id' value='"&rs("id")&"'>"
                   if rs("move_id")>0 then
                  response.write "<a href='sort.asp?sort_id="&rs("move_id")&"' target='_blank'><b>"&rs("sort")&"@</b></a>"
                  else
                  response.write "<a href='sort.asp?sort_id="&rs("id")&"'><b>"&rs("sort")&"</b></a>"
                  end if
				  response.write "<br>[<a href=""javascript:sort_edit('"&rs("sort")&"',"&rs("sort_id")&","&rs("move_id")&","&rs("id")&")"">编辑</a>][<a href=""javascript:sort_delete("&rs("sort_id")&","&rs("id")&")"">删除</a>]"
rs.movenext
end if
%></td>
              </tr>
            </table>
            <%
loop
end if
rs.close 
set rs=nothing
conn.close
set conn=nothing
%>
          </td>
        </tr>
        <tr>
          <td><input type="checkbox" onclick="checkall(this)">
              全选 
              <input type="submit" value="删除">
              <input name="action" type="hidden" id="action" value="alldel"> 
              <input name="sort_id" type="hidden" id="sort_id" value="0"></td>
        </tr>
		</form>
      </table>
	  <!--#include file="bottom.asp"-->
</body>
</html>

⌨️ 快捷键说明

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