$res = $db_object->get_a_line($qry); $message = $res['apmessage']; $subject = $res['apsubject']; $path = $common->http_path; $path = $path."/index.php"; $message = preg_replace("/{{(.*?)}}/e","$$1",$message); //delete user $delqry = "delete from $alert_table where user_id='$uid'"; $db_object->insert($delqry); $common->send_mail($uemail,$subject,$message,$aemail); }//end mail }//end class $ob = new plan3; if($back!="") { header("location: approve_objective2.php?emp_id=$uid"); } if($approval!="") { $ob->submit($db_object,$common,$default,$uid,$post_var); $ob->save_to_approved($db_object,$common,$default,$uid); $ob->mail($db_object,$common,$user_id,$uid,$default); header("location: per_setting.php"); } if($reject!="") { $ob->rejected($db_object,$common,$default,$user_id,$uid,$post_var); header("location: per_setting.php");
} if($j!=count($qres)) { $xColstr.= preg_replace("/<{(.*?)}>/e","$$1",$xColmatch); } } $temp = preg_replace("/<{tablerow_loopstart}>(.*?)<{tablerow_loopstop}>/s",$xRowstr,$match); $str .= preg_replace("/\<\{(.*?)\}\>/e","$$1",$temp); } $file=preg_replace($pattern,$str,$file); if($user_id==1) { $val['approval'] = $err['capproved']; } else { $val['approval'] = $err['capproval']; } $file = $common->direct_replace($db_object,$file,$val); echo $file; }//end view }//end class $ob = new plan3; if($back!="") { header("location: userplan2_input_static.php?emp_id=$uid"); } $ob->view($db_object,$common,$default,$uid,$error_msg); include_once("footer.php"); ?>