示例#1
0
        $startYear = date("Y") - 10;
        $endYear = date("Y") + 10;
        for ($year = $startYear; $year <= $endYear; $year++) {
            $this->tpl->set_var("year_selected", "");
            if ($year == date("Y")) {
                $this->tpl->set_var("year_selected", "selected");
            }
            $this->tpl->set_var("year", $year);
            $this->tpl->parse("YearListBlock", "YearList", true);
        }
        $this->tpl->set_var("uname", $this->user["uname"]);
        $this->tpl->set_var("today", date("F j, Y"));
        $this->setPageDetailPerms();
        $this->tpl->set_var("Session", $this->sess->url(""));
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$reportForm = new ReportForm($sess);
$reportForm->Main();
page_close();