| Server IP : 104.21.37.246 / Your IP : 172.71.28.146 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home2/cp648411/public_html/ilawasia.onnud20.com/themes_v1/ |
Upload File : |
<?php
$PageSize = 10;
$PageNumber = 1;
if(isset($_GET['PageNumber'])){$PageNumber = $_GET['PageNumber'];}
$arrayName4 = array(
'CaseId' => @$_GET['Id'],
'PageNumber' => @$PageNumber,
'page' => 0,
'OrderBy' => 'CaseId',
'OrderDirection' => 'ASC',
'PageSize' => @$PageSize
);
$data_loadCasetype = $ipmodule_db->LoadCasetype($arrayName = array());
$data_loadCasestatus = $ipmodule_db->LoadCasestatus($arrayName = array());
$data_loadNamestypeSearch = $ipmodule_db->LoadNamestypeSearch($arrayName = array());
$data_loadOfficialnumbertype = $ipmodule_db->LoadOfficialnumbertype($arrayName = array());
/*
$data_loadIpmodules = $ipmodule_db->IpmodulesCase($arrayName4);
$data_loadIpmodules = $data_loadIpmodules['Data'][0];
echo '<pre>';
print_r($data_loadNamestypeSearch);
echo '</pre>';
*/
//$data_loadCasetype = $data_loadCasetype['Data'][0];
?>
<div class="card mb-4">
<div class="card-header">
ระบุข้อมูล
</div>
<div class="card-body">
<form class="" action="" method="get">
<div class="form-group row mt-3">
<div class="col-sm-2">
<label for="" class="col-form-label">Case Reference : </label>
</div>
<div class="col-sm-4">
<input type="text" class="form-control signature form-control-sm" name="CaseReference" id="CaseReference" value="<?php echo @$_GET['CaseReference']; ?>">
</div>
<div class="col-sm-2">
<label for="" class="col-form-label">Family : </label>
</div>
<div class="col-sm-4">
<input type="text" class="form-control signature form-control-sm" name="Family" id="Family" value="<?php echo @$_GET['Family']; ?>">
</div>
</div>
<div class="form-group row mt-3">
<div class="col-sm-2">
<label for="" class="col-form-label">Title : </label>
</div>
<div class="col-sm-4">
<input type="text" class="form-control signature form-control-sm" name="Title" id="Title" value="<?php echo @$_GET['Title']; ?>">
</div>
<div class="col-sm-2">
<label for="" class="col-form-label">Profit Centre : </label>
</div>
<div class="col-sm-4">
<select class="form-control" name="ProfitCentre" id="ProfitCentre">
<option value="" <?php echo (@$_GET['ProfitCentre']=='')? "selected":""; ?>>Select All</option>
<option value="1" <?php echo (@$_GET['ProfitCentre']=='1')? "selected":""; ?>>Trade Mark BKK</option>
</select>
</div>
</div>
<div class="form-group row mt-3">
<div class="col-sm-2">
<label for="" class="col-form-label">Tax Treatment : </label>
</div>
<div class="col-sm-4">
<select class="form-control" name="TaxTreatment" id="TaxTreatment">
<option value="" <?php echo (@$_GET['TaxTreatment']=='')? "selected":""; ?> >Select All</option>
<option value="1" <?php echo (@$_GET['TaxTreatment']=='1')? "selected":""; ?>>Exempt</option>
<option value="2" <?php echo (@$_GET['TaxTreatment']=='2')? "selected":""; ?>>Standard</option>
</select>
</div>
<div class="col-sm-2">
<label for="" class="col-form-label">Case Type : </label>
</div>
<div class="col-sm-4">
<select class="form-control" name="CaseTypeId" id="CaseTypeId">
<option value="" <?php echo (@$_GET['CaseTypeId']=='')? "selected":""; ?>>Select All</option>
<?php foreach ($data_loadCasetype['Data'] as $key => $value){ ?>
<option value="<?php echo $value['CaseTypeId']; ?>" <?php echo (@$_GET['CaseTypeId']==@$value['CaseTypeId'])? "selected":""; ?>><?php echo $value['CaseTypeName']; ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group row mt-3">
<div class="col-sm-2">
<label for="" class="col-form-label">Case Status : </label>
</div>
<div class="col-sm-4">
<select class="form-control" name="CaseStatus" id="CaseStatus">
<option value="" <?php echo (@$_GET['CaseStatus']=='')? "selected":""; ?>>Select All</option>
<?php foreach ($data_loadCasestatus['Data'] as $key => $value) { ?>
<option value="<?php echo $value['CaseStatusId']; ?>" <?php echo (@$_GET['CaseStatus']==@$value['CaseStatusId'])? "selected":""; ?>><?php echo $value['CaseStatusName']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-sm-2">
<label for="" class="col-form-label">Date Range : </label>
</div>
<div class="col-sm-4">
<div class="input-group input-daterange">
<input type="text" id="event-start-date" class="form-control" name="EventDateStart" id="EventDateStart" value="<?php echo @$_GET['EventDateStart']; ?>" autocomplete="off">
<div class="input-group-text" style="border-radius:0px">to</div>
<input type="text" id="event-end-date" class="form-control" name="EventDateEnd" id="EventDateEnd" value="<?php echo @$_GET['EventDateEnd']; ?>" autocomplete="off">
</div>
</div>
</div>
<div class="form-group row mt-3">
<div class="col-sm-2">
<label for="" class="col-form-label">Name : </label>
</div>
<div class="col-sm-2">
<select class="form-control" name="Name" id="Name">
<option value="" <?php echo (@$_GET['Name']=='')? "selected":""; ?>>Select All</option>
<?php foreach ($data_loadNamestypeSearch['Data'] as $key => $value) {?>
<option value="<?php echo $value['NamesTypeId']; ?>" <?php echo (@$_GET['Name']==$value['NamesTypeId'])? "selected":""; ?>><?php echo $value['NamesTypeName']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-sm-2">
<input type="text" class="form-control signature form-control" name="Name_txt" id="Name_txt" value="<?php echo @$_GET['Name_txt']; ?>">
</div>
<div class="col-sm-2">
<label for="" class="col-form-label">Official Numbers : </label>
</div>
<div class="col-sm-2">
<select class="form-control" name="OfficialNumbers" id="OfficialNumbers" >
<option value="" <?php echo (@$_GET['OfficialNumbers']=='')? "selected":""; ?>>Select All</option>
<?php foreach ($data_loadOfficialnumbertype['Data'] as $key => $value) { ?>
<option value="<?php echo $value['OfficialNumberTypeId']; ?>" <?php echo (@$_GET['OfficialNumbers']==$value['OfficialNumberTypeId'])? "selected":""; ?>><?php echo $value['OfficialNumberTypeName']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-sm-2">
<input type="text" class="form-control signature form-control" name="OfficialNumbers_txt" id="OfficialNumbers_txt" value="<?php echo @$_GET['OfficialNumbers_txt']; ?>">
</div>
</div>
<div class="form-group row mt-3 justify-content-end">
<div class="col-sm-2 d-flex justify-content-end">
<button type="submit" class="btn btn-success">
<i class="fa fa-search"></i> Search
</button>
</div>
</div>
</form>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-names" role="tabpanel" aria-labelledby="nav-names-tab">
<br />
<p>
<a class="btn btn-success" href="Add.php"><i class="fas fa-plus-square"></i> Add</a>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#columModal"><i class="fa fa-cog"></i> Manage Columns</button>
</p>
<div id="case_names_pagination" style="position:relative;">
<div class="table-loader text-center" style="display:none;">
<div class="overlay">
<i class="fas fa-3x fa-spinner fa-pulse"></i>
</div>
</div>
<table class="table table-hover table-bordered ">
<thead>
</thead>
<tbody>
</tbody>
</table>
<br /><br />
<div class="supplierPager">
<div class="row">
<div class="col-md-6">
<input type="hidden" class="page" value="1" />
<input type="hidden" class="page-size" value="10" />
<input type="hidden" class="numrows" value="0" />
<input type="hidden" class="orderBy" value="CaseId" />
<input type="hidden" class="orderDirection" value="DESC" />
<input type="hidden" class="params" value="CaseReference=<?php echo @$_GET['CaseReference']; ?>&Family=<?php echo @$_GET['Family']; ?>&Title=<?php echo @$_GET['Title']; ?>&ProfitCentre=<?php echo @$_GET['ProfitCentre']; ?>&TaxTreatment=<?php echo @$_GET['TaxTreatment']; ?>&CaseTypeId=<?php echo @$_GET['CaseTypeId']; ?>&CaseStatus=<?php echo @$_GET['CaseStatus']; ?>&EventDateStart=<?php echo @$_GET['EventDateStart']; ?>&EventDateEnd=<?php echo @$_GET['EventDateEnd']; ?>&Name=<?php echo @$_GET['Name']; ?>&OfficialNumbers=<?php echo @$_GET['OfficialNumbers']; ?>&Name_txt=<?php echo @$_GET['Name_txt']; ?>&OfficialNumbers_txt=<?php echo @$_GET['OfficialNumbers_txt']; ?>" />
แสดงรายการ <span class="start-record"></span> ถึง <span class="end-record"></span> จากทั้งหมด <span class="total-record"></span> รายการ
</div>
<div class="col-md-6 text-right pagination-zone">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
$colum = array("Case Reference","Title","Image","Family","Profit Centre","Tax Treatment","Case Type","Case Status");
array_push($colum, "Instructor","Instructor Code","Debtor","Debtor Code","Owner","Owner Code","Agent","Agent Code");
array_push($colum, "Refferal","Refferal Code","Partner","Partner Code","Attorney","Attorney Code","Executive","Executive Code");
array_push($colum, "LastUpdateBy","LastUpdateDateTime","CreateBy","CreateDateTime");
$columID = array("CaseReference","Title","Image","Family","ProfitCentreName","TaxTreatmentName","CaseTypeName","CaseStatusName");
array_push($columID, "Instructor","InstructorCode","Debtor","DebtorCode","Owner","OwnerCode","Agent","AgentCode");
array_push($columID, "Refferal","RefferalCode","Partner","PartnerCode","Attorney","AttorneyCode","Executive","ExecutiveCode");
array_push($columID, "LastUpdateBy","LastUpdateDateTime","CreateBy","CreateDateTime");
?>
<!-- Modal Customer -->
<div class="modal fade show" id="columModal" tabindex="-1" role="dialog" aria-labelledby="columModalLabel" aria-hidden="true">
<div class="modal-dialog modal-l" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="columModalLabel">Manage Columns</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="colum_pagination">
<div class="row mb-3">
<?php for ($i=0; $i < count($colum); $i++) { ?>
<div class="col-6 col-md-6">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="<?php echo @$columID[$i]; ?>" name="<?php echo @$columID[$i]; ?>"
onclick="checkColAndLoad()"
<?php echo ($i==0 || $i==1 || $i==2 || $i==7 || $i==12 || $i==13 || $i==26 || $i==27)?"checked":""; ?>>
<label class="form-check-label" for="<?php echo @$columID[$i]; ?>"><?php echo @$colum[$i]; ?></label>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<!--<button type="button" class="btn btn-primary">Save changes</button>-->
</div>
</div>
</div>
</div>
<link href="<?php echo $path; ?>Assets/Backend/vendor/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" />
<script src="<?php echo $path; ?>Assets/Backend/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script>
</script>
<script>
var urlLoadCasetype = "LoadCasetype.php";
var urlLoadcase = "Loadcase.php";
var urlLoadcaseid = "LoadcaseId.php";
</script>
<link href="<?php echo $path; ?>Assets/Backend/vendor/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" />
<script src="<?php echo $path; ?>Assets/Backend/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<link href="<?php echo $path; ?>Assets/Backend/vendor/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
<script src="<?php echo $path; ?>Assets/Backend/vendor/jquery-ui/jquery-ui.min.js"></script>
<script src="<?php echo $path; ?>Assets/Backend/vendor/moment.js"></script>
<script src="<?php echo $path; ?>Scripts/jquery.validate.min.js"></script>
<script src="<?php echo $path; ?>Scripts/pages_v1/cases.js?t=<?php echo $date_ticks; ?>"></script>