Esempio n. 1
0
 public function getHTML($id)
 {
     if ($_SESSION["S"]->isUserAdmin()) {
         $D = new ADesktopGUI();
         return $D->getHTML($id);
     }
     $c = $_SESSION["applications"]->getActiveApplication() . "DesktopGUI";
     try {
         $c = new $c();
         return $c->getHTML($id);
     } catch (ClassNotFoundException $e) {
     }
 }
Esempio n. 2
0
 public function getHTML($id)
 {
     if ($_SESSION["S"]->isUserAdmin()) {
         $D = new ADesktopGUI();
         return $D->getHTML($id);
     }
     $c = Applications::activeApplication() . "DesktopGUI";
     try {
         $c = new $c();
         if ($id == "1") {
             return "\n\t\t\t\t\t<div style=\"float:right;width:33.3333%;\"><div id=\"desktopRight\" style=\"padding:10px;\">" . $c->getHTML($id) . "</div></div>\n\t\t\t\t\t<div style=\"float:right;width:33.3333%;\"><div id=\"desktopMiddle\" style=\"padding:10px;width:90%;margin:auto;\"></div></div>\n\t\t\t\t\t<div style=\"float:right;width:33.3333%;\"><div id=\"desktopLeft\" style=\"padding:10px;\"></div></div>\n\t\t\t\t\t" . OnEvent::script(OnEvent::frame("desktopLeft", "Desktop", "2") . OnEvent::frame("desktopMiddle", "Desktop", "3")) . "<div style=\"clear:both;\"></div>";
         }
         return $c->getHTML($id);
     } catch (ClassNotFoundException $e) {
     }
 }
Esempio n. 3
0
 public function getHTML($id)
 {
     // <editor-fold defaultstate="collapsed" desc="Aspect:jP">
     try {
         $MArgs = func_get_args();
         return Aspect::joinPoint("around", $this, __METHOD__, $MArgs);
     } catch (AOPNoAdviceException $e) {
     }
     Aspect::joinPoint("before", $this, __METHOD__, $MArgs);
     // </editor-fold>
     if ($_SESSION["S"]->isUserAdmin()) {
         return parent::getHTML($id);
     }
     switch ($id) {
         case "1":
             //return OnEvent::script('contentManager.loadPlugin("contentScreen", "mfheOverview");');
             /*return "
             			<script type=\"text/javascript\">
             				if($('mfheOverviewMenuEntry')){
             					$('contentLeft').update('');
             					
             					contentManager.loadFrame('contentScreen', 'mfheOverview', -1, 0, 'mfheOverviewGUI;-');
             					setHighLight($('mfheOverviewMenuEntry'));
             				}
             			</script>";
             		break;*/
         //return OnEvent::script('contentManager.loadPlugin("contentScreen", "mfheOverview");');
         /*return "
         			<script type=\"text/javascript\">
         				if($('mfheOverviewMenuEntry')){
         					$('contentLeft').update('');
         					
         					contentManager.loadFrame('contentScreen', 'mfheOverview', -1, 0, 'mfheOverviewGUI;-');
         					setHighLight($('mfheOverviewMenuEntry'));
         				}
         			</script>";
         		break;*/
         case "2":
             break;
     }
 }
 public function getHTML($id)
 {
     // <editor-fold defaultstate="collapsed" desc="Aspect:jP">
     try {
         $MArgs = func_get_args();
         return Aspect::joinPoint("around", $this, __METHOD__, $MArgs);
     } catch (AOPNoAdviceException $e) {
     }
     Aspect::joinPoint("before", $this, __METHOD__, $MArgs);
     // </editor-fold>
     if ($_SESSION["S"]->isUserAdmin()) {
         return parent::getHTML($id);
     }
     switch ($id) {
         case "1":
             $AC = anyC::get("JDownload");
             $AC->addOrderV3("JDownloadDate", "DESC");
             $AC->setLimitV3(19);
             $T = new HTMLTable(2);
             $T->weight("light");
             $T->addColStyle(1, "padding:5px;padding-left:10px;");
             $T->addColStyle(2, "color:grey;text-align:right;padding:5px;");
             while ($D = $AC->getNextEntry()) {
                 $T->addRow(array($D->A("JDownloadRenameto"), Util::formatByte($D->A("JDownloadFilesize"), 2)));
                 if ($D->A("JDownloadRenamed") == 0) {
                     $T->addRowClass("error");
                 }
                 #$r .= OnEvent::script ("\$j('#BrowsermJDownload".$E->getID()."').css('background-color', '');");
                 $T->addRowStyle("cursor:pointer;");
                 $T->addRowEvent("click", "contentManager.loadPlugin('contentRight', 'mJDownload', '', " . $D->getID() . ");");
             }
             return "<p class=\"prettyTitle\">Downloads</p>" . $T;
             break;
         case "2":
             break;
         case "3":
             return "";
             break;
     }
 }