$select = "select user_id,date_format(s_date,'$gbl_date_format') as s_date from $performance_feedback where user_id in ('$split') and request_from<>user_id and status='I' and (to_days(now()) - to_days(s_date)) > 7 group by s_date order by s_date"; $result = $db_object->get_rsltset($select); $pattern = "/<{record_loopstart}>(.*?)<{record_loopend}>/s"; preg_match($pattern,$file,$arr); $match = $arr[1]; for($i=0;$i<count($result);$i++) { $uid = $result[$i]['user_id']; $e_name = $common->name_display($db_object,$uid); $date = $result[$i]['s_date']; $str .= preg_replace("/<{(.*?)}>/e","$$1",$match); } $file = preg_replace($pattern,$str,$file); if($str=="") { $file = preg_replace("/<{ifnorecords_start}>(.*?)<{ifnorecords_end}>/s",$err['cEmptyrecords'],$file); } $file = preg_replace("/<{(.*?)}>/e","",$file); $file = $common->direct_replace($db_object,$file,$val); echo $file; } }//end class $ob = new raters; $ob->view_form($db_object,$common,$user_id,$default,$error_msg,$gbl_date_format); include_once("footer.php"); ?>
$seluser = @array_unique($sel_user); $seluser = @array_values($seluser); for($k=0;$k<count($seluser);$k++) { $uid = $seluser[$k]; $username = $common->name_display($db_object,$uid); $cout = $count[$uid]; $noofobj = count($cout); $str.=preg_replace("/<{(.*?)}>/e","$$1",$match); } $file = preg_replace($pattern,$str,$file); $nopattern = "/<{if_norecord_start}>(.*?)<{if_norecord_end}>/s"; if($str=="") { $file = preg_replace($nopattern,"$err[cEmptyrecords]",$file); } $file = $common->direct_replace($db_object,$file,$val); $file = preg_replace("/<{(.*?)}>/e","",$file); echo $file; } }//end class $ob = new raters; $ob->view_form($db_object,$common,$user_id,$default,$error_msg); include_once("footer.php"); ?>