Exemple #1
0
                                $this->tpl->parse("TDListBlock", "TDList", true);
                            }
                        } else {
                            $this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
                            $this->tpl->set_var("TDListBlock", "huh");
                        }
                    }
                }
        }
        $this->setForm();
        $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"));
//global $auth;
//print_r($auth);
if (!$page) {
    $page = 1;
}
$tdList = new TDList($HTTP_POST_VARS, $sess, $tdID, $page, $searchKey, $formAction, $sortBy, $sortOrder, $viewArchives);
$tdList->main();
page_close();