File manager - Edit - /home/autoph/public_html/pms_v1/mar/viewMARHeader.php
Back
<?php include_once("../../../cfg/conn.php"); error_reporting(0); if(isset($_POST['marView'])){ $groupKRAid = $_POST['groupKRAid']; $getKRAList = "SELECT * FROM `mar_emp_header` WHERE `deleted`=0 AND `pcp_id` ='$groupKRAid' ORDER BY `mar_month` ASC"; //$getAreaList = "SELECT * FROM `pms_area_tbl` WHERE deleted ='0'"; $getKRA = mysqli_query($conn,$getKRAList); $statRow = mysqli_num_rows($getKRA); if($statRow > 0){ while($row = mysqli_fetch_array($getKRA)){ $count = $count + 1; if($row['status']==="OPEN"){ $fontColor="#02470A"; }else{ $fontColor="#7B7F7B"; } ?><tr onclick="javascript:getMARDataList(this);" ><?php echo "<td style='width:10%;color:$fontColor'>".$row['id']."</td>"; echo "<td style='width:10%;color:$fontColor''>".$row['mar_year']."</td>"; echo "<td style='width:10%;color:$fontColor''>".$row['mar_month']."</td>"; echo "<td style='width:10%;color:$fontColor''>".$row['mar_group']."</td>"; echo "<td style='width:40%;color:$fontColor''>".$row['mar_description']."</td>"; echo "<td style='width:10%;color:$fontColor''>"; echo $row['mar_status']; echo "</td>"; echo "<td style='width:5%'>";?> <!--<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="#viewMARData" data-dismiss="modal" class="fa fa-list-ol" style='cursor:pointer;color:green;float:right;font-size:14px'></i> <?php echo "</td>"; echo "<td style='width:5%'>";?> <i data-toggle="modal" class="fa fa-times" style='cursor:pointer;color:red;float:right;font-size:14px'></i> <?php echo "</td>"; echo "<tr>"; } } $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings