Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/php/
Upload File :
Current File : /var/www/cesa.co.za/php/advisory_full.php

<?php 
include('inc_db.php'); 
?>
	<h2>Practice Notes</h2>
	<?php

		$sql = "SELECT NoteId, Title, Description, Filename, Reference FROM advisory WHERE confidential='N' AND Archive = 'new' ORDER BY Reference, Title, Filename";
		$result = mysql_query($sql);
		$result_rows = mysql_num_rows($result);
		If ($result_rows > 0 ) {
			echo "<h1>Current Index of Advisory Notes:</h1>";
			echo "<p class=\"footer\">There are currently <b>".$result_rows." practice notes</b><br>Please note: Items are listed in Reference and then Alphabetical Title order.</p>";
			echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">";
			echo "<tr><th>Number</th><th>Reference</th><th>Title</th><th>Download</th></tr>";
			while($row = mysql_fetch_array($result)) {
		    		echo "<tr><td valign=\"top\">".strtolower(substr($row["Filename"],0,-4))."</td><td valign=\"top\">".ucwords(strtolower($row["Reference"]))."</td><td valign=\"top\">".ucwords(strtolower($row["Title"]))."</td><td valign=\"top\">"."<a href=\"/_f1l3z_/advisorynotes/".strtolower($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);	
		
	?>