Пример #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);
 }
Пример #2
0
 public function getHTML($id)
 {
     $allowedUsers = Environment::getS("allowedUsers", null);
     #$this->addAssocV3("UserType", "=", "0");
     $this->addOrderV3("name");
     if ($this->A == null) {
         $this->lCV3($id);
     }
     $up = new anyC();
     $up->setCollectionOf("User");
     $up->addAssocV3("password", "!=", ";;;-1;;;");
     $up->lCV3();
     if ($up->numLoaded() > 0 and $id == -1) {
         return "\n\t\t<table>\n\t\t\t<colgroup>\n\t\t\t\t<col class=\"backgroundColor3\" />\n\t\t\t</colgroup>\n\t\t\t<tr>\n\t\t\t\t<td><input onclick=\"rme('Users','','convertPasswords','','contentManager.reloadFrameRight();');\" type=\"button\" style=\"float:right;background-image:url(./images/navi/keys.png);\" class=\"bigButton backgroundColor2\" value=\"Passwörter\nkonvertieren\" />In Ihrer Datenbank befinden sich noch unkonvertierte Passwörter.</td>\n\t\t\t</tr>\n\t\t</table>";
     }
     $gui = new HTMLGUIX($this);
     $gui->screenHeight();
     $gui->name("Benutzer");
     #$gui->setCollectionOf($this->collectionOf,"Benutzer");
     $gui->parser("isAdmin", "UsersGUI::isAdminParser");
     $gui->colWidth("isAdmin", "20px");
     $gui->attributes(array("name", "username", "isAdmin"));
     /*$g = "";
     		
     		if(strstr($_SERVER["SCRIPT_FILENAME"],"demo")) {
     			$UA = $_SESSION["S"]->getCurrentUser()->getA();
     			if($UA->name != "Installations-Benutzer"){
     				$g = "In der Demo können keine Benutzer geändert werden!";
     				$gui->setIsDisplayMode(true);
     			}
     		}*/
     $TR = new HTMLTable(1);
     if ($allowedUsers !== null and $id == -1) {
         $B = new Button("", "notice", "icon");
         $B->style("float:left;margin-right:10px;");
         $TR->addRow(array($B . "Bitte beachten Sie: Sie können insgesamt {$allowedUsers} Benutzer ohne Admin-Rechte anlegen."));
     }
     if ($allowedUsers === null) {
         $B = $gui->addSideButton("Externe\nAuthentifizierung", "./plugins/Users/auth.png");
         $B->popup("", "Externe Authentifizierung", "Users", "-1", "authenticationPopup");
     }
     $gui->prepend($TR);
     $gui->customize($this->customizer);
     try {
         $AD = new LoginAD();
         $AD->getUsers();
         if ($AD->n() !== null) {
             $B = $gui->addSideButton("ActiveDirectory-\nBenutzer", "users");
         }
         $B->popup("", "ActiveDirectory-Benutzer", "Users", "-1", "ldapUsersPopup");
     } catch (Exception $e) {
     }
     return $gui->getBrowserHTML($id);
 }
Пример #3
0
 public function getHTML($id, $page)
 {
     $this->loadMultiPageMode($id, $page, 0);
     $gui = new HTMLGUIX($this);
     $gui->colWidth("phimUserActive", 20);
     $gui->name("Benutzer");
     $B = $gui->addSideButton("Zurück", "back");
     $B->loadPlugin("contentRight", "mphim");
     $gui->attributes(array("phimUserActive", "phimUserUserID"));
     $gui->parser("phimUserActive", "parserActive");
     $gui->parser("phimUserUserID", "parserUser");
     return $gui->getBrowserHTML($id);
 }
Пример #4
0
 function getHTML($id)
 {
     $this->addOrderV3("sort", "ASC");
     if ($this->A == null) {
         $this->lCV3($id);
     }
     $gui = new HTMLGUIX($this);
     $gui->name("Content");
     $gui->options(true, true, false, false);
     $a = array("sort", "text");
     if (Session::isPluginLoaded("mSprache")) {
         $a[] = "SpracheIdentifier";
         $gui->colWidth("SpracheIdentifier", "50");
     }
     $gui->attributes($a);
     $gui->parser("text", "mContentGUI::textParser");
     $gui->colWidth("sort", "30");
     $gui->colStyle("sort", "text-align:right;");
     $gui->addToEvent("onDelete", "contentManager.reloadFrame('contentLeft');");
     $gui->customize($this->customizer);
     return $gui->getBrowserHTML($id);
 }
Пример #5
0
 public function getHTML($id, $page)
 {
     $this->addOrderV3("EinkaufszettelImmer", "DESC");
     $this->addOrderV3("EinkaufszettelTime", "DESC");
     $this->loadMultiPageMode($id, $page, 0);
     $gui = new HTMLGUIX($this);
     $gui->version("mEinkaufszettel");
     $gui->colWidth("EinkaufszettelImmer", 20);
     $gui->name("Einkaufszettel");
     $gui->parser("EinkaufszettelImmer", "Util::catchParser");
     $gui->attributes(array("EinkaufszettelImmer", "EinkaufszettelName"));
     $B = $gui->addSideButton("EAN\nprüfen", "lieferschein");
     $B->popup("", "EAN prüfen", "mEinkaufszettel", "-1", "checkEANPopup");
     $B = $gui->addSideButton("Kategorien", "manager");
     $B->loadPlugin("contentRight", "mEinkaufszettelKategorie");
     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);
 }
Пример #7
0
 public function getPopupManager($rootDir = null, $class = null, $classID = null, $usePool = false, $fieldDefaultFile = "", $uploadTargetFilename = null)
 {
     if ($rootDir != null) {
         $T = new HTMLTable(1);
         #$rel = "$rootDir";
         $root = FileStorage::getFilesDir() . $rootDir;
         $_SESSION["BPS"]->setProperty("mFileGUI", "path", $root);
         $_SESSION["BPS"]->setProperty("mFileGUI", "root", $root);
         $F = new File($root);
         $F->loadMe();
         if ($F->getA() == null) {
             if (is_writable(FileStorage::getFilesDir())) {
                 mkdir($root, 0777, true);
             } else {
                 $B = new Button("", "stop");
                 $B->type("icon");
                 $B->style("float:left;margin-right:10px;");
                 $T->addRow($B . "Das Verzeichnis <code>{$rootDir}</code> existiert nicht und kann nicht automatisch angelegt werden, da keine Schreibberechtigung für <code>specifics</code> vorliegt.");
                 die($T);
             }
         }
     }
     $bps = $this->getMyBPSData();
     if (strpos($bps["path"], $bps["root"]) === false) {
         $bps["path"] = $bps["root"];
     }
     if ($bps != -1 and isset($bps["path"])) {
         $this->setDir($bps["path"]);
     }
     $this->hideDirs(true);
     $gui = new HTMLGUIX();
     $gui->object($this);
     $cols = array();
     if ($fieldDefaultFile != "") {
         $C = new $class($classID);
         self::$fieldDefaultFile = array($C, $C->A($fieldDefaultFile), $fieldDefaultFile);
         $cols[] = "isDefault";
         $gui->colWidth("isDefault", 20);
         $gui->parser("isDefault", "mFileGUI::parserDefault");
     }
     $cols[] = "FileName";
     $gui->attributes($cols);
     $gui->parser("FileName", "mFileGUI::nameParser2");
     $gui->options(true, false, false);
     $gui->name("Datei");
     $gui->addToEvent("onDelete", OnEvent::reloadPopup("mFile"));
     $oldFiles = "";
     if ($class != null and $classID != null) {
         $AC = anyC::get("Datei", "DateiClassID", $classID);
         $AC->addAssocV3("DateiClass", "=", $class);
         $oldFiles = new HTMLTable(2, "Verknüpfte Dateien");
         while ($F = $AC->getNextEntry()) {
             $BDL = new Button("Datei herunterladen", "./plugins/Files/download.png", "icon");
             $BDL->onclick("windowWithRme('File','" . $F->A("DateiPath") . "','download','');");
             $BDL->style("float:right;");
             $oldFiles->addRow(array($BDL . $F->A("DateiName")));
         }
     }
     $BPool = new Button("Pool\nanzeigen", "./lightCRM/Mail/images/attach.png");
     $BPool->style("float:right;margin:10px;");
     $BPool->onclick(OnEvent::popupSidePanel("mFile", -1, "sidePanelPool", array("'{$class}Pool'", "'{$rootDir}'")));
     if ($usePool and $rootDir) {
         echo $BPool . "<div style=\"clear:both;\"></div>";
         if (file_exists(FileStorage::getFilesDir() . "{$class}Pool")) {
             echo OnEvent::script("window.setTimeout(function(){ if(\$j('#editDetailsmFileSidePanel').length > 0) return; " . OnEvent::popupSidePanel("mFile", -1, "sidePanelPool", array("'{$class}Pool'", "'{$rootDir}'")) . "}, 100);");
         }
     }
     $F = new HTMLForm("fileUpload", array("datei"));
     $s = array("path" => $bps["path"], "class" => "File");
     if ($uploadTargetFilename != null) {
         $s["targetFilename"] = $uploadTargetFilename;
     }
     $F->setType("datei", "file", null, $s);
     $F->addJSEvent("datei", "onChange", OnEvent::reloadPopup("mFile"));
     $F->getTable()->setColWidth(1, 120);
     echo "<p class=\"prettyTitle\">/" . basename($bps["path"]) . "</p><p style=\"color:grey;margin-top:-15px;margin-bottom:10px;\"><small>" . dirname(realpath($bps["path"])) . "</small></p>" . $F . $gui->getBrowserHTML(-1) . $oldFiles;
 }
Пример #8
0
 public function getHTML($id, $page)
 {
     $bps = $this->getMyBPSData();
     $this->addOrderV3("season");
     $this->addOrderV3("episode");
     $this->addAssocV3("SerieID", "=", $bps["SerieID"]);
     $this->loadMultiPageMode($id, $page, 0);
     $gui = new HTMLGUIX($this);
     $gui->version("mSerie");
     $gui->displayMode("BrowserLeft");
     $gui->replaceEvent("onEdit", "contentManager.editInPopup('Folge', %CLASSID, 'Display episode details')");
     #$gui->setDisplaySide("left");
     #$gesamt = $this->loadMultiPageMode($id, $page, 0);
     #$gui->isQuickSearchable(str_replace("GUI","",get_class($this)));
     #$gui->setMultiPageMode($gesamt, $page, 0, "contentLeft", str_replace("GUI","",get_class($this)));
     $numb3rs = array();
     while ($e = $this->getNextEntry()) {
         $episodeTag = "S" . ($e->A("season") < 10 ? "0" : "") . $e->A("season") . "E" . ($e->A("episode") < 10 ? "0" : "") . $e->A("episode");
         $episodeTag2 = $e->A("season") . "x" . ($e->A("episode") < 10 ? "0" : "") . $e->A("episode");
         $episodeTag3 = $e->A("season") . ($e->A("episode") < 10 ? "0" : "") . $e->A("episode");
         $numb3rs[] = $episodeTag;
         foreach (mFolgeGUI::$files as $k => $FN) {
             $posTag2 = strpos($FN, $episodeTag2);
             if (stripos($FN, $episodeTag) !== false) {
                 mFolgeGUI::$found[$e->getID()] = $FN;
                 continue;
             }
             if (stripos($FN, $episodeTag2) !== false) {
                 mFolgeGUI::$found[$e->getID()] = $FN;
                 continue;
             }
             if (stripos($FN, $episodeTag3) !== false) {
                 mFolgeGUI::$found[$e->getID()] = $FN;
                 continue;
             }
             #elseif($posTag2 !== false AND $FN[$posTag2-1]*1 == 0) {
             #	mFolgeGUI::$found[$e->getID()] = $FN;
             #}
         }
     }
     $this->resetPointer();
     mFolgeGUI::$numb3rs = $numb3rs;
     #print_r(mFolgeGUI::$found);
     $gui->name("Folge");
     #$gui->setObject($this);
     $gui->colWidth("FolgeID", "20px");
     $gui->attributes(array("season", "episode", "name", "FolgeID"));
     $gui->options(false, true, false, true);
     /*
     		$gui->activateFeature("displayMode", $this, false, false, false);
     */
     $gui->parser("FolgeID", "mFolgeGUI::folgeParser");
     #,array("\$aid","\$name","\$season","\$episode","\$wanted")
     $gui->parser("name", "mFolgeGUI::nameParser");
     #,array("\$aid", "\$season", "\$episode")
     /*
     $gui->hideAttribute("SerieID");
     */
     try {
         return $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
Пример #9
0
 public function getHTML($id, $page)
 {
     $TID = BPS::getProperty("mphimGUI", "with", 0);
     if ($TID[0] != "g") {
         $this->addAssocV3("phimFromUserID", "=", Session::currentUser()->getID(), "AND", "1");
         $this->addAssocV3("phimToUserID", "=", $TID, "AND", "1");
         $this->addAssocV3("phimphimGruppeID", "=", "0", "AND", "1");
         $this->addAssocV3("phimFromUserID", "=", $TID, "OR", "2");
         $this->addAssocV3("phimToUserID", "=", Session::currentUser()->getID(), "AND", "2");
         $this->addAssocV3("phimphimGruppeID", "=", "0", "AND", "2");
     } else {
         $this->addAssocV3("phimphimGruppeID", "=", str_replace("g", "", $TID));
     }
     #$this->addJoinV3("User", $field1)
     #$this->addOrderV3("phimToUserID", "DESC");
     #$this->addOrderV3($order)
     $this->addOrderV3("phimTime", "DESC");
     $this->addOrderV3("phimID", "DESC");
     $this->setFieldsV3(array("phimRead", "phimFromUserID", "phimMessage", "DATE_FORMAT(FROM_UNIXTIME(phimTime), '%Y-%m-%d') AS grouper"));
     $this->loadMultiPageMode($id, $page, 0);
     $gui = new HTMLGUIX($this);
     $gui->version("mphim");
     $gui->colWidth("phimRead", 20);
     $gui->name("phim");
     $gui->displayGroup("grouper", "mphimGUI::parserDG");
     $gui->options(true, true, false);
     $gui->parser("phimRead", "parserRead");
     $gui->parser("phimFromUserID", "parserFrom");
     $gui->attributes(array("phimRead", "phimFromUserID", "phimMessage"));
     $B = $gui->addSideButton("Gruppen", "./ubiquitous/phim/group.png");
     $B->loadPlugin("contentRight", "mphimGruppe");
     $B = $gui->addSideButton("System-\nBenutzer", "./ubiquitous/phim/phimUser.png");
     $B->loadPlugin("contentRight", "mphimUser");
     $B = $gui->addSideButton("Benutzer\nausblenden", "./ubiquitous/phim/hidden.png");
     $B->loadPlugin("contentRight", "mphimUserHidden");
     $B = $gui->addSideButton("phim\nanzeigen", "new");
     $B->onclick("windowWithRme('mphim', -1, 'chatPopup', [], '', 'window', {height: 300, width:550, left: \$j.jStorage.get('phimX', 20), top: \$j.jStorage.get('phimY', 20), name: 'phim', scroll: false});");
     $B = $gui->addSideButton("Config-Datei", "new");
     $B->windowRme("mphim", "-1", "getConfigFile");
     $users = self::$users = Users::getUsersArray("Alle", true);
     $T = new HTMLTable(1, "Konversation mit");
     $T->setTableStyle("width:100%");
     $T->weight("light");
     $T->useForSelection(false);
     foreach ($users as $ID => $U) {
         $T->addRow(array($U));
         $T->addRowEvent("click", OnEvent::frame("contentRight", "mphim", "-1", 0, "", "mphimGUI;with:{$ID}"));
         if ($ID . "" === $TID . "") {
             $T->addRowClass("highlight");
         }
     }
     $AC = anyC::get("phimGruppe");
     $AC->addAssocV3("INSTR(phimGruppeMembers, ';" . Session::currentUser()->getID() . ";')", ">", "0");
     $TG = new HTMLTable(1, "Gruppen");
     $TG->setTableStyle("width:100%");
     $TG->weight("light");
     $TG->useForSelection(false);
     while ($G = $AC->n()) {
         $TG->addRow(array($G->A("phimGruppeName")));
         $TG->addRowEvent("click", OnEvent::frame("contentRight", "mphim", "-1", 0, "", "mphimGUI;with:g" . $G->getID()));
         if ("g" . $G->getID() === $TID . "") {
             $TG->addRowClass("highlight");
         }
     }
     $gui->addSideRow($T);
     $gui->addSideRow($TG);
     return $gui->getBrowserHTML($id);
 }