File manager - Edit - /home/autoph/public_html/connect/home/PRF_DeleteEXECOM.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'])){ $SelExecomID = mysql_escape_string($_POST['SelExecomID']); //echo "<script>alert('ERROR: $SelExecomID')</script>"; mysql_query("DELETE FROM `prf_execommembers` WHERE `id`='$SelExecomID'"); } echo "<table>"; $getExecomList = mysql_query("SELECT vts_users.u_id,vts_users.u_fname,vts_users.u_lname,prf_execommembers.id,prf_execommembers.execom_id,prf_execommembers.authority,prf_execommembers.comp_id FROM `vts_users` JOIN `prf_execommembers` ON `prf_execommembers`.execom_id = vts_users.u_id WHERE `vts_users`.u_id=`prf_execommembers`.execom_id AND `prf_execommembers`.deleted=0 ORDER BY u_lname,authority ASC"); while($row=mysql_fetch_array($getExecomList)){ $getAuthority= $row['authority']; if($getAuthority == 1){ $exeType ='SINGLE APPROVER - Approval matrix WILL NOT be used'; } if($getAuthority == 3){ $exeType ='GROUP OF EXECOM - Approval matrix WILL be used'; } if($getAuthority == 2){ $exeType ='VP / SVP - Approval matrix WILL be used'; } if($getAuthority == 4){ $exeType ='AVP\'s - Approval matrix WILL be used'; } ?> <tr id='deleteEXECOM' ondblclick="javascript:getExecomID(this);"><!-- getCategoryIDonDblclick="javascript:showActionViewDelete(this);" >--> <?php echo "<td style='width:10%'>".$row['id']."</td> <td style='width:30%'>".strtoupper($row['u_lname']).", ".strtoupper($row['u_fname'])."</td> <td style='width:60%'>".$exeType."</td>"; echo "</tr>"; } echo "</table>"; exit(); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings