<%@ codepage ="936" %>
 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="71"
	dir="../err.asp" 
  %>
  <!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
 <!--#include file="../rolecheck.asp"-->
 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/style.css" rel=stylesheet type=text/css>
 <script language="javascript">
function istrue()
{
alert("请不要随便修改网站的行业类别栏目显示项，这将对网站造成不良影响，请选择与网站系系相关的核心项做行业栏目!");
var i=confirm("你确定要将这些项设置为网站的栏目显示项吗？请慎重修改?");
if(i)
{
return true;
}
else
{
 return false;
}
}
</script>
 </HEAD>
 <%
  gos=Replace_Text(request("gos"))
 sortid=Replace_Text(request("sortid"))
 if gos<>"" then
 if sortid<>"" then
  conn.execute "update Websen_Class_1 set isshow=0"
  conn.execute "update Websen_Class_1 set isshow=1 where sortid in("&sortid&")"
    response.Write("<script>alert('修改成功！');location.href='sortshow.asp';</script>")
   end if
 end if
 %>
 <body>
<table width="98%" border="0" cellspacing="0" cellpadding="0"  align=center class="tableBorder"> 
  <tr> 
     <th height=25 colspan="2" class="tableHeaderText">网站全局栏目控制管理 </th> 
  </tr> 
  <tr> 
     <td colspan="2" class="forumRowHighlight"> <B>注意</B>：<BR>本操作用于控制网站页面头部中的大栏目（从网站所有行业的一级分类中选择出来）的显示
    <br><font color="blue">请选中选项后点击修改即可!</font>
	<br>建议：考虑页面的大小布局而定选择栏目的多少!</td> 
  </tr> 
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder"  >
	<tr> 
	<th height="22" colspan="2">行业大类栏目列表</th>
	</tr>
	<tr><td height="40"></td></tr>
<TR> <td >
<form name="myform" method="post" action="sortshow.asp" onSubmit="return istrue();">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="4">
  <tr>
<%
set rskind=server.CreateObject("adodb.recordset")
sqlkind="select * from Websen_Class_1 order by orderid	" 
rskind.open sqlkind,conn,1,1
if rskind.eof then
%>
<td>对不起！暂无一级栏目类别！</td>
<%
end if
 if not rskind.eof then
goi=1
 do while not rskind.eof 
 %>
 <td height="25"  bgcolor="#F1F3F5"><input type="checkbox" <%if rskind("isshow")=1 then response.Write("checked") end if%> value="<%=rskind("sortid")%>" name="sortid"><font  color="#6E92DB"><%=goi%></font>.<%=rskind("Sort")%></td>
 <%
 
 if goi mod  4 =0 then 
 response.Write("</tr><tr>")
 end if
 goi=goi+1
 rskind.movenext
 loop
 rskind.close
end if
 %>
 
</tr>
<tr><td colspan="6" align="center"  ><br><input type="submit" name="gos" value="我确定修改" style="background-color:#F0F0F0"></td></tr>
</table>
</form>
</td>
 </TR></table>
</body>
</html>
