File manager - Edit - /home/autoph/public_html/pms_v1/reports/loadEmployeePCP.php
Back
<?php include_once("../../../cfg/conn.php"); include ("../functions/users.php"); include '../css/mainCSS.php'; error_reporting(0); if(isset($_POST['pcpView'])){ $activeRecordID = $_POST['SelectedRecordID']; $userID = $_POST['userID']; $getPCPHeaders = "SELECT * FROM `pcp_headers` WHERE `deleted`=0 AND `employee_id` ='$activeRecordID' ORDER BY `year` DESC"; $pcpHead = mysqli_query($conn,$getPCPHeaders); $statRow = mysqli_num_rows($pcpHead); echo "<table class='w-100'>"; echo "<thead>"; echo "<th class='PeachBG'>ID</th>"; echo "<th class='PeachBG'>YEAR</th>"; echo "<th class='PeachBG'>SEMESTER</th>"; echo "<th class='PeachBG'>PCP DESCRIPTION</th>"; echo "<th class='PeachBG'></th>"; echo "</thead>"; while($row = mysqli_fetch_array($pcpHead)){ $pcpID = $row['id']; ?><tr onclick="javascript:pcpSelection(this);" ><?php echo "<td class='text-dark'>".$row['id']."</td>"; echo "<td class='cotext-darkl'>".$row['year']."</td>"; echo "<td class='text-dark'>".$row['period']."</td>"; echo "<td class='text-dark'>".$row['pcp_name']."</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 onClick="window.open('./pdfViewer/pcp_employeeview.php?pcpIDpdf=<?php echo $pcpID;?>&source=<?php echo $userID;?>')" class="fa fa-print" style='cursor:pointer;color:green;float:right;font-size:16px'></i> <?php echo "</td>"; echo "<tr>"; } echo "</table>"; $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings