Advertisement
tjromano

Aides List

Aug 20th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.55 KB | None | 0 0
  1. <?php
  2. //prevents caching
  3. header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
  4. header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
  5. header("Cache-Control: post-check=0, pre-check=0",false);
  6. session_cache_limiter();
  7.  
  8. session_start();
  9.  
  10. //include config and functions pages
  11. include ('config.php');
  12. include ('functions.php');
  13.  
  14. //Group Access
  15. if(allow_access(Administrators)!= "yes")
  16. {
  17. //no access
  18. include('no_access.html');
  19. exit;
  20. }
  21.  
  22. $schools = schoolnames();
  23.  
  24. ?>
  25. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  26. <html xmlns="http://www.w3.org/1999/xhtml">
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  29. <title></title>
  30. <link href="css/style.css" rel="stylesheet" type="text/css">
  31. <link href="css/myMenu.css" rel="stylesheet" type="text/css">
  32. </head>
  33. <body>
  34. <div id="head-container">
  35. <div id="header">
  36. <img src="images/connecticut%20transportation.jpg" />
  37. <!-- end head-container --></div>
  38. <!-- end .header --></div>
  39. <div id="content-container">
  40. <div id="myMenu">
  41.         <ul>
  42.             <li><a href="#">Employees</a></li>
  43.             <li><a href="#">Clients</a></li>
  44.             <li><a href="#">Schools</a></li>
  45.             <li><a href="#">Routes</a></li>
  46.         </ul>
  47.         <!-- end .myMenu --></div>
  48.     <div id="content">
  49.         <h2>Aides</h2>
  50.         <table>
  51.         <tr><th>First Name</th><th>Last Name</th><th>Phone Number</th><th>Active</th><th>Notes</th></tr>
  52. <?php
  53. while($row = mysql_fetch_array($arr)){
  54.     ?>        
  55. <tr><td>
  56. <form name="aides_list" action="edit_aides.php" method="POST">
  57.     <input type="hidden" name="id_aides" value="<?php echo $row['id_aides'];?>">
  58.     <input type="text" name="aides_fn" value="<?php echo $row['aides_fn'];?>">
  59.     <input type="text" name="aides_fn" value="<?php echo $row['aides_ln'];?>">
  60.     <input type="text" name="aides_fn" value="<?php echo $row['aides_fn'];?>">
  61.     <input type="text" name="aides_fn" value="<?php echo $row['aides_ptn'];?>">
  62.     <input type="checkbox" name="aides_fn" value="<?php echo $row['aides_active'];?>">
  63.     <input type="textarea" name="aides_notes" value="<?php echo $row['aides_notes'];?>">
  64.     <input type="submit" name="editAides" vaue="edit">
  65. </form></td>
  66. <?php
  67. echo"</tr>\n";
  68. endwhile;
  69. mysqli_free_result($arr);
  70. ?>
  71. </table>
  72. <!-- end .content --></div>
  73. <!-- end content-container --></div>
  74. <div id="footer-container">
  75. <div id="footer">website powered by <a href="http://www.mbcinteractive.com/" target="_blank">MBC Interactive</a>
  76. <!-- end .footer --></div>
  77. <!-- end footer-container --></div>
  78. </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement