www.gusucode.com > 盐城分类信息网asp源码程序 > comgg.asp
<!--#include file="inc/conn.asp"--> <!--#include file=usercookies.asp--> <!--#include file="inc/inc.asp"--> <!--#include file=inc/ipt.asp--> <html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title><%=title%>-会员管理中心-修改资料</title> <LINK href="images/at_news.css" type=text/css rel=stylesheet> <style type="text/css"> <!-- .td1 {border-bottom:1px solid #AA0604; height:31; border-left-width:1px; border-right-width:1px; background-image:url(img/titlebg1.jpg);} .td4 {border-bottom:1px solid #999999; height:25; background-color:#C1FFC1; border-left-width:1px; border-right-width:1px; border-top-width:1px} --> </style> <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> <% tupian=Request.form("tupian") 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"> <%call t()%> <div align="center"> <table width="956" id="table1" bgcolor="#FFFFFF" style="border-right:1px solid #999999; border-top:1px solid #999999;border-left:1px solid #999999;border-bottom:1px solid #999999; padding:1px; border-top-width:1px; border-bottom-width:1px" cellspacing="0" cellpadding="0"> <tr> <td width="157" height="25" class=td1> <p align="center">会员管理系统</td> <td width="2" rowspan="2"> </td> <td width="594" height="25" class=td1> <p align="center">会员管理中心</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 class=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 class=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"> <iframe name="I1" src="lgwzjsUpload.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"> 店标效果:<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 class=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><table border="0" width="88%" id="table2" style="border-collapse: collapse"> <tr> <td><!--#include file="foot.asp"--></td> </tr> </table> </body> </html>