asp Jmail·¢ÓʼþÀà
<!--#include file="conn.asp" -->
<!--#include file="Fun.asp" -->
<%
'·¢ËÍÓʼþÀà
class SendEmails
'·¢ËÍ
private flag
private info
public sub Class_Initialize()
flag=false
info=""
end sub
public sub Class_Terminate()
flag=false
info=""
end sub
public property let SetFlag(byval v)
flag=v
end property
public property get GFlag()
GFlag=flag
end property
public property let SetMsg(byval m)
info=m
end property
public property get GMsg()
GMsg=info
end property
'µÃµ½ÓÊÏä·þÎñÆ÷ÉèÖÃ
private function getEmailset()
set f1=new DbConstrol
OpenConn()
f1.DConn=conn
set rs=f1.GetRs("select * from tbSetMail")
getEmailset=rs.getrows
rs.close
set rs=nothing
closeconn
set f1=nothing
end function
public function Sends()
call postFormfrom()
fromname=getFormStr("fromname")
fromaddress=getFormStr("fromaddress")
toname=getFormStr("toname")
toaddress=getFormStr("toaddress")
title=getFormStr("title")
content=getFormStr("content")
isimportance=getFormStr("isimportance")
if len(fromname)=0 then
Msg "ÇëÌîд·¢¼þÈËÐÕÃû!",0,""
response.End()
end if
if len(fromaddress)=0 then
Msg "ÇëÌîд·¢¼þÈ˵ØÖ·!",0,""
response.End()
end if
if len(toname)=0 then
Msg "ÇëÌîдÊÕ¼þÈËÐÕÃû!",0,""
response.End()
end if
if len(toaddress)=0 then
Msg "ÇëÌîдÊÕ¼þÈ˵ØÖ·!",0,""
response.End()
end if
if len(title)=0 then
Msg "ÇëÌîдÓʼþÖ÷Ìâ!",0,""
response.End()
end if
if len(content)=0 then
Msg "ÇëÌîдÓʼþÄÚÈÝ!",0,""
response.End()
end if
if isimportance="1" then
isimportance=1
else
isimportance=3
end if
arr=getEmailset()
MailServerUser=trim(arr(4,0))
M
Ïà¹ØÎĵµ£º
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
if request("action")=1 then
Response.ContentType="application/ms-excel"
Response.AddHeader "content-disposition","attachment;filename=www.xls"
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E ......
©¶´ÃèÊö:
ÔÚlogin.aspÖУ¬½ÓÊÕÓû§ÊäÈëµÄUseridºÍPasswordÊý¾Ý£¬²¢·Ö±ð¸³Öµ¸øuserºÍpwd£¬È»ºóÔÙÓÃsql="select * from admin where username="&user&" and password="&pwd&"" Õâ¾äÀ´¶ÔÓû§ÃûºÍÃÜÂë¼ÓÒÔÑéÖ¤¡£
ÒÔ³£ÀíÀ´¿¼Âǵϰ£¬ÕâÊǸöºÜÍêÕûµÄ³ÌÐòÁË¡£¶øÔÚʵ¼ÊµÄʹÓùý³ÌÖУ¬ÕûÌ׳ÌÐòÒ²µÄ ......
<%
'¹ºÎï³µÀà ÀàÃû£ºUserCart
'×÷Õß:gameing
'»ù±¾ÔÀí:´ËÀàÓ÷þÎñÆ÷Session±äÁ¿±£´æÉÌÆ·Êý¾Ý,ÉÌÆ·ÓÃÒ»¸öÊý×é±íʾ.´ËÀàÀïÃæ±£´æÁËÈýÖÐÉÌÆ·¼Û¸ñ.
'1¡¢2008-11-25ÐÞ¸ÄFunction AddItem() by tommy ÉÌÆ·Ôö¼ÓÔÚ×îºó
'2¡¢2008-11-25ÐÞ¸Äby tommy Ôö¼Óɾ³ýÉÌÆ·¹ý³Ì Sub DelItem()
'3¡¢2008-11-25ת»»Ò»Ð©Êý¾ÝÀàÐͲÅÄÜÔ ......
ÏÖÏó£ºÆÕͨµÄhtmlÎÄ×ÖÏÔʾÕý³££¬µ«ÓÃresponse.writeµÈasp´úÂëÊä³öµÄÎÄ×־ͳöÏÖÂÒÂë
½â¾ö·½·¨£ºÆð³õÒÔΪÊÇä¯ÀÀÆ÷±àÂë³ö´íµÄÔÒò£¬ËùÓÐÔÚ´úÂëÖмÓÈë
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
µ«»¹ÊdzöÏÖÂÒÂ룬ÎÊÌâû½â¾ö£¬ÉÏÃæµÄ´úÂëÖ¸¶¨µÄÊÇhtml¾²Ì¬ÎÄ×ֵıàÂë
×îºó²é×ÊÁÏ·´Ê¡ÊÇc ......