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();
Exemple #2
0
    {
    }
    function getTDList($rptopID)
    {
        $tdRecords = new TDRecords();
        $tdRecords->selectRecords($rptopID);
        if (!($domDoc = $tdRecords->getDomDocument())) {
            return false;
        } else {
            $xmlStr = $domDoc->dump_mem(true);
            return $xmlStr;
        }
    }
    function deleteTD($tdIDArray)
    {
        $tdRecords = new TDRecords();
        $rows = $tdRecords->deleteRecords($tdIDArray);
        return $rows;
    }
    function removeTD($tdIDArray)
    {
        $tdRecords = new TDRecords();
        $rows = $tdRecords->removeRecords($tdIDArray);
        return $rows;
    }
}
//*
$obj = new TDList();
echo $obj->getTDList();
//echo $obj->getTDListOfPerson(2);
//*/