jack
2007-04-13 02:54:03 UTC
<%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%>
<!--#include file="Connections/connDSN.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_connDSN_STRING (line 8)
Recordset1.Source = "SELECT * FROM 學生通訊錄"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>無標題文件</title>
</head>
<body>
<table width="70%" border="1">
<tr>
<th scope="col">座號</th>
<th scope="col">姓名</th>
<th scope="col">電子郵件</th>
<th scope="col">性別</th>
<th scope="col">生日</th>
<th scope="col">電話</th>
<th scope="col"><p>住址</p> </th>
</tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td><%=(Recordset1.Fields.Item("座號").Value)%></td>
<td><%=(Recordset1.Fields.Item("姓名").Value)%></td>
<td><%=(Recordset1.Fields.Item("電子郵件").Value)%></td>
<td><%=(Recordset1.Fields.Item("性別").Value)%></td>
<td><%=(Recordset1.Fields.Item("生日").Value)%></td>
<td><%=(Recordset1.Fields.Item("電話").Value)%></td>
<td><%=(Recordset1.Fields.Item("住址").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<!--#include file="Connections/connDSN.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_connDSN_STRING (line 8)
Recordset1.Source = "SELECT * FROM 學生通訊錄"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>無標題文件</title>
</head>
<body>
<table width="70%" border="1">
<tr>
<th scope="col">座號</th>
<th scope="col">姓名</th>
<th scope="col">電子郵件</th>
<th scope="col">性別</th>
<th scope="col">生日</th>
<th scope="col">電話</th>
<th scope="col"><p>住址</p> </th>
</tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td><%=(Recordset1.Fields.Item("座號").Value)%></td>
<td><%=(Recordset1.Fields.Item("姓名").Value)%></td>
<td><%=(Recordset1.Fields.Item("電子郵件").Value)%></td>
<td><%=(Recordset1.Fields.Item("性別").Value)%></td>
<td><%=(Recordset1.Fields.Item("生日").Value)%></td>
<td><%=(Recordset1.Fields.Item("電話").Value)%></td>
<td><%=(Recordset1.Fields.Item("住址").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
--
jack
jack