File manager - Edit - /home/autoph/public_html/pms_v1/ajaxSave/saveNewCompanyKRA.php
Back
<?php include_once("../../../cfg/conn.php"); if(isset($_POST['pmsAction'])){ $brandID = $_POST['brandID']; $userID = $_POST['userID']; $AddKRACode = $_POST['AddKRACode']; //$groupKRAid = $_POST['groupKRAid']; $AddKRAWeight = $_POST['AddKRAWeight']; $AddKRAName = $_POST['AddKRAName']; $AddKRADescription = $_POST['AddKRADescription']; $companySelectedID = $_POST['companySelectedID']; $selectedBrandKRAID = $_POST['selectedBrandKRAID']; $kraTAG = $_POST['kraTAG']; $sql = "INSERT INTO kra_comp_detl (`id`, `tag`,`brand_id`, `brand_kra_id`,`company_id`,`weight`,`kra_code`,`kra_name`,`kra_description`,`created_by`) VALUES ('', '$kraTAG','$brandID', '$selectedBrandKRAID','$companySelectedID','$AddKRAWeight','$AddKRACode','$AddKRAName','$AddKRADescription','$userID')"; if ($conn->query($sql) === TRUE) { //echo "New record created successfully"; } else { //echo "Error: " . $sql . "<br>" . $conn->error; } ?> <thead> <th style='width:10%;min-width:10px'>NO</th> <th style='width:10%;min-width:30px'>WEIGHT</th> <th style='width:10%;min-width:30px'>CODE</th> <th style='width:54%;min-width:200px'>KRA NAME</th> <th style='width:2%'></th> <th style='width:2%'></th> <th style='width:2%'></th> </thead> <?php $getKRAList = "SELECT * FROM `kra_comp_detl` WHERE `deleted`=0 AND `company_id` ='$companySelectedID' ORDER BY `id` ASC"; $getKRA = mysqli_query($conn,$getKRAList); $statRow = mysqli_num_rows($getKRA); if($statRow > 0){ while($row = mysqli_fetch_array($getKRA)){ ?><tr onclick="javascript:getKRAinfo(this);" ><?php echo "<td style='width:10%;min-width:20px;padding-left:15px'>".$row['id']."</td>"; echo "<td style='width:10%;min-width:30px;padding-left:15px'>".$row['weight']."</td>"; echo "<td style='width:10%;min-width:30px;padding-left:15px'>".$row['kra_code']."</td>"; echo "<td style='width:54%;min-width:200px;padding-left:15px'>".$row['kra_name']."</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%'>";?> <!--<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="#editKRA" class="fa fa-pencil-square-o" style='cursor:pointer;color:green;float:right;font-size:18px'></i> <?php echo "</td>"; echo "<td style='width:2%'> <abbr title='Delete record'><i class='fa fa-trash ' aria-hidden='true' style='color:#FF0800;float:left;font-size:18px'></i></abbr> </td>"; echo "<tr>"; } } $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings