<?php
	include_once("check_login.php");
	//查看网站配置相关信息
	include_once("include/config.php");
	$site_url = get_config("site_url");
	$com_name = get_config("com_name");
	$main_product = get_config("main_product");
	$com_describe = get_config("com_describe");
	$com_icp = get_config("com_icp");
	$com_count = get_config("com_count");
	if(!$site_url || !$com_name || !$main_product || !$com_describe || !$com_icp || !$com_count)
		show_err("读取网站配置信息出错");
?>
<!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=utf-8" />
<title>网站设置</title>
<style type="text/css"></style>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>
<div class="head_menu"><a href="set_site_admin.php">密码修改</a><span class="head_menu_on"><a href="set_site_info.php">网站配置</a></span><a href="set_site_intro.php">企业简介</a><a href="set_site_contact.php">联系方式</a><a href="set_site_seo.php">网站SEO优化</a><a href="set_site_foot.php">网站页脚</a></div>
<div class="set_main_out">
	<form id="form1" name="form1" method="post" action="set_site_do.php?action=info">
	<div class="set_main">
		<ul>
        	<li style="width:140px;">管理员名:</li>
          <li style="width:638px;"><input name="admin_name" type="text" id="admin_name" value="<?php echo $_COOKIE["user_name"]; ?>" size="50" maxlength="20" disabled="disabled" />
            <span style="font-size: 12px; color: #999"> 当前网站的管理员名</span>
          </li>
          <li style="width:140px;">密　　码:</li>
            <li style="width:638px;"><input name="admin_pwd" type="password" id="admin_pwd" size="50" maxlength="20" style="background-color:#FFDFE0;" />
            <span style="color:#999; font-size:12px;"> 当前的网站管理密码(必填项)</span></li>
    		<li style="width:140px;">网站域名:</li><li style="width:638px;"><input name="site_url" type="text" id="site_url" value="<?php echo stripslashes($site_url[0][2]); ?>" size="50" maxlength="100" />
   		    <span style="color:#999; font-size:12px;">本站域名(不加"http://"，结尾不用"/")</span></li>
            <li style="width:140px;">企业名称:</li><li style="width:638px;"><input name="com_name" type="text" id="com_name" value="<?php echo stripslashes($com_name[0][2]); ?>" size="50" maxlength="100" />
   		    <span style="color:#999; font-size:12px;">请输入您企业的名称(100字)</span></li>
            <li style="width:140px;">主要产品:</li><li style="width:638px;"><input name="com_main_product" type="text" id="com_name" value="<?php echo stripslashes($main_product[0][2]); ?>" size="50" maxlength="100" />
            <span style="color:#999; font-size:12px;"> 产品名，用于推广您的网站(100字)</span></li>
            <li style="width:140px; height:100px; line-height:100px;">企业描述:</li><li style="width:638px; height:100px; line-height:100px;">
              <textarea name="com_describe" cols="49" rows="5" id="com_describe"><?php echo stripslashes($com_describe[0][2]); ?></textarea>
              <span style="color:#999; font-size:12px;">企业是做什么的、规模、优势等(200字)</span></li>
            <li style="width:140px;">ICP备案:</li><li style="width:638px;"><input name="com_icp" type="text" id="com_icp" value="<?php echo stripslashes($com_icp[0][2]); ?>" size="50" maxlength="100" />
            <span style="color:#999; font-size:12px;"> 请输入您网站的ICP备案信息(<a href="http://www.miibeian.gov.cn" target="_blank" style="text-decoration:none; color:#337ABB;">点击这里申请</a>)</span></li>
            <li style="width:140px; height:100px; line-height:100px;">网站统计:</li><li style="width:638px; height:100px; line-height:100px;">
              <textarea name="com_count" cols="49" rows="5" id="com_count"><?php echo stripslashes($com_count[0][2]); ?></textarea>
              <span style="color:#999; font-size:12px;">统计网站运营情况(<a href="http://www.cnzz.com/" target="_blank" style="text-decoration:none; color:#900;">点击这里申请</a>)</span></li>
            <li style="width:788px; text-indent:0px; text-align:center;">
              <input type="submit" name="button" id="button" value="  提 交  " />
            </li>
    	</ul>
	</div>
   </form>
</div>
<?php
	unset($site_url,$com_name,$com_describe,$com_icp,$main_product,$com_count);
?>
</body>
</html>