PHP是一种 HTML 内嵌式的语言,PHP与微软的ASP颇有几分相似,都是一种在服务器端执行的嵌入HTML文档的脚本语言,语言的风格有类似于C语言,现在被很多的网站编程人员广泛的运用。
1 2 3 4 5 6 7 8 9 10 11 12 13 <%=WebName%>-关于我们 14 <% 15 Dim id 16 Id =Request.QueryString("Id") 17 If Id ="" Or Not IsNumeric(Id) Or IsNull(Id) Then 18 Id = 2 19 End If 20 Function webTitle(Id) 21 Select Case Id 22 Case 2 webTitle = "gsjj.png" 23 Case 5 webTitle = "zzry.png" 24 Case 6 webTitle = "zzjg.png" 25 Case Else webTitle = "gsjj.png" 26 End Select 27 End Function 28 %> 29 30 31 32 33 34
35
36
37
38
39
40
41
42
43
52
53
54
55
56
57
58
59
60
61
62
63
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93 <% 94 If Id = 5 Then 95 Set Rs=server.CreateObject("adodb.recordset") 96 Sql="select title,About,id,Sm_img,Addtime from Content where BoardId="&id&" and Isdel = 0 order by IsTop Desc,IfGood Desc,Addtime Desc" 97 Rs.Open Sql,Conn,1,1 98 If Rs.Eof Then 99 Response.Write("没有信息")100 Else101 Rs.PageSize =20 102 pre = true103 last = true104 page = trim(Request.QueryString("page"))105 106 If len(page) = 0 then107 intpage = 1108 pre = false109 else110 If cint(page) =< 1 then111 intpage = 1112 pre = false113 else114 If cint(page) >= rs.PageCount then115 intpage = rs.PageCount116 last = false117 else118 intpage = cint(page)119 end If120 end If121 end If122 If not rs.eof then123 rs.AbsolutePage = intpage124 end If 125 for i=1 to rs.PageSize126 If rs.EOF or rs.BOF then exit for127 %>128