first commit

This commit is contained in:
2019-05-25 23:11:05 -04:00
commit 16f48376bc
6139 changed files with 990356 additions and 0 deletions
@@ -0,0 +1,34 @@
<!-- Form horizontal -->
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title"><b><?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?></b>- [<?= $_SESSION['selected_user_row']->username ?>]</h5>
</div>
<div class="panel-body">
<div class="btn-group">
<button type="button" onclick="openMemberpage('profile');" class="btn btn-info">Profile</button>
<button type="button" onclick="openAddNewTransp(<?= $_SESSION['selected_user_row']->member_id ?>);" class="btn btn-info">New Request</button>
<button type="button" onclick="openMemberpage('pending');" class="btn btn-primary">Pending Services</button>
<button type="button" onclick="openMemberpage('payments');" class="btn btn-info">Payments Cards</button>
<button type="button" onclick="openMemberpage('invoice');" class="btn btn-warning">Service Payment</button>
<button type="button" onclick="openMemberpage('report');" class="btn btn-info">Activity Report</button>
</div>
</div>
</div>
<!-- /form horizontal -->
<script type="text/javascript">
<!--
function openAddNewTransp(member_id) {
document.location = "/members/newservice?proc=ADDNEW&&member_id=" + member_id;
return false;
}
function openMemberpage(member_page) {
document.location = "/members/" + member_page;
return false;
}
// -->
</script>
@@ -0,0 +1,102 @@
<div class="panel panel-flat">
<div class="panel-body">
<table class="table">
<thead>
<tr>
<td colspan="5"><b> Recent Service Request(s)</b></td>
</tr>
<tr>
<th style="width: 50px">Due Days</th>
<th style="width: 180px;">User</th>
<th>Agent</th>
<th style="width: 180px;">Service Type</th>
<th style="width: 180px;">Miles/<br>Date & Time</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 ?> days </h6>
</td>
<td>
<div class="media-body">
<a href="#" onclick="openMemberID(<? echo $rect->member_id; ?>);" 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 --> -
</div>
</td>
<td>
<a href="#" class="text-default display-inline-block" onclick="showTranspModal(<? echo $rect->service_request_id; ?>);">
<span class="text-semibold"><? echo $rect->agent_name; ?> </span>
<span class="display-block text-muted"></span>
</a>
</td>
<td>
<? echo $rect->service_type_text; ?>
</td>
<td>
<? echo $rect->miles; ?>
<small class="display-block text-size-small no-margin"><b><?= date("Y-m-d h:i a",strtotime( $rect->service_date))?></b></small>
</td>
<td class="text-center">
<button type="button" id="acc<?= $rect->id ?>" class="btn btn-info btn-xs" onclick="processPendTransp(<?= $rect->id ?>);" >View</button>
<!--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="#" onclick="openMemberID(<? echo $rect->member_id; ?>);"><i class="icon-undo"></i><? echo $rect->firstname; ?> <? echo $rect->lastname; ?> Profile</a></li>
<li><a href="#"><i class="icon-history"></i> Payments</a></li>
<li class="divider"></li>
<li><a href="#" onclick="processPendTransp(<?= $rect->id ?>);" ><i class="icon-checkmark3 text-success"></i>Manage Request</a></li>
</ul>
</li>
</ul -->
</td>
</tr>
<?
}
?>
</tbody>
</table>
</div>
</div>
<script type="text/javascript">
<!--
function processPendTransp(link_id) {
$('#transp_detail').html('Processing...');
$('#acc' + link_id).prop('disabled', true);
$.ajax({
url: "/service/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,181 @@
<!-- Dashboard content -->
<div class="row">
<?
include 'extra/member_head.php';
?>
<div class="col-lg-6">
<!-- Form horizontal -->
<div class="panel panel-flat">
<div class="panel-body">
<form class="form-horizontal" action="/members/transport" method='POST'>
<input type="hidden" name="member_id" value="<?= $_SESSION['selected_user_row']->member_id ?>">
<fieldset class="content-group">
<legend class="text-bold">Transport Request for : <?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?>, <?= $_SESSION['selected_user_row']->street1 ?>,
<?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></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">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>
<legend class="text-bold">From</legend>
<div class="form-group">
<label class="control-label col-lg-2">Address</label>
<div class="col-lg-8">
<input type="text" class="form-control" name="from_street" placeholder='Starting Address' value='<?= $from_street ?>'>
</div>
<div class="col-lg-2">
<input type="text" class="form-control" name="from_aptno" placeholder='Apt No' value='<?= $from_aptno ?>'>
</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="from_zipcode" placeholder='Zip code' value='<?= $from_zipcode ?>'>
</div>
<div class="col-lg-5">
<input type="text" class="form-control" name="from_phone" placeholder='Phone' value='<?= $from_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="from_city" value='<?= $from_city ?>'>
</div>
<div class="col-lg-4">
<select name="from_state" class="form-control">
<option value="GA">Georgia</option>
</select>
</div>
</div>
<legend class="text-bold">Destination</legend>
<div class="form-group">
<label class="control-label col-lg-2">Destination</label>
<div class="col-lg-10">
<select name="loc_address" class="form-control" onchange="if (this.value == '0:0') {
$('#new_location').show('slow');
} else {
$('#new_location').hide('slow');
}">
<?
$dispn = "none";
foreach ($destination_option as $dstt => $value) {
$selt = '';
if ($loc_address == $dstt) {
$selt = " selected ";
}
if ($loc_address == "0:0") {
$dispn = "block";
}
echo "<option value='" . $dstt . "' " . $selt . ">" . $value . "</option>";
}
?>
</select>
</div>
</div>
<div id='new_location' style='background-color: #f5f7de; display:<?= $dispn ?>;'>
<div class="form-group">
<label class="control-label col-lg-2">Address</label>
<div class="col-lg-8">
<input type="text" class="form-control" name="to_street" placeholder='Ending Address' value='<?= $to_street ?>'>
</div>
<div class="col-lg-2">
<input type="text" class="form-control" name="to_aptno" placeholder='Apt No' value='<?= $to_aptno ?>'>
</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="to_zipcode" placeholder='Zip code' value='<?= $to_zipcode ?>'>
</div>
<div class="col-lg-5">
<input type="text" class="form-control" name="to_phone" placeholder='Phone' value='<?= $to_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="to_city" value='<?= $to_city ?>'>
</div>
<div class="col-lg-4">
<select name="to_state" class="form-control">
<option value="GA">Georgia</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Location Type</label>
<div class="col-lg-10">
<select name="loc_type" class="form-control">
<?
foreach ($location_types as $i => $value) {
?>
<option value="<?= $value ?>"><?= $value ?></option>
<?
}
?>
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Date/Time</label>
<div class="col-lg-10">
<div class="content-group">
<div class="input-group">
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-icon" id="ButtonCreationDemoButton"><i class="icon-calendar3"></i></button>
</span>
<input type="text" class="form-control" id="ButtonCreationDemoInput" placeholder="Select a date" name="transport_date" value='2017-10-01 08:30:30'>
</div>
<span class="help-block">Format must be YYYY-MM-DD HH:MM:SS</span>
</div>
</div>
</div>
</fieldset>
<div class="text-right">
<button type="submit" class="btn btn-primary">Submit <i class="icon-arrow-right14 position-right"></i></button>
</div>
</form>
</div>
</div>
<!-- /form horizontal -->
</div>
<div class="col-lg-6">
<?
include 'extra/member_recent.php';
?>
</div>
</div>
<!-- /dashboard content -->
@@ -0,0 +1,201 @@
<?
//print_r($_SESSION['selected_user_row']);
?>
<!-- Dashboard content -->
<div class="row">
<?
include 'extra/member_head.php';
?>
<div class="col-lg-6">
<div class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title">Payment Cards for : <?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?>, <?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></h6>
</div>
<div class="panel-body">
<form class="form-horizontal" method="POST" action="/members/payments">
<input type="hidden" name="member_id" value="<?= $_SESSION['selected_user_row']->member_id ?>">
<fieldset class="content-group">
<legend class="text-bold">Add New Card:</legend>
<div class="form-group">
<label class="control-label col-lg-2">Process 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">Name on Card</label>
<div class="col-lg-10">
<input type="text" class="form-control" name="cardname" value="<?= $cardname ?>" readonly>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Card No</label>
<div class="col-lg-8">
<input type="text" class="form-control" name="cardnumber" placeholder='Card Number' value="<?= $cardnumber ?>">
</div>
<div class="col-lg-2">
<input type="text" class="form-control" name="cvc" placeholder='cvv2' value="<?= $cvc ?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2"></label>
<div class="col-lg-2">
Exp. Month
</div>
<div class="col-lg-3">
<!-- input type="text" class="form-control" name="exp_month" placeholder='exp_month' value="<?= $exp_month ?>" -->
<select name="exp_month" class="form-control">
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August </option>
<option value="09">September</option>
<option value="10">October </option>
<option value="11">November </option>
<option value="12">December </option>
</select>
</div>
<div class="col-lg-2">
Exp. Year
</div>
<div class="col-lg-3">
<!-- input type="text" class="form-control" name="exp_year" placeholder='exp_year' value="<?= $exp_year ?>" -->
<select name="exp_year" class="form-control">
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
</select>
</div>
</div>
<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="street1" value="<?= $street1 ?>" readonly>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">City/Zipcode/State</label>
<div class="col-lg-4">
<input type="text" class="form-control" name="city" placeholder='City..' value="<?= $city ?>" readonly>
</div>
<div class="col-lg-3">
<input type="text" class="form-control" name="zipcode" placeholder="ZipCode" value="<?= $zipcode ?>" readonly>
</div>
<div class="col-lg-3">
<select name="state" class="form-control" readonly>
<option value="GA">Georgia</option>
</select>
</div>
</div>
</fieldset>
<div class="text-left">
<?= $card_save_message ?>
</div>
<div class="text-right">
<button type="submit" class="btn btn-primary">Add Card <i class="icon-arrow-right14 position-right"></i></button>
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-6">
<!-- Recent Members -->
<div class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title">[<b><?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?></b>] - [<?= $_SESSION['selected_user_row']->username ?>]</h6>
</div>
<div class="panel-body">
<div id="sales-heatmap"></div>
</div>
<div class="table-responsive">
<table class="table text-nowrap">
<thead>
<tr>
<th>Address</th>
<th style="width:110px; ">Pry.Phone</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="text-semibold"><?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></span>
</td>
<td>
<h6 class="text-semibold no-margin"><? echo $_SESSION['selected_user_row']->primary_phone; ?></h6>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- /Recent Members -->
<!-- Form horizontal -->
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title">Previous Cards</h5>
</div>
<div class="panel-body">
<?= $other_cards ?>
</div>
<div>
<button id="butdelcard" name="butdelcard" type="submit" onclick="deleteAllPaymentCards(<? echo $_SESSION['selected_user_row']->member_id; ?>);" class="btn btn-primary btn-xs">Delete all & Clear Stripe ID </button> <div id="delcardall"></div>
</div>
</div>
<!-- /form horizontal -->
</div>
</div>
<!-- /dashboard content -->
<script type="text/javascript">
<!--
function deleteAllPaymentCards(member_id) {
$('#delcardall').html('Processing...');
$('#butdelcard').prop('disabled', true);
$.ajax({
url: "/members/deletaallcards?proc=PROCESS&member_id=" + member_id
}).done(function (data) {
$('#delcardall').html(data);
$('#butdelcard').prop('disabled', false);
});
return false;
}
// -->
</script>
@@ -0,0 +1,105 @@
<?
//print_r($_SESSION['selected_user_row']);
?>
<!-- Dashboard content -->
<div class="row">
<?
include 'extra/member_head.php';
?>
<div class="col-lg-6">
<div class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title">New Service : <?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?>, <?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></h6>
</div>
<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">Laundry Pickup</a></li>
<li><a href="#bottom-tab2" data-toggle="tab">Dry Clean Pickup</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="bottom-tab1">
Implement
</div>
<div class="tab-pane" id="bottom-tab2">
Implement
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<!-- Recent Members -->
<div class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title">[<b><?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?></b>] - [<?= $_SESSION['selected_user_row']->username ?>]</h6>
</div>
<div class="panel-body">
<div id="sales-heatmap"></div>
</div>
<div class="table-responsive">
<table class="table text-nowrap">
<thead>
<tr>
<th>Address</th>
<th style="width:110px; ">Pry.Phone</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="text-semibold"><?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></span>
</td>
<td>
<h6 class="text-semibold no-margin"><? echo $_SESSION['selected_user_row']->primary_phone; ?></h6>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- /Recent Members -->
<!-- Form horizontal -->
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title">Payment History</h5>
</div>
<div class="panel-body">
</div>
</div>
<!-- /form horizontal -->
</div>
</div>
<!-- /dashboard content -->
@@ -0,0 +1,194 @@
<?
//print_r($_SESSION['selected_user_row']);
?>
<!-- Dashboard content -->
<div class="row">
<?
include 'extra/member_head.php';
?>
<div class="col-lg-6">
<div class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title">Processing Payment for : <?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?>, <?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></h6>
</div>
<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">New Credit/Debit</a></li>
<li><a href="#bottom-tab2" data-toggle="tab">Previous Credit/Debit</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="bottom-tab1">
<form class="form-horizontal" action="/members/transport">
<input type="hidden" name="member_id" value="<?= $_SESSION['selected_user_row']->member_id ?>">
<fieldset class="content-group">
<legend class="text-bold">Transport Request to :</legend>
<div class="form-group">
<label class="control-label col-lg-2">Process 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">Pending Payment</label>
<div class="col-lg-10">
<?=$invoice_combo?>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Name on Card</label>
<div class="col-lg-10">
<input type="text" class="form-control" name="cardname">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Card No</label>
<div class="col-lg-8">
<input type="text" class="form-control" name="cardno" placeholder='Card Number'>
</div>
<div class="col-lg-2">
<input type="text" class="form-control" name="cvv2" placeholder='cvv2'>
</div>
</div>
<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="street1">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">City/Zipcode/State</label>
<div class="col-lg-4">
<input type="text" class="form-control" name="city" placeholder='City..' >
</div>
<div class="col-lg-3">
<input type="text" class="form-control" name="zipcode" placeholder="ZipCode">
</div>
<div class="col-lg-3">
<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">Process Payment <i class="icon-arrow-right14 position-right"></i></button>
</div>
</form>
</div>
<div class="tab-pane" id="bottom-tab2">
<form class="form-horizontal" action="/members/transport">
<input type="hidden" name="member_id" value="<?= $_SESSION['selected_user_row']->member_id ?>">
<fieldset class="content-group">
<legend class="text-bold">Transport Request to :</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">Pending Payment</label>
<div class="col-lg-10">
<?=$invoice_combo?>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Previous Cards</label>
<div class="col-lg-10">
<?=$user_cards_combo?>
</div>
</div>
</fieldset>
<div class="text-right">
<button type="submit" class="btn btn-primary">Process Payment <i class="icon-arrow-right14 position-right"></i></button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<!-- Recent Members -->
<div class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title">[<b><?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?></b>] - [<?= $_SESSION['selected_user_row']->username ?>]</h6>
</div>
<div class="panel-body">
<div id="sales-heatmap"></div>
</div>
<div class="table-responsive">
<table class="table text-nowrap">
<thead>
<tr>
<th>Address</th>
<th style="width:110px; ">Pry.Phone</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="text-semibold"><?= $_SESSION['selected_user_row']->street1 ?>, <?= $_SESSION['selected_user_row']->street2 ?>,<?= $_SESSION['selected_user_row']->city ?>,<?= $_SESSION['selected_user_row']->state ?>,<?= $_SESSION['selected_user_row']->zipcode ?></span>
</td>
<td>
<h6 class="text-semibold no-margin"><? echo $_SESSION['selected_user_row']->primary_phone; ?></h6>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- /Recent Members -->
<!-- Form horizontal -->
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title">Payment History</h5>
</div>
<div class="panel-body">
</div>
</div>
<!-- /form horizontal -->
</div>
</div>
<!-- /dashboard content -->
@@ -0,0 +1,34 @@
<?
//print_r($_SESSION['selected_user_row']);
?>
<!-- Dashboard content -->
<div class="row">
<?
include 'extra/member_head.php';
?>
<div class="col-lg-6">
<?
include 'extra/member_recent.php';
?>
</div>
<div class="col-lg-6">
<!-- Form horizontal -->
<div class="panel panel-flat">
<div id="transp_detail">
<div class="panel-body">
</div>
</div>
</div>
<!-- /form horizontal -->
</div>
</div>
<!-- /dashboard content -->
@@ -0,0 +1,195 @@
<?
//print_r($_SESSION['selected_user_row']);
?>
<!-- Dashboard content -->
<div class="row">
<?
include 'extra/member_head.php';
?>
<div class="col-lg-6">
<!-- Form horizontal -->
<div class="panel panel-flat">
<div class="panel-body">
<form name="mprofile" class="form-horizontal" method="POST" action="/members/profile">
<fieldset class="content-group">
<legend class="text-bold"><?= $_SESSION['selected_user_row']->firstname ?> <?= $_SESSION['selected_user_row']->lastname ?></legend>
<div class="form-group">
<label class="control-label col-lg-2">Username</label>
<div class="col-lg-10">
<input type="text" class="form-control" placeholder="Enter your username..." value="<?= $_SESSION['selected_user_row']->username ?>" readonly="readonly">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Firstname</label>
<div class="col-lg-10">
<input type="text" class="form-control" name='firstname' value='<?=$firstname ?>'>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Lastname</label>
<div class="col-lg-10">
<input type="text" class="form-control" name='lastname' value='<?= $lastname ?>' >
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Email</label>
<div class="col-lg-10">
<input type="text" class="form-control" placeholder="Email..." name='email' value="<?= $email ?>">
</div>
</div>
<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='street1' placeholder="Enter user street..." value="<?=$street1?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">City</label>
<div class="col-lg-10">
<input type="text" class="form-control" name='city' value='<?=$city ?>'>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Zipcode</label>
<div class="col-lg-10">
<input type="text" class="form-control" name='zipcode' value='<?= $zipcode ?>' >
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">State</label>
<div class="col-lg-10">
<select name="state" class="form-control">
<option value="GA">Georgia</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">Phone</label>
<div class="col-lg-10">
<input type="text" class="form-control" placeholder="Enter user phone" name='phone' value="<?=$phone ?>">
</div>
</div>
<div class="text-right">
<button type="submit" class="btn btn-primary btn-xs">Update <i class="icon-arrow-right14 position-right"></i></button>
</div>
</form>
</div>
</div>
<!-- /form horizontal -->
</div>
<div class="col-lg-6">
<!-- Recent Members -->
<div class="panel panel-flat">
<div class="panel-body">
<table class="table">
<thead>
<tr>
<td colspan="5"><b> Recent Service Request(s)</b></td>
</tr>
<tr>
<th style="width: 50px">Due Days</th>
<th style="width: 180px;">User</th>
<th>Agent</th>
<th style="width: 180px;">Service Type</th>
<th style="width: 180px;">Miles/<br>Date & Time</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 ?> days </h6>
</td>
<td>
<div class="media-body">
<a href="#" onclick="openMemberID(<? echo $rect->member_id; ?>);" 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 --> -
</div>
</td>
<td>
<a href="#" class="text-default display-inline-block" onclick="showTranspModal(<? echo $rect->service_request_id; ?>);">
<span class="text-semibold"><? echo $rect->agent_name; ?> </span>
<span class="display-block text-muted"></span>
</a>
</td>
<td>
<? echo $rect->service_type_text; ?>
</td>
<td>
<? echo $rect->miles; ?>
<small class="display-block text-size-small no-margin"><b><?= date("Y-m-d h:i a",strtotime( $rect->service_date))?></b></small>
</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="#" onclick="openMemberID(<? echo $rect->member_id; ?>);"><i class="icon-undo"></i><? echo $rect->firstname; ?> <? echo $rect->lastname; ?> Profile</a></li>
<li><a href="#"><i class="icon-history"></i> Payments</a></li>
<li class="divider"></li>
<li><a href="#" onclick="processPendTransp(<?= $rect->id ?>);" ><i class="icon-checkmark3 text-success"></i>Manage Request</a></li>
</ul>
</li>
</ul>
</td>
</tr>
<?
}
?>
</tbody>
</table>
</div>
</div>
<!-- /form horizontal -->
</div>
<!-- /Recent Members -->
</div>
</div>
<!-- /dashboard content -->
@@ -0,0 +1,34 @@
<?
//print_r($_SESSION['selected_user_row']);
?>
<!-- Dashboard content -->
<div class="row">
<?
include 'extra/member_head.php';
?>
<div class="col-lg-6">
<?
include 'extra/member_recent.php';
?>
</div>
<div class="col-lg-6">
<!-- Form horizontal -->
<div class="panel panel-flat">
<div id="transp_detail">
<div class="panel-body">
</div>
</div>
</div>
<!-- /form horizontal -->
</div>
</div>
<!-- /dashboard content -->