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
List_Save.asp
Package: NetPhone.rar [view]
Upload User: xxtaishan
Upload Date: 2022-01-02
Package Size: 4063k
Code Size: 2k
Category:
VOIP program
Development Platform:
ASP/ASPX
- <!--#include file="../../inc/conn.asp"-->
- <!--#include file="../../inc/FUNC.asp" -->
- <!--#include file="../../inc/upload_5xsoft.inc" -->
- <%
- '-----------------------------
- Dim rs
- Dim sql
- '-----------------------------
- DIM UPLOAD
- SET UPLOAD=NEW UPLOAD_5XSOFT
- If UPLOAD.FORM("operation")="add" Then
- call Add
- elseif UPLOAD.FORM("operation")="edit" Then
- call Edit
- ELSE
- call showerr("系统提示:操作无效!")
- end if
- '-----------------------------
- Function Add
- if UPLOAD.FORM("pw")="" or UPLOAD.FORM("title")="" or UPLOAD.FORM("title2")="" or UPLOAD.FORM("title3")="" or UPLOAD.FORM("title4")="" or UPLOAD.FORM("title5")="" or UPLOAD.FORM("title6")="" or UPLOAD.FORM("title7")="" then
- call showerr("系统提示:不能为空!")
- end if
- set rs=server.createobject("adodb.recordset")
- rs.open "select * from info3 where title='"&UPLOAD.FORM("title")&"'",conn,1,3
- if rs.bof and rs.eof then
- rs.addnew
- rs("title")=UPLOAD.FORM("title")
- rs("pw")=UPLOAD.FORM("pw")
- rs("title2")=UPLOAD.FORM("title2")
- rs("title3")=UPLOAD.FORM("title3")
- rs("title4")=UPLOAD.FORM("title4")
- rs("title5")=UPLOAD.FORM("title5")
- rs("title6")=UPLOAD.FORM("title6")
- rs("title7")=UPLOAD.FORM("title7")
- rs("postdate")=DATE()
- rs.Update
- else
- showerr("数据库中已经有相同用户名的!")
- end if
- call showmsg("系统提示:信息添加成功!","list.asp")
- End Function
- '-----------------------------
- Function Edit
- if UPLOAD.FORM("title")="" or UPLOAD.FORM("title2")="" or UPLOAD.FORM("title3")="" or UPLOAD.FORM("title4")="" or UPLOAD.FORM("title5")="" or UPLOAD.FORM("title6")="" or UPLOAD.FORM("title7")="" then
- call showerr("系统提示:不能为空!")
- end if
- set rs=server.createobject("adodb.recordset")
- rs.open "select * from info3 where id="&UPLOAD.FORM("id"),conn,1,3
- rs("title")=UPLOAD.FORM("title")
- rs("pw")=UPLOAD.FORM("pw")
- rs("title2")=UPLOAD.FORM("title2")
- rs("title3")=UPLOAD.FORM("title3")
- rs("title4")=UPLOAD.FORM("title4")
- rs("title5")=UPLOAD.FORM("title5")
- rs("title6")=UPLOAD.FORM("title6")
- rs("title7")=UPLOAD.FORM("title7")
- rs("postdate")=DATE()
- rs.Update
- call showmsg("系统提示:信息修改成功!","list.asp")
- End Function
- function GetExtendName(FileName)
- dim ExtName
- ExtName = LCase(FileName)
- ExtName = right(ExtName,3)
- ExtName = right(ExtName,3-Instr(ExtName,"."))
- GetExtendName = ExtName
- end function
- '-----------------------------
- call COCLS
- %>