oSystem=&$oSystem; $this->msTPLPath=CURRDIR."apps/main/index.tpl/"; } function gsRUN($sClass,$asParams) { $oTPL=$this->oSystem->goGetTPLParser($this->msTPLPath."main.tpl"); if($sClass=="") { $sClass="StartClass"; } $sClassFile=CURRDIR."apps/".strtolower($sClass)."/class.".strtolower($sClass).".php"; if(!file_exists($sClassFile)) { $sClass="Startseite"; $sClassFile=CURRDIR."apps/".strtolower($sClass)."/class.".strtolower($sClass).".php"; } require_once($sClassFile); $sClassName="C".$sClass; if(class_exists($sClassName)) { $oContent=new $sClassName($this->oSystem); $oTPL->gbSetValue("content",$oContent->gsRender($asParams)); } $oTPL->gbSetValue("LOADSCRIPT",$this->oSystem->oSiteNavi->gsGetURL("",array(),"script")); $oTPL->gbSetValue("menu",$this->msGetMenu($sClass)); return $oTPL->gsParse(); } function msGetMenu($sClass) { $asData["home"]["content"]=$this->gsGetButton("Startseite",$sClass,"Startseite"); $asData["auftraege"]["content"]=$this->gsGetButton("Auftraege",$sClass,"Auftraege"); $asData["angebote"]["content"]=$this->gsGetButton("Angebote",$sClass,"Angebote "); $asData["eigenedaten"]["content"]=$this->gsGetButton("EigeneDaten",$sClass,"Eigene Daten"); $asData["agb"]["content"]=$this->gsGetButton("AGB",$sClass,"AGB"); if($this->oSystem->oUser->oUserData->IsPartner==-1) { $asData["boerse"]["content"]=$this->gsGetButton("Partner",$sClass,"Partner"); } $asData["logout"]["content"]=$this->gsGetButton("Logout",$sClass,"Logout"); $oTPL=$this->oSystem->goGetTPLParser(CURRDIR."tpl/menu.main.tpl"); $oTPL->gbSetBlock("menu",$asData); return $oTPL->gsParse(); } function gsGetButton($sClass,$sCurrent,$anzeige) { $oTPL=$this->oSystem->goGetTPLParser(CURRDIR."tpl/menu.tpl"); $oTPL->gbSetValue("ANZEIGE",$anzeige); if(strtolower($sClass)==strtolower($sCurrent)) $oTPL->gbSetValue("mnuAttrib","active"); else $oTPL->gbSetValue("mnuAttrib","normal"); $sURL=$this->oSystem->oSiteNavi->gsGetURL($sClass); $oTPL->gbSetValue("URL",$sURL); return $oTPL->gsParse(); } }