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

数据库编程

开发平台:

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