Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/members/saaceadmin/
Upload File :
Current File : /var/www/cesa.co.za/members/saaceadmin/manageAdvisory-listing.php4

<html>
<head>
<title>SAACE: Administration page: Manage the Advisory Notes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
a {  font-family: "Comic Sans MS"; font-size: 10px; font-weight: bold; text-transform: capitalize; color: #FF0000; text-decoration: none}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?php
// All the database constants
include("../inc/conf.inc");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td>
      <h3><font face="Comic Sans MS" size="2">SAACE Administration Page : Show 
        Data </font></h3>
    </td>
  </tr>
  <tr> 
    <td align="left" valign="top"> 
      <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
        <tr> 
          <td bgcolor="#0000FF" align="left" valign="top" width="73%"><font face="Comic Sans MS" size="2"><b>Manage 
            the Advisory Notes</b></font></td>
          <td bgcolor="#0000FF" align="left" valign="top" width="10%"><a href="index2.php4">Main 
            Menu</a></td>
          <td bgcolor="#0000FF" align="left" valign="top" width="17%"> <a href="manageAdvisory-listing.php4">LIST</a> 
            | <a href="addAdvisory-listing.php4">ADD</a></td>
        </tr>
        <tr> 
          <td align="left" valign="top" colspan="3"> 
            <?php
		  // Connect to the databse and show the data
		 		  
		  $dbc = mysql_connect($server,$user,$pass);
		  mysql_select_db($db,$dbc);
		  $sql = "SELECT NoteId,Title,Description,Filename,Archive FROM advisory";
		  $result = mysql_query($sql);
		  $result_rows = mysql_num_rows($result);
		  echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">";
		  echo "<tr bgcolor=\"$collight\">
		  <th>Number</th>
		  <th>Title</th>
		  <th>Description</th>
		  <th>Filename</th>
		  <th>Archive</th>
		  <th>Action</th>		  		  		  
		  </tr>";
		  while($row = mysql_fetch_array($result)) {
		  echo "<tr>
		  <td valign=\"top\">".$row["NoteId"]."</td>
		  <td valign=\"top\">".$row["Title"]."</td>
		  <td valign=\"top\">".$row["Description"]."</td>
		  <td valign=\"top\">".substr($row["Filename"],0,-4)."</td>
		  <td valign=\"top\">".$row["Archive"]."</td>		  		  
		  <td valign=\"top\">" ?>
            <?php $NewFile = "editAdvisory-listing.php4"; printf ("<a href=\"%s?form[noteid]=%s\")'>Edit</a>\n", $NewFile, $row["NoteId"]); ?>
            | 
            <?php $NewFile = "deleteAdvisory-listing.php4"; printf ("<a href=\"%s?form[noteid]=%s\")'>Delete</a>\n", $NewFile, $row["NoteId"]); ?>
            <?php "</td>		  		  		  
		  </tr>";
		    }
			echo "</table>";
		   ?>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>