Exemplo n.º 1
0
 public function getHTML($id, $page)
 {
     $bps = $this->getMyBPSData();
     $this->setParser("TodoTillDay", "Util::CLDateParser");
     $this->setParser("TodoTillTime", "Util::CLTimeParser");
     $this->addOrderV3("TodoTillDay", "DESC");
     $this->addOrderV3("TodoTillTime", "DESC");
     if ($bps != -1 and isset($bps["ownerClass"])) {
         $this->addAssocV3("TodoClass", "=", $bps["ownerClass"]);
         $this->addAssocV3("TodoClassID", "=", $bps["ownerClassID"]);
     }
     $gui = new HTMLGUIX();
     $this->loadMultiPageMode($id, $page, 8);
     $gui->name("Aktivität");
     $gui->colWidth("TodoType", "20px");
     $gui->colWidth("TodoDoneTime", "20px");
     $gui->object($this);
     $gui->parser("TodoDoneTime", "mTodoGUI::parserDone");
     $gui->parser("TodoDescription", "mTodoGUI::descParser");
     $gui->parser("TodoType", "TodoGUI::typesImage");
     $gui->parser("TodoTillDay", "mTodoGUI::dayParser");
     $gui->activateFeature("CRMEditAbove", $this);
     $gui->displayMode("CRMSubframeContainer");
     $gui->attributes(array("TodoType", "TodoTillDay", "TodoDescription", "TodoDoneTime"));
     $gui->customize($this->customizer);
     return $gui->getBrowserHTML($id);
 }
 public function getHTML($id, $page)
 {
     $this->loadMultiPageMode($id, $page, 0);
     $gui = new HTMLGUIX($this);
     $gui->name("IncomingPrettify");
     $gui->displayMode("BrowserLeft");
     #$gui->attributes(array());
     #$B = $gui->addSideButton("add new\nrule", "new");
     #$B->popup("editPopupIncomingPrettifyGUI", "Prettify rule", "IncomingPrettify", -1, "getEditPopup", "-1");
     #$B->editInPopup();
     $gui->activateFeature("editInPopup", $this);
     $gui->attributes(array("IncomingPrettifyFind", "IncomingPrettifyIsActive"));
     $gui->parser("IncomingPrettifyIsActive", "Util::catchParser");
     $gui->parser("IncomingPrettifyFind", "mIncomingPrettifyGUI::findParser");
     $gui->colWidth("IncomingPrettifyIsActive", 20);
     $B = $gui->addSideButton("run\nPrettifyer", "navigation");
     $B->popup("prettifyer", "Prettifyer", "mIncomingPrettify", "-1", "runRules");
     $B = $gui->addSideButton("Options", "system");
     $B->contextMenu("mIncomingPrettify", "options", "Options");
     return $gui->getBrowserHTML($id);
 }