Advertisement
tjromano

select driver

Aug 28th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.31 KB | None | 0 0
  1. <?php
  2. session_cache_limiter();
  3. session_start();
  4.  
  5. //include config and functions pages
  6. include ('config.php');
  7. include ('functions.php');
  8.  
  9. //Group Access
  10. if(allow_access(Administrators)!= "yes")
  11. {
  12. //no access
  13. include('no_access.html');
  14. exit;
  15. }
  16. adminheader('Add A Car');
  17. $drivers = drivers();
  18. ?>
  19.  
  20.     <div id="content">
  21.         <h2>Add A Car</h2>
  22.         <form method="post" name="form1" action="add_car.php">
  23.   <table align="left">
  24.     <tr valign="baseline">
  25.       <td nowrap align="right">Car Year:</td>
  26.       <td><input type="text" name="car_year" value="" size="32"></td>
  27.     </tr>
  28.     <tr valign="baseline">
  29.       <td nowrap align="right">Car Make/Model:</td>
  30.       <td><input type="text" name="car_make_model" value="" size="32"></td>
  31.     </tr>
  32.     <tr valign="baseline">
  33.       <td nowrap align="right">Car Color:</td>
  34.       <td><input type="text" name="car_color" value="" size="32"></td>
  35.     </tr>
  36.     <tr valign="baseline">
  37.       <td nowrap align="right">Plate Number:</td>
  38.       <td><input type="text" name="car_plate" value="" size="32"></td>
  39.     </tr>
  40.     <tr valign="baseline">
  41.       <td nowrap align="right">Vin Number:</td>
  42.       <td><input type="text" name="car_vin" value="" size="32"></td>
  43.     </tr>
  44.     <tr valign="baseline">
  45.       <td nowrap align="right">Car Type:</td>
  46.       <td><input type="text" name="car_type" value="" size="32"></td>
  47.     </tr>
  48.     <tr valign="baseline">
  49.       <td nowrap align="right">Active:</td>
  50.       <td><input name="car_active" type="checkbox" value="1" checked="checked" ></td>
  51.     </tr>
  52.     <tr valign="baseline">
  53.       <td nowrap align="right">Assigned Driver:</td>
  54.     <td><select name="Assigned Driver"><?php echo "select name='id_drivers'>";
  55.     for each($drivers as $d){
  56.         echo "<option value='".$d['id_auth'}."'>".$d['auth_fn']AND['auth_ln']."</option>";
  57.         }
  58.         echo"</select>";
  59.         ?></td></tr>
  60.     <tr valign="baseline">
  61.       <td nowrap align="right">Notes:</td>
  62.       <td><input type="text" name="car_notes" value="" size="32"></td>
  63.     </tr>
  64.     <tr valign="baseline">
  65.       <td nowrap align="right">&nbsp;</td>
  66.       <td><input type="submit" value="Add Car"></td>
  67.     </tr>
  68.   </table>
  69.   <input type="hidden" name="MM_insert" value="form1">
  70. </form>
  71.        
  72. <!-- end .content --></div>
  73. <!-- end content-container --></div>
  74. <?php include 'footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement