|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp,jsp,php是web开发的三大技术,asp简单易用且有microsoft做靠山,jsp功能强大是因为有java支持,php则开源跨平台.在国内,asp应用范围最广,jsp发展势头最猛,php则处于劣势.这可能与公司的支持以及技术的培训有关.<spanclass="style45">
<%
setconn=server.createobject("adodb.connection")
DBPath=Server.MapPath("sap_mis.mdb")
conn.Open"driver={MicrosoftAccessDriver(*.mdb)};dbq="&DBPath
setrs=server.createobject("adodb.recordset")
sql="selectsap_adon_record.*fromsap_adon_recordorderbys_iddesc"
rs.opensql,conn,1,1
%>
</span>
<tablewidth="98%"height="10"border="1"align="center"cellpadding="0"cellspacing="0"bordercolor="#336699"bordercolordark="#FFFFFF"class="style45">
<%ifrs.EOFthen%>
<tr>
<tdalign="center"><spanstyle="color:#339933"><ahref="add.asp">体系中临时没有纪录,请点击此处增加!</a></span>
</td>
</tr>
<%else%>
<tr>
<tdalign="center"bgcolor="#f000ff"class="style45">111</td>
<tdalign="center"bgcolor="#f000ff"class="style45">222</td>
<tdalign="center"bgcolor="#f000ff"class="style45">333</td>
<tdalign="center"bgcolor="#f000ff"class="style45">444</td>
<tdalign="center"bgcolor="#f000ff"class="style45">555</td>
<tdalign="center"bgcolor="#f000ff"class="style45">666</td>
<tdalign="center"bgcolor="#f000ff"class="style45">777</td>
</tr>
<%
shownum=20
totalrecord=rs.recordcount
rs.pagesize=shownum
maxpage=rs.pagecount
requestpage=clng(request.querystring("page"))
ifrequestpage=""orrequestpage=0then
requestpage=1
endif
ifresquestpage>maxpagethen
resquestpage=maxpage
endif
ifnotrequestpage=1then
rs.move(requestpage-1)*rs.pagesize
endif
fori=1tors.pagesizeandnotrs.bof%>
<tr>
<tdalign="center"class="style45"><ahref=show.asp?s_id=<%=rs("s_id")%>target="_blank"><%=rs("prname")%></a></td>
<tdalign="center"class="style45"><%=rs("trscod")%></td>
<tdalign="center"class="style45"><%=rs("crname")%></td>
<tdalign="center"class="style45"><%=rs("crdate")%></td>
<tdalign="center"class="style45"><%=rs("prtype")%></td>
<tdalign="center"class="style45"><%=rs("fction")%></td>
<tdalign="center"class="style45"><ahref=edit.asp?s_id=<%=rs("s_id")%>>编纂</a></td>
</tr>
<%
rs.movenext
ifrs.eofthenexitfor
next
%>
</table>
<tablewidth="98%"height="10"align="center"border="1"bordercolor="#336699"bordercolordark="#FFFFFF"cellpadding="0"cellspacing="0">
<tr>
<tdalign="center"class="style45"><ahref=add.asp>增加纪录</a>|<ahref=readExcel.asptarget="_self">EXCEL文件批量导进</a>|<ahref=srch.asp>初级查询</a>
</td>
</tr>
<tr>
<tdalign=center>
<spanclass="style45">
<%
ifrequestpage-1mod10=0then
p=(requestpage-1)10
else
p=(requestpage-1)10
endif
ifrequestpage=1then
response.write"<fontface=webdingscolor=""#FF0000"">9</font>"
else
response.write"<ahref=index.asp?page=1title=首页><fontface=webdings>9</font></a>"
endif
ifp*10>0thenresponse.write"<ahref=index.asp?page="&p*10&"title=上十页><fontface=webdings>7</font></a>"
response.write"<b>"
forii=p*10+1toP*10+10
ifii=requestpagethen
response.write"<fontcolor=""#FF0000"">"&ii&"</font>"
else
response.write"<ahref=index.asp?page="&ii&">"&ii&"</a>"
endif
ifii=maxpagethenexitfor
next
response.write"</b>"
ifii<maxpagethenresponse.write"<ahref=index.asp?page="&ii&"title=下十页><fontface=webdings>8</font></a>"
ifrequestpage=maxpagethen
response.write"<fontface=webdingscolor=""#FF0000"">:</font>"
else
response.write"<ahref=index.asp?page="&maxpage&"title=尾页><fontface=webdings>:</font></a>"
endif
response.write"统共有"&maxpage&"页共"&totalrecord&"个纪录每页"&shownum&"个"
endif
%>
</span></td>
</tr>
</TABLE>
<spanclass="style45">
<%
rs.close
setrs=nothing
conn.close
setconn=nothing
%>
asp可以使用微软的activeX使得网页功能无比强大,不过安全性也较差,而且是基于的windows服务器,所以性能稳定性也一般 |
|