?? email_addresser.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<!--#include file=config.asp-->
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Addresser order by id desc"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
background-color: #DFEEFF;
}
.style3 {color: #FFFFFF}
-->
</style>
</head>
<script language="javascript">
function HLItem(obj){
obj.oldClassName=obj.className;
obj.className="List";
}
function Re(obj){
obj.className=obj.oldClassName
}
</script>
<body>
<table width="100%" border="0" >
<tr>
<td valign="top"> <fieldset class="fiedset">
<legend>
<input name="radiobutton" type="radio" value="radiobutton" onClick="location='email.asp'">
Email管理 <input name="radiobutton" type="radio" onClick="" value="radiobutton" checked>
發件人管理</legend>
<form name="form2" method="post" action="Email_Addresser_del.asp?p=<%=request("p")%>">
<table width="90%" border="0" align="center" cellspacing="0">
<tr>
<td width="6%"><table width="100%" border="0" cellspacing="0" class="table">
<tr>
<td class="listTitle"> </td>
</tr>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Addresser order by id desc"
rs.open sql,conn,1,1
if not rs.eof then
tol=rs.recordcount
rs.pagesize=15
maxpage=rs.pagecount
requestpage=clng(request("p"))
if requestpage="" or requestpage=0 then
requestpage=1
end if
if requestpage>maxpage then
requestpage=maxpage
end if
if requestpage<>1 then
rs.move (requestpage-1)*rs.pagesize
end if
for i=1 to rs.pagesize and not rs.eof
if i mod 2=1 then
bg="#FFFFFF"
else
bg="#efefef"
end if
%>
<tr>
<td align="center" bgcolor=<%=bg%>><input name="del" type="checkbox" id="del" value="<%=rs("id")%>"></td>
<%
rs.movenext
if rs.eof then exit for
next
else
response.Write(" ")
end if
%>
</tr>
</table></td>
<td width="94%"><table width="100%" border="0" align="center" cellspacing="0" bordercolor="#FFFFFF" class="table">
<tr bordercolor="#ffffff" cellpadding="0">
<td width="18%" align="center" class="listTitle">發件人姓名</td>
<td width="18%" align="center" class="listTitle">發件人email</td>
<td width="18%" align="center" class="listTitle">Smtp服務器地址</td>
</tr>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Addresser order by id desc"
rs.open sql,conn,1,1
if not rs.eof then
tol=rs.recordcount
rs.pagesize=15
maxpage=rs.pagecount
requestpage=clng(request("p"))
if requestpage="" or requestpage=0 then
requestpage=1
end if
if requestpage>maxpage then
requestpage=maxpage
end if
if requestpage<>1 then
rs.move (requestpage-1)*rs.pagesize
end if
for i=1 to rs.pagesize and not rs.eof
if i mod 2=1 then
bg="#FFFFFF"
else
bg="#efefef"
end if
%>
<tr align="center" bgcolor=<%=bg%> style="cursor:hand" onClick="window.parent.frames('bo').window.location = 'Email_Addresser_ed.asp?id=<%=rs("id")%>'" onMouseOver="HLItem(this)" onMouseOut="Re(this)">
<td height="22"><%=rs("EmailName")%></td>
<td><%=rs("Email")%></td>
<td><%=rs("SmtpEmail")%></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
else
response.Write("沒有發件人信息,請<a href='KeHu_add.asp' target='bo'>添加</a>")
end if
%>
</table></td>
</tr>
</table>
<table width="90%" border="0" align="center">
<tr>
<td width="37%"> <input name="Submit2" type="button" class="input" value="添加發件人" onClick="window.parent.frames('bo').window.location = 'Email_Addresser_Add.asp'">
<input name="Submit" type="submit" class="input" value=" 刪 除 " onClick="return confirm('確定刪除嗎')">
<input name="Submit3" type="reset" class="input" onClick="location='email_addresser.asp'" value=" 刷 新 "></td><td width="63%" align="right">
<%if request("tid")="" then%>
<a href="email.asp?p=1">首頁</a> <a href="email.asp?p=<%=requestpage-1%>">上一頁</a> <a href="email.asp?p=<%=requestpage+1%>">下一頁</a> <a href="email.asp?p=<%=maxpage%>">最后一頁</a>
<%
else
%>
<a href="email.asp?p=1&tid=<%=tid%>">首頁</a> <a href="email.asp?p=<%=requestpage-1%>&tid=<%=tid%>">上一頁</a> <a href="email.asp?p=<%=requestpage+1%>&tid=<%=tid%>">下一頁</a> <a href="email.asp?p=<%=maxpage%>&tid=<%=tid%>">最后一頁</a>
<%end if%>
當前頁:<%=requestpage%> 總頁數:<%=maxpage%> 總數:<%=tol%>
每頁顯示15條信息</td>
</tr>
</table>
</form>
<p><br>
</p>
</fieldset></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -