} else { $temp = preg_replace($pattern_ifgp,"",$temp); } $temp_text = preg_replace($pattern1,$str1_text,$match_text); $str.= preg_replace("/<{(.*?)}>/e","$$1",$temp); $str_text.= preg_replace("/<{(.*?)}>/e","$$1",$temp_text); }//i loop //mainloop ends here $val['today'] = date("d/m/Y"); $file = preg_replace($pattern,$str,$file); if($str=="") { $file = preg_replace("/\<form(.*?)\/form\>/s","<center>$err[cEmptyrecords]</center>",$file); } $file = $common->direct_replace($db_object,$file,$val); echo $file; $file_text = preg_replace($pattern,$str_text,$file_text); $file_text = $common->direct_replace($db_object,$file_text,$val); fwrite($fp,$file_text); fclose ($fp); }//end view }//end class $ob = new status; $ob->view_form($db_object,$common,$user_id,$default,$error_msg,$post_var); include_once("footer.php"); ?>