Пример #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
 function getHTML($id)
 {
     $this->customize();
     #if($this->A == null AND $id != -1) $this->loadMe();
     #if($id == -1) $this->A = new UserAttributes();
     $this->loadMeOrEmpty();
     $up = new anyC();
     $up->setCollectionOf("User");
     $up->addAssocV3("password", "!=", ";;;-1;;;");
     $up->lCV3();
     if ($up->numLoaded() > 0) {
         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>";
     }
     $this->A->password = "******";
     $gui = new HTMLGUIX($this);
     #$gui->setObject();
     $gui->name("Benutzer");
     $gui->attributes(array("name", "username", "password", "SHApassword", "language", "UserPosition", "isAdmin", "UserEmail", "UserICQ", "UserJabber", "UserSkype", "UserTel"));
     $gui->label("name", "Name");
     $gui->label("username", "Benutzername");
     $gui->label("password", "Passwort");
     $gui->label("SHApassword", "Passwort");
     $gui->label("language", "Sprache");
     $gui->label("isAdmin", "Admin-Rechte?");
     $gui->label("UserEmail", "E-Mail");
     $gui->label("UserICQ", "ICQ");
     $gui->label("UserJabber", "Jabber");
     $gui->label("UserSkype", "Skype");
     $gui->label("UserTel", "Telefon");
     $gui->type("language", "select", array("de_DE" => "Deutsch (Deutschland) €", "de_DE_EUR" => "Deutsch (Deutschland) EUR", "de_CH" => "Deutsch (Schweiz) sFr", "de_CH_CHF" => "Deutsch (Schweiz) CHF", "en_GB" => "English (United Kingdom)"));
     #$gui->setOptions("language",);
     $gui->descriptionField("SHApassword", "Zum Ändern eingeben.");
     $gui->type("password", "hidden");
     $gui->type("SHApassword", "password");
     $gui->type("isAdmin", "radio");
     $gui->descriptionField("isAdmin", "<span style=\"color:red;\">Achtung: als Admin sehen Sie nur diese Admin-Oberfläche und NICHT das Programm selbst!</span>");
     #$gui->translate($this->loadTranslation());
     $gui->space("UserEmail", isset($this->texts["Kontaktdaten"]) ? $this->texts["Kontaktdaten"] : "Kontaktdaten");
     $gui->type("isAdmin", "checkbox");
     #$gui->setOptions("isAdmin",array("1","0"),array("ja ","nein"));
     #$gui->setStandardSaveButton($this);
     $gui->customize($this->customizer);
     $mUD = new mUserdataGUI();
     $mUD->addAssocV3("UserID", "=", $this->ID);
     $mUD->addAssocV3("typ", "=", "uRest", "AND", "1");
     $mUD->addAssocV3("typ", "=", "relab", "OR", "1");
     $mUD->addAssocV3("typ", "=", "hideF", "OR", "1");
     $mUD->addAssocV3("typ", "=", "pSpec", "OR", "1");
     $mUD->addAssocV3("typ", "=", "pHide", "OR", "1");
     $html = "<div>" . $mUD->getHTML(-1) . "</div>";
     if ($id == -1) {
         $html = "<table><tr><td class=\"backgroundColor3\">Sie können Einschränkungen erst anlegen, wenn der Benutzer angelegt wurde.</td></tr></table>";
     }
     return $gui->getEditHTML() . ($this->A->isAdmin != 1 ? $html : "");
 }
Пример #3
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);
 }
Пример #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);
 }