<% if Session("LoginStatus")<>"yes" then response.Redirect("noauthority.asp") end if %>
SMALL CYCLADES MANAGER >RESTAURANT (GR) MANAGER>VIEW/MODIFY ENTRIES
<% pg=trim(request("pg")) if pg="" then pg=1 myDSN="DSN=smallcyclades_com;uid=ferrari;pwd=VXJjMXwm;" set myconnection=server.createobject("adodb.connection") myconnection.open myDSN set ets=server.CreateObject("adodb.recordset") ets.activeconnection=myconnection ets.CursorType=adOpenStatic ets.Pagesize=10 rowcount=0 sql="SELECT * FROM `restaurantgr` ORDER BY `priority`" ets.open sql,myconnection ets.Absolutepage=pg do while not ets.eof and rowcount <% ets.movenext loop %>
ID ISLAND TITLE DESCRIPTION TELEPHONE TYPE PICTURE PHOTO PREVIEW DELETE
<% response.write ets.fields("id") %> <% response.write " "& ets.fields("island") & " " %> <% response.write ets.fields("title") %> <% response.write ets.fields("description") %> <% response.write ets.fields("telephone") %> <% response.write ets.fields("type") %> <% if ets.fields("type")="1" then response.write "no available" else response.write "" & ets.fields("photo") & " " end if %>
<% if ets.fields("type")="1" then response.write "no available" else if ets.fields("photo")="no" then response.Write("no photo available") else response.write "" end if end if %>
<%response.write "" %>
 
Pages : <% for i=1 to ets.Pagecount response.write" "& i & " " next %>
>>RESTAURANT (GR) MANAGER
>>MAIN MENU