<!--#include file="conn.asp"-->
<%dim action
action=request.QueryString("action")
select case action
case ""
if request.Cookies("godbook")("shjianame")="" then
request.Redirect "<script language=javascript>alert('网络超时或还没有登录');location.href='admin_login.asp';</script>"
request.End
end if%>
<link href="../image/css.css" rel="stylesheet" type="text/css">
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<%set rs=server.createobject("adodb.recordset")
rs.open"select * from shjia where shjiaid="&request.Cookies("godbook")("shjiaid")&"",conn,1,1%>
<form action="?action=save&shjiaid=<%=rs("shjiaid")%>" method="post">
    <tr>
      <td colspan="10" align="center" bgcolor="63C700"><b><font color="#ffffff">企业信息修改</font></b></td>
    </tr>
    <tr>
      <td width="10%" nowrap bgcolor="#EFF7CE">公司名称：</td>
      <td bgcolor="#EFF7CE"><input id="name" name="name" class="wenbenkuang" style="width:220" value="<%=rs("name")%>"></td>
      <td width="10%" nowrap bgcolor="#EFF7CE">业务负责人：</td>
      <td bgcolor="#EFF7CE"><input id="name2" name="name2" class="wenbenkuang" style="width:220" value="<%=rs("name2")%>"></td>
    </tr>
    <tr>
      <td nowrap bgcolor="#EFF7CE">详细地址：</td>
      <td bgcolor="#EFF7CE"><input id="dz" name="dz" class="wenbenkuang" style="width:220" value="<%=rs("dz")%>"></td>
      <td nowrap bgcolor="#EFF7CE">网站管理员：</td>
      <td bgcolor="#EFF7CE"><input id="username" name="username" class="wenbenkuang" style="width:220" value="<%=rs("Username")%>"></td>
    </tr>
    <tr>
      <td nowrap bgcolor="#EFF7CE">公司邮箱：</td>
      <td bgcolor="#EFF7CE"><input id="UserEmail" name="UserEmail" class="wenbenkuang" style="width:220" value="<%=rs("UserEmail")%>"></td>
      <td nowrap bgcolor="#EFF7CE">在线服务QQ：</td>
      <td bgcolor="#EFF7CE"><input id="Oicq" name="Oicq" class="wenbenkuang" style="width:220" value="<%=rs("Oicq")%>"></td>
    </tr>
    <tr>
      <td nowrap bgcolor="#EFF7CE">联系电话：</td>
      <td bgcolor="#EFF7CE"><input id="tel" name="tel" class="wenbenkuang" style="width:220" value="<%=rs("tel")%>"></td>
      <td nowrap bgcolor="#EFF7CE">邮政编码：</td>
      <td bgcolor="#EFF7CE"><input id="pc" name="pc" class="wenbenkuang" style="width:220" value="<%=rs("pc")%>"></td>
    </tr>
    <tr>
      <td nowrap bgcolor="#EFF7CE">公司传真：</td>
      <td bgcolor="#EFF7CE"><input id="fax" name="fax" class="wenbenkuang" style="width:220" value="<%=rs("fax")%>"></td>
      <td bgcolor="#EFF7CE">&nbsp;</td>
      <td bgcolor="#EFF7CE">&nbsp;</td>
    </tr>
    <tr>
      <td valign="top" nowrap bgcolor="#EFF7CE">公司简介：</td>
      <td colspan="3" bgcolor="#EFF7CE"><textarea name="title" cols="50" rows="5" id="title"><%=rs("title")%></textarea></td>
    </tr>
    <tr>
      <td valign="top" nowrap bgcolor="#EFF7CE">主营产品：</td>
      <td colspan="3" bgcolor="#EFF7CE"><textarea name="content" cols="50" rows="5" id="content"><%=rs("content")%></textarea></td>
    </tr>
    <tr>
      <td valign="top" nowrap bgcolor="#EFF7CE">付款方式：</td>
      <td colspan="3" bgcolor="#EFF7CE"><textarea name="zhifufangshi" cols="50" rows="3" id="zhifufangshi"><%=rs("zhifufangshi")%></textarea></td>
    </tr>
    <tr>
      <td valign="top" nowrap bgcolor="#EFF7CE">配送说明：</td>
      <td colspan="3" bgcolor="#EFF7CE"><textarea name="songhuofangshi" cols="50" rows="3" id="songhuofangshi"><%=rs("songhuofangshi")%></textarea></td>
    </tr>
    <tr>
      <td colspan="4" align="center" nowrap bgcolor="#EFF7CE"><input type="submit" name="Submit" value="OK！确定修改" class="go-wenbenkuang"></td>
    </tr></form>
	<%rs.close
	set rs=nothing%>
</table>

<%case "save"
set rs=server.createobject("adodb.recordset")
rs.open"select * from shjia where shjiaid="&request("shjiaid"),conn,1,3
rs("title")=request("title")
rs("content")=request("content")
rs("zhifufangshi")=request("zhifufangshi")
rs("songhuofangshi")=request("songhuofangshi")
rs("name")=request("name")
rs("dz")=request("dz")
rs("UserEmail")=request("UserEmail")
rs("name2")=request("name2")
rs("username")=request("username")
rs("tel")=request("tel")
rs("fax")=request("fax")
rs("Oicq")=request("Oicq")
rs("pc")=int(request("pc"))
rs.update
rs.close
set rs=nothing
response.Write"<script language=javascript>alert('修改成功');window.location.href='admin_main.asp';</script>"%>
<%end select%>