1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- // require "connectionDb.php";
- // if (isset($_POST['edit']) && isset($_POST['id']) && isset($_POST['username']) ) {
-
- // $id = $_POST['id'];
- // $username = $_POST['username'];
- // $creditSale = $_POST['creditSale'];
- // //$vehicle_id = $_POST['vehicle_id'];
- // //$number = $_POST['number'];
-
- // $sql ="UPDATE customer SET name='$username',credit_sale='$creditSale' WHERE id='$id'";
- // //$sql2 ="UPDATE vehicle SET number='$number' WHERE id='$vehicle_id'";
- // $db->exec($sql);
- // //$db->exec($sql2);
- // echo '<script>window.location.href="index.php"</script>';
- // }
-
- ?>
- <style type="text/css">
- .editStatus {
- display: none;
- }
- </style>
- <div class="container editStatus" id="editStatus">
- <form class="form-horizontal" action="" method="post">
- <div class="form-group">
- <label class="control-label col-sm-2"> Id </label>
- <div class="col-sm-10">
- <input type="number" name="id" id="id">
- </div>
- </div>
-
- <div class="form-group">
- <label class="control-label col-sm-2"> Status </label>
- <div class="col-sm-4">
- <select class="col-sm-6" name="status" id="status">
- <option value="Successful">Successful</option>
- <option value="Canceled">Canceled</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <input type="submit" name="edit" value="Submit">
- <input type="button" value="Cancel" onclick="document.getElementById('editStatus').style.display = 'none';">
- </div>
- </div>
- </form>
- </div>
|