Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Photo_save.asp
Package: eat.rar [view]
Upload User: jisenq
Upload Date: 2014-06-29
Package Size: 7216k
Code Size: 2k
Category:
ADO-ODBC
Development Platform:
ASP/ASPX
- <% Option Explicit %>
- <!--#include file="../FS_Inc/Const.asp" -->
- <!--#include file="../FS_Inc/Function.asp" -->
- <!--#include file="../FS_InterFace/MF_Function.asp" -->
- <!--#include file="lib/strlib.asp" -->
- <!--#include file="lib/UserCheck.asp" -->
- <%
- dim rs,str_tmppic,i_s,str_tmppicarr,p_FolderObj,p_FSO,p_FileObj
- Set p_FSO = Server.CreateObject(G_FS_FSO)
- if Request.Form("Action")="add" then
- str_tmppic=Replace(Request.Form("pic_1")&"|"&Request.Form("pic_2")&"|"&Request.Form("pic_3")," ","")
- str_tmppicarr =split(str_tmppic,"|")
- for i_s=0 to Ubound(str_tmppicarr)
- if str_tmppicarr(i_s)<>"" then
- p_FolderObj = p_FSO.GetFile(Server.MapPath(Replace(str_tmppicarr(i_s),"/",""))).size
- set rs= Server.CreateObject(G_FS_RS)
- rs.open "select * From FS_ME_Photo where 1=0",User_conn,1,3
- rs.addnew
- rs("title")=Request.Form("title")
- rs("PicSavePath")=str_tmppicarr(i_s)
- rs("Content")=NoHtmlHackInput(Request.Form("Content"))
- rs("Addtime")=now
- if Request.Form("ClassID")<>"" then
- rs("ClassID")=clng(Request.Form("ClassID"))
- else
- rs("ClassID")=0
- end if
- rs("PicSize")=p_FolderObj
- rs("Hits")=0
- rs("UserNumber")=Fs_User.UserNumber
- rs.update
- rs.close:set rs=nothing
- end if
- next
- strShowErr="<li>保存相册成功</li>"
- Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../PhotoManage.asp")
- Response.end
- elseif Request.Form("Action")="edit" then
- p_FolderObj = p_FSO.GetFile(Server.MapPath(Replace(Request.Form("pic_1"),"/",""))).size
- set rs= Server.CreateObject(G_FS_RS)
- rs.open "select * From FS_ME_Photo where id="&Clng(Request.Form("id")),User_conn,1,3
- rs("title")=Request.Form("title")
- rs("PicSavePath")=Request.Form("pic_1")
- rs("Content")=NoHtmlHackInput(Request.Form("Content"))
- if Request.Form("ClassID")<>"" then
- rs("ClassID")=clng(Request.Form("ClassID"))
- else
- rs("ClassID")=0
- end if
- rs("PicSize")=p_FolderObj
- rs.update
- rs.close:set rs=nothing
- strShowErr="<li>修改成功</li>"
- Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../PhotoManage.asp")
- Response.end
- end if
- set p_FSO=nothing
- set Fs_User=nothing
- %><!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->