コード例 #1
0
                $path = $common->path;
                $xtemplate = $path . "templates/career/reports_compliance_self.html";
                $file = $common->return_file_content($db_object, $xtemplate);
                preg_match($pattern, $file, $match);
                $match = $match[0];
                for ($a = 0; $a < count($result1); $a++) {
                    $userid = $result1[$a][user_id];
                    $name = $common->name_display($db_object, $userid);
                    $date = $result1[$a][date];
                    $email = $result1[$a][email];
                    $rating = $result1[$a][test_type];
                    $str .= preg_replace("/<{(.*?)}>/e", "\$\$1", $match);
                }
                $file = preg_replace($pattern, $str, $file);
                $file = $common->direct_replace($db_object, $file, $xArray);
                echo $file;
            } else {
                echo $error_msg['cNoPending'];
                include_once "footer.php";
                exit;
            }
        } else {
            echo $error_msg['cNoReports'];
            include_once "footer.php";
            exit;
        }
    }
}
$obj = new reports();
$obj->reports_compliance($db_object, $common, $user_id, $error_msg);
include_once "footer.php";