first commit
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<form>
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Note: You have assigned a transporter. The transporter did not confirm yet. You can still release and resigned if not confirmed on time. </h6>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 100px">
|
||||
<b>Assigned <br>Transporter :</b>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table text-nowrap">
|
||||
<tr>
|
||||
<td>
|
||||
<?=$assign_detail?><br><?=$assign_phone?>
|
||||
</td>
|
||||
<td style="width: 80px;">
|
||||
<button type="button" class="btn btn-info btn-xs" onclick="return AssignFormRelease(this.form);">Release</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<b>Translator :</b>
|
||||
</td>
|
||||
<td>
|
||||
Yes <b>Language :</b> French - THIS SECTION WILL BE IMPLENETED - STILL PENDING
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Cancel Request :</b>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table text-nowrap"><tr><td><?=$cancel_reason_combo?></td><td style="width: 100px;"><button type="button" onclick="return AssignCancel(this.form);" class="btn btn-warning btn-xs">Cancel</button> </td></tr> </table>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function AssignFormRelease(form) {
|
||||
alert(form);
|
||||
return false;
|
||||
}
|
||||
function AssignCancel(form) {
|
||||
// recomended_list
|
||||
alert(form.search_list);
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
<form>
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Note: When you assigned a transporter. The transporter will still have to confirm or be confirmed for the transport to be ready for service delivery. </h6>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table text-stripped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 120px">
|
||||
<b>Assign Transporter :</b>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table text-stripped">
|
||||
<tr>
|
||||
<td style="width: 20px;"><input type="radio" id="optradio1" name="optradio" value="recomended" onchange="return OptRadioChanged(this,1);"></td>
|
||||
<td>
|
||||
<?= $recomended_list ?>
|
||||
</td>
|
||||
<td style="width: 80px;">
|
||||
<button type="button" name="buttonPendingFormAssignRecomended" class="btn btn-info btn-xs" onclick="return PendingFormAssignRecomended(this);">Assign</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td > <input type="radio" name="optradio" value="search" onchange="return OptRadioChanged(this,2);"></td>
|
||||
<td>
|
||||
<?= $search_list ?>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" name="buttonPendingFormAssignSearch" class="btn btn-info btn-xs" onclick="return PendingFormAssignSearch(this);">Assign</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
Based on selection - the distance of transport to the origin will be computer dynamically - to be implemented later.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Translator :</b>
|
||||
</td>
|
||||
<td>
|
||||
Yes <b>Language :</b> French - THIS SECTION WILL BE IMPLENETED - STILL PENDING
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Cancel Request :</b>
|
||||
</td>
|
||||
<td>
|
||||
<table class="table text-nowrap"><tr><td><?=$cancel_reason_combo?></td><td style="width: 100px;"><button type="button" class="btn btn-warning">Cancel</button> </td></tr> </table>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function OptRadioChanged(control,which) {
|
||||
//alert(control.checked+"/"+which);
|
||||
control.form.buttonPendingFormAssignRecomended.disabled = which==1 ? false : true;
|
||||
control.form.buttonPendingFormAssignSearch.disabled = which==1 ? true : false;
|
||||
control.form.recomended_list.disabled = which==1 ? false : true;
|
||||
control.form.search_list.disabled = which==1 ? true : false;
|
||||
return true;
|
||||
}
|
||||
function PendingFormAssignRecomended(button) {
|
||||
var transport_id = '<?= $rect["id"] ?>';
|
||||
var transporter_id = button.form.recomended_list.value;
|
||||
if (transporter_id<1) {
|
||||
alert('Please select transporter');
|
||||
return false;
|
||||
}
|
||||
//$('#transp_detail').html('Processing...');
|
||||
button.disabled = true;
|
||||
$.ajax({
|
||||
url: "/transp/assignTranspoter?transport_id=" + transport_id + "&transporter_id=" + transporter_id
|
||||
}).done(function (data) {
|
||||
button.disabled = false;
|
||||
if (data=='0') {
|
||||
alert('Transporter was set');
|
||||
processPendTransp(transport_id);
|
||||
}
|
||||
//$('#transp_detail').html(data);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
function PendingFormAssignSearch(button) {
|
||||
var transport_id = '<?= $rect["id"] ?>';
|
||||
var transporter_id = button.form.search_list.value;
|
||||
if (transporter_id<1) {
|
||||
alert('Please select transporter');
|
||||
return false;
|
||||
}
|
||||
//$('#transp_detail').html('Processing...');
|
||||
button.disabled = true;
|
||||
$.ajax({
|
||||
url: "/transp/assignTranspoter?transport_id=" + transport_id + "&transporter_id=" + transporter_id
|
||||
}).done(function (data) {
|
||||
button.disabled = false;
|
||||
if (data=='0') {
|
||||
alert('Transporter was set');
|
||||
processPendTransp(transport_id);
|
||||
}
|
||||
//$('#transp_detail').html(data);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
var optradio = document.getElementById('optradio1');
|
||||
optradio.checked = true;
|
||||
OptRadioChanged(optradio,1);
|
||||
// -->
|
||||
</script>
|
||||
<!--
|
||||
vi:ts=2
|
||||
-->
|
||||
@@ -0,0 +1,135 @@
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title bg-info text-white">Transport Request for : <b><?= $rect['firstname'] ?> <?= $rect['lastname'] ?></b> </h6>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 110px">
|
||||
<b>Account :</b>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" onclick="openMemberID(<? echo $rect['member_id']; ?>);" class="letter-icon-title"> <?= $rect['req_firstname'] ?> <?= $rect['req_lastname'] ?> <b>Username : </b><?= $rect['req_username'] ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="width: 110px">
|
||||
<b>Patient :</b>
|
||||
</td>
|
||||
<td>
|
||||
<?= $rect['firstname'] ?> <?= $rect['lastname'] ?> <b>Phone : </b><?= $rect['from_phone'] ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Transport :</b>
|
||||
</td>
|
||||
<td>
|
||||
<b>Destination :</b> <?= $rect['to_street'] ?>,<?= $rect['to_city'] ?>,<?= $rect['to_state'] ?>,<?= $rect['to_zipcode'] ?>
|
||||
<br><b>Origin :</b> <?= $rect['from_street'] ?>,<?= $rect['from_city'] ?>,<?= $rect['from_state'] ?>,<?= $rect['from_zipcode'] ?>
|
||||
<br><b>Date and Time : </b><?= $rect['transport_date'] ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Distance:</b>
|
||||
</td>
|
||||
<td>
|
||||
<?= $rect['miles'] ?> Miles
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Translator:</b>
|
||||
</td>
|
||||
<td>
|
||||
<? echo $rect['translate'] == 1 ? 'Yes' : 'No'; ?> <b>Language :</b> <? echo $rect['translate'] == 1 ? $rect['lang_code'] . '-' . $rect['language'] : 'Not Apllicable'; ?> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Others:</b>
|
||||
</td>
|
||||
<td>
|
||||
WheelChairs Required, Need Assistance Walking, Concierge Required </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<b>Payment:</b>
|
||||
</td>
|
||||
<td>
|
||||
This area reserved for payment data presentation </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr style="background-color: #bfd1f0">
|
||||
<td >
|
||||
<b>Action:</b>
|
||||
</td>
|
||||
<td>
|
||||
<!--
|
||||
if - status | flags | dist_mode | miles
|
||||
define('PENDING', 0);
|
||||
define('ASSIGNED', 1);
|
||||
define('CONFIRMED', 2);
|
||||
define('CANCELLED', 3);
|
||||
define('INPROGRESS', 4);
|
||||
define('COMPLETED', 5);
|
||||
|
||||
define('SETTLED', 9);
|
||||
and $rect['flags'] == 0
|
||||
|
||||
-->
|
||||
<?
|
||||
if ($rect['status'] == 1 AND $rect['dist_mode'] != '' and $rect['miles'] > 0) {
|
||||
|
||||
switch ($rect['flags']) {
|
||||
case PENDING:
|
||||
include 'pend_form.php';
|
||||
break;
|
||||
case ASSIGNED:
|
||||
include 'assign_form.php';
|
||||
break;
|
||||
case CONFIRMED:
|
||||
include 'confirm_form.php';
|
||||
break;
|
||||
case INPROGRESS:
|
||||
include 'progress_form.php';
|
||||
break;
|
||||
case COMPLETED:
|
||||
include 'completed_form.php';
|
||||
break;
|
||||
case SETTLED:
|
||||
include 'settled_form.php';
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
echo 'Wait for distance computation to continue';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >
|
||||
<b>Dump :</b>
|
||||
</td>
|
||||
<td>
|
||||
<?
|
||||
print_r($selected_transport);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,58 @@
|
||||
<!-- Recent Transporters -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title">Recent Transporters[10 max]</h6>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="sales-heatmap"></div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Transporter</th>
|
||||
<th>City</th>
|
||||
<th>State</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
foreach ($transports_list as $trsp) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="media-left media-middle">
|
||||
<a href="#" class="btn bg-primary-400 btn-rounded btn-icon btn-xs">
|
||||
<span class="letter-icon"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="media-body">
|
||||
<div class="media-heading">
|
||||
<a href="#" onclick="openTranspID(<? echo $trsp->id; ?>);" class="letter-icon-title"><?= $trsp->transporter ?></a>
|
||||
</div>
|
||||
|
||||
<div class="text-muted text-size-small"><?= $trsp->phone ?></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span class="text-muted text-size-small"> <?= $trsp->city ?> </span>
|
||||
</td>
|
||||
<td>
|
||||
<h6 class="text-semibold no-margin"> <?= $trsp->state ?> </h6>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Transporters -->
|
||||
@@ -0,0 +1,101 @@
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<!-- Support tickets -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 50px">Due</th>
|
||||
<th style="width: 180px;">User</th>
|
||||
<th>Destination/Origin</th>
|
||||
<th style="width: 110px;">Date/Time</th>
|
||||
<th style="width: 80px;">Dist.</th>
|
||||
<th class="text-center" style="width: 20px;"><i class="icon-arrow-down12"></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($transport_request as $rect) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<h6 class="no-margin"><?= $rect->day_gap ?> <small class="display-block text-size-small no-margin">days</small></h6>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<div class="media-body">
|
||||
<a href="#" class="display-inline-block text-default text-semibold letter-icon-title"><? echo $rect->firstname; ?> <? echo $rect->lastname; ?></a>
|
||||
<div class="text-muted text-size-small"><span class="status-mark border-blue position-left"></span> - No transporter set</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<span class="text-semibold"><? echo $rect->to_street; ?>, <? echo $rect->to_city; ?>, <? echo $rect->to_zipcode; ?>, <? echo $rect->to_state; ?></span>
|
||||
<span class="display-block text-muted"><? echo $rect->from_street; ?>, <? echo $rect->from_city; ?>, <? echo $rect->from_zipcode; ?>, <? echo $rect->from_state; ?></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<? echo $rect->transport_date; ?>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<?= $rect->miles ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<button type="button" id="acc<?=$rect->id?>" class="btn btn-info btn-xs" onclick="processPendTransp(<?= $rect->id ?>);" >View</button>
|
||||
<!-- button type="button" id="vacc<?=$rect->id?>" class="btn btn-warning btn-xs" onclick="manageTranspID(<?= $rect->id ?>);" >Mng.</button -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /support tickets -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat">
|
||||
<div id="transp_detail">
|
||||
<div class="thumbnail">
|
||||
<div class="thumb">
|
||||
<img src="/assets/images/pending_action1.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function processPendTransp(link_id) {
|
||||
|
||||
$('#transp_detail').html('Processing...');
|
||||
$('#acc' + link_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/selpending?proc=PROCESS&transp_id=" + link_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#acc' + link_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-8">
|
||||
<!-- Form horizontal -->
|
||||
<div class="panel panel-flat">
|
||||
<!-- div class="panel-heading">
|
||||
<h5 class="panel-title">Add New Transporter</h5>
|
||||
</div -->
|
||||
|
||||
<div class="panel-body">
|
||||
<form class="form-horizontal" action="/transp/addnew" method='POST'>
|
||||
<fieldset class="content-group">
|
||||
<legend class="text-bold">Add New Transporter</legend>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">Created by</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" readonly="readonly" value='Web Admin'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">Transporter</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" name='transporter' value='<?= $transporter ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">Contact Name</label>
|
||||
<div class="col-lg-5">
|
||||
<input type="text" class="form-control" name='firstname' placeholder='Firstname' value='<?= $firstname ?>'>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<input type="text" class="form-control" name='lastname' placeholder='Lastname'value='<?= $lastname ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">Email/Username</label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" class="form-control" name='username' placeholder='Email as Username' value='<?= $username ?>'>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<input type="password" class="form-control" name='password' placeholder='Password'>
|
||||
</div>
|
||||
</div>
|
||||
<legend class="text-bold">Address</legend>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">Address</label>
|
||||
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" name="street" placeholder='Street Address' value='<?= $street ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">Zip Code/Phone</label>
|
||||
<div class="col-lg-5">
|
||||
<input type="text" class="form-control" name="zipcode" placeholder='Zip code' value='<?= $zipcode ?>'>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<input type="text" class="form-control" name="phone" placeholder='Phone' value='<?= $phone ?>'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">City/State</label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" class="form-control" name="city" value='<?= $city ?>' placeholder='City'>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<select name="state" class="form-control">
|
||||
<option value="GA">Georgia</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-primary">Next <i class="icon-arrow-right14 position-right"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- /form horizontal -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<? include 'recent_transporter_side_list.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-lg-8">
|
||||
<!-- Search Form -->
|
||||
<div class="panel panel-flat">
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
<form class="form-horizontal" action="#" method='POST'>
|
||||
<fieldset class="content-group">
|
||||
<legend class="text-bold">Find Transporter</legend>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-2">
|
||||
Search By
|
||||
</label>
|
||||
<div class="col-lg-3">
|
||||
<select class="form-control" name ='searchparam'>
|
||||
<option value="transporter">Transporter</option>
|
||||
<option value="email">Email</option>
|
||||
<option value="phone">Phone Number</option>
|
||||
<option value="zipcode">Zip Code</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<input type="text" class="form-control" placeholder='Enter Search Text' name="searchtext" value='<?= $searchtext ?>'>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
<button type="submit" class="btn btn-primary">Submit <i class="icon-arrow-right14 position-right"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Search Form -->
|
||||
|
||||
<!-- Result Form -->
|
||||
<div class="panel-body">
|
||||
|
||||
|
||||
<!-- Support tickets -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="table-responsive">
|
||||
<table class="table text-stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 100px">Phone</th>
|
||||
<th style="width: 300px;">Transporter</th>
|
||||
<th>Address</th>
|
||||
<th class="text-center" style="width: 20px;"><i class="icon-arrow-down12"></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<?
|
||||
foreach ($transporter_search as $rest) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<h6 class="no-margin"><?= $rest->phone ?> <small class="display-block text-size-small no-margin"><a href='#' onclick="openTransporterID(<? echo $rest->id; ?>);" >Select</a></small></h6>
|
||||
</td>
|
||||
<td>
|
||||
<div class="media-body">
|
||||
<a href="#" onclick="openTranspID(<? echo $rest->id; ?>);" class="display-inline-block text-default text-semibold letter-icon-title"><?= $rest->agent_name ?> </a>
|
||||
<div class="text-muted text-size-small"> <?= $rest->username ?></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<span class="text-semibold"><?= $rest->street ?></span>
|
||||
<span class="display-block text-muted"> <?= $rest->city ?> <?= $rest->state ?> <?= $rest->zipcode ?></span>
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<ul class="icons-list">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i></a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#"><i class="icon-undo"></i> Quick reply</a></li>
|
||||
<li><a href="#"><i class="icon-history"></i> Full history</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-checkmark3 text-success"></i> Resolve issue</a></li>
|
||||
<li><a href="#"><i class="icon-cross2 text-danger"></i> Close issue</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /support tickets -->
|
||||
|
||||
</div>
|
||||
<!-- /Result Form -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-lg-4">
|
||||
<? include 'recent_transporter_side_list.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<!-- Support tickets -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 50px">Due</th>
|
||||
<th style="width: 180px;">User</th>
|
||||
<th>Destination/Origin</th>
|
||||
<th style="width: 110px;">Date/Time</th>
|
||||
<th style="width: 80px;">Dist.</th>
|
||||
<th class="text-center" style="width: 20px;"><i class="icon-arrow-down12"></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($transport_request as $rect) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<h6 class="no-margin"><?= $rect->day_gap ?> <small class="display-block text-size-small no-margin">days</small></h6>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<div class="media-body">
|
||||
<a href="#" class="display-inline-block text-default text-semibold letter-icon-title"><? echo $rect->firstname; ?> <? echo $rect->lastname; ?></a>
|
||||
<div class="text-muted text-size-small"><span class="status-mark border-blue position-left"></span> - No transporter set</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<span class="text-semibold"><? echo $rect->to_street; ?>, <? echo $rect->to_city; ?>, <? echo $rect->to_zipcode; ?>, <? echo $rect->to_state; ?></span>
|
||||
<span class="display-block text-muted"><? echo $rect->from_street; ?>, <? echo $rect->from_city; ?>, <? echo $rect->from_zipcode; ?>, <? echo $rect->from_state; ?></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<? echo $rect->transport_date; ?>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<?= $rect->miles ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<button type="button" id="acc<?=$rect->id?>" class="btn btn-info btn-xs" onclick="processPendTransp(<?= $rect->id ?>);" >View</button>
|
||||
<!-- button type="button" id="vacc<?=$rect->id?>" class="btn btn-warning btn-xs" onclick="manageTranspID(<?= $rect->id ?>);" >Mng.</button -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /support tickets -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat">
|
||||
<div id="transp_detail">
|
||||
<div class="thumbnail">
|
||||
<div class="thumb">
|
||||
<img src="/assets/images/pending_action3.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function processPendTransp(link_id) {
|
||||
|
||||
$('#transp_detail').html('Processing...');
|
||||
$('#acc' + link_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/selpending?proc=PROCESS&transp_id=" + link_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#acc' + link_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="panel panel-flat">
|
||||
<div class="table-responsive">
|
||||
<div class="panel-body">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<!-- Support tickets -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="table-responsive">
|
||||
<div class="panel-body">
|
||||
|
||||
|
||||
Start
|
||||
|
||||
<hr size="1">
|
||||
Middle
|
||||
|
||||
<hr size="1">
|
||||
More
|
||||
|
||||
<hr size="1">
|
||||
More
|
||||
|
||||
<hr size="1">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /support tickets -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat">
|
||||
<div id="transp_detail">
|
||||
<div class="thumbnail">
|
||||
<div class="thumb">
|
||||
<img src="/assets/images/placeholder.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
<!-- Dashboard content -->
|
||||
<div class="row">
|
||||
<div class="panel panel-flat">
|
||||
<div class="table-responsive">
|
||||
<div class="panel-body">
|
||||
<h5> <b> Selected Transporter :</b> <?= $_SESSION['selected_transporter_row']->transporter ?> Address : <?= $_SESSION['selected_transporter_row']->street ?> Phone <?= $_SESSION['selected_transporter_row']->phone ?> </h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<!-- Support tickets -->
|
||||
|
||||
|
||||
<div class="panel panel-flat">
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="tabbable">
|
||||
<ul class="nav nav-tabs nav-tabs-bottom">
|
||||
<li class="active"><a href="#bottom-tab1" data-toggle="tab">Pending Transport</a></li>
|
||||
<li><a href="#bottom-tab2" data-toggle="tab">Locations</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="bottom-tab1">
|
||||
|
||||
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 50px">Due</th>
|
||||
<th style="width: 300px;">User</th>
|
||||
<th>Destination/Origin</th>
|
||||
<th style="width: 100px;">Date/Dist.</th>
|
||||
<th class="text-center" style="width: 20px;"><i class="icon-arrow-down12"></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($transport_request as $rect) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<h6 class="no-margin"><?= $rect->day_gap ?> <small class="display-block text-size-small no-margin">days</small></h6>
|
||||
</td>
|
||||
<td>
|
||||
<div class="media-body">
|
||||
<a href="#" class="display-inline-block text-default text-semibold letter-icon-title"><? echo $rect->firstname; ?> <? echo $rect->lastname; ?></a>
|
||||
<div class="text-muted text-size-small"><span class="status-mark border-blue position-left"></span> Active</div> - No transporter set
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<span class="text-semibold"><? echo $rect->to_street; ?>, <? echo $rect->to_city; ?>, <? echo $rect->to_zipcode; ?>, <? echo $rect->to_state; ?></span>
|
||||
<span class="display-block text-muted"><? echo $rect->from_street; ?>, <? echo $rect->from_city; ?>, <? echo $rect->from_zipcode; ?>, <? echo $rect->from_state; ?></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<? echo $rect->transport_date; ?><br>
|
||||
0.00 Miles
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<button type="button" class="btn btn-warning btn-xs" onclick="processMyTranspPenig(<?= $rect->id ?>);" >Manage</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="bottom-tab2">
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-info">Add New Location<i class="icon-arrow-right14 position-right"></i></button>
|
||||
</div>
|
||||
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Locations</th>
|
||||
<th class="text-center" style="width: 20px;"><i class="icon-arrow-down12"></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
foreach ($transport_location as $rect) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<a href="#" class="text-default display-inline-block">
|
||||
<span class="text-semibold"><? echo $rect->street; ?>, <? echo $rect->city; ?>, <? echo $rect->zipcode; ?>, <? echo $rect->state; ?></span>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="text-center">
|
||||
<button type="button" class="btn btn-warning btn-xs" onclick="processMyTranspPenig(<?= $rect->id ?>);" >Manage</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /support tickets -->
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<!-- Recent Members -->
|
||||
<div class="panel panel-flat">
|
||||
<div id="transp_detail">
|
||||
<div class="thumbnail">
|
||||
<div class="thumb">
|
||||
<img src="/assets/images/placeholder.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Recent Members -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /dashboard content -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function processPendTransp(link_id) {
|
||||
if (confirm("Are you sure you want to process this trasport?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
$('#transp_detail').html('Processing...');
|
||||
$('#acc' + link_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/transp/selpending?proc=PROCESS&transp_id=" + link_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
document.offer_individual.rec_email.value = '';
|
||||
$('#acc' + link_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user