if ($bool) { echo $alert_msg["cMailsent"]; } if ($fRequest) { $message = "Iamabossbuticannotseemydirectreports"; $subject = "Iamabossbuticannotseemydirectreports"; $bool = $common->send_mail($to, $subject, $message, $from); if ($bool) { echo $alert_msg["cMailsent"]; } } } else { echo $alert_msg["cAdmindetailsupdated"]; } } } } $objperson = new Personal_info(); /*if($emp_id) { $user_id=$emp_id; } else { }*/ if ($fSubmit) { $objperson->updatepersonalinfo($common, $db_object, $post_var, $user_id, $default, $alert_msg, $fRequest); } else { $objperson->display_personalinfo($common, $db_object, $user_id, $default); } include "footer.php";
$mysql = "delete from {$temp_user_table} where user_id='{$emp_id}'"; $db_object->insert($mysql); $mysql = "delete from {$temp_user_eeo} where user_id='{$emp_id}'"; $db_object->insert($mysql); echo $error_msg["cEmpdetailsrejected"]; echo "<br>"; /*$myhtml=<<<EOD <a href="front_panel.php">$error_msg["cFrontpanel"]</a> EOD; echo $myhtml; */ } } $objperson = new Personal_info(); $user_Table = $common->prefix_table("user_table"); if ($fReject) { $objperson->reject_details($common, $db_object, $emp_id, $error_msg); } else { $selqry = "select admin_id from {$user_table} where user_id='{$emp_id}'"; $admin_check = $db_object->get_a_line($selqry); if ($admin_check["admin_id"] == $user_id || $user_id == 1) { if ($fSubmit) { $objperson->updatepersonalinfo($common, $db_object, $post_var, $emp_id, $default, $error_msg, $alert_msg); } else { $objperson->display_personalinfo($common, $db_object, $emp_id, $default, $icomefromcore); } } else { echo "The User is not Under Your Control"; } } include "footer.php";