File manager - Edit - /home/autoph/tmp/public_html/pms_v1/pcpDocuments/pcpLoadEmployeeList.php
Back
<?php include_once("../../../cfg/conn.php"); include ("../functions/users.php"); error_reporting(0); if(isset($_POST['pmsAction'])){ $infCanvass = $_POST['infCanvass']; $start = $_POST['start']; $limit = $_POST['limit']; $activeFilter = $_POST['activeFilter']; $userID = $_POST['userID']; if($infCanvass!=""){ $getMyProfile = "SELECT * FROM `tempmarviews` WHERE `owner_id`='$userID' AND `last_name` LIKE '%$infCanvass%' || `owner_id`='$userID' AND `first_name` LIKE '%$infCanvass%' ORDER BY `last_name` ASC LIMIT $start, $limit"; }else{ $getMyProfile = "SELECT * FROM `tempmarviews` WHERE `owner_id`='$userID' ORDER BY `last_name` ASC LIMIT $start, $limit"; } $getMyPro = mysqli_query($conn,$getMyProfile); while($row = mysqli_fetch_array($getMyPro)){ $myDealID = $row['branch_code']; $myCompID = $row['comp_code']; $posID = $row['position']; ?><tr onclick="javascript:getInfo(this);"><?php echo "<td class='text-dark' style='width:5%'>".$row['emp_rec_id']."</td>"; echo "<td class='text-dark'style='width:8%'>".$row['emp_id']."</td>"; echo "<td class='text-dark'style='width:8%'>"; if($myCompID !=0){ echo getCompanyNameSub($myCompID)[1]; } echo "</td>"; echo "<td class='text-dark'style='width:8%'>"; if($myDealID !=0){ echo getDealerNameSub($myDealID)[1]; } echo "</td>"; echo "<td class='text-dark'style='width:23%'>".$row['first_name']."</td>"; echo "<td class='text-dark'style='width:23%'>".$row['last_name']."</td>"; echo "<td class='text-dark'style='width:16%'>"; if($posID !=0){ echo getPositionName($posID)[0]; } echo "</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-ellipsis-h" style='cursor:pointer;color:green;float:right;font-size:14px'></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" style='cursor:pointer;color:green;float:right;font-size:14px'></i> <?php echo "</td>"; echo "<td style='width:3%'> <abbr title='Delete record'><i class='fa fa-trash ' aria-hidden='true' style='color:#FF0800;float:left;font-size:14px'></i></abbr> </td>"; echo "</tr>"; } $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings