<%@ Language="VBScript" %>
<% option explicit %>
<!-- #include file="inc/dbconn.inc.asp" //-->
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <meta http-equiv="Pragma" content="no-cache">
  <style>
  <!--
    .p1 {font-size:9pt; font-family:宋体;color:BLACK}
    .p1 a:link {text-decoration:none;color:#406384;font-size:9pt; font-family: 宋体;line-height: 16px}
    .p1 a:visited {text-decoration: none; color:#406384;font-size:9pt; font-family: 宋体}
    .p1 a:active {text-decoration: none;font-size:9pt; color:#21621C;font-family: 宋体}
    .p1 a:hover {text-decoration: none;font-size:9pt; color:#21621C;font-family: 宋体}
    .title{font-size:11pt; font-family:宋体;color:#339900;}
    body,table,td {font-size:9pt; font-family:宋体;line-height: 16px}
  //-->
  </style>
  <script language="javascript" SRC="Common/FunDefine.js"></script>
</head>
<body class="p1" bgcolor="#F1F6F2" text="#000000" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<form name="issue">
<script src="tools/images/function.js"></script>
<script language="javascript">
<!--//
  iType = 1;
  strCID = ".,"+ parent.document.InfoEdit.newsClass.value;
  foldersTree = gFld("0","<b><font color=BLACK>新闻栏目</font></b>","","main.gif");
<%
dim rsNC
set rsNC = server.createobject("adodb.recordset")
sql = "SELECT id,className FROM cm_newsClass WHERE channel='N' and pid=1 ORDER BY pos ASC, id ASC"
rs.Open sql,conn,1,1
do while not rs.Eof
	response.write "  web"& rs("id") &" = insFld(foldersTree, gFld("""& rs("id") &""","""& rs("className") &"""))"& vbCrLf

	sql = "SELECT id,className FROM cm_newsClass WHERE pid="& rs("id") &" ORDER BY pos ASC, id ASC"
	rsNC.Open sql,conn,1,1
	do while not rsNC.Eof
		response.write "    insDoc(web"& rs("id") &", gLnk("""& rsNC("id") &""",""0"","""& rsNC("className") &""","""",""folderclosed.gif""))" &vbCrLf
		rsNC.MoveNext
	loop
	rsNC.Close

	rs.MoveNext
loop
%>
  initializeDocument();

  expandAllNode();
  clickOnNode(0);
  initCheckBox(document.issue);
//-->
</script>
</form>
</body>
</html>