Corp_bank.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:5k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../FS_Inc/Const.asp" -->
  3. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../FS_Inc/Function.asp" -->
  5. <!--#include file="lib/strlib.asp" -->
  6. <!--#include file="lib/UserCheck.asp" -->
  7. <%
  8. If Request.Form("Action") = "Save" then
  9. if  len(trim(Request.Form("C_BankUserName")))>200 then
  10. strShowErr = "<li>卡号及开户名不能超过200个字符</li>"
  11. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  12. Response.end
  13. else
  14. Dim RsSaveIObj
  15. Set RsSaveIObj = server.CreateObject(G_FS_RS)
  16. RsSaveIObj.open "select C_BankUserName,C_BankName From FS_ME_CorpUser where UserNumber = '"& Fs_User.UserNumber &"' and CorpID="&clng(NoSqlHack(Request.Form("ID"))),User_Conn,1,3
  17. RsSaveIObj("C_BankName") = NoSqlHack(Replace(Request.Form("C_BankName"),"''",""))
  18. RsSaveIObj("C_BankUserName")  = NoHtmlHackInput(Replace(Request.Form("C_BankUserName"),"''",""))
  19. RsSaveIObj.update
  20. RsSaveIObj.close
  21. set RsSaveIObj = nothing
  22. strShowErr = "<li>银行资料修改成功!</li>"
  23. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Corp_Bank.asp")
  24. Response.end
  25. End if
  26. Else
  27. Dim RsCorpObj
  28. Set RsCorpObj = server.CreateObject(G_FS_RS)
  29. RsCorpObj.open "select  CorpID,isLockCorp,C_BankName,C_BankUserName,UserNumber From FS_ME_CorpUser where UserNumber = '"& Fs_User.UserNumber &"'",User_Conn,1,3
  30. if RsCorpObj.eof then
  31. strShowErr = "<li>找不到企业数据</li>"
  32. Call ReturnError(strShowErr,"")
  33. End if
  34. if RsCorpObj("isLockCorp") = 1 then
  35. strShowErr = "<li>您的企业数据还没审核通过</li>"
  36. Call ReturnError(strShowErr,"")
  37. End if
  38. %>
  39. <html xmlns="http://www.w3.org/1999/xhtml">
  40. <title>企业银行管理-网站内容管理系统</title>
  41. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  42. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  43. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  44. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  45. <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  46. <head>
  47. <body>
  48. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  49.   <tr>
  50.     <td>
  51.       <!--#include file="top.asp" -->
  52.     </td>
  53.   </tr>
  54. </table>
  55. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  56.   
  57.     <tr class="back"> 
  58.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="Top_navi.asp" --> </td>
  59.     </tr>
  60.     <tr class="back"> 
  61.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  62.           <!--#include file="menu.asp" -->
  63.         </div></td>
  64.       <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  65.         <tr class="hback"> 
  66.           <td class="hback"><strong>位置:</strong><a href="../">网站首页</a> &gt;&gt; 
  67.             <a href="main.asp">会员首页</a> &gt;&gt; 企业银行管理</td>
  68.         </tr>
  69.       </table> 
  70.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  71.         <form name="UserForm" method="post" action="">
  72.           <tr class="hback"> 
  73.             <td width="16%" class="hback_1"><div align="center"><strong>开户银行</strong></div></td>
  74.             <td class="hback"> <input name="C_BankName" type="text" id="C_BankName" value="<% = RsCorpObj("C_BankName")%>" size="26" maxlength="50"> 
  75.               <div align="center"></div></td>
  76.           </tr>
  77.           <tr class="hback"> 
  78.             <td class="hback_1" ><div align="center"><strong>帐号及开户名</strong></div></td>
  79.             <td class="hback"><textarea name="C_BankUserName" cols="50" rows="6" id="C_BankUserName"><% = RsCorpObj("C_BankUserName")%></textarea>
  80.               限制200个字符</td>
  81.           </tr>
  82.           <tr class="hback"> 
  83.             <td colspan="2" class="hback"><div align="center"> 
  84.                 <input name="ID" type="hidden" id="ID" value="<% = RsCorpObj("CorpID")%>">
  85.                 <input name="Action" type="hidden" id="Action" value="Save">
  86.                 <input type="submit" name="Submit" value="保存资料"  onClick="{if(confirm('确认保存吗?')){this.document.UserForm.submit();return true;}return false;}">
  87.                   
  88.                 <input type="reset" name="Submit3" value="重新填写">
  89.                   </div></td>
  90.           </tr>
  91.         </form>
  92.       </table>
  93.        </td>
  94.     </tr>
  95.     <tr class="back"> 
  96.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  97.           <!--#include file="Copyright.asp" -->
  98.         </div></td>
  99.     </tr>
  100.  
  101. </table>
  102. </body>
  103. </html>
  104. <%
  105. RsCorpObj.close
  106. set RsCorpObj = nothing
  107. End if
  108. Set Fs_User = Nothing
  109. %>
  110. <script language="JavaScript" type="text/JavaScript">
  111. function OpenWindowAndSetValue(Url,Width,Height,WindowObj,SetObj)
  112. {
  113. var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;');
  114. if (ReturnStr!='007007007007') SetObj.value=ReturnStr;
  115. return ReturnStr;
  116. }
  117. </script>
  118. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->