File manager - Edit - /home/autoph/tmp/public_html/pms_v1/ajaxCall/loadDepartment_data.php
Back
<?php include_once("../../../cfg/conn.php"); error_reporting(0); if(isset($_POST['pmsAction'])){ $count=0; echo "Arnel"; $infCanvass = $_POST['infCanvass']; $start = $_POST['start']; $limit = $_POST['limit']; if($infCanvass=='' || $infCanvass == null){ $getAreaList = "SELECT * FROM `pms_department_tbl` WHERE `deleted`='0' ORDER BY `dept_code` ASC LIMIT $start, $limit"; }else{ $getAreaList = "SELECT * FROM `pms_department_tbl` WHERE `deleted`='0' AND `dept_name` LIKE '%$infCanvass%' || `deleted`='0' AND `dept_code` LIKE '%$infCanvass%' ORDER BY `dept_code` ASC LIMIT $start, $limit"; } ?> <thead> <th style="col-1">REC.ID</thd> <th style="col-1">DIVISION ID</th> <th style="col-1">DEPT. CODE</th> <th style="col-4">DEPT. NAME</th> <th style="col-5">DEPT. DESCRIPTION</th> <!-- <th style="width:7%;padding-left:2px">KRA</th> <th style="width:7%;padding-left:2px">KPI</th> --> <th style="width:2%"></th> <th style="width:2%"></th> <th style="width:2%"></th> </thead> <?php //$getAreaList = "SELECT * FROM `pms_area_tbl` WHERE deleted ='0'"; $getArea = mysqli_query($conn,$getAreaList); $statRow = mysqli_num_rows($getArea); if($statRow > 0){ while($row = mysqli_fetch_array($getArea)){ $count = $count + 1; ?><tr onclick="javascript:getInfo(this);" ><?php echo "<td>".$row['id']."</td>"; echo "<td>".$row['div_code']."</td>"; echo "<td>".$row['dept_code']."</td>"; echo "<td>".$row['dept_name']."</td>"; echo "<td>".$row['dept_desc']."</td>"; echo "<td style='width:3%'>";?> <!--<abbr title='View KRA'><i class='fa fa-plus-circle' aria-hidden='true' style='cursor:pointer;color:green;float:right;font-size:18px'></i> </abbr>--> <i data-toggle="modal" data-target="#kraModal" class="fa fa-list-ol" style='cursor:pointer;color:green;float:right;font-size:18px'></i> <?php echo "</td>"; echo "<td style='width:2%'>";?> <!--<abbr title='View KRA'><i class='fa fa-plus-circle' aria-hidden='true' style='cursor:pointer;color:green;float:right;font-size:18px'></i> </abbr>--> <i data-toggle="modal" data-target="#editPMSModal" class="fa fa-pencil-square-o" style='cursor:pointer;color:green;float:right;font-size:18px'></i> <?php echo "</td>"; echo "<td style='width:2%'> <abbr title='Delete record'><i class='fa fa-trash ' aria-hidden='true' style='color:#FF0800;float:left;font-size:18px'></i></abbr> </td>"; echo "<tr>"; } if($infCanvass!='' || $infCanvass != null){ if($statRow===''){ $statRow = 0; } echo "<tr>"; echo "<td colspan='4' style='padding:15px;padding-top:20px;padding-bottom:20px;text-align:left;width:10%'>Record/s found: ".$statRow."</td>"; echo "</tr>"; } } $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings