<!--#include file="checkUser.asp"-->
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from company"
rs.open sql,conn,1,3
act=request("act")
if act="upd" then
   web_name=request("web_name")
   web_address=request("web_address")
   web_url=request("web_url")
   web_tel=request("web_tel")
   web_fax=request("web_fax")
   web_email=request("web_email")
   QQ=request("QQ")
   
   
   rs("web_name")=web_name
   rs("web_address")=web_address
   rs("web_url")=web_url
   rs("web_tel")=web_tel
   rs("web_fax")=web_fax
   rs("web_email")=web_email
   rs("QQ")=QQ
   rs.update
   response.redirect("info.asp")
end if
%>
<html>
<head>
<title>网站信息管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../images/CSS.CSS" type="text/css">
<link rel="stylesheet" href="Images/Admin_style.css">
<script language=javascript>

function check()

{
      
  if(document.myform.web_name.value=="")
    {
      alert("网站名称不能为空！");
	  myform.web_name.focus();
      return false;
    }
}

</script>
<link rel="stylesheet" href="Images/Admin_style.css">
</head>

<body bgcolor="#9CC7EF" text="#000000" leftmargin="0" topmargin="0">
<br>
<table width="98%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolorlight=#145AA0 bordercolordark=#9CC7EF class="tableBorder">
  <tr align="left" bgcolor="#4296E7"> 
      <tH colspan="2" bgcolor="#D6DFF7">网站信息管理</tH>

  </tr>
  <form action="?act=upd" name="myform" method="post">
  <tr > 
    <td width="15%" nowrap bgcolor="#D6DFF7" > <div align="center">网站名称</div></td>
    <td align="left" nowrap bgcolor="#D6DFF7">
	<INPUT name=web_name class=smallInput id="web_name" style="FONT-SIZE: 14px" value="<%=rs("web_name")%>" size=30 maxLength=36></td>
  </tr>
  <tr> 
    <td bgcolor="#D6DFF7"><div align="center">公司地址</div></td>
    <td bgcolor="#D6DFF7"><input name=web_address class=smallInput id="web_address" style="FONT-SIZE: 14px" value="<%=rs("web_address")%>" size=50 maxlength=50></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#D6DFF7">公司网址</td>
    <td bgcolor="#D6DFF7"><input name=web_url class=smallInput id="web_url" style="FONT-SIZE: 14px" value="<%=rs("web_url")%>" size=30 maxlength=36></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#D6DFF7">公司电话</td>
    <td bgcolor="#D6DFF7"><FONT size=+0>
      <INPUT name=web_tel 
                              class=smallInput id="web_tel" 
                              style="FONT-SIZE: 14px" value="<%=rs("web_tel")%>" size=24 maxLength=36>
    </FONT></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#D6DFF7">公司传真</td>
    <td bgcolor="#D6DFF7"><INPUT name=web_fax class=smallInput id="web_fax" style="FONT-SIZE: 14px" value="<%=rs("web_fax")%>" size=24 maxLength=36>
    </FONT></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#D6DFF7">公司邮箱</td>
    <td bgcolor="#D6DFF7"><input name=web_email class=smallInput id="web_email" style="FONT-SIZE: 14px" value="<%=rs("web_email")%>" size=30 maxlength=36></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#D6DFF7">公司qq</td>
    <td bgcolor="#D6DFF7"><input name=web_email class=smallInput id="web_email" style="FONT-SIZE: 14px" value="<%=rs("qq")%>" size=30 maxlength=36>只能填一个.用于客服交流.</td>
  </tr>
  <tr>
    <td align="center" bgcolor="#D6DFF7">&nbsp;</td>
    <td bgcolor="#D6DFF7"><INPUT name=cmdReset type=submit value=" 修 改 "></td>
  </tr>
  </form>
  <tr bgcolor="#4296E7"></tr>
</table>
</body>
</html>
<%
rs.close
conn.close
%>