?? numpage.asp
字號:
<%Option Explicit%><%
dim rs_lar,rs,rs1,conn,dbpath
dim sql,sql1
dim i,id,num,num1
'叛斷此用戶是否已經注冊
%><!--#include file="connpic.asp"--><%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from pic,shuoming where pic.id1=shuoming.ID order by shuoming.ID desc"
rs.open sql,conn,3,3
if not rs.eof then
rs.pagesize=15
num1=request.querystring("id")
num=clng(num1)
rs.absolutepage=num
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Namo WebEditor v4.0(Trial)">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>相片上傳</title>
<style>
<MM:BeginLock translatorClass="MM_SSI" type="ssi_comment" orig="%3C!--#include file=%22css.htm%22--%3E" fileRef="css.htm" depFiles="file:///E|/個人文件/書稿/新書/第十一章/無組件上載/css.htm"><!--
.x:link { color: white; text-decoration: none }
.x:visited { color: white; text-decoration: none }
.x:active { color: red; text-decoration: none }
.x:hover { color: red;text-decoration:nome}
tr { font-size: 10pt }
body { font-size: 10pt }
a:link { color: blue; text-decoration: none }
a:visited { color: blue; text-decoration: none }
a:active { color: red; text-decoration: none }
a:hover { color: red; text-decoration: none }
--><MM:EndLock>
</style>
<Script language="javascript">
function mysubmit(theform)
{
if(theform.big.value=="")
{
alert("請點擊瀏覽按鈕,選擇您要上傳的jpg或gif文件!")
theform.big.focus;
return (false);
}
else
{
str= theform.big.value;
strs=str.toLowerCase();
lens=strs.length;
extname=strs.substring(lens-4,lens);
if(extname!=".jpg" && extname!=".gif")
{
alert("請選擇jpg或gif文件!");
return (false);
}
}
return (true);
}
</script>
<title>天翔網交朋識友</title>
<meta name="generator" content="Namo WebEditor v4.0(Trial)">
<style type="text/css">A:visited {
COLOR: #000000; TEXT-DECORATION: none
}
A:link {
COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
COLOR: #0080c0; TEXT-DECORATION: none
}
TD {
FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: "宋體"
}
.f1 {
LINE-HEIGHT: 18px
}
.en {
FONT-WEIGHT: bold; FONT-FAMILY: "Arial","Verdana"
}
.new {
FONT-WEIGHT: bold; COLOR: #ff3300; FONT-FAMILY: "Arial"
}
.line {
LINE-HEIGHT: 19px
}
</style>
<SCRIPT language=JavaScript>
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
if (theURL != "fuckyou")
{ window.open(theURL,winName,features);}
}
//-->
</SCRIPT></head>
<body align=center>
<!------------------------------------------------------------------------------------------------------------------------------>
<div align=center>
<table border="0" width="70%" cellspacing="0" cellpadding="1" bgcolor=blue>
<tr>
<td valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor=white>
<tr>
<td width="45%"><font color=blue>照片說明</td>
<td width="15%"><font color=blue>姓名</td>
<td width="45%"></td>
</tr>
<% for i=1 to rs.pagesize%>
<%if rs.eof then
exit for
end if %>
<tr>
<td width="45%" height="5"><%=rs("shuoming")%></td>
<td width="15%"><%=rs("name")%></td>
<td width="45%" height="5">
<p align="center"><a href="displaypic1.asp?id=<%=rs("id")%>">[查看]</a></td>
</tr>
<%rs.movenext%>
<%next%>
<%end if %>
<tr><td>
</td></tr>
</table>
</td>
</tr>
</table>
分頁: <%for i=1 to rs.pagecount%><a href="numpage.asp?id=<%=i%>"><%=i%></a> <%next%>
<form action="addshuoming.asp" method=post >
<table border="0" width="70%" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#336699"><font color="#FFFFFF"><center><b>相片上傳</b></font></td>
</tr>
<tr>
<td>
<p align="left">你的名字<input type="text" name="name"></p>
<p align="left">相片說明<input type="text" name="shuoming" size="20"></p>
</td>
</tr>
<tr>
<td >
<p align="center"><input type="submit" value=" 上傳 " name="B3"> </p>
</td>
</tr>
</table>
</form>
<table border="0" width="70%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" bgcolor="#336699"><b><font color="#FFFFFF">關于相片上傳</font></b></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"><b>請注意<span class="content">相片規格</span>:</b></td>
</tr>
<tr>
<td width="100%">1.相片文件大小在60K以下</td>
</tr>
<tr>
<td width="100%">2.相片格式:GIF、JPG</td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
</table>
</body>
</html>
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -