File manager - Edit - /home/autoph/public_html/connect/home/PRF/PRF_DeletePRF_Detail.php
Back
<?php include 'core/init.php'; //$connect_error = 'Sorry, we\'re experiencing connection problem. Please try again later... Thank you!'; //mysql_connect('localhost','root','aee1024') or die ($connect_error); //mysql_select_db('db_vts') or die($connect_error); //error_reporting(1); 193 * 1067 * 215 $prfDate = date_create() ->format("Y-m-d"); $prfTime = date('H:i:s'); $myDate = date_create() ->format("Y-m-d"); $activeID=$user_data['u_id']; if(isset($_POST['done'])){ $DelActionReferenceID = mysql_escape_string($_POST['DelActionReferenceID']); $DeletedPRFReferenceNumber = mysql_result(mysql_query("SELECT header_ref_code FROM prf_request_detl WHERE id='$DelActionReferenceID'"),0); mysql_query("UPDATE prf_request_detl SET deleted = 1 WHERE id='$DelActionReferenceID'"); } ?> <?php $getItemDetl = mysql_query("SELECT * FROM prf_request_detl WHERE header_ref_code='$DeletedPRFReferenceNumber' AND `deleted`=0"); echo "<table>"; echo "<thead>"; echo "<th style='width:30px'>NO</th>"; echo "<th style='width:80px'>REF. #</th>"; echo "<th style='width:80px'>ITEM TYPE</th>"; echo "<th style='width:450px'>ITEM DESCRIPTION</th>"; echo "<th style='width:30px'>UoM</th>"; echo "<th style='width:40px'>QUANTITYx</th>"; echo "</thead>"; while($row=mysql_fetch_array($getItemDetl)){ $count = $count + 1; $itemClassID = $row['item_class']; $itemClassDes = mysql_result(mysql_query("SELECT `item_category` FROM `prf_item_category` WHERE `id`='$itemClassID'"),0); ?><tr onDblclick="javascript:POPUPShowDeleteSubItem(this);"><?php echo "<td>".$row['id']."</td>"; echo "<td>".strtoupper($row['header_ref_code'])."</td>"; echo "<td>".strtoupper($itemClassDes)."</td>"; echo "<td>".strtoupper($row['item_description'])."</td>"; echo "<td>".strtoupper($row['uom'])."</td>"; echo "<td style='text-align:center'>".$row['quantity']."</td>"; echo "</tr>"; } echo "</table>"; ?> <?php exit(); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings