<!--#include file="inc/conn.asp"-->
<!--#include file=usercookies.asp-->
<!--#include file="config.asp"-->
<!--#include file=inc/ipt.asp-->
<!--#include file=inc/err.asp-->
<!--#include file=inc/md5.asp-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员管理中心-修改资料<%=title%>-</title>
<script>
function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			
		}else{
			targetDiv.style.display="none";
		}
	}
}
</script>
</head>
<%
dim rs,sql,username,edit,tu,comgg
tu=Request.form("tu")
edit=Request.form("edit")
username=request.cookies("cnmai")("username")
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [com] where username='"&username&"'" 
rs.open sql,conn,1,1
if rs.eof then
response.write "<br>"
response.write "<li>参数错误！"
response.end
end if
%>
<body topmargin="0">
<!--#include file="topcnmai.asp"-->
<div align="center">
<table border="0" width="760" id="table1" bgcolor="#FFFFFF" style="border-left:1px solid #CCCCCC; border-right:1px solid #CCCCCC; padding:1px; border-top-width:1px; border-bottom-width:1px" cellspacing="0" cellpadding="0">
<tr>
<td width="157" height="25" class=td4_muen>
<p align="center">会员管理系统</td>
<td width="2" rowspan="2">　</td>
<td width="594" height="25" class=td2_muen>
<p align="center"><font color=white>会员管理中心-修改店标公告</font></td>
</tr>
<tr>
<td bgcolor="#F6F6F6" valign="top"><!--#include file=com_userleft.asp--></td>
<td valign="top" bgcolor="#F6F6F6">
<%if edit="" then %><form method="POST" name="comForm" action="comgg.asp">
<input TYPE="hidden" name="username" value="<%=username%>">
<table width="100%" border="1" cellspacing="0" bordercolor="#FFFFFF" cellpadding="0">
<tr>
<td height="25" bgcolor="#FFFBEE" width="593" align="right">
<p align="center">在此修改店铺的店标公告</td>
</tr>                                                      
<tr>
<td height="30" align="left">
<p style="margin-left: 60px">商家/店铺名称：<font style="font-size: 10pt"><b><%=rs("com")%>（<%=rs("username")%>）</b></font><a href="com_usereditzl.asp"><font color="#008080">(点击修改名称和简介)</font></a></td>
</tr>                                                      
<tr>
<td height="30" align="left">
<p style="margin-left: 60px">店标连接地址：<input type="text" name="tupian" size="47" id="tupian" maxlength="200" value="<%=rs("logo")%>"> <span id="followImg1" style="CURSOR: hand" title="选中上传店标图片" onclick="loadThreadFollow(1,5)">无现成图片,可<font color="#FF0000">上传图片</font>↓</span></td>
</tr>                                                      
<tr  style="display:none" id="follow1">
<td height="23" align="left">
<p style="margin-left: 60px">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<iframe name="I1" src="Upload.asp" scrolling="no" border="0" frameborder="0" width="278" height="26">
</iframe>大小：120*120</td>
</tr><%if rs("logo")<>"" then %>
<tr>
<td height="23" width="611" align="left">
<p style="margin-left: 60px">&nbsp;&nbsp;&nbsp; 店标效果：<img border="0" src="<%=rs("logo")%>" title="店标"></td>
</tr><%end if%>                                                      
<tr> 
<td height="27" width="611" align="left">
<p style="margin-left: 60px">商家/店铺公告:<textarea rows="9" name="comgg" cols="40"><%=rs("comgg")%></textarea></td>
</tr>
<tr> 
<td height="38">
<p align="center">
<input type="submit" value="确认信息，提交修改" name="edit"></td>
</tr>                                      
</table></form><%else 
username=request.cookies("cnmai")("username")
set rs=server.createobject("adodb.recordset")
sql="select * from [com] where username='"&username&"'"
rs.open sql,conn,1,3
rs("logo")=trim(request("tupian"))
rs("comgg")=trim(request("comgg"))
rs.update
rs.close
set rs=nothing
closedb
response.write "<center>店铺信息修改成功！！</center>"
response.write "<meta http-equiv=refresh content=""1;URL=comgg.asp"">"
end if%></td>
</tr>
</table>
</div><!--#include file="endcnmai.asp"-->
</body>
</html>