<div id='container'> <div class='title'> Flight List : <?php ContextManager::ValidationFor("warning-l"); ?> </div> <?php $attr = new ArrayIterator(); $attr->offsetSet("method", "post"); ContextManager::BeginForm("Flight", "Modify", $attr); ?> <table width="100%" class="table table-heading borderless"> <tr class =""> <th>S/N</th> <th>Flight Name</th> <th>Source</th> <th>Destination</th> <th>Boarding Date</th> <th>Arrival Date</th> <th>Boarding Time</th> <th>Arrival Time</th> <th>Stops</th> <th>Price Rate</th> <th>Status</th>
$pList = $model->planes->GetAllPlanes(); ?> <?php $attr = new ArrayIterator(); $attr->offsetSet("method", "post"); $attr->offsetSet("class", "form form-horizontal"); if ($model->seat->mode == "edit") { ContextManager::BeginForm("Seat", "Update", $attr); $fieldsArray = new ArrayIterator(); $fieldsArray->offsetSet("type", "hidden"); $fieldsArray->offsetSet("value", $model->seat->id); ContextManager::HtmlInputField("txtid", $fieldsArray); } else { ContextManager::BeginForm("Seat", "Create", $attr); } ?> <div class='title'>Set Flight Seats</div> <div class="form-group"> <?php ContextManager::ValidationFor("warning"); ?> </div> <div class="form-group inline-fields sm-1 "> <label>Select Plane</label> <select type="text" class="form-control" name ="txtplaneid" id="txtplaneid" placeholder="">
<?php include_once "entities/Flight.php"; include_once "models/FlightModel.php"; $model = new FlightModel(); $flightList = $model->GetAllDistinctFlights(); ?> <?php $object = new ArrayIterator(); $object->offsetSet("method", "post"); $object->offsetSet("class", "form form-horizontal "); ContextManager::BeginForm("Flight", "Search", $object); ?> <?php if (Session::get("db_username") == null) { ?> <div class="title border-sm-1">Search Flights</div> <?php } else { ?> <div class="title borderless ">Agent Flights Search </div> <?php } ?>
include_once "modelviews/SeatModelView.php"; include_once "entities/Seat.php"; $model = new SeatModelView(); } if ($model->seatModel == null) { $model->seatModel = new SeatModel(); } $aSeats = $model->seatModel->All(); ?> <!-- Begin form--> <?php $attr = new ArrayIterator(); $attr->offsetSet("method", "post"); $attr->offsetSet("class", "form form-horizontal"); ContextManager::BeginForm("Seat", "Modify", $attr); ?> <div class='title'>List of Plane Seats</div> <?php ContextManager::ValidationFor("warning-l"); ?> <table width="100%" class="table table-striped table-hover table-responsive"> <tr> <th>S/N</th> <th>Type</th> <th>Seat N<u>o</u></th> <th>Description</th> </tr>
<script> $(function () { }) </script> <?php $attr = new ArrayIterator(); $attr->offsetSet("method", "post"); $attr->offsetSet("class", "form form-horizontal"); if ($model->plane->mode != 'edit') { ContextManager::BeginForm("Plane", "Create", $attr); } else { ContextManager::BeginForm("Plane", "SaveChanges", $attr); $attrFlied = new ArrayIterator(); $attrFlied->offsetSet("value", $model->plane->Id); $attrFlied->offsetSet("type", "hidden"); ContextManager::HtmlInputField("id", $attrFlied); } ?> <div class='title'>Add new plane...</div> <div class="form-group"> <?php ContextManager::ValidationFor("warning"); ?> </div>
$("#txtLandindDate").datepicker({dateFormat: "dd/mm/yy"}); }) </script> <?php $attr = new ArrayIterator(); $attr->offsetSet("method", "post"); $attr->offsetSet("class", "form form-horizontal form-5-sm form-wrapper"); if ($model->flight->mode == "edit") { ContextManager::BeginForm("Flight", "SaveChange", $attr); $attr1 = new ArrayIterator(); $attr1->offsetSet("type", "hidden"); $attr1->offsetSet("name", "txtid"); $attr1->offsetSet("value", $model->flight->Id); ContextManager::HtmlInputField("txtID", $attr); } else { ContextManager::BeginForm("Flight", "Create", $attr); } ?> <div class='title'>Add Flight's Details</div> <div class="form-group"> <?php ContextManager::ValidationFor("warning"); ?> </div> <div class="form-group inline-fields sm-1"> <label >Select Flight</label>
if ($year == null) { $year = date("Y", time()); } $number = cal_days_in_month(CAL_GREGORIAN, $intMonth, $year); return intval($number); } ?> <div class="row"> <div class="col-sm-5 search-panel"> <?php $object = new ArrayIterator(); $object->offsetSet("class", "form form-horizontal"); $object->offsetSet("method", "post"); ContextManager::BeginForm("Flight", "TimesTable", $object); ?> <div class='title'>Search Flights's Time Table</div> <div class="form-group inline-fields sm-1"> <label for="txtFrom">Location From:</label> <select id='txtFrom' name='txtFrom' class='form-control'> <option value="">source...</option> <?php foreach ($flightList as $flight) { echo "<option value='{$flight->from}' >{$flight->from}</option>"; } ?> </select>
$model = new PlaneModelView(); } if ($model->planeModel == null) { $model->planeModel = new PlaneModel(); } $list = $model->planeModel->GetAllPlanes(); if ($model->plane != null) { $planeTem = $model->plane; } ?> <div class='container'> <?php $attr = new ArrayIterator(); $attr->offsetSet("method", "post"); ContextManager::BeginForm("Plane", "Modify", $attr); ?> <div class='title'>Planes Information: </div> <?php ContextManager::ValidationFor("warning-l"); ?> <table width="100%" class='table table-responsive borderless'> <tr> <th>S/N</th> <th>Name</th> <th>Total Seats</th> <th>Description</th> <th>#</th> </tr> <?php