File manager - Edit - /home/autoph/public_html/pms_v1/mar/deleteMARHeader.php
Back
<?php include_once("../../../cfg/conn.php"); if(isset($_POST['marDelete'])){ $userID = $_POST['userID']; $groupKRAid = $_POST['groupKRAid']; $marHeaderID = $_POST['marHeaderID']; $sql = "UPDATE mar_emp_header SET deleted = 1,`date_modified`='$myTimeStamp',`last_action`='Deleted',`modified_by`='$userID' WHERE `id`='$marHeaderID'"; if ($conn->query($sql) === TRUE) { //echo "New record created successfully"; } else { //echo "Error: " . $sql . "<br>" . $conn->error; } $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)){ $fontColor="#02470A"; ?><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:50%;color:$fontColor''>".$row['mar_description']."</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