%
If Request.Form("unme")="admin" AND Request.Form("pwd")="isherwood12" Then
Session("al")="aahss" & day(date)
Response.Redirect "admin.asp"
End If
%>
<%
If Session("al")<>"aahss" & day(date) Then %>
| ID |
Name |
Default |
Order |
|
|
<%
SelectedParent = 0
If Request.Querystring("sp").count>0 Then
SelectedParent = Request.Querystring("sp")
End If
LastParent = 0
Set RSpages = Conn.Execute("SELECT pID, pName, pParent, pIsDefault, pMenuOrder, Datalength(pContent) AS PageSize, NumChildren=(SELECT COUNT(*) FROM PageContent AS AA WHERE AA.pParent=PageContent.pID AND pActive=1) FROM PageContent WHERE (pParent=0" & SelectedParent & " OR pParent=1000) AND pActive=1 ORDER BY pParent, pMenuOrder")
Do While NOT RSpages.eof
%>
bgcolor="#ffeeee"<% Else %> bgcolor="<%= AltBGColor() %>"<% End If %> valign=top>
| <%= RSpages("pID") %> |
<%= RSpages("pName") %>
<% If RSpages("NumChildren")>0 Then %>
" class=vsmall>View/Edit <%= RSpages("NumChildren") %> Sub Pages
<% End If %> |
<% If RSpages("pIsDefault")=1 Then %>Y<% Else %>-<% End If %> |
<%= RSpages("pMenuOrder") %> |
#editsection">Edit |
" onClick="return confirmit();">Delete |
<%
If LastParent=0 Then
LastParent = RSpages("pParent")
End If
RSpages.MoveNext
Loop
%>
|
back to top
|
<% If Request.Querystring("edpage").Count>0 Then
Set RScontent = Conn.Execute("SELECT pID, pName, pIsDefault, pMenuOrder, pParent, pContent FROM PageContent WHERE pID=0" & Request.Querystring("edpage") & " AND pActive=1")
If NOT RScontent.eof Then
pID = clng("0" & RScontent("pID"))
pName = "" & RScontent("pName")
pIsDefault = clng("0" & RScontent("pIsDefault"))
pMenuOrder = clng("0" & RScontent("pMenuOrder"))
pParent = clng("0" & RScontent("pParent"))
PageContent = "" & RScontent("pContent")
Else
PageContent = ""
End If
RScontent.Close
Set RScontent = Nothing
%>
|
back to top
|
<% End If %>