exit; } $pattern = "/<{row_loopstart}>(.*?)<{row_loopend}>/s"; preg_match($pattern, $file, $match); $match = $match[0]; for ($i = 0; $i < count($result); $i++) { $userid = $result[$i][user_id]; $username = $common->name_display($db_object, $userid); $assigned = $result[$i][admin_id]; $assigned_by = $common->name_display($db_object, $assigned); $date = $result[$i][date]; $skill_name = $result[$i][skill_name]; $skill_id = $result[$i][skill_id]; $qry = "select {$approved_devbuilder}.status,email from {$approved_devbuilder},\n\t\t\t\n\t\t\t{$user_table} where {$approved_devbuilder}.user_id={$user_table}.user_id\n\t\t\t\n\t\t\tand {$approved_devbuilder}.user_id='{$userid}'\n\t\t\t\n\t\t\tand skill_id='{$skill_id}'"; $res = $db_object->get_a_line($qry); $email = $res[email]; if ($res[status] == 'a') { $highlight = "class=TR"; } else { $highlight = ""; } $str .= preg_replace("/<{(.*?)}>/e", "\$\$1", $match); } $file = preg_replace($pattern, $str, $file); $file = $common->direct_replace($db_object, $file, $xArray); echo $file; } } $obj = new outstanding(); $obj->outstanding_assignments($db_object, $common, $user_id, $error_msg); include_once "footer.php";
include_once "footer.php"; exit; } $pattern = "/<{row_loopstart}>(.*?)<{row_loopend}>/s"; preg_match($pattern, $file, $match); $match = $match[0]; for ($i = 0; $i < count($result); $i++) { $userid = $result[$i][user_id]; $username = $common->name_display($db_object, $userid); $assigned = $result[$i][boss_user_id]; $assigned_by = $common->name_display($db_object, $assigned); $date = $result[$i][date_added]; $sql = "select email from {$user_table} where user_id='{$assigned}'"; $res = $db_object->get_a_line($sql); $email = $res[email]; $status = $result[$i][status]; if ($status != 'h') { $highlight = "class=TR"; } else { $highlight = ""; } $str .= preg_replace("/<{(.*?)}>/e", "\$\$1", $match); } $file = preg_replace($pattern, $str, $file); $file = $common->direct_replace($db_object, $file, $xArray); echo $file; } } $obj = new outstanding(); $obj->outstanding_assignments($db_object, $common, $user_id, $error_msg, $gbl_date_format); include_once "footer.php";