<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../inc/md5.asp"-->
<!--#include file="function.asp"-->
<!--#include file="../inc/function.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>创文地方门户系统 - 系统安装</title>
<link type="text/css" rel="stylesheet" href="images/style.css" />
</head>

<body>
   <div id="header">
        <div class="logo"></div>
        <div class="official"><img src="images/home.gif" /><a href="http://www.cwcms.cn" target="_blank">官方网站</a></div>
   </div>
<%
act=request("act")
select case act
   case 1
      step1()
   case 2
      step2()
   case 3
      step3()
   case else
      step()
end select
%>
<%function step()%>
<form method="post" action="index.asp">
    <div id="step">
        <div class="installstep">
            <ul>
                <li class="step1"><span class="active"><span><span>1.安装协议</span></span></span></li>
                <li class="step2"><span><span><span>2.环境检测</span></span></span></li>
                <li class="step3"><span><span><span>3.程序配置</span></span></span></li>
                <li class="step4"><span><span><span>4.安装结果</span></span></span></li>
            </ul>
        </div>
    </div>
    <input type="hidden" name="act" value="1" />
    <div id="body">
        <h1>安装协议</h1>
        <p>1、本授权协议适用于 CwWPS 任何版本，CwWPS开发团队拥有对本授权协议的最终解释权和修改权。</p>
        <p>2、所有用户均可根据自己的需要对 CwWPS 进行修改。但无论何种情况，即：无论用途如何、是否经过修改或美化、修改程度如何，只要您使用 CwWPS 的任何整体或部分程序算法，修改后的程序版权依然归 CwWPS开发团队所有。</p>
        <p>3、无论您从何处获得 CwWPS，只要未经商业授权，不得将本软件用于商业用途(企业网站或以盈利为目的经营性网站)，否则我们将保留追究的权力。有关 CwWPS 授权包含的服务范围，技术支持等，请参看 <a href="http://www.cwcms.cn" target="_blank">www.cwcms.cn</a>。对于违反以上条款，我们将依法追究其责任。</p>
        <p>4、您可以免费使用本程序用于非商业用途，并允许传播给其他人。但您不能将本软件出售或变相出售、搭售（包括但不限于出售其他产品赠送本软件等形式），这将被视为将本软件用于商业用途，需要经过我们的商业授权。</p>
        <p class="red b">免责声明</p>
        <p>1、利用本软件构建的网站的任何信息内容以及导致的任何版权纠纷和法律争议及后果，我们不承担任何责任。</p>
        <p>2、程序的使用(或无法再使用)中所有一般化、特殊化、偶然性或必然性的损坏（包括但不限于数据的丢失，自己或第三方所维护数据的不正确修改，和其他程序协作过程中程序的崩溃等），我们不承担任何责任。
        </p>
    </div>    
    <div id="footer">
        <input type="submit" value="接受协议" /><input type="button" value="不同意" class="no" />
    </div>
    </form>
<%end function%>
<%function step1()%>
<form method="post" action="index.asp">
    <div id="step">
        <div class="installstep">
            <ul>
                <li class="step1"><span class="active"><span><span>1.安装协议</span></span></span></li>
                <li class="step2"><span class="active"><span><span>2.环境检测</span></span></span></li>
                <li class="step3"><span><span><span>3.程序配置</span></span></span></li>
                <li class="step4"><span><span><span>4.安装结果</span></span></span></li>
            </ul>
        </div>
    </div>
    <input type="hidden" name="act" value="2" />
    <div id="body">
        <h1>环境检测</h1>
        <h2>读写权限</h2>
        <ul>
            <li>权限检查：上级目录 <em id="lever_0"><img src="images/<%=check_write("../")%>.gif" /></em></li>
            <li>权限检查：data 目录 <em id="lever_1"><img src="images/<%=check_write("../data/")%>.gif" /></em></li>
            <li>权限检查：upfile 目录 <em id="lever_2"><img src="images/<%=check_write("../upfile/")%>.gif" /></em></li>
            <li>权限检查：skins 目录 <em id="lever_3"><img src="images/<%=check_write("../skins/")%>.gif" /></em></li>
        </ul>
        <h2>必选组件</h2>
        <ul>
            <li>Microsoft.Xmlhttp <em id="lever_4"><img src="images/<%=Cw_commons("Microsoft.XMLHTTP")%>.gif" /></em></li>
            <li>Scripting.FileSystemObject <em id="lever_5"><img src="images/<%=Cw_commons("Scripting.FileSystemObject")%>.gif" /></em></li>
            <li>Adodb.Stream <em id="lever_6"><img src="images/<%=Cw_commons("Adodb.Stream")%>.gif" /></em></li>
            <li>Scripting.Dictionary <em id="lever_7"><img src="images/<%=Cw_commons("Scripting.Dictionary")%>.gif" /></em></li>
        </ul>
        <h2>可选组件</h2>
        <ul>
            <li>Persits.Jpeg <em id="lever_8"><img src="images/<%=Cw_commons("Persits.Jpeg")%>.gif" /></em></li>
            <li>Jmail.Message <em id="lever_9"><img src="images/<%=Cw_commons("Jmail.Message")%>.gif" /></em></li>
            <li>Cdo.Message <em id="lever_10"><img src="images/<%=Cw_commons("Cdo.Message")%>.gif" /></em></li>
        </ul>
        <h2>图标说明</h2>
        <img src="images/true.gif" /> 表示支持　<img src="images/false.gif" /> 表示不支持或没有权限
    </div>
    
    <div id="footer">
        <input type="button" value="上一步" class="pre" onclick="history.back()" /><input type="submit" value="下一步" id="next" disabled="false"/>
    </div>
	<script type="text/javascript">
    var num=0;
    for(i=0;i<=7;i++)
    {
      if(document.getElementById("lever_"+i).innerHTML=="<IMG src=\"images/False.gif\">")
      {
		num++;
	  }
    }
   if(num==0)
	{
	  document.getElementById('next').disabled=false;
	}
</script>
    </form>
<%end function%>
<%function step2()%>
<script type="text/javascript">
function checks(s)
{
  if(s==0)
  {
     document.getElementById('a1').style.display="block";
	 document.getElementById('a2').style.display="none";
	 document.getElementById('a3').style.display="none";
	 document.getElementById('a4').style.display="none";
	 document.getElementById('a5').style.display="none";	 
  }
  else
  {
     document.getElementById('a1').style.display="none"
     document.getElementById('a2').style.display="block";
	 document.getElementById('a3').style.display="block";
	 document.getElementById('a4').style.display="block";
	 document.getElementById('a5').style.display="block";
  }
}
function checkdb(fr)
{
  if(document.getElementById('a1').style.display=="block")
  {
    if(fr.cf_data.value=="")
	{
	  alert('数据库名称不能为空！');
	  fr.cf_data.focus();
	  return false
	}
  }
  if(document.getElementById('a1').style.display=="none")
  {
    if(fr.sql_ip.value=="")
	{
	  alert('数据库IP不能为空！');
	  fr.sql_ip.focus();
	  return false
	}
	if(fr.sql_data.value=="")
	{
	  alert('数据库名称不能为空！');
	  fr.sql_data.focus();
	  return false
	}
	if(fr.sql_user.value=="")
	{
	  alert('数据库用户名不能为空！');
	  fr.sql_user.focus();
	  return false
	}
	if(fr.sql_pass.value=="")
	{
	  alert('数据库用户密码不能为空！');
	  fr.sql_pass.focus();
	  return false
	}
  }
  if(fr.cf_name.value=="")
  {
     alert('网站名称不能为空！');
	 fr.cf_name.focus();
	 return false
  }
  if(fr.user.value=="")
  {
     alert('管理帐户不能为空！');
	 fr.user.focus();
	 return false
  }
  if(fr.pass.value=="")
  {
     alert('管理密码不能为空！');
	 fr.pass.focus();
	 return false
  }
  return true
}
</script>
<form method="post" action="index.asp" onSubmit="return checkdb(this)">
    <div id="step">
        <div class="installstep">
            <ul>
                <li class="step1"><span class="active"><span><span>1.安装协议</span></span></span></li>
                <li class="step2"><span class="active"><span><span>2.环境检测</span></span></span></li>
                <li class="step3"><span class="active"><span><span>3.程序配置</span></span></span></li>
                <li class="step4"><span><span><span>4.安装结果</span></span></span></li>
            </ul>
        </div>
    </div>
    <input type="hidden" name="act" value="3" />
    <div id="body">
        <h1>数据库配置</h1>
        <ul>
            <li><span>数据库类型：</span>
            <input type="radio" value="0" name="isdata" id="isdata" checked="checked" onclick="checks(0)" /><label for="data01">Access</label>
            <input type="radio" value="1" name="isdata" id="isdata" onclick="checks(1)" /><label for="data02">Mssql</label></li>
            <li style="display:block" id="a1"><span>数据库名称：</span><input type="text" name="cf_data" class="ip" value="#<%=Cw_rnd(10)%>" />.mdb</li>
            <li style="display:none" id="a2"><span>数据库IP：</span><input type="text" name="sql_ip" class="ip" /></li>
            <li style="display:none" id="a3"><span>数据库名：</span><input type="text" name="sql_data" class="ip" /></li>
            <li style="display:none" id="a4"><span>数据库用户名：</span><input type="text" name="sql_user" class="ip" /></li>
            <li style="display:none" id="a5"><span>数据库密码：</span><input type="text" name="sql_pass" class="ip" /></li>
        </ul>
        <h1>网站配置</h1>
        <ul>
            <li><span>网站名称：</span><input type="text" size="30" name="cf_name" class="ip" value="创文地方门户系统" /></li>
        </ul>
        <h1>管理员配置</h1>
        <ul>
            <li><span>管理账户：</span><input type="text" size="30" name="user" class="user" value="cwwps" maxlength="10" />
            </li>
            <li><span>管理密码：</span><input type="text" size="30" name="pass" class="pass" value="cwwps" maxlength="10" />
            </li>
        </ul>
		<h1>基础数据</h1>
		<ul>
		  <li><span>基础数据：</span><input name="issj" type="checkbox" id="issj" value="1" /> *推荐（商家、新闻、分类信息等分类数据）</li>
		</ul>
    </div>    
    <div id="footer">
        <input type="submit" value="下一步" />
    </div>
    </form>
<%end function%>

<%function step3()%>
    <div id="step">
        <div class="installstep">
            <ul>
                <li class="step1"><span class="active"><span><span>1.安装协议</span></span></span></li>
                <li class="step2"><span class="active"><span><span>2.环境检测</span></span></span></li>
                <li class="step3"><span class="active"><span><span>3.程序配置</span></span></span></li>
                <li class="step4"><span class="active"><span><span>4.安装结果</span></span></span></li>
            </ul>
        </div>
    </div>    
    <div id="body">
        <h1>安装结果</h1>
		<div style="white-space:nowrap;overflow-y:auto;overflow-x:hidden; height:400px;" id="html">	
        <%
		response.Write("<p>正在安装...</p>")	
		dim cf_root,cf_skin	
		cf_name=trim(request("cf_name"))
		cf_host="http://"&Request.ServerVariables("SERVER_NAME")'//域名
		cf_root=replace(lcase(Left(Request.ServerVariables("script_name"),inStrRev(Request.ServerVariables("script_name"),"/")-1)),"install","")'//所在目录
		cf_data=trim(request("cf_data"))
		cf_skin="cwwps/"
		issj=request("issj")
		isdata=request("isdata")
		sql_ip=trim(request("sql_ip"))
		sql_data=trim(request("sql_data"))
		sql_user=trim(request("sql_user"))
		sql_pass=trim(request("sql_pass"))
		user=trim(request("user"))
		pass=md5(trim(request("pass")))
		if Cw_commons("Jmail.Message")=False then
		  isjmail=0
		else
		  isjmail=1
		end if
		'//创建配置文件
		filepath="../inc/Config.asp"
		Set fobj = Server.CreateObject("SCRIPTING.FILESYSTEMOBJECT")
		Set fs = fobj.CreateTextFile(server.mappath(filepath),true)
		fs.Write("<"&chr(37)&chr(10))
		fs.Write("cf_name="&chr(34)&cf_name&chr(34)&chr(10))
		fs.Write("cf_host="&chr(34)&cf_host&chr(34)&chr(10))
		fs.Write("cf_root="&chr(34)&cf_root&chr(34)&chr(10))
		fs.Write("cf_title="&chr(34)&cf_name&chr(34)&chr(10))
		fs.Write("cf_key="&chr(34)&chr(34)&chr(10))
		fs.Write("cf_desc="&chr(34)&chr(34)&chr(10))
		fs.Write("cf_skin="&chr(34)&cf_skin&chr(34)&chr(10))
		fs.Write("cf_appid="&chr(34)&chr(34)&chr(10))
		fs.Write("cf_appkey="&chr(34)&chr(34)&chr(10))
		fs.Write("info_pass=1"&chr(10))
		fs.Write("shop_pass=1"&chr(10))
		fs.Write("hr_pass=1"&chr(10))
		fs.Write("bbs_pass=1"&chr(10))
		fs.Write("reply_pass=1"&chr(10))
		fs.Write("comment_pass=1"&chr(10))
		fs.Write("cf_stats="&chr(34)&chr(34)&chr(10))
		fs.Write("cf_keyword="&chr(34)&"他妈的,TMD"&chr(34)&chr(10))
		fs.Write("cf_notice="&chr(34)&chr(34)&chr(10))
		fs.Write("isdata="&isdata&chr(10))
		fs.Write("cf_data="&chr(34)&cf_data&chr(34)&chr(10))
		fs.Write("sql_ip="&chr(34)&sql_ip&chr(34)&chr(10))		
		fs.Write("sql_data="&chr(34)&sql_data&chr(34)&chr(10))
		fs.Write("sql_user="&chr(34)&sql_user&chr(34)&chr(10))
		fs.Write("sql_pass="&chr(34)&sql_pass&chr(34)&chr(10))
		fs.Write("isjmail="&isjmail&chr(10))
		fs.Write("cf_email="&chr(34)&chr(34)&chr(10))
		fs.Write("cf_smtp="&chr(34)&chr(34)&chr(10))
		fs.Write("cf_jmailUser="&chr(34)&chr(34)&chr(10))
		fs.Write("cf_jmailPass="&chr(34)&chr(34)&chr(10))
		fs.Write(chr(37)&">")
		fs.close
		set  fobj=nothing
		set  fs=nothing
		response.Write("<p>配置文件生成成功...</p>")
		
		'//ACCESS
		if isdata=0 then		   
			'//创建数据库
			set db=Server.CreateObject("ADOX.Catalog")
		    call db.create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("../data/"&cf_data&".mdb"))
			set db=nothing
			if err then
				if err.number<>"-2147217897" then
					response.Write("<p class=""red"">无法创建Access数据库，具体原因为："&err.description&"</p>")					
					response.Write("<p>安装失败</p>")
					response.End()
				end if
				err.clear
			else
				response.Write("<p>Access数据库创建成功...</p>")
			end if
		   '//连接数据库
		   dbroot="../data/"&cf_data&".mdb"
		   set conn=Server.CREATEOBJECT("ADODB.CONNECTION")
		   connstr="provider=microsoft.jet.oledb.4.0;data source="&Server.MapPath(dbroot)
		   conn.open connstr
		   '//创建表及字段
			conn.execute("create table Cw_admin([id] AutoIncrement(1,1) Primary key,[user] varchar(20) not null,[pass] varchar(50) not null,[type] int default 0)")
			response.Write("<p>Cw_admin 表创建成功...</p>")
			
			conn.execute("create table Cw_ad([id] AutoIncrement(1,1) Primary key,[title] varchar(250) with comp,[type] int default 0,[link] varchar(25) with comp,[pic] varchar(50),[code] text,[content] varchar(250) with comp,[width] varchar(20),[height] varchar(20))")
			response.Write("<p>Cw_ad 表创建成功...</p>")	
					
			conn.execute("create table Cw_bbs_class([id] AutoIncrement(1,1) Primary key,[title] varchar(150),[ordnum] int default 0,[followid] int not null,[html] varchar(50) not null,[pages] int default 20,[keyword] varchar(200),[description] varchar(250),[pic] varchar(50),[islist] int not null,[temp] varchar(100),[show] varchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_bbs_class 表创建成功...</p>")	
								
			conn.execute("create table Cw_bbs([id] AutoIncrement(1,1) Primary key,[title] varchar(250),[content] text with comp,[classid] int not null,[pic] varchar(50),[userid] int not null,[adddate] DateTime default Now(),[ip] varchar(25),[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")			
			response.Write("<p>Cw_bbs 表创建成功...</p>")
			
			conn.execute("create table Cw_bbs_reply([id] AutoIncrement(1,1) Primary key,[recontent] text with comp,[bbsid] int default 0,[userid] int not null,[redate] DateTime default Now(),[ip] varchar(25),[ispass] int default 0)")
			response.Write("<p>Cw_bbs_reply 表创建成功...</p>")
						
			conn.execute("create table Cw_info_class([id] AutoIncrement(1,1) Primary key,[title] varchar(150),[ordnum] int default 0,[followid] int not null,[html] varchar(50) not null,[pages] int default 20,[keyword] varchar(200),[description] varchar(250),[pic] varchar(50),[islist] int not null,[temp] varchar(100),[show] varchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_info_class 表创建成功...</p>")
			
			conn.execute("create table Cw_info([id] AutoIncrement(1,1) Primary key,[title] varchar(250) not null,[content] text with comp,[classid] int not null,[userid] int not null,[pic] varchar(50),[adddate] DateTime default Now(),[hits] int default 0,[ip] varchar(25),[names] varchar(15),[tel] varchar(25),[email] varchar(30),[qq] varchar(15),[address] varchar(150),[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_info 表创建成功...</p>")
			
			conn.execute("create table Cw_hous_class([id] AutoIncrement(1,1) Primary key,[title] varchar(150),[ordnum] int default 0,[followid] int not null,[html] varchar(50) not null,[pages] int default 20,[keyword] varchar(200),[description] varchar(250),[pic] varchar(50),[islist] int not null,[temp] varchar(100),[show] varchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_hous_class 表创建成功...</p>")
			
			conn.execute("create table Cw_hous([id] AutoIncrement(1,1) Primary key,[title] varchar(250) not null,[content] text with comp,[classid] int not null,[type] varchar(50),[price] varchar(50),[userid] int not null,[pic] varchar(50),[adddate] DateTime default Now(),[hits] int default 0,[ip] varchar(25),[names] varchar(15),[tel] varchar(25),[email] varchar(30),[qq] varchar(15),[address] varchar(150),[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_hous 表创建成功...</p>")
			
			conn.execute("create table Cw_job_class([id] AutoIncrement(1,1) Primary key,[title] varchar(150),[ordnum] int default 0,[followid] int not null,[html] varchar(50) not null,[pages] int default 20,[keyword] varchar(200),[description] varchar(250),[pic] varchar(50),[islist] int not null,[temp] varchar(100),[show] varchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_job_class 表创建成功...</p>")
			
			conn.execute("create table Cw_job([id] AutoIncrement(1,1) Primary key,[title] varchar(250) not null,[content] text with comp,[classid] int not null,[userid] int not null,[zhiwei] varchar(50) not null,[number] int default 1,[salary] varchar(20),[xueli] varchar(20),[sex] varchar(20),[jingyan] varchar(20),[adddate] DateTime default Now(),[hits] int default 0,[ip] varchar(25),[names] varchar(15),[tel] varchar(25),[email] varchar(30),[qq] varchar(15),[address] varchar(150),[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_job 表创建成功...</p>")
					
			conn.execute("create table Cw_news_class([id] AutoIncrement(1,1) Primary key,[title] varchar(150),[ordnum] int default 0,[followid] int not null,[html] varchar(50) not null,[pages] int default 20,[keyword] varchar(200),[description] varchar(250),[pic] varchar(50),[islist] int not null,[temp] varchar(100),[show] varchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_news_class 表创建成功...</p>")
			
			conn.execute("create table Cw_news([id] AutoIncrement(1,1) Primary key,[title] varchar(250),[content] text,[classid] int not null,[userid] int default 0,[tags] varchar(250),[jj] text,[pic] varchar(50),[froms] varchar(50),[author] varchar(20),[adddate] DateTime default Now(),[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_news 表创建成功...</p>")
			
			conn.execute("create table Cw_shop_class([id] AutoIncrement(1,1) Primary key,[title] varchar(150),[ordnum] int default 0,[followid] int not null,[html] varchar(50) not null,[pages] int default 20,[keyword] varchar(200),[description] varchar(250),[pic] varchar(50),[islist] int not null,[temp] varchar(100),[show] varchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_shop_class 表创建成功...</p>")
			
			conn.execute("create table Cw_shop([id] AutoIncrement(1,1) Primary key,[title] varchar(250),[classid] int not null,[userid] int not null,[email] varchar(50),[website] varchar(200),[fax] varchar(50),[address] varchar(200),[service] varchar(250),[content] text,[pic] varchar(50),[tel] varchar(15),[adddate] DateTime default Now(),[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_shop 表创建成功...</p>")
			
			conn.execute("create table Cw_chaxun([id] AutoIncrement(1,1) Primary key,[title] varchar(100),[link] varchar(250),[ordnum] int default 0,[tel] varchar(25))")
			response.Write("<p>Cw_chaxun 表创建成功...</p>")	

			conn.execute("create table Cw_comment([id] AutoIncrement(1,1) Primary key,[classid] varchar(50) not null,[userid] int not null,[showid] int not null,[content] text,[adddate] DateTime default Now(),[ip] varchar(25),[ispass] int default 0)")
			response.Write("<p>Cw_comment 表创建成功...</p>")
			
			conn.execute("create table Cw_hr([id] AutoIncrement(1,1) Primary key,[userid] int not null,[xingming] varchar(20),[xingbie] varchar(10),[mingzu] varchar(10),[chusheng] varchar(20),[hunyin] varchar(10),[jiguan] varchar(50),[jingyan] varchar(20),[xueli] varchar(20),[zhuanye] varchar(50),[xuexiao] varchar(50),[zhichen] varchar(20),[dianhua] varchar(20),[shouji] varchar(20),[email] varchar(30),[qq] varchar(15),[pic] varchar(50),[dizhi] varchar(250),[zhuye] varchar(100),[diannao] varchar(10),[waiyu] varchar(20),[zhongwen] varchar(20),[zhiwei] varchar(50),[yuexin] varchar(15),[address] varchar(150),[adddate] DateTime default Now(),[jiaoyu] text,[gongzuo] text,[pingjia] text,[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_hr 表创建成功...</p>")
			
			conn.execute("create table Cw_label([id] AutoIncrement(1,1) Primary key,[label] varchar(250) not null,[content] text with comp,[title] varchar(200))")
			response.Write("<p>Cw_label 表创建成功...</p>")
			
			conn.execute("create table Cw_link([id] AutoIncrement(1,1) Primary key,[title] varchar(100) not null,[link] varchar(250) not null,[tel] varchar(50),[ispass] int default 0,[ordnum] int default 0)")
			response.Write("<p>Cw_link 表创建成功...</p>")
			
			conn.execute("create table Cw_tel([id] AutoIncrement(1,1) Primary key,[title] varchar(50),[tel] varchar(20),[link] varchar(100),[ispass] int default 0,ordnum int default 0)")
			response.Write("<p>Cw_tel 表创建成功...</p>")
			
			conn.execute("create table Cw_pages([id] AutoIncrement(1,1) Primary key,[title] varchar(250) not null,[root] varchar(50),[html] varchar(50),[content] text with comp,[pic] varchar(50),[keyword] varchar(250),[description] varchar(250),[temp] varchar(50))")
			response.Write("<p>Cw_pages 表创建成功...</p>")
			
			conn.execute("create table Cw_tags([id] AutoIncrement(1,1) Primary key,[title] varchar(50) not null,[tcount] int default 0)")
			response.Write("<p>Cw_tags 表创建成功...</p>")
			
			conn.execute("create table Cw_user([id] AutoIncrement(1,1) Primary key,[user] varchar(50),[pass] varchar(50),[type] int default 0,[adddate] DateTime default Now(),[email] varchar(50),[names] varchar(20),[tel] varchar(20),[qq] varchar(15),[address] varchar(250),[jf] int default 0,[qid] varchar(50),[pic] varchar(100) default '../images/user.gif',[grade] int default 0,[logindate] DateTime default Now(),[istel] int default 0,[iscard] int default 0,[ismail] int default 0,[isshop] int default 0,[repass] varchar(35))")
			response.Write("<p>Cw_user 表创建成功...</p>")
			
			conn.execute("insert into Cw_admin([user],[pass]) values ('"&user&"','"&pass&"')")	
			response.Write("<p>管理信息写入成功...</p>")		
		end if
		'//MSSQL
		if isdata=1 then
		  ConnStr="Provider=Sqloledb;User ID="&sql_user&";Password="&sql_pass&";Initial Catalog="&sql_data&";Data Source="&sql_ip&";" 
		  Set conn=Server.CreateObject("ADODB.Connection") 
		  conn.open ConnStr 
		  '//创建表及字段
			conn.execute("create table Cw_admin([id] int identity(1,1) Primary key not null,[user] nvarchar(20) not null,[pass] nvarchar(50) not null,[type] int default 0 not null)")
			response.Write("<p>Cw_admin 表创建成功...</p>")
			
			conn.execute("create table Cw_ad([id] int identity(1,1) Primary key not null,[title] nvarchar(250),[type] int default 0 not null,[link] nvarchar(25),[pic] nvarchar(50),[code] ntext,[content] nvarchar(250),[width] nvarchar(20),[height] nvarchar(20))")
			response.Write("<p>Cw_ad 表创建成功...</p>")	
					
			conn.execute("create table Cw_bbs_class([id] int identity(1,1) Primary key not null,[title] nvarchar(150),[ordnum] int default 0,[followid] int not null,[html] nvarchar(50) not null,[pages] int default 20,[keyword] nvarchar(200),[description] nvarchar(250),[pic] nvarchar(50),[islist] int not null,[temp] nvarchar(100),[show] nvarchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_bbs_class 表创建成功...</p>")		
									
			conn.execute("create table Cw_bbs([id] int identity(1,1) Primary key not null,[title] nvarchar(250),[content] ntext,[classid] int not null,[pic] nvarchar(50),[userid] int not null,[adddate] DateTime default getdate(),[ip] nvarchar(25),[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_bbs 表创建成功...</p>")	
					
			conn.execute("create table Cw_bbs_reply([id] int identity(1,1) Primary key not null,[recontent] ntext,[bbsid] int default 0,[userid] int not null,[redate] DateTime default getdate(),[ip] nvarchar(25),[ispass] int default 0)")
			response.Write("<p>Cw_bbs_reply 表创建成功...</p>")
			
			conn.execute("create table Cw_info_class([id] int identity(1,1) Primary key not null,[title] nvarchar(150),[ordnum] int default 0,[followid] int not null,[html] nvarchar(50) not null,[pages] int default 20,[keyword] nvarchar(200),[description] nvarchar(250),[pic] nvarchar(50),[islist] int not null,[temp] nvarchar(100),[show] nvarchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_info_class 表创建成功...</p>")
			
			conn.execute("create table Cw_info([id] int identity(1,1) Primary key not null,[title] nvarchar(250) not null,[content] ntext,[classid] int not null,[userid] int not null,[pic] nvarchar(50),[adddate] DateTime default getdate(),[hits] int default 0,[ip] nvarchar(25),[names] nvarchar(15),[tel] nvarchar(25),[email] nvarchar(30),[qq] nvarchar(15),[address] nvarchar(150),[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_info 表创建成功...</p>")
			
			conn.execute("create table Cw_hous_class([id] int identity(1,1) Primary key not null,[title] nvarchar(150),[ordnum] int default 0,[followid] int not null,[html] nvarchar(50) not null,[pages] int default 20,[keyword] nvarchar(200),[description] nvarchar(250),[pic] nvarchar(50),[islist] int not null,[temp] nvarchar(100),[show] nvarchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_hous_class 表创建成功...</p>")
			
			conn.execute("create table Cw_hous([id] int identity(1,1) Primary key not null,[title] nvarchar(250) not null,[content] ntext,[classid] int not null,[type] nvarchar(50),[price] nvarchar(50),[userid] int not null,[pic] nvarchar(50),[adddate] DateTime default getdate(),[hits] int default 0,[ip] nvarchar(25),[names] nvarchar(15),[tel] nvarchar(25),[email] nvarchar(30),[qq] nvarchar(15),[address] nvarchar(150),[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_hous 表创建成功...</p>")
			
			conn.execute("create table Cw_job_class([id] int identity(1,1) Primary key not null,[title] nvarchar(150),[ordnum] int default 0,[followid] int not null,[html] nvarchar(50) not null,[pages] int default 20,[keyword] nvarchar(200),[description] nvarchar(250),[pic] nvarchar(50),[islist] int not null,[temp] nvarchar(100),[show] nvarchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_job_class 表创建成功...</p>")
			
			conn.execute("create table Cw_job([id] int identity(1,1) Primary key not null,[title] nvarchar(250) not null,[content] ntext,[classid] int not null,[userid] int not null,[zhiwei] varchar(50),[number] int default 0,[salary] varchar(20),[xueli] nvarchar(20),[sex] nvarchar(20),[jingyan] nvarchar(20),[adddate] DateTime default getdate(),[hits] int default 0,[ip] nvarchar(25),[names] nvarchar(15),[tel] nvarchar(25),[email] nvarchar(30),[qq] nvarchar(15),[address] nvarchar(150),[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_info 表创建成功...</p>")
			
			conn.execute("create table Cw_news_class([id] int identity(1,1) Primary key not null,[title] nvarchar(150),[ordnum] int default 0,[followid] int not null,[html] nvarchar(50) not null,[pages] int default 20,[keyword] nvarchar(200),[description] nvarchar(250),[pic] nvarchar(50),[islist] int not null,[temp] nvarchar(100),[show] nvarchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_news_class 表创建成功...</p>")
			
			conn.execute("create table Cw_news([id] int identity(1,1) Primary key not null,[title] nvarchar(250),[content] ntext,[classid] int not null,[userid] int default 0,[tags] nvarchar(250),[jj] ntext,[pic] nvarchar(50),[froms] nvarchar(50),[author] nvarchar(20),[adddate] DateTime default getdate(),[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_news 表创建成功...</p>")
			
			conn.execute("create table Cw_shop_class([id] int identity(1,1) Primary key not null,[title] nvarchar(150),[ordnum] int default 0,[followid] int not null,[html] nvarchar(50) not null,[pages] int default 20,[keyword] nvarchar(200),[description] nvarchar(250),[pic] nvarchar(50),[islist] int not null,[temp] nvarchar(100),[show] nvarchar(100),[ispass] int default 0)")
			response.Write("<p>Cw_shop_class 表创建成功...</p>")
			
			conn.execute("create table Cw_shop([id] int identity(1,1) Primary key not null,[title] nvarchar(250),[classid] int not null,[userid] int not null,[email] nvarchar(50),[website] nvarchar(200),[fax] nvarchar(50),[address] nvarchar(200),[service] nvarchar(250),[content] ntext,[pic] nvarchar(50),[tel] nvarchar(15),[adddate] DateTime default getdate(),[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_shop 表创建成功...</p>")
			
			conn.execute("create table Cw_chaxun([id] int identity(1,1) Primary key not null,[title] nvarchar(100),[link] nvarchar(250),[ordnum] int default 0,[tel] nvarchar(25))")
			response.Write("<p>Cw_chaxun 表创建成功...</p>")
			
			conn.execute("create table Cw_comment([id] int identity(1,1) Primary key not null,[classid] varchar(50) not null,[userid] int not null,[showid] int not null,[content] ntext,[adddate] DateTime default getdate(),[ip] nvarchar(25),[ispass] int default 0)")
			response.Write("<p>Cw_comment 表创建成功...</p>")
			
			conn.execute("create table Cw_hr([id] int identity(1,1) Primary key not null,[userid] int not null,[xingming] nvarchar(20),[xingbie] nvarchar(10),[mingzu] nvarchar(10),[chusheng] nvarchar(20),[hunyin] nvarchar(10),[jiguan] nvarchar(50),[jingyan] nvarchar(20),[xueli] nvarchar(20),[zhuanye] nvarchar(50),[xuexiao] nvarchar(50),[zhichen] nvarchar(20),[dianhua] nvarchar(20),[shouji] nvarchar(20),[email] nvarchar(30),[qq] nvarchar(15),[pic] nvarchar(50),[dizhi] nvarchar(250),[zhuye] nvarchar(100),[diannao] nvarchar(10),[waiyu] nvarchar(20),[zhongwen] nvarchar(20),[zhiwei] nvarchar(50),[yuexin] nvarchar(15),[address] nvarchar(150),[adddate] DateTime default getdate(),[jiaoyu] ntext,[gongzuo] ntext,[pingjia] ntext,[hits] int default 0,[ispic] int default 0,[ispass] int default 0,[isnice] int default 0,[istop] int default 0)")
			response.Write("<p>Cw_hr 表创建成功...</p>")
			
			conn.execute("create table Cw_label([id] int identity(1,1) Primary key not null,[label] nvarchar(250) not null,[content] ntext,[title] nvarchar(200))")
			response.Write("<p>Cw_label 表创建成功...</p>")
			
			conn.execute("create table Cw_link([id] int identity(1,1) Primary key not null,[title] nvarchar(100) not null,[link] nvarchar(250) not null,[tel] nvarchar(50),[ispass] int default 0,[ordnum] int default 0)")
			response.Write("<p>Cw_link 表创建成功...</p>")
			
			conn.execute("create table Cw_tel([id] int identity(1,1) Primary key not null,[title] nvarchar(50),[tel] nvarchar(20),[link] nvarchar(100),[ispass] int default 0,ordnum int default 0)")
			response.Write("<p>Cw_tel 表创建成功...</p>")
						
			conn.execute("create table Cw_pages([id] int identity(1,1) Primary key not null,[title] nvarchar(250) not null,[root] nvarchar(50),[html] nvarchar(50),[content] ntext,[pic] nvarchar(50),[keyword] nvarchar(250),[description] nvarchar(250),[temp] nvarchar(50))")
			response.Write("<p>Cw_pages 表创建成功...</p>")
			
			conn.execute("create table Cw_tags([id] int identity(1,1) Primary key not null,[title] nvarchar(50) not null,[tcount] int default 0)")
			response.Write("<p>Cw_tags 表创建成功...</p>")
						
			conn.execute("create table Cw_user([id] int identity(1,1) Primary key not null,[user] nvarchar(50),[pass] nvarchar(50),[type] int default 0,[adddate] DateTime default getdate(),[email] nvarchar(50),[names] nvarchar(20),[tel] nvarchar(20),[qq] nvarchar(15),[address] nvarchar(250),[jf] int default 0,[qid] nvarchar(50),[pic] nvarchar(100) default '../images/user.gif',[grade] int default 0,[logindate] DateTime default getdate(),[istel] int default 0,[iscard] int default 0,[ismail] int default 0,[isshop] int default 0,[repass] nvarchar(35))")
			response.Write("<p>Cw_user 表创建成功...</p>")
								
			conn.execute("insert into Cw_admin([user],[pass]) values ('"&user&"','"&pass&"')")	
			response.Write("<p>管理信息写入成功...</p>")			
						
		end if
		if issj=1 then
			conn.execute("insert into cw_news_class(title,followid,html,keyword,description,islist,temp,show) values('新闻资讯',0,'news/','新闻资讯','新闻资讯',0,'cw_news.html','cw_news_show.html')")
			conn.execute("insert into cw_news_class(title,followid,html,keyword,description,islist,temp,show) values('兴国新闻',1,'news/xingguo/','兴国新闻','兴国新闻',1,'cw_news_list.html','cw_news_show.html')")
			conn.execute("insert into cw_news_class(title,followid,html,keyword,description,islist,temp,show) values('兴国旅游',1,'news/travel/','兴国旅游','兴国旅游',1,'cw_news_list.html','cw_news_show.html')")
			conn.execute("insert into cw_news_class(title,followid,html,keyword,description,islist,temp,show) values('兴国特产',1,'news/techan/','兴国特产','兴国特产',1,'cw_news_list.html','cw_news_show.html')")
			conn.execute("insert into cw_news_class(title,followid,html,keyword,description,islist,temp,show) values('国内新闻',1,'news/china/','国内新闻','国内新闻',1,'cw_news_list.html','cw_news_show.html')")
			conn.execute("insert into cw_news_class(title,followid,html,keyword,description,islist,temp,show) values('国际新闻',1,'news/world/','国际新闻','国际新闻',1,'cw_news_list.html','cw_news_show.html')")
			conn.execute("insert into cw_news_class(title,followid,html,keyword,description,islist,temp,show) values('娱乐新闻',1,'news/yule/','娱乐新闻','娱乐新闻',1,'cw_news_list.html','cw_news_show.html')")

			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('分类信息',0,'info/','分类信息','分类信息',0,'cw_info.html','cw_info_show.html')")			
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('物品交易',1,'info/sale/','物品交易','物品交易',1,'cw_info_list.html','cw_info_show.html')")			
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('服务信息',1,'info/service/','服务信息','服务信息',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('征婚交友',1,'info/jiaoyou/','征婚交友','征婚交友',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('其它信息',1,'info/other/','其它信息','其它信息',1,'cw_info_list.html','cw_info_show.html')")			
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('电子数码',2,'info/sale/dianzi/','电子数码','电子数码',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('二手家电',2,'info/sale/jiadian/','二手家电','二手家电',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('二手车辆',2,'info/sale/car/','二手车辆','二手车辆',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('票卷卡',2,'info/sale/piao/','票卷卡','票卷卡',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('虚拟物品',2,'info/sale/xuni/','虚拟物品','虚拟物品',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('其它二手',2,'info/sale/other/','其它二手','其它二手',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('生活服务',3,'info/service/life/','生活服务','生活服务',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('商务服务',3,'info/service/shangwu/','商务服务','商务服务',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('找男友',4,'info/jiaoyou/boy/','找男友','找男友',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('找女友',4,'info/jiaoyou/girl/','找女友','找女友',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('找同乡',4,'info/jiaoyou/tongxiang/','找同乡','找同乡',1,'cw_info_list.html','cw_info_show.html')")
			conn.execute("insert into cw_info_class(title,followid,html,keyword,description,islist,temp,show) values('征婚',4,'info/jiaoyou/zhenhun/','征婚','征婚',1,'cw_info_list.html','cw_info_show.html')")
			
			conn.execute("insert into cw_hous_class(title,followid,html,keyword,description,islist,temp,show) values('房产信息',0,'hous/','房产信息','房产信息',0,'cw_hous.html','cw_hous_show.html')")
			conn.execute("insert into cw_hous_class(title,followid,html,keyword,description,islist,temp,show) values('房屋出租',1,'hous/chuzu/','房屋出租','房屋出租',1,'cw_hous_list.html','cw_hous_show.html')")
			conn.execute("insert into cw_hous_class(title,followid,html,keyword,description,islist,temp,show) values('房屋出售',1,'hous/chushou/','房屋出售','房屋出售',1,'cw_hous_list.html','cw_hous_show.html')")
			conn.execute("insert into cw_hous_class(title,followid,html,keyword,description,islist,temp,show) values('房屋求租',1,'hous/qiuzu/','房屋求租','房屋求租',1,'cw_hous_list.html','cw_hous_show.html')")
			
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('招聘求职',0,'job/','招聘求职','招聘求职',1,'cw_job.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('电脑/网络/技术',1,'job/diannao/','电脑/网络/技术','电脑/网络/技术',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('广告/设计/美工',1,'job/sheji/','广告/设计/美工','广告/设计/美工',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('技工/普工/生产',1,'job/jigong/','技工/普工/生产','技工/普工/生产',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('医疗/美容/保健',1,'job/yiliao/','医疗/美容/保健','医疗/美容/保健',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('教育/培训/导师',1,'job/jiaoyu/','教育/培训/导师','教育/培训/导师',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('人力/公关/行政',1,'job/renli/','人力/公关/行政','人力/公关/行政',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('销售/业务/客服',1,'job/xiaoshou/','销售/业务/客服','销售/业务/客服',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('财务/审计/税务',1,'job/caiwu/','财务/审计/税务','财务/审计/税务',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('酒店/旅游/服务',1,'job/jiudian/','酒店/旅游/服务','酒店/旅游/服务',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('电子/通信/技术',1,'job/dianzi/','电子/通信/技术','电子/通信/技术',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('房产/中介/销售',1,'job/fangchan/','房产/中介/销售','房产/中介/销售',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('安保/物业/管理',1,'job/wuye/','安保/物业/管理','安保/物业/管理',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('保险/金融/投资',1,'job/baoxian/','保险/金融/投资','保险/金融/投资',1,'cw_job_list.html','cw_job_show.html')")
			conn.execute("insert into cw_job_class(title,followid,html,keyword,description,islist,temp,show) values('其他/招聘/信息',1,'job/qita/','其他/招聘/信息','其他/招聘/信息',1,'cw_job_list.html','cw_job_show.html')")
			
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('商家黄页',0,'shop/','商家黄页','商家黄页',1,'cw_shop.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('休闲娱乐',1,'shop/yule/','休闲娱乐','休闲娱乐',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('旅游酒店',1,'shop/hotel/','旅游酒店','旅游酒店',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('便民服务',1,'shop/service/','便民服务','便民服务',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('美容保健',1,'shop/meirong/','美容保健','美容保健',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('房产家居',1,'shop/hous/','房产家居','房产家居',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('购物商场',1,'shop/shop/','购物商场','购物商场',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('医疗保健',1,'shop/helth/','医疗保健','医疗保健',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('咨询中介',1,'shop/zixun/','咨询中介','咨询中介',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('教育培训',1,'shop/edu/','教育培训','教育培训',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('汽修养护',1,'shop/car/','汽修养护','汽修养护',1,'cw_shop_list.html','cw_shop_show.html')")
			conn.execute("insert into cw_shop_class(title,followid,html,keyword,description,islist,temp,show) values('其它企业',1,'shop/other/','其它企业','其它企业',1,'cw_shop_list.html','cw_shop_show.html')")
			
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('魅力兴国',0,'bbs/xingguo/','魅力兴国','魅力兴国',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('吃喝玩乐',0,'bbs/qiche/','吃喝玩乐','吃喝玩乐',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('晒晒幸福',0,'bbs/qiche/','晒晒幸福','晒晒幸福',1,'cw_bbs_list.html','cw_bbs_show.html')")		
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('拉风汽车',0,'bbs/yule/','拉风汽车','拉风汽车',1,'cw_bbs_list.html','cw_bbs_show.html')")
			
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('兴国历史',1,'bbs/xingguo/fengshui/','兴国历史','兴国历史',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('兴国民俗',1,'bbs/xingguo/mingsu/','兴国民俗','兴国民俗',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('兴国风水',1,'bbs/xingguo/fengshui/','兴国风水','兴国风水',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('兴国旅游',2,'bbs/xingguo/liyou/','兴国旅游','兴国旅游',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('兴国美食',2,'bbs/xingguo/meishi/','兴国美食','兴国美食',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('喜庆婚嫁',3,'hous/qigou/','喜庆婚嫁','喜庆婚嫁',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('亲子乐园',3,'hous/qigou/','亲子乐园','亲子乐园',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('情侣空间',3,'bbs/qizi/','情侣空间','情侣空间',1,'cw_bbs_list.html','cw_bbs_show.html')")		
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('晒宝车',4,'bbs/yule/','晒宝车','晒宝车',1,'cw_bbs_list.html','cw_bbs_show.html')")
			conn.execute("insert into cw_bbs_class(title,followid,html,keyword,description,islist,temp,show) values('汽车养护',4,'bbs/yule/','汽车养护','汽车养护',1,'cw_bbs_list.html','cw_bbs_show.html')")
			response.Write("<p>基础数据添加完成...</p>")
		end if
		success=1
		response.Write("<p>网站安装完成！</p>")	
		%>
		<script type="text/javascript">
		//document.getElementById('msg').click();
		var e=document.getElementById("html")
		e.scrollTop=e.scrollHeight;
		</script>
		</div>
    </div>    
    <div id="footer">
        <%if success>0 then%>
       <input type="button" value="网站首页" class="admin" onclick="location.href='<%=cf_root%>'" /><input type="button" value="后台管理" class="admin" onclick="location.href='<%=cf_root%>admin'" />
		<%else%>
        <input type="button" value="上一步" class="pre" onclick="history.back();" />
		<%end if%>
    </div>
	<script src="create.asp"></script>
<%end function%>
</body>
</html>
