Corp_logo.asp
资源名称:eat.rar [点击查看]
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:6k
源码类别:
数据库编程
开发平台:
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 str_CurrPath
- str_CurrPath = Replace("/"&G_VIRTUAL_ROOT_DIR &"/"&G_USERFILES_DIR&"/"&Session("FS_UserNumber"),"//","/")
- If Request.Form("Action") = "Save" then
- if trim(Request.Form("C_Logo")) ="" then
- strShowErr = "<li>请输入图片</li>"
- Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
- Response.end
- else
- Dim RsSaveIObj
- Set RsSaveIObj = server.CreateObject(G_FS_RS)
- 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
- RsSaveIObj("C_Logo") = NoSqlHack(Replace(Request.Form("C_Logo"),"''",""))
- RsSaveIObj.update
- RsSaveIObj.close
- set RsSaveIObj = nothing
- set conn=nothing
- set user_conn=nothing
- set fs_user=nothing
- strShowErr = "<li>LOGO修改成功!</li>"
- Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Corp_Logo.asp")
- Response.end
- End if
- Else
- Dim RsCorpObj
- Set RsCorpObj = server.CreateObject(G_FS_RS)
- RsCorpObj.open "select CorpID,C_logo,isLockCorp From FS_ME_CorpUser where UserNumber = '"& Fs_User.UserNumber &"'",User_Conn,1,3
- if RsCorpObj.eof then
- RsCorpObj.close
- set RsCorpObj=nothing
- set conn=nothing
- set user_conn=nothing
- set fs_user=nothing
- strShowErr = "<li>找不到企业数据</li>"
- Call ReturnError(strShowErr,"")
- End if
- if RsCorpObj("isLockCorp") = 1 then
- set RsCorpObj=nothing
- set conn=nothing
- set user_conn=nothing
- set fs_user=nothing
- strShowErr = "<li>您的企业数据还没审核通过</li>"
- Call ReturnError(strShowErr,"")
- End if
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <title>企业Logo-网站内容管理系统</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 colspan="2" class="xingmu"> <strong> </strong></td>
- </tr>
- <tr class="hback">
- <td width="16%" class="hback_1"><div align="center"><strong>公司图片Logo</strong></div></td>
- <td class="hback"> <input name="C_logo" type="text" id="C_logo" value="<% = RsCorpObj("C_logo")%>" size="40" maxlength="200">
- <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;">
- <div align="center"></div></td>
- </tr>
- <tr class="hback">
- <td colspan="2" class="hback"><div align="center">
- <input name="ID" type="hidden" id="ID" value="<% = RsCorpObj("CorpID")%>">
- <input name="Action" type="hidden" id="Action" value="Save">
- <input type="submit" name="Submit" value="保存资料" onClick="{if(confirm('确认保存吗?')){this.document.UserForm.submit();return true;}return false;}">
- <input type="reset" name="Submit3" value="重新填写">
- </div></td>
- </tr>
- <tr class="hback">
- <td colspan="2" class="hback"> <div align="center"> </div></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>
- <%
- RsCorpObj.close
- set RsCorpObj = nothing
- End if
- Set Fs_User = Nothing
- %>
- <script language="JavaScript" type="text/JavaScript">
- function OpenWindowAndSetValue(Url,Width,Height,WindowObj,SetObj)
- {
- var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;');
- if (ReturnStr!='007007007007') SetObj.value=ReturnStr;
- return ReturnStr;
- }
- </script>
- <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->