oSystem=&$oSystem; $this->msTPLPath=CURRDIR."apps/startseite/tpl/"; } function gsRender($asParams) { $oTPL=$this->oSystem->goGetTPLParser($this->msTPLPath."main.tpl"); if($asData=$this->gasGetVeranstaltungen()) { $oTPL->gbSetBlock("error",array()); $oTPL->gbSetBlock("veranstaltungen",$asData); } else { var_dump($asData); $oTPL->gbSetBlock("error",array(array())); $oTPL->gbSetBlock("veranstaltungen",array()); } $oTPL->gbSetValue("new",$this->oSystem->oSiteNavi->gsGetURL("NeueVeranstaltung",array("Drop"))); $oTPL->gbSetValue("einstellungen",$this->oSystem->oSiteNavi->gsGetURL("Einstellungen",array("Drop"))); $oTPL->gbSetValue("EDITVA",$this->oSystem->oSiteNavi->gsGetURL("Veranstaltung",array())); return $oTPL->gsParse(); } function gasGetVeranstaltungen() { $sQuery=" SELECT *, VeranstaltungsKey as KurzerName, DATE_FORMAT(BeginnDatum,'%d.%m.%y') as Termin , DATE_FORMAT(EndeDatum,'%d.%m.%y') as TerminEnde FROM tdVeranstaltungen WHERE IFNULL(DeleteDate,-1)=-1 order by VeranstaltungsPK"; if($oRes=$this->oSystem->oDB->goQuery($sQuery)) { return $oRes->gaaGetAllRecords(); } return false; } function msContent() { } }