Exemple #1
0
$TemplateEncoding = "UTF-8";
$ContentType = "text/html";
$PathToRoot = "./";
$Charset = $Charset ? $Charset : "utf-8";
//End Initialize Page
//Authenticate User @1-B9498920
CCSecurityRedirect("1;2;3;4", "access_denied.php");
//End Authenticate User
//Include events file @1-BA7F0A72
include_once "./print_report_events.php";
//End Include events file
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-BEBAAE57
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] =& $DBConnection1;
$Attributes = new clsAttributes("page:");
$Attributes->SetValue("pathToRoot", $PathToRoot);
$MainPage->Attributes =& $Attributes;
// Controls
$header_print_report = new clsheader_print_report("includes/", "header_print_report", $MainPage);
$header_print_report->Initialize();
$title_users_sub_dept_sex = new clsGridtitle_users_sub_dept_sex("", $MainPage);
$patID = new clsControl(ccsLabel, "patID", "patID", ccsText, "", CCGetRequestParam("patID", ccsGet, NULL), $MainPage);
$resultID = new clsControl(ccsLabel, "resultID", "resultID", ccsText, "", CCGetRequestParam("resultID", ccsGet, NULL), $MainPage);
$startDate = new clsControl(ccsLabel, "startDate", "startDate", ccsText, "", CCGetRequestParam("startDate", ccsGet, NULL), $MainPage);
$deptShort = new clsControl(ccsLabel, "deptShort", "deptShort", ccsText, "", CCGetRequestParam("deptShort", ccsGet, NULL), $MainPage);
$Label1 = new clsControl(ccsLabel, "Label1", "Label1", ccsText, "", CCGetRequestParam("Label1", ccsGet, NULL), $MainPage);
$MainPage->header_print_report =& $header_print_report;
$MainPage->title_users_sub_dept_sex =& $title_users_sub_dept_sex;
Exemple #2
0
function CCLoginUser($login, $password)
{
    CCLogoutUser();
    $db = new clsDBConnection1();
    $SQL = "SELECT user_id, group_id, user_password FROM users WHERE user_login="******" AND user_password="******"UserID", $db->f("user_id"));
        CCSetSession("UserLogin", $login);
        CCSetSession("GroupID", $db->f("group_id"));
        CCSetSession("UserAddr", $_SERVER["REMOTE_ADDR"]);
    }
    return $Result;
}