<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo "$sitetitle"; ?> • <?php echo "$title"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="style/default.css" title="none" />
<link rel="alternate stylesheet" type="text/css" href="style/dark.css" title="dark" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="sunshine" href="style/sunshine.css" />
<script type="text/javascript" src="js/styleswitch.js">
/*Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com) Visit Dynamic Drive for this script and more */
</script>
<script type="text/javascript" src="js/cw3cb.js"></script>
<link rel="icon" type="image/x-icon" href="style/favicon.ico" />
</head>
<body onload="makeDark()">
<div id="all">
<div id="header">
<div id="horbar">
<a href="java script:makeDark()">Licht uit</a> <a href="java script:makeLight()">Licht aan</a>
</div>
</div>
<div id="content">
<div id="menu">
<h1 class="menu">Menu</h1>
<a href="index.php?p=Home">Home</a><br />
<a href="tracker.php">Tracker</a><br />
<a href="adm/edit.php?modus=edit&p=<?php echo "$title"; ?>">Bewerken</a><br />
<a href="adm/edit.php?modus=create">Aanmaken</a><br />
</div>
<div id="main">
<p class="main">
<table>
<tr>
<td><strong>Titel</strong></td>
<td><strong>Auteur</strong></td>
<td><strong>Link</strong></td>
</tr>
<?php
require_once('includes/db-conflib.php');
$query="SELECT * FROM y_pages";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$title=mysql_result($result,$i,"title");
$htmltitle=mysql_result($result,$i,"htmltitle");
$author=mysql_result($result,$i,"author");
$text=mysql_result($result,$i,"text");
echo "<tr>";
echo "<td>$title</td>";
echo "<td>$author</td>";
echo '<td><a href="index.php?p='; echo "$htmltitle"; echo '">Klik</a></td>';
echo "</tr>";
$i++;
}
?>
</table>
</p>
</div>
</div>
<div id="footer">
<p class="footerleft">
<a href="http://validator.w3.org/check?uri=referer">
<img name="xhtml" src="http://www.w3.org/Icons/valid-xhtml10-blue.png" alt="Valid XHTML 1.0 Transitional" height="31" width="88" />
</a>
</p>
<p class="footerright">
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px" name="css" src="http://www.w3.org/Icons/valid-css-blue.png" alt="Valide CSS!" />
</a>
</p>
<script type="text/javascript"> /* Check if JS is enabled */</script><noscript>Sorry, maar voor veel grafische effecten van deze site is JavaScript nodig.</noscript>
</div>
</div>
</body>
</html>
This is the code for my pagetracker in my CMS.
I'm working on the second version of my CMS, so I had to copy it.