Advertisement
tjromano

list_aides page

Aug 23rd, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.33 KB | None | 0 0
  1. <?php
  2. session_cache_limiter();
  3. session_start();
  4.  
  5. require('config.php');
  6. require('functions.php');
  7.  
  8. //check for administrative rights
  9. if (allow_access(Administrators) != "yes")
  10. {
  11.     include ('no_access.html');
  12.     exit;
  13. }
  14.  
  15. $aides = aides_active();
  16.  
  17. ?>
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html xmlns="http://www.w3.org/1999/xhtml">
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22. <title></title>
  23. <link href="css/style.css" rel="stylesheet" type="text/css">
  24. <link href="css/blueberry.css" rel="stylesheet" type="text/css">
  25. <script src="js/styler.js" type="text/javascript">
  26. </script>
  27. </head>
  28. <body>
  29. <div id="head-container">
  30. <div id="header">
  31. <img src="images/connecticut%20transportation.jpg" />
  32. <!-- end head-container --></div>
  33. <!-- end .header --></div>
  34. <div id="content-container">
  35. <div class="wrap">
  36. <div id="nav">
  37.         <div class="menu">
  38.             <ul>
  39.                 <li><a class="left_nosub" href="cttsadmin_menu.php">Home</a></li>
  40.                 <li><a class="center_hassub" href="">Employees</a>
  41.                     <ul>
  42.                     <li><a href="register.php">Register Employees</a></li>
  43.                     <li><a href="list_aides.php">List Aides</a></li>
  44.                     <li><a href="add_aide_form.php">Add Aide</a></li>
  45.                     <li><a href="list_drivers.php">List Drivers</a></li>
  46.                     <li><a href="add_driver_form.php">Add Driver</a></li>
  47.                     </ul>
  48.                 </li>
  49.                 <li><a class="center_hassub" href="">Clients</a>
  50.                     <ul>
  51.                     <li><a href="list_clients.php">List Clients</a></li>
  52.                     <li><a href="add_client_form.php">Add Client</a></li>
  53.                     </ul>
  54.                 </li>
  55.                 <li><a class="center_hassub" href="">Schools</a>
  56.                     <ul>
  57.                     <li><a href="list_schools.php">List Schools</a></li>
  58.                     <li><a href="add_school_form.php">Add School</a></li>
  59.                     </ul>
  60.                 </li>
  61.                 <li><a class="center_hassub" href="">Routes</a>
  62.                     <ul>
  63.                     <li><a href="">Who We Are</a></li>
  64.                     <li><a href="">What We Do</a></li>
  65.                     <li><a href="">What We Use</a></li>
  66.                     <li><a href="">Client List</a></li>
  67.                     </ul>
  68.                 </li>
  69.                 <li><a class="center_hassub" href="">My Account</a>
  70.                     <ul>
  71.                     <li><a href="email_change_form.php">Change Your Email</a></li>
  72.                     <li><a href="phone_change_form.php">Change Your Phone Number</a></li>
  73.                     <li><a href="pass_change_form.php">Change Your Password</a></li>
  74.                     <li><a href="mail_all.php">Email ALL Employees</a></li>
  75.                     </ul>
  76.                     </li>
  77.                 <li><a class="right_nosub" href="logout.php">Log Out</a>
  78.                 </li>
  79.                     </ul>
  80.                 </li>
  81.             </ul>
  82.         </div>
  83.         </div>
  84.     <!-- end .myMenu --></div>
  85.     <div id="content">
  86.         <h2>Aides</h2>
  87.         <table border="1" cellspacing="2" cellpadding="2">
  88.     <tr>
  89.     <td><font face="Arial, Helvetica, sans-serif">Edit</font></td>
  90.     <td><font face="Arial, Helvetica, sans-serif">First Name</font></td>
  91.     <td><font face="Arial, Helvetica, sans-serif">Last Name</font></td>
  92.     <td><font face="Arial, Helvetica, sans-serif">Phone Number</font></td>
  93.     <td><font face="Arial, Helvetica, sans-serif">Active</font></td>
  94.     <td><font face="Arial, Helvetica, sans-serif">Notes</font></td>
  95.     </tr>
  96.      
  97.     <?php
  98.     foreach ($aides as $row){
  99.        
  100.     ?>
  101.      
  102.     <tr>
  103.     <td><font face="Arial, Helvetica, sans-serif"><a href="edit_aides_form.php?id_aides=<?php echo $row['id_aides'];?>">Edit</a></font></td>
  104.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_fn'];?></font></td>
  105.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_ln'];?></font></td>
  106.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_ptn'];?></font></td>
  107.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_active'];?></font></td>
  108.     <td><font face="Arial, Helvetica, sans-serif"><?php echo $row['aides_notes'];?></font></td>
  109.     </tr>
  110.    
  111.     <?php
  112.      
  113.     }
  114.     ?>
  115.     </table>
  116.     <?php
  117.     echo "Total Records:  $num"
  118.     ?>
  119.     <p>&nbsp;</p>
  120.  
  121. <!-- end .content --></div>
  122. <!-- end content-container --></div>
  123. <div id="footer-container">
  124. <div id="footer">website powered by <a href="http://www.mbcinteractive.com/" target="_blank">MBC Interactive</a>
  125. <!-- end .footer --></div>
  126. <!-- end footer-container --></div>
  127. </body>
  128. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement