| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/application/views/scripts/customer/ |
Upload File : |
<?php
error_reporting(0);
$tabarray = array("1" => "add-customer-package", "2" => "add-customer-package-itinerary", "3" => "add-customer-package-transport", "4" => "add-customer-package-other", "5" => "add-customer-package-tnc", "6" => "costsheet");
?>
<section id="min-wrapper" class="active">
<div id="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!--Top header start-->
<h3 class="ls-top-header">BYO Packages</h3>
<!--Top header end -->
<!--Top breadcrumb start -->
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-home"></i></a></li>
<li class="active">Customer</li><li class="active">BYO Packages</li>
</ol>
<!--Top breadcrumb start -->
</div>
<!--for display message div-->
</div>
<div class="col-md-12" style = "width:102%;margin-left:-17px;">
<ul class="nav nav-tabs icon-tab">
<li class="active"><a href="<?php echo $this->baseUrl('/customer/byopackage'); ?>">BYO Queries</a></li>
<li><a href="<?php echo $this->baseUrl('/customer/draftbyo'); ?>">Draft Proposal</a></li>
<button style="display:none;" class="btn btn-warning btn-sm btn-group-xs pull-right" data-target="#myModa1addcustomer" data-toggle="modal"><i class="fa fa-fw fa-arrows"></i> Create Lead</button>
</ul>
<div class="panel panel-primary">
<div class="panel-heading minus">
<h3 class="panel-title" ><i class="fa fa-filter"></i> Filter By</h3>
<ul class="panel-control">
<li><a class="minus active " onclick="ShowFilterGrid();" href="javascript:void(0)"><i class="fa fa-angle-down large"></i></a></li>
</ul>
</div>
<div id="filtergrid" style="display:none;">
<div class="panel-body">
<form class="ls_form" role="form" method="post" id="byofilterform">
<div class="col-md-4">
<div class="form-group dropdown">
<label>Package Title</label>
<input class="form-control whbg filterdata" name="pkgtitle" value="<?php if(!empty($_REQUEST['Packagename'])) { echo $_REQUEST['Packagename']; }?>" type="text">
</div>
</div>
<div class="col-md-4">
<div class="form-group dropdown">
<label>
Customer Email</label>
<input class="form-control whbg filterdata" name="emailid" value="<?php if(!empty($_REQUEST['emailid'])) { echo $_REQUEST['emailid']; }?>" type="text">
</div>
</div>
<div class="col-md-4">
<div class="form-group dropdown">
<label>Source</label>
<input name="search_going_f" id="search_going_f" class="form-control whbg filterdata" type="text" placeholder="" value="<?php if(!empty($_REQUEST['search_going_f'])) { echo $_REQUEST['search_going_f']; }?>" onkeyup="getCityfrom();" >
<input type="hidden" id="search_going_from" name="search_going_from" value="<?php //echo @$searchResult['search_going_to']; ?>"/>
</div>
</div>
<div class="col-md-4">
<div class="form-group dropdown">
<label>Destination</label>
<input name="search_going" id="search_going" class="form-control whbg filterdata" type="text" value="<?php if(!empty($_REQUEST['search_going'])) { echo $_REQUEST['search_going']; }?>" onkeyup="getCityListF();" >
<input type="hidden" id="search_going_to" name="search_going_to"/>
</div>
</div>
<div class="col-md-3">
<div class="form-group form-group1 flexipadding">
<button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> Filter</button>
<button onclick="window.location.href = 'http://local.b2bzend.com/customer/byopackage'" class="btn btn-primarygray" type="button">Cancel</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Main Content Element Start-->
<div class="row">
<div class="col-md-12">
<div class="leadeBorder">
<div class="panel-body">
<div class="table-responsive ls-table">
<table class="table table-bordered table-striped table-bottomless" id="ls-editable-table">
<thead>
<tr class="alert alert-success">
<th style="width:30px;" data-sortable="false" data-sorted="false">No.</th>
<th>Package Name</th>
<th>From </th>
<th>To </th>
<th>Customer Name </th>
<th>Package Start Date </th>
<th>Total Traveler </th>
<th style="width:10%; text-align:center">Action</th>
</tr>
</thead>
<tbody>
<?php
if (!empty($this->paginator) ) {
$s = 1;
foreach ($this->paginator as $pkgdetail) {
$pkgstartdate = $pkgdetail['StartDate'];
$pkgformatdate = $pkgstartdate->format('d/m/Y');
$roominfojson = json_decode($pkgdetail['RoomInfoJson']);
$adultPax = 0;
$childPax = 0;
foreach($roominfojson as $roomarray) {
$adultPax += $roomarray->Adult;
$childPax += $roomarray->Child;
}
$totaltraveler = $adultPax+$childPax;
?>
<tr>
<td><?php echo $s; ?></td>
<td><?php echo $pkgdetail['Packagename']; ?></td>
<td><?php if(trim($pkgdetail['SourcePlaces']) != '')
{
echo $pkgdetail['SourcePlaces'];
}
else
{
echo 'N/A';
}
?></td>
<td><?php echo $pkgdetail['DestinationPlaces']; ?></td>
<td><?php echo $pkgdetail['FirstName'].''.$pkgdetail['LastName']; ?></td>
<td><?php echo $pkgformatdate; ?></td>
<td><?php echo $totaltraveler; ?></td>
<td class="text-center" style="white-space: nowrap;">
<?php
if ($pkgdetail['IsDraft'] == 1) {
$draftactivetab = $pkgdetail['DraftActiveTab'];
$byolink = trim($tabarray[$draftactivetab]);
?>
<a title="Edit" target="_blank" class="btn btn-xs btn-warning tooltipLink" href="<?php echo $this->baseUrl('/package/' . $byolink . '/id/' . $pkgdetail['TPSysId']); ?>"><i class="fa fa-pencil-square-o"></i></a>
<?php } ?>
<?php
if ($pkgdetail['IsDraft'] == 0) {
?>
<a href="<?php echo $this->baseUrl('package/view-byo-pkg/id/' . base64_encode($pkgdetail['TPSysId'])); ?>" target="_blank" class="btn btn-xs btn-success tooltipLink" data-toggle="tooltip modal" data-placement="top" title="View"><i class="fa fa-eye"></i></a>
<?php } ?>
<!-- <button class="btn btn-xs btn-warning tooltipLink" data-toggle="tooltip" data-placement="top" title="Edit"><i class="fa fa-pencil-square-o"></i></button> -->
<a onclick="return confirm('Are you sure you want to delete the selected record?');" href="<?php echo $this->baseUrl('package/delete-byo-package/id/' . base64_encode($pkgdetail['TPSysId'])); ?>" class="btn btn-xs btn-danger tooltipLink" data-toggle="tooltip" data-placement="top" title="Delete"><i class="fa fa-angle-up large"></i></a>
<!--<a title="Publish" class="btn btn-xs btn-warning tooltipLink" href=""><i class="fa fa-play"></i></a>-->
</td>
</tr>
<?php
$s = $s + 1;
}
} else {
?>
<tr> <td colspan="7">No result found.</td> </tr>
<?php } ?>
</tr>
</tbody>
</table>
</div>
<!--Table Wrapper Finish-->
<div class="panel-box clearfix">
<?php if (!empty($this->paginator) ) { ?>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content Element End-->
</div>
</div>
<!--Demo ui element Script End -->
<?php echo $this->render("copyrightfooter.phtml"); ?>
<?php echo $this->render("newfooter.phtml"); ?>
</section>
<?php echo $this->render("newfooter.phtml"); ?>
<script type="text/javascript">
function ShowFilterGrid() {
$("#filtergrid").toggle();
}
function getCityfrom(){
// / $('#search_going_from').val('');
$("input[name=search_going_f]").autocomplete({
source: "/register/autosuggest-city",
minLength: 3,
focus: function (event, ui) {
event.preventDefault();
$("#tags").val(ui.item.label);
},
select: function (event, ui) {
event.preventDefault();
$("input[name=search_going_f]").val(ui.item.label);
$("#search_going_from").val(ui.item.value + '__' + ui.item.label).trigger('change');
$("#dispErrMessage").html('');
$(".alert-danger").css("display", "none");
}
});
}
function getCityListF() {
//$('#search_going_to').val('');
$("input[name=search_going]").autocomplete({
source: "/register/autosuggest-city",
minLength: 3,
focus: function (event, ui) {
event.preventDefault();
$("#tags").val(ui.item.label);
},
select: function (event, ui) {
event.preventDefault();
$("input[name=search_going]").val(ui.item.label);
$("#search_going_to").val(ui.item.value + '__' + ui.item.label).trigger('change');
$("#dispErrMessage").html('');
$(".alert-danger").css("display", "none");
}
});
}
</script>
<style type="text/css">
.panel-heading {
background-color: #428bca;
border-color: #428bca;
color: #fff;
}
.panel, .panel-heading {
border-radius: 0;
}
.panel-primary {
border-color: #428bca;
}
.panel {
background-color: #fff;
border: 1px solid transparent;
border-radius: 4px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
}
.fa fa-angle-down large{
margin-bottom:50px;
}
</style>