File manager - Edit - /home/autoph/public_html/pms_v1/ajaxSave/saveNewArea.php
Back
<?php include_once("../../../cfg/conn.php"); if(isset($_POST['pmsAction'])){ $count = 0; $grpCode = $_POST['grpCode']; $grpName = $_POST['grpName']; $grpDescription = $_POST['grpDescription']; $groupAreaID = $_POST['groupAreaID']; $sql = "INSERT INTO pms_area_tbl (`id`, `group_id`,`code`, `name`,`description`) VALUES ('', '$groupAreaID','$grpCode', '$grpName','$grpDescription')"; if ($conn->query($sql) === TRUE) { //echo "New record created successfully"; } else { //echo "Error: " . $sql . "<br>" . $conn->error; } echo '<table style="width:100%;border-collapse:collapse">'; $getAreaList = "SELECT * FROM `pms_area_tbl` WHERE deleted ='0'"; $getArea = mysqli_query($conn,$getAreaList); $statRow = mysqli_num_rows($getArea); if($statRow > 0){ while($row = mysqli_fetch_array($getArea)){ $count = $count + 1; ?><tr onclick="javascript:getInfo(this);" ><?php echo "<td style='width:10%'>".$row['id'] ."</td>"; echo "<td style='width:15%'>".$row['code']."</td>"; echo "<td style='width:30%'>".$row['name']."</td>"; echo "<td style='width:39%'>".$row['description']."</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="#kpiModal" class="fa fa-list-ol" style='cursor:pointer;color:green;float:right;font-size:18px'></i> <?php echo "</td>"; echo "<td style='width:2%'> <i class='fa fa-pencil-square-o' aria-hidden='true' style='color:#04559f;float:right;font-size:18px'></i> </td>"; echo "<td style='width:2%'> <i class='fa fa-trash ' aria-hidden='true' style='color:#FF0800;float:left;font-size:18px'></i> </td>"; echo "<tr>"; } } echo "</table>"; $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings