1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<? //require 'db_connect.php'; require 'check_login.php'; if ($logged_in <> 1) { header('Location: login.php'); return; } else { ?> <html> <head> <link rel="stylesheet" href="main.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Page List</title> </head> <body> <table border="0" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF"> <tr><td class="contentsearch" bgcolor="#FFFFFF" width="200" align="center">Page Title</td> <td class="contentsearch" bgcolor="#FFFFFF" width="200" align="center">Path</td> </tr> <?php require("configure.php"); ?> <?php
$result = mysql_query("SELECT * from pagecontent order by pagecontentid desc "); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { if ($x % 2 ==1) $color = "#FFFFFF"; else $color = "#CEE7FF"; print "<tr>"; print "<td class='content' bgcolor=". $color ." valign='top' style='padding-left:5;padding-top:2;padding-bottom:2'>".$row{'pagecontenttitle'}."</td>"; print "<td class='content' bgcolor=". $color ." valign='top' style='padding-left:5;padding-top:2;padding-bottom:2'>/page.php?pagecontentid=".$row{'pagecontentid'}."</td>"; print "</tr>"; $x = $x +1; } mysql_close($dbh); ?> </table> </body> </html> <? } ?>
|