Advertisement
tjromano

list_aides page

Aug 22nd, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.78 KB | None | 0 0
  1. <?php
  2. //include config and functions pages
  3. include ('config.php');
  4. include ('functions.php');
  5.  
  6. //Group Access
  7. if(allow_access(Administrators|| cttsadmin)!= "yes" )
  8. {
  9. //no access
  10. include('no_access.html');
  11. exit;
  12. }
  13.  
  14. $aidesnames = aidesnames();
  15.  
  16. ?>
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml">
  19. <head>
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  21. <title></title>
  22. <link href="css/style.css" rel="stylesheet" type="text/css">
  23. <link href="css/myMenu.css" rel="stylesheet" type="text/css">
  24. </head>
  25. <body>
  26. <div id="head-container">
  27. <div id="header">
  28. <img src="images/connecticut%20transportation.jpg" />
  29. <!-- end head-container --></div>
  30. <!-- end .header --></div>
  31. <div id="content-container">
  32. <div id="myMenu">
  33.         <ul>
  34.             <li><a href="#">Employees</a></li>
  35.             <li><a href="#">Clients</a></li>
  36.             <li><a href="#">Schools</a></li>
  37.             <li><a href="#">Routes</a></li>
  38.         </ul>
  39.         <!-- end .myMenu --></div>
  40.     <div id="content">
  41.         <h2>Aides</h2>
  42.         <table border="1" cellspacing="2" cellpadding="2">
  43.     <tr>
  44.     <td><font face="Arial, Helvetica, sans-serif">Aides ID</font></td>
  45.     <td><font face="Arial, Helvetica, sans-serif">First Name</font></td>
  46.     <td><font face="Arial, Helvetica, sans-serif">Last Name</font></td>
  47.     <td><font face="Arial, Helvetica, sans-serif">Phone Number</font></td>
  48.     <td><font face="Arial, Helvetica, sans-serif">Active</font></td>
  49.     <td><font face="Arial, Helvetica, sans-serif">Notes</font></td>
  50.     </tr>
  51.      
  52.     <?php
  53.     foreach($arr as $aide){
  54.        
  55.                
  56.     ?>
  57.      
  58.     <tr>
  59.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['id_aides']; ?></font></td>
  60.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_fn']; ?></font></td>
  61.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_ln']; ?></font></td>
  62.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_ptn']; ?></font></td>
  63.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_active']; ?></font></td>
  64.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_notes']; ?></font></td>
  65.     <td><font face="Arial, Helvetica, sans-serif"><a href="edit_aides_form.php?id=<? echo $rows['id_aides']; ?>">Edit</a></font></td>
  66. </tr>
  67.     <?php
  68.      
  69.     }
  70.     ?>
  71.     </table>
  72.     <?php
  73.     echo "Total Records:  $num"
  74.     ?>
  75.     <p>&nbsp;</p>
  76.  
  77. <!-- end .content --></div>
  78. <!-- end content-container --></div>
  79. <div id="footer-container">
  80. <div id="footer">website powered by <a href="http://www.mbcinteractive.com/" target="_blank">MBC Interactive</a>
  81. <!-- end .footer --></div>
  82. <!-- end footer-container --></div>
  83. </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement