| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/practicenotes_full.php |
<?php
include_once("memberauth.php");
include_once('inc_db.php');
?>
<h2>Practice Notes</h2>
<?php
LogUserActivity("List Practice Notes");
$sql = "SELECT * from PracticeNotes ORDER BY Category, SubCategory, Title";
$result = mysql_query($sql);
$result_rows = mysql_num_rows($result);
if ($result_rows > 0 ) {
echo "<h1>Current Index of Practice Notes:</h1>";
echo "<p class=\"footer\">There are currently <b>".$result_rows." practice notes</b><br>Please note: Items are listed in Category and then Alphabetical Title order.</p>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">";
echo "<tr><th>Ref</th><th>Category</th><th>Sub-Category</th><th>Title</th><th>Download</th></tr>";
while ($row = mysql_fetch_array($result)) {
echo "<tr><td valign=\"top\">".$row["PNNo"]."</td><td valign=\"top\">".$row["Category"]."</td><td valign=\"top\">".$row["SubCategory"]."</td><td valign=\"top\">".$row["Title"]."</td><td valign=\"top\">"."<a target=\"_blank\" href=\"/php/downloadPN.php?filename=".urlencode($row["Filename"])."\"><img src=\"/images/icon_pdf.gif\" width=\"16\" height=\"16\" alt=\"pdf file - click to download\" border=\"0\"></a>"."</td></tr>";
}
echo "</table>";
} else {
echo "<p><br><b>No practice notes found.</b></p>";
}
mysql_free_result($result);
?>