<!--#include file="Access.asp"  -->
<!-- #include file="inc/functions.asp" -->
<link rel="stylesheet" type="text/css" href="/css/common.css"  />
<script  language="javascript" src="/js/date_input_1.js"></script>

<script language="javascript">

//全选JS
function unselectall(){
if(document.form1.chkAll.checked){
document.form1.chkAll.checked = document.form1.chkAll.checked&0;
}
}
function CheckAll(form){
for (var i=0;i<form.elements.length;i++){
var e = form.elements[i];
if (e.Name != 'chkAll'&&e.disabled==false)
e.checked = form.chkAll.checked;
}
}
</script>



<!-- 资讯文章三级联动菜单 开始 -->
<script language="JavaScript">
<!--
<%
'二级数据保存到数组
Dim count2,rsClass2,sqlClass2
set rsClass2=server.createobject("adodb.recordset")
sqlClass2="select id,pid,ppid,name from category where ppid=2 order by id " 
rsClass2.open sqlClass2,cn,1,1
%>
var subval2 = new Array();
//数组结构：一级根值,二级根值,二级显示值
<%
count2 = 0
do while not rsClass2.eof
%>
subval2[<%=count2%>] = new Array('<%=rsClass2("pID")%>','<%=rsClass2("ID")%>','<%=rsClass2("Name")%>')
<%
count2 = count2 + 1
rsClass2.movenext
loop
rsClass2.close
%>

<%
'三级数据保存到数组
Dim count3,rsClass3,sqlClass3
set rsClass3=server.createobject("adodb.recordset")
sqlClass3="select id,pid,ppid,name from category where ppid=3 order by id" 
rsClass3.open sqlClass3,cn,1,1
%>
var subval3 = new Array();
//数组结构：二级根值,三级根值,三级显示值
<%
count3 = 0
do while not rsClass3.eof
%>
subval3[<%=count3%>] = new Array('<%=rsClass3("pID")%>','<%=rsClass3("ID")%>','<%=rsClass3("Name")%>')
<%
count3 = count3 + 1
rsClass3.movenext
loop
rsClass3.close
%>

function changeselect1(locationid)
{
    document.form1.pid.length = 0;
    document.form1.pid.options[0] = new Option('选择二级分类','');
    document.form1.ppid.length = 0;
    document.form1.ppid.options[0] = new Option('选择三级分类','');
    for (i=0; i<subval2.length; i++)
    {
        if (subval2[i][0] == locationid)
        {document.form1.pid.options[document.form1.pid.length] = new Option(subval2[i][2],subval2[i][1]);}
    }
}

function changeselect2(locationid)
{
    document.form1.ppid.length = 0;
    document.form1.ppid.options[0] = new Option('选择三级分类','');
    for (i=0; i<subval3.length; i++)
    {
        if (subval3[i][0] == locationid)
        {document.form1.ppid.options[document.form1.ppid.length] = new Option(subval3[i][2],subval3[i][1]);}
    }
}
//-->
</script>




<!-- 企业文章三级联动菜单 开始 -->
<script language="JavaScript">
<!--
<%
'二级数据保存到数组
Dim f_count2,f_rsClass2,f_sqlClass2
set f_rsClass2=server.createobject("adodb.recordset")
f_sqlClass2="select id,pid,ppid,name from web_com_type where ppid=2 order by id " 
f_rsClass2.open f_sqlClass2,cn,1,1
%>
var f_subval2 = new Array();
//数组结构：一级根值,二级根值,二级显示值
<%
f_count2 = 0
do while not f_rsClass2.eof
%>
f_subval2[<%=f_count2%>] = new Array('<%=f_rsClass2("pID")%>','<%=f_rsClass2("ID")%>','<%=f_rsClass2("Name")%>')
<%
f_count2 = f_count2 + 1
f_rsClass2.movenext
loop
f_rsClass2.close
%>

<%
'三级数据保存到数组
Dim f_count3,f_rsClass3,f_sqlClass3
set f_rsClass3=server.createobject("adodb.recordset")
f_sqlClass3="select id,pid,ppid,name from web_com_type where ppid=3 order by id" 
f_rsClass3.open f_sqlClass3,cn,1,1
%>
var f_subval3 = new Array();
//数组结构：二级根值,三级根值,三级显示值
<%
f_count3 = 0
do while not f_rsClass3.eof
%>
f_subval3[<%=f_count3%>] = new Array('<%=f_rsClass3("pID")%>','<%=f_rsClass3("ID")%>','<%=f_rsClass3("Name")%>')
<%
f_count3 = f_count3 + 1
f_rsClass3.movenext
loop
f_rsClass3.close
%>

function f_changeselect1(locationid)
{
    document.form1.f_pid.length = 0;
    document.form1.f_pid.options[0] = new Option('选择二级分类','');
    document.form1.f_ppid.length = 0;
    document.form1.f_ppid.options[0] = new Option('选择三级分类','');
    for (i=0; i<f_subval2.length; i++)
    {
        if (f_subval2[i][0] == locationid)
        {document.form1.f_pid.options[document.form1.f_pid.length] = new Option(f_subval2[i][2],f_subval2[i][1]);}
    }
}

function f_changeselect2(locationid)
{
    document.form1.f_ppid.length = 0;
    document.form1.f_ppid.options[0] = new Option('选择三级分类','');
    for (i=0; i<f_subval3.length; i++)
    {
        if (f_subval3[i][0] == locationid)
        {document.form1.f_ppid.options[document.form1.f_ppid.length] = new Option(f_subval3[i][2],subval3[i][1]);}
    }
}
//-->
</script><!-- 企业题三级联动菜单 结束 -->

<%
Call header()
%>

<%'
if request.querystring("action")="create" then

response.Write "<script language='javascript'>alert('温馨提示：建议您升级至全功能版享用该功能，咨询QQ：248800565^_^');history.go(-1);</script>"

end if
%>
<STYLE type=text/css>
.TipWords{
	 padding:5px 10px;
	 color:#990000;
	 border:1px solid #CEE6FB;
	 font-family:arial;
	 font-height:180%;
	 }
.TipWords p{
	margin:0px;
	padding:3px 0px;}	 
.TipTitle{
	background-color:#CEE6FB;
	height:25px;
	font-weight:bold;
	color:#990000;}	 
</STYLE>
	<table cellpadding='3' cellspacing='1' border='0' class='tableBorder' align=center>
	<tr>
	  <th width="100%" height=25 class='tableHeaderText'>站点栏目生成</th>
	<tr><td height="400" valign="top"  class='forumRow'>
	    <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25" class='TipTitle'>&nbsp;√ 操作提示</td>
          </tr>
          <tr>
            <td height="100">
              <form name="form1" method="post" action="?action=create">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
            <td height="25" valign="top" class="TipWords">
			<p>1、站栏目生成主要包括站点首页、栏目首页、栏目列表以及其他页面的生成。</p>
             <p>2、不建议全选后再生成，栏目过多，生成时间可能会过慢或导致超时。</p></td>
          </tr>
          <tr>
            <td height="5"></td>
          </tr>
		  </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
				  <tr>
					  <td height="32" colspan="2"  bgcolor="#CEE6FB"><label>
                      <input type="checkbox" name="index" value="1">
                      <span style="font-weight: bold">站点首页</span></label>&nbsp;&nbsp;

					  <label>
                      <input type="checkbox" name="news" value="1">
                      <span style="font-weight: bold">热点专题首页</span></label>&nbsp;&nbsp;
					  </td>
                  </tr>
				      <tr>
                        <td height="5" colspan="2" class="forumRowt" style="line-height:200%;"></td>
				      </tr>	
				      <tr>
                    <td height="32" colspan="2"  bgcolor="#CEE6FB"><label>
                      <input type="checkbox" name="news_article_list" value="1">
                      <span style="font-weight: bold">新闻文章首页及分类列表</span></label>
					</td>
                  </tr>
				   <tr>
                    <td height="35" colspan="2" class="forumRowt" style="line-height:200%;">
					<table width="100%" border="0" cellspacing="3" cellpadding="0">
                      <tr class="forumRowHighLight">
                        <td width="10%" align=center height="30" class="forumRowHighLight">选择文章分类</td>
                        <td width="90%" class="forumRowHighLight"><%
Dim count1,rsClass1,sqlClass1
set rsClass1=server.createobject("adodb.recordset")
sqlClass1="select id,pid,ppid,name from category where ppid=1 order by id" 
rsClass1.open sqlClass1,cn,1,1
%>                      <select name="cid" id="cid" onChange="changeselect1(this.value)">
                        <option value="">选择一级分类</option>
                              <%
count1 = 0
do while not rsClass1.eof
response.write"<option value="&rsClass1("ID")&">"&rsClass1("Name")&"</option>"
count1 = count1 + 1
rsClass1.movenext
loop
rsClass1.close
%>                     </select>&nbsp;&nbsp;
                       <select name="pid" id="pid"  onchange="changeselect2(this.value)">
                       <option value="">选择二级分类</option>
                       </select>&nbsp;&nbsp;
                       <select name="ppid" id="ppid">
                       <option value="">选择三级分类</option>
                       </select>
					   </td>
                      </tr>
                    </table>                    
					</td>
                  </tr>
				  <tr>
                        <td height="5" colspan="2" class="forumRowt" style="line-height:200%;"></td>
				  </tr>
				  <tr>
					  <td height="32" colspan="2"  bgcolor="#CEE6FB"><label>
                      <input type="checkbox" name="aboutus" value="1">
                      <span style="font-weight: bold">关于我们</span></label>&nbsp;&nbsp;

					  <label>
                      <input type="checkbox" name="contactus" value="1">
                      <span style="font-weight: bold">联系我们</span></label>&nbsp;&nbsp;

					  <label>
                      <input type="checkbox" name="ads" value="1">
                      <span style="font-weight: bold">广告服务</span></label>&nbsp;&nbsp;

                      <label>
                      <input type="checkbox" name="hezuo" value="1">
                      <span style="font-weight: bold">合作伙伴</span></label>&nbsp;&nbsp;

                      <label>
                      <input type="checkbox" name="copyright" value="1">
                      <span style="font-weight: bold">版权声明</span></label>&nbsp;&nbsp;

                      <label>
                      <input type="checkbox" name="agreement" value="1">
                      <span style="font-weight: bold">使用协议</span></label>&nbsp;&nbsp;

                      <label>
                      <input type="checkbox" name="qqqun" value="1">
                      <span style="font-weight: bold">交流互动</span></label>&nbsp;&nbsp;

                      <label>
                      <input type="checkbox" name="sitemap" value="1">
                      <span style="font-weight: bold">网站地图</span></label>&nbsp;&nbsp;

                      <label>
                      <input type="checkbox" name="links" value="1">
                      <span style="font-weight: bold">友情链接</span></label>&nbsp;&nbsp;
					  </td>
                  </tr>
                  <tr>
                    <td width="40%" height="40"><label>
                    <input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>
                    全选/全不选</label></td>
                    <td width="60%"><div align="left">
                      <input type="submit" name="Submit" value="提交">
                    </div></td>
                  </tr>
                </table>
              </form>            </td>
          </tr>
        </table>
	    </td>
	</tr>
	</table>
<script  language="javascript" src="/js/date_input_2.js"></script>


<%
Call DbconnEnd()
 %>