File manager - Edit - /home/autoph/public_html/pms_v1/mar/loadEmployeeMARSummary.php
Back
<?php include_once("../../../cfg/conn.php"); include ("../functions/users.php"); //error_reporting(0); if(isset($_POST['marList'])){ $selectedEmpID = $_POST['selectedEmpID']; $userID = $_POST['userID']; $count = 0; echo "<table class='w-100' data-toggle='modal' data-target='#EmployeePCPForm'>"; echo "<thead>"; echo "<th class='col-1'>NO.</th>"; echo "<th class='col-1'>YEAR</th>"; echo "<th class='col-1'>MONTH</th>"; echo "<th class='col-8'>DESCRIPTION</th>"; echo "<th class='col-1'></th>"; echo "</thead>"; $empList = "SELECT * FROM `mar_emp_header` WHERE `emp_id`='$selectedEmpID' ORDER BY `id` ASC"; $empQ = mysqli_query($conn,$empList); while($row = mysqli_fetch_array($empQ)){ $count = $count + 1; $marID = $row['id']; $marDate = explode(" ",$row['date_created']); $marDateA = $marDate[0]; $marYear = $row['mar_year']; $marMon = $row['mar_month']; $marDesc = $row['mar_description']; ?><tr onclick="javascript:getInfoB(this);"><?php echo "<td>$count</td>"; echo "<td>". $marYear."</td>"; echo "<td>".$marMon."</td>"; echo "<td>".$marDesc."</td>"; echo "<td>";?> <!--<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 onClick="window.open('./pdfViewer/mar_employeeview.php?pcpIDpdf=<?php echo $selectedEmpID;?>&source=<?php echo $userID;?>')" class="fa fa-print" style='cursor:pointer;color:green;float:right;font-size:16px'></i> <?php echo "</td>"; } echo "</table>"; $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings