Corp_Card_add_1.asp
资源名称:eat.rar [点击查看]
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:5k
源码类别:
数据库编程
开发平台:
ASP/ASPX
- <% Option Explicit %>
- <!--#include file="../FS_Inc/Const.asp" -->
- <!--#include file="../FS_InterFace/MF_Function.asp" -->
- <!--#include file="../FS_Inc/Function.asp" -->
- <!--#include file="lib/strlib.asp" -->
- <!--#include file="lib/UserCheck.asp" -->
- <%
- Dim p_id
- p_id = NoSqlHack(Trim(Request.QueryString("CorpCardid")))
- if Request.Form("Action") = "Save" then
- Dim str_f_UserNumber,str_Content,str_CorpCardid
- str_f_UserNumber = NoSqlHack(Trim(Request.Form("UserNumber")))
- str_Content = NoHtmlHackInput(Request.Form("Content"))
- str_CorpCardid = NoHtmlHackInput(Request.Form("CorpCardid"))
- if str_f_UserNumber ="" then
- strShowErr = "<li>错误的会员编号</li>"
- Call ReturnError(strShowErr,"")
- End if
- if len(str_Content) >200 then
- strShowErr = "<li>备注不能大于200个字符</li>"
- Call ReturnError(strShowErr,"")
- End if
- dim RsaddObj
- Set RsaddObj = server.CreateObject(G_FS_RS)
- RsaddObj.open "select * From FS_ME_CorpCard where CorpCardid="&str_CorpCardid,User_Conn,1,3
- RsaddObj("Content") = str_Content
- RsaddObj.update
- RsaddObj.close
- set RsaddObj = nothing
- strShowErr = "<li>修改成功</li>"
- Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Corp_card.asp")
- Response.end
- Else
- Dim RsCorpCardObj
- Set RsCorpCardObj = server.CreateObject(G_FS_RS)
- RsCorpCardObj.open "select CorpCardid,F_UserNumber,Content From FS_ME_CorpCard where CorpCardid="& p_id,User_Conn,1,1
- iF RsCorpCardObj.eof then
- strShowErr = "<li>错误的参数</li>"
- Call ReturnError(strShowErr,"")
- End if
- dim strTmp
- strTmp = Fs_User.GetFriendName(RsCorpCardObj("F_UserNumber"))
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <title>修改名片-网站内容管理系统</title>
- <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
- <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
- <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
- <head>
- <body>
- <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
- <tr>
- <td>
- <!--#include file="top.asp" -->
- </td>
- </tr>
- </table>
- <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
- <tr class="back">
- <td colspan="2" class="xingmu" height="26"> <!--#include file="Top_navi.asp" --> </td>
- </tr>
- <tr class="back">
- <td width="18%" valign="top" class="hback"> <div align="left">
- <!--#include file="menu.asp" -->
- </div></td>
- <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <tr class="hback">
- <td class="hback"><strong>位置:</strong><a href="../">网站首页</a> >>
- <a href="main.asp">会员首页</a> >> 添加名片</td>
- </tr>
- </table>
- <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <form name="UserForm" method="post" action="">
- <tr class="hback">
- <td width="12%" class="hback_1"><div align="center" class="tx">用户名</div></td>
- <td width="40%" class="hback"><div align="left">
- <input name="UserNumber" type="text" id="UserNumber" value="<% = strTmp%>" size="30" ReadOnly>
- </div></td>
- <td width="48%" class="hback"><div align="left"> </div></td>
- </tr>
- <tr class="hback">
- <td colspan="3" class="xingmu"><div align="left">备注部分</div></td>
- </tr>
- <tr class="hback">
- <td class="hback_1"><div align="center">备注</div></td>
- <td class="hback"> <textarea name="Content" cols="40" rows="5" id="Content"><% = RsCorpCardObj("Content")%></textarea></td>
- <td class="hback">名片的备注,最大200字符</td>
- </tr>
- <tr class="hback">
- <td class="hback_1"> </td>
- <td colspan="2" class="hback"> <input type="submit" name="Submit" value="确定收藏名片" onClick="{if(confirm('确认修改此名片吗?')){this.document.UserForm.submit();return true;}return false;}">
- <input name="Action" type="hidden" id="Action" value="Save"> <input name="CorpCardid" type="hidden" id="CorpCardid" value="<% = Request.QueryString("CorpCardid")%>">
- </td>
- </tr>
- </form>
- </table>
- </td>
- </tr>
- <tr class="back">
- <td height="20" colspan="2" class="xingmu"> <div align="left">
- <!--#include file="Copyright.asp" -->
- </div></td>
- </tr>
- </table>
- </body>
- </html>
- <%
- RsCorpCardObj.close
- set RsCorpCardObj = nothing
- End if
- Set Fs_User = Nothing
- %>
- <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->