| Server IP : 13.126.101.145 / Your IP : 216.73.217.33 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/rms/wp-content/themes/hello-elementor-child/inc/ |
Upload File : |
<style>
.page-numbers{
display: inline-block;
vertical-align: baseline;
min-width: 30px;
min-height: 30px;
margin: 0;
padding: 0 4px;
font-size: 16px;
line-height: 1.625;
text-align: center;
background: #fff;
border: 1px solid #ccc;
border-radius: 5px;
}
</style>
<?php
global $wpdb;
$id = $_REQUEST['id'];
$table_name = $wpdb->prefix . 'leads';
// Fetch all data from the wp_request_quote table
$results = $wpdb->get_row("SELECT * FROM $table_name where id=$id");
//print_r($_POST);
if(isset($_POST['update_lead_data'])!=''){
$id = $_REQUEST['lead_id'];
$ba_remarks = $_POST['ba_remarks'];
$last_updated_on = date('Y-m-d H:i:s');
$wpdb->update($table_name, [
"ba_remarks" => $ba_remarks,
"last_updated_on" => $last_updated_on,
"en_status" => "In Progress"
],['id'=>$id]);
echo '<p style="color:#008000">Data Updated Successfully</p>';
echo '<script>window.location.href = "'.admin_url('admin.php?page=leads').'"</script>';
}
?>
<div class="wrap">
<h2>Edit Enquiry</h2>
<form method="post" action="">
<input type="hidden" name="edit_id" value="<?php echo esc_attr($_REQUEST['id']);?>">
<table class="form-table">
<tr>
<th><label for="user_email">Business Admin Remarks</label></th>
<td>
<input type="text" name="ba_remarks" id="ba_remarks" value="<?php echo esc_attr($results->ba_remarks);?>" class="regular-text" required>
</td>
</tr>
</table>
<input type="hidden" name="lead_id" id="lead_id" value="<?php echo esc_attr($id);?>">
<p class="submit">
<input type="submit" name="update_lead_data" id="update_lead_data" class="button-primary" value="Save">
<a href="<?php echo admin_url('admin.php?page=leads'); ?>" class="button-primary">Cancel</a>
</p>
</form>
</div>