oSystem=&$oSystem; $this->msTPLPath=CURRDIR."apps/einstellungen/tpl/"; $this->msClasses=CURRDIR."apps/einstellungen/"; $this->mlUserPK=$this->oSystem->oUser->oUserData->UserPK; $this->gotoUebersicht=false; } function gsRender($asParams) { $oTPL=$this->oSystem->goGetTPLParser($this->msTPLPath."main.tpl"); $oTPL->gbSetValue("back",$this->oSystem->oUI->gsGetAnchor("javascript:",$this->oSystem->oSiteNavi->gsGetURL("StartSeite"),"<< Zurück")); $sCurrent=$asParams[0]; if(!isset($asParams[0])||$asParams[0]=="") $sCurrent="Verbindungen"; if(is_array($asParams)) $sAction=strtolower(array_shift($asParams)); switch($sAction) { default: case "verbindungen": $oTPL->gbSetContent($this->msVerbindungen($asParams)); break; case "typen": $oTPL->gbSetContent($this->msTypen($asParams)); break; } $oTPL->gbSetValue("menu",$this->gsGetMenu($sCurrent)); return $oTPL->gsParse(); } function msTypen($asParams) { $sFile=$this->msClasses."typen/class.typen.php"; $o=$this->oSystem->goLoadObject($sFile,"CVATypen"); if($o!==false) { $o->msClass="Einstellungen"; $o->masActions=array("Typen"); return $o->gsRender($asParams); } else return "NOLOAD"; } function msVerbindungen($asParams) { $sFile=$this->msClasses."verbindungen/class.verbindungen.php"; $o=$this->oSystem->goLoadObject($sFile,"CVAVerbindungen"); if($o!==false) { $o->msClass="Einstellungen"; $o->masActions=array("Verbindungen"); return $o->gsRender($asParams); } else return "NOLOAD"; } function gsGetMenu($sCurrent) { $oMenu=new CMiniMenu($this->oSystem,"Einstellungen",$sCurrent); $asData["neu"] =$oMenu->gsGetButton($this->__addAction(array("Verbindunen")),"Verbindungen"); $asData["auftraege"] =$oMenu->gsGetButton($this->__addAction(array("Benutzer")),"Benutzer"); $asData["dienste"] =$oMenu->gsGetButton($this->__addAction(array("Typen")),"Typen"); /* $asData["zahlungs"] =$oMenu->gsGetButton($this->__addAction(array("Zahlungseingaenge")),"Zahlungseingänge"); $asData["termin"] =$oMenu->gsGetButton($this->__addAction(array("Termin")),"Terminplan"); $asData["url"] =$oMenu->gsGetButton($this->__addAction(array("URL")),"URL");*/ return $oMenu->gsGetMenu($asData,110); } }