Corp_templet.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"></div></td>
  74.             <td class="hback"> 
  75.               <div align="center"></div></td>
  76.           </tr>
  77.           <tr class="hback"> 
  78.             <td class="hback_1" ><div align="center"></div></td>
  79.             <td class="hback">&nbsp; </td>
  80.           </tr>
  81.           <tr class="hback"> 
  82.             <td colspan="2" class="hback"><div align="center"> 
  83.                 <input name="ID" type="hidden" id="ID" value="<% = RsCorpObj("CorpID")%>">
  84.                 <input name="Action" type="hidden" id="Action" value="Save">
  85.                 <input type="submit" name="Submit" value="保存资料">
  86.                   
  87.                 <input type="reset" name="Submit3" value="重新填写">
  88.                   </div></td>
  89.           </tr>
  90.         </form>
  91.       </table>
  92.        </td>
  93.     </tr>
  94.     <tr class="back"> 
  95.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  96.           <!--#include file="Copyright.asp" -->
  97.         </div></td>
  98.     </tr>
  99.  
  100. </table>
  101. </body>
  102. </html>
  103. <%
  104. RsCorpObj.close
  105. set RsCorpObj = nothing
  106. End if
  107. Set Fs_User = Nothing
  108. %>
  109. <script language="JavaScript" type="text/JavaScript">
  110. function OpenWindowAndSetValue(Url,Width,Height,WindowObj,SetObj)
  111. {
  112. var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;');
  113. if (ReturnStr!='007007007007') SetObj.value=ReturnStr;
  114. return ReturnStr;
  115. }
  116. </script>
  117. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->