?? index.asp
字號:
<% Set hdobj = Server.CreateObject("HD.comOpen")'請保證此行在最前面
Conn = hdobj.WeekaaConn()%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="luxiaoqing" CONTENT="no-cache">
<STYLE TYPE="text/css">
<!--
BODY {
background-image: url(../Image/bg.gif);
background-position: center;
background-repeat: repeat;
background-attachment: fixed;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #3399FD;
}
.style4 {
color: #FFFFFF;
font-size: 14px;
}
.style12 {
color: #FFFFFF;
font-size: 16px;
font-family: "黑體";
}
.style5 {color: #FF0000}
body,td,th {
font-size: 12px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.tables {
background-image: url(../Image/bigbg.jpg);
background-repeat: no-repeat;
}
.STYLE13 {color: #000000; font-size: 12px;}
-->
</STYLE>
<script language="JavaScript" type="text/JavaScript">
function delpay()
{
if(confirm("確定要刪除此嗎?"))
return true;
else
return false;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body onmouseover="self.status='紅笛軟件[http://weekaa.com/red]';return true">
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="150" align="center" valign="bottom"><img src="../Image/bigbga.jpg" width="1003" height="150"></td>
</tr>
<tr>
<td height="28" align="center" valign="bottom" background="../Image/bg01a.jpg"> </td>
</tr>
<tr>
<td height="600" align="center" valign="top" bgcolor="#3399fd">
<%
La=Request.form("La")
Lb=Request.form("Lb")
Set rs = Server.CreateObject("ADODB.RecordSet")
if La="" then
if Lb="" then
sqls = "Select * From [Tespec] order by c asc"
else
sqls = "Select * From [Tespec] where c like '%"&Lb&"%' order by a asc"
end if
else
if Lb="" then
sqls = "Select * From [Tespec] where b like '%"&La&"%' order by c asc"
else
sqls = "Select * From [Tespec] where b like '%"&La&"%' and c like '%"&Lb&"%' order by a asc"
end if
end if
rs.Open Sqls,Conn,1,3
'=========================================================
Dim i, text, checkpage, page, MaxPerPage, CurrentPage
MaxPerPage = Request.Form("pages")
If MaxPerPage = "" Then
MaxPerPage = 12
End If
If MaxPerPage < 1 Or MaxPerPage > 1000 Then
MaxPerPage = 12
End If
MaxPerPage = MaxPerPage * 1
text = "0123456789"
rs.PageSize = MaxPerPage
GoPage = Request.Form("pagee")
For i = 1 To Len(GoPage)
checkpage = InStr(1, text, Mid(GoPage, i, 1))
If checkpage = 0 Then
Exit For
End If
Next
If checkpage <> 0 Then
If Not IsEmpty(GoPage) Then
CurrentPage = CInt(GoPage)
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > rs.PageCount Then CurrentPage = rs.PageCount
Else
CurrentPage = 1
End If
If Not rs.EOF Then
rs.AbsolutePage = CurrentPage
End If
Else
CurrentPage = 1
End If
RsSum = CStr(rs.RecordCount) '記錄總條數(shù)
pageOn = CStr(CurrentPage) '當(dāng)前第幾頁
pageSum = CStr(rs.PageCount) '總共幾頁
NextPage = pageOn + 1
pageSum=pageSum + 0
If NextPage > pageSum Then
NextPage = 1
End If
'==============================================================
i=0
%>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DEE7FF">
<tr>
<td height="25" colspan="9"> </td>
</tr>
<tr><form name="form1" method="post" action="">
<td height="60" colspan="9" align="center" bgcolor="#FFFFFF" class="STYLE2">名稱
<input name="La" type="text" id="La" size="10">
類別
<input name="Lb" type="text" id="Lb" size="10">
<input type="submit" name="Submit" value="查">
[<a href='#' onClick="MM_openBrWindow('specadd.asp','紅笛軟件','status=no,scrollbars=no,top=10,left=200,width=580,height=350')">增加</a>] </td>
</form>
</tr>
<tr>
<td height="40" colspan="9" align="center" class="style12">共享資料管理</td>
</tr></table>
<table width="90%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DEE7FF">
<tr>
<td height="28" colspan="9" align="center" background="../Image/bg01.jpg"> </td>
</tr>
<tr>
<td width="12%" height="28" align="center" valign="middle" bgcolor="#F4F8FA">編號</td>
<td width="22%" align="center" valign="middle" bgcolor="#F4F8FA">共享資料名稱</td>
<td width="18%" align="center" valign="middle" bgcolor="#F4F8FA">類別</td>
<td width="11%" align="center" valign="middle" bgcolor="#F4F8FA">文件格式</td>
<td width="11%" align="center" valign="middle" bgcolor="#F4F8FA">作者</td>
<td width="6%" align="center" valign="middle" bgcolor="#F4F8FA">詳情</td>
<td width="8%" align="center" valign="middle" bgcolor="#F4F8FA">相關(guān)資料</td>
<td width="6%" align="center" valign="middle" bgcolor="#F4F8FA">修改</td>
<td width="6%" align="center" valign="middle" bgcolor="#F4F8FA">刪除</td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td height="28" align="center" valign="middle" bgcolor="#FFFFFF"><%=rs("a")%></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><%=rs("b")%></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><%=rs("c")%></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><%=rs("d")%></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><%=rs("e")%></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><a href='#' onClick="MM_openBrWindow('specedit.asp?ID=<%=rs("ID")%>','紅笛軟件','status=no,scrollbars=no,top=10,left=200,width=580,height=350')">詳情</a></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><a href='#' onClick="MM_openBrWindow('files/UPA.asp?ID=<%=rs("ID")%>','紅笛軟件','status=no,scrollbars=no,top=10,left=200,width=400,height=200')">上傳</a>|<a href='#' onClick="MM_openBrWindow('files/HFa.asp?ID=<%=rs("ID")%>','紅笛軟件','status=no,scrollbars=yes,top=10,left=200,width=620,height=300')">資料</a></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><a href='#' onClick="MM_openBrWindow('specadd.asp?ID=<%=rs("ID")%>','紅笛軟件','status=no,scrollbars=no,top=10,left=200,width=580,height=350')">修改</a></td>
<td align="center" valign="middle" bgcolor="#FFFFFF"><a href="?deln=del&ID=<%=rs("ID")%>" onClick="return delpay();">刪除</a></td>
</tr>
<%
i=i+1
if i >= MaxPerpage then exit do
rs.movenext
loop
NextP=NextPage
if NextPage>pageSum then
NextP=1
end if
if i<MaxPerPage then
for j=1 to MaxPerPage - i
%>
<tr>
<td height="28" align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> </td>
</tr>
<%
next
end if
If Request.QueryString("deln") = "del" Then
call hdobj.Deler("Tespec","k")
end if
%>
<form name='form2' method='post' action=''>
<tr>
<td height="28" colspan="9" align="center" background="../Image/bg01.jpg" bgcolor="#FFFFFF"><%
Response.Write "<input type='hidden' name='La' value='" & La & "'><input type='hidden' name='Lb' value='" & Lb & "'>"
Response.Write "第" & pageOn & "/" & pageSum & "頁 共" & RsSum & "條記錄 每頁"
Response.Write "<input name='pages' type='text' id='pages' value='" & MaxPerPage & "'"
Response.Write " size='2' style='background-color: #DEE7FF; border-color: #FFFFFF; border-style: solid; border-width: 0px 0px 1px 0px, font-family:Verdana,Arial; font-size: 10pt; color: #003399'>"
Response.Write "條記錄 轉(zhuǎn)到</span>"
Response.Write "<input name='pagee' type='text' id='pagee' value='" & NextP & "' size='2' style='background-color: #DEE7FF; border-color: #FFFFFF;"
Response.Write " border-style: solid; border-width: 0px 0px 1px 0px, font-family:Verdana,Arial; font-size: 10pt; color: #003399'>"
Response.Write "<input name='Submit' type='submit' class='STYLE10' value='Go'>"
%></td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td height="25" align="center" valign="top" bgcolor="#3399FD"> </td>
</tr>
<tr>
<td height="25" align="center" valign="top" background="../Image/bg01a.jpg"> </td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -