Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_cache_limiter();
- session_start();
- //include config and functions pages
- include ('config.php');
- include ('functions.php');
- //Group Access
- if(allow_access(Administrators)!= "yes")
- {
- //no access
- include('no_access.html');
- exit;
- }
- adminheader('Add A Car');
- $drivers = drivers();
- ?>
- <div id="content">
- <h2>Add A Car</h2>
- <form method="post" name="form1" action="add_car.php">
- <table align="left">
- <tr valign="baseline">
- <td nowrap align="right">Car Year:</td>
- <td><input type="text" name="car_year" value="" size="32"></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right">Car Make/Model:</td>
- <td><input type="text" name="car_make_model" value="" size="32"></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right">Car Color:</td>
- <td><input type="text" name="car_color" value="" size="32"></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right">Plate Number:</td>
- <td><input type="text" name="car_plate" value="" size="32"></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right">Vin Number:</td>
- <td><input type="text" name="car_vin" value="" size="32"></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right">Car Type:</td>
- <td><input type="text" name="car_type" value="" size="32"></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right">Active:</td>
- <td><input name="car_active" type="checkbox" value="1" checked="checked" ></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right">Assigned Driver:</td>
- <td><select name="Assigned Driver"><?php echo "select name='id_drivers'>";
- for each($drivers as $d){
- echo "<option value='".$d['id_auth'}."'>".$d['auth_fn']AND['auth_ln']."</option>";
- }
- echo"</select>";
- ?></td></tr>
- <tr valign="baseline">
- <td nowrap align="right">Notes:</td>
- <td><input type="text" name="car_notes" value="" size="32"></td>
- </tr>
- <tr valign="baseline">
- <td nowrap align="right"> </td>
- <td><input type="submit" value="Add Car"></td>
- </tr>
- </table>
- <input type="hidden" name="MM_insert" value="form1">
- </form>
- <!-- end .content --></div>
- <!-- end content-container --></div>
- <?php include 'footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement