当前位置: 首页>>代码示例>>PHP>>正文


PHP HTMLForm::setDescriptionField方法代码示例

本文整理汇总了PHP中HTMLForm::setDescriptionField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLForm::setDescriptionField方法的具体用法?PHP HTMLForm::setDescriptionField怎么用?PHP HTMLForm::setDescriptionField使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTMLForm的用法示例。


在下文中一共展示了HTMLForm::setDescriptionField方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testMailGUI

 public function testMailGUI()
 {
     $F = new HTMLForm("mailTest", array("mailfrom", "mailto"));
     $F->setSaveRMEPCR("Mailversand testen", "./images/i2/save.gif", "mInstallation", -1, "testMail", "function(transport){ \$('mailTestDetailsContent').update(transport.responseText); }");
     $F->setLabel("mailfrom", "Absender");
     $F->setDescriptionField("mailfrom", "E-Mail-Adresse");
     $F->setLabel("mailto", "Empfänger");
     $F->setDescriptionField("mailto", "E-Mail-Adresse");
     echo $F . "<div id=\"mailTestDetailsContent\"></div>";
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:10,代码来源:mInstallationGUI.class.php

示例2: getForm

 function getForm()
 {
     if ($this->form != null) {
         return $this->form;
     }
     if ($this->formID == null) {
         $this->formID = "edit" . get_class($this->object);
     }
     $F = new HTMLForm($this->formID == null ? "edit" . get_class($this->object) : $this->formID, $this->attributes == null ? $this->object : $this->attributes, strpos($this->displayMode, "popup") === false ? $this->operationsButton() . $this->name : null);
     $F->getTable()->setColWidth(1, 120);
     $F->getTable()->addTableClass("contentEdit");
     $ID = $this->object->getID();
     if (BPS::getProperty("HTMLGUI", "insertAsNew", false)) {
         $ID = -1;
         BPS::unsetProperty("HTMLGUI", "insertAsNew");
     }
     if ($this->showSave) {
         $F->setSaveClass(get_class($this->object), $ID, $this->functionEntrySave, $this->name);
     }
     $F->isEditable($this->showInputs);
     foreach ($this->object->getA() as $n => $v) {
         $F->setValue($n, $v);
         $F->setLabel($n, str_replace($this->object->getClearClass(), "", $n));
     }
     foreach ($this->types as $n => $l) {
         $F->setType($n, $l, null, isset($this->options[$n]) ? $this->options[$n] : null);
     }
     foreach ($this->labels as $n => $l) {
         $F->setLabel($n, T::_($l));
     }
     foreach ($this->placeholders as $n => $l) {
         $F->setPlaceholder($n, $l);
     }
     foreach ($this->descriptionsField as $n => $l) {
         $F->setDescriptionField($n, T::_($l));
     }
     foreach ($this->parsers as $n => $l) {
         $F->setType($n, "parser", null, array($l, $this->object));
     }
     foreach ($this->spaces as $n => $l) {
         $F->insertSpaceAbove($n, T::_($l));
     }
     foreach ($this->fieldButtons as $n => $B) {
         $F->addFieldButton($n, $B);
     }
     foreach ($this->fieldEvents as $k => $v) {
         $F->addJSEvent($v[0], $v[1], $v[2]);
     }
     foreach ($this->hiddenLines as $n) {
         $F->inputLineStyle($n, "display:none;");
     }
     foreach ($this->inputStyles as $k => $n) {
         $F->setInputStyle($k, $n);
     }
     foreach ($this->autocomplete as $k => $a) {
         $F->setAutoComplete($k, $a[0], $a[1], $a[2]);
     }
     $this->form = $F;
     return $F;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:60,代码来源:HTMLGUIX.class.php

示例3: showAddress

 function showAddress()
 {
     $html = "<script type=\"text/javascript\">\n\t\t\$(function() {\n\t\t\tjQuery.validator.addMethod('firmOrName', function(value, element, params) {\n\t\t\t\t\n\t\t\t\tif(\$('input[name=firma]').val() != '')\n\t\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t\tif(\$('input[name=nachname]').val() == '')\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\tif(\$('input[name=vorname]').val() == '')\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}, 'Bitte geben Sie Ihren Firmennamen <b>oder</b> Ihren Vor- und Nachnamen ein.');\n\t\t});\n\t\t\$(function() {\n\t\t\t\$('#ticketAddress').validate({\n\t\t\t\trules: {\n\t\t\t\t\tnachname: {firmOrName: true},\n\t\t\t\t\t/*vorname: {firmOrName: true},\n\t\t\t\t\tfirma: {firmOrName: true},*/\n\t\t\t\t\tstrasse: 'required',\n\t\t\t\t\tnr: 'required',\n\t\t\t\t\tplz: 'required',\n\t\t\t\t\tort: 'required',\n\t\t\t\t\temail: {\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\temail: true\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tgroups: {\n\t\t\t\t\tstrasseNr: 'nr strasse',\n\t\t\t\t\tplzOrt: 'ort plz'\n\t\t\t\t},\n\n\t\t\t\tmessages: {\n\t\t\t\t\tstrasse: 'Bitte geben Sie Straße und Hausnummer ein',\n\t\t\t\t\tnr: 'Bitte geben Sie Straße und Hausnummer ein',\n\t\t\t\t\tplz: 'Bitte geben Sie Postleitzahl und Ort ein',\n\t\t\t\t\tort: 'Bitte geben Sie Postleitzahl und Ort ein',\n\t\t\t\t\temail: {required: 'Bitte geben Sie Ihre E-Mail-Adresse ein', email: 'Bitte geben Sie Ihre gültige E-Mail-Adresse ein'}\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\terrorPlacement: function(error, element) {\n\t\t\t\t\tvar name = element.attr('name');\n\t\t\t\t\tif (name === 'strasse' || name === 'nr') {\n\t\t\t\t\t\terror.insertAfter('input[name=nr]');\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tif (name === 'plz' || name === 'ort') {\n\t\t\t\t\t\terror.insertAfter('input[name=ort]');\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\terror.insertAfter(element);\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t});\n\t\t});\n\t\t\n\t\t</script>";
     $F = new HTMLForm("ticketAddress", array("firma", "vorname", "nachname", "email", "strasse", "plz", "land", "action"), "Rechnungsdaten");
     $F->setType("land", "select", "DE", ISO3166::getCountries());
     $F->setType("strasse", "parser", null, array("CCTicketShop::strasseParser"));
     $F->setType("plz", "parser", null, array("CCTicketShop::plzParser"));
     $F->setType("action", "hidden");
     $F->insertSpaceAbove("strasse", "Adresse");
     $F->insertSpaceAbove("email", "Kontakt");
     $F->setLabel("email", "E-Mail");
     $F->setDescriptionField("email", "An diese Adresse werden die Rechnung und die Tickets verschickt.");
     #$F->setLabel("tel", "Telefon");
     $F->setLabel("strasse", "Straße/Nr");
     $F->setLabel("plz", "PLZ/Ort");
     $F->setValue("action", "handleAddress");
     if (isset($_SESSION["ticketDataAddress"])) {
         foreach ($_SESSION["ticketDataAddress"] as $k => $v) {
             $F->setValue($k, $v);
         }
     }
     $F->setSaveCustomerPage("Weiter", null, true, "function(){ document.location.reload(); }");
     $html .= $F;
     return $html;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:25,代码来源:CCTicketShop.class.php

示例4: getEditTableHTML

 public function getEditTableHTML($cols = 2)
 {
     BPS::unsetProperty($this->className . "GUI", "edit");
     if ($this->attributes == null) {
         $this->attributes = PMReflector::getAttributesArrayAnyObject($this->object->getA());
     }
     if ($this->name == null) {
         $this->name = $this->className;
     }
     $BA = $this->getAbortButton();
     if (isset($this->features["CRMEditAbove"])) {
         $BA->style("float:left;margin-left:10px;margin-top:10px;");
     }
     $Buttons = "";
     foreach ($this->sideButtons as $B) {
         if (isset($this->features["CRMEditAbove"])) {
             $B->style("float:left;margin-left:10px;margin-top:10px;");
         }
         $Buttons .= $B;
     }
     $abort = "<div>{$BA}{$Buttons}</div><div style=\"clear:left;height:10px;\"></div>";
     $tab = new HTMLForm($this->className . "Form", $this->attributes, $this->name . " editieren:");
     if ($cols != 2) {
         $tab->cols($cols);
     }
     foreach ($this->labels as $k => $v) {
         $tab->setLabel($k, $v);
     }
     foreach ($this->types as $k => $v) {
         $tab->setType($k, $v, null, isset($this->options[$k]) ? $this->options[$k] : null);
     }
     foreach ($this->spaces as $k => $v) {
         $tab->insertSpaceAbove($k, $v);
     }
     foreach ($this->autocomplete as $k => $a) {
         $tab->setAutoComplete($k, $a[0], $a[1]);
     }
     foreach ($this->fieldButtons as $k => $B) {
         $tab->addFieldButton($k, $B);
     }
     foreach ($this->parsers as $n => $l) {
         $tab->setType($n, "parser", null, array($l, $this->object));
     }
     foreach ($this->inputStyles as $k => $n) {
         $tab->setInputStyle($k, $n);
     }
     foreach ($this->descriptionsField as $n => $l) {
         $tab->setDescriptionField($n, T::_($l));
     }
     $tab->setValues($this->object);
     if ($this->object->getID() == -1) {
         $save = $this->functionSaveNew;
     } else {
         $save = $this->functionSave;
     }
     $tab->setSaveClass($this->className, $this->object->getID(), str_replace(array("%CLASSNAME", "%CLASSID"), array($this->className, $this->object->getID()), $save), $this->name);
     $tab->useRecentlyChanged();
     return $abort . $tab;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:59,代码来源:CRMHTMLGUI.class.php

示例5: showActivation

 function showActivation()
 {
     $PU = anyC::getFirst("PDFixUser", "PDFixUserToken", $_GET["activate"]);
     if ($PU == null) {
         return "<p>Token unbekannt</p>";
     }
     if ($PU->A("PDFixUserIsActive") == "1") {
         return "<p>Benutzer bereits aktiviert</p>";
     }
     $Adresse = new Adresse($PU->A("PDFixUserAdresseID"));
     $Kappendix = new Kappendix($PU->A("PDFixUserKappendixID"));
     $html = "<script type=\"text/javascript\">\n\t\t\$(function() {\n\t\t\t\$('#activateUser').validate({\n\t\t\t\trules: {\n\t\t\t\t\tacceptPayment: 'required'\n\t\t\t\t},\n\t\t\t\tmessages: {\n\t\t\t\t\tacceptPayment: 'Sie müssen der Nutzung zustimmen.'\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t\$('#activateUser input[type=text]').css('background-color', 'transparent').css('color', 'grey').attr('disabled', 'disabled');\n\t\t\t\n\t\t});\n\t\t\n\t\t</script>";
     $html .= "<h1>Benutzer-Aktivierung für PDFix</h1>";
     $F = new HTMLForm("activateUser", array("firma", "strasse", "nr", "plz", "ort", "email", "tel", "blz", "kontonummer", "zahlungsweise", "userVorNachname", "acceptPayment", "action", "token"));
     $F->insertSpaceAbove("strasse", "Adresse");
     $F->insertSpaceAbove("email", "Kontakt");
     $F->insertSpaceAbove("blz", "Bank");
     $F->insertSpaceAbove("firma", "<h2>Abrechnungsdaten</h2>");
     $F->insertSpaceAbove("userVorNachname", "<h2 style=\"margin-top:20px;\">Benutzerdaten</h2>");
     $F->insertSpaceAbove("zahlungsweise", "<h2 style=\"margin-top:20px;\">Zahlungsweise</h2>");
     $kosten1Monat = Util::CLFormatCurrency(mUserdata::getUDValueS("PDFixKostenProMonat", "0") * 1, true);
     $kosten3Monat = Util::CLFormatCurrency(mUserdata::getUDValueS("PDFixKostenPro3Monat", "0") * 1, true);
     $kosten6Monat = Util::CLFormatCurrency(mUserdata::getUDValueS("PDFixKostenPro6Monat", "0") * 1, true);
     $F->setType("action", "hidden");
     $F->setType("token", "hidden");
     $F->setType("acceptPayment", "checkbox");
     $F->setType("zahlungsweise", "select", "1", array("1" => "Monatlich ({$kosten1Monat} + MwSt)", "3" => "Vierteljährlich ({$kosten3Monat} + MwSt)", "6" => "Halbjährlich ({$kosten6Monat} + MwSt)"));
     $F->setValue("action", "activate");
     $F->setLabel("email", "E-Mail");
     $F->setLabel("tel", "Telefon");
     $F->setLabel("strasse", "Straße");
     $F->setLabel("userVorNachname", "Name");
     $F->setLabel("acceptPayment", "Zustimmung");
     $F->setValue("firma", $Adresse->A("firma"));
     $F->setValue("strasse", $Adresse->A("strasse"));
     $F->setValue("nr", $Adresse->A("nr"));
     $F->setValue("plz", $Adresse->A("plz"));
     $F->setValue("ort", $Adresse->A("ort"));
     $F->setValue("email", $Adresse->A("email"));
     $F->setValue("tel", $Adresse->A("tel"));
     $F->setValue("blz", $Kappendix->A("KappendixBLZ"));
     $F->setValue("kontonummer", $Kappendix->A("KappendixKontonummer"));
     $F->setValue("userVorNachname", $PU->A("PDFixUserVorNachname"));
     $F->setValue("zahlungsweise", $PU->A("PDFixUserRate"));
     $F->setValue("token", $_GET["activate"]);
     $F->setDescriptionField("acceptPayment", "Hiermit stimme ich zu, dass dieser Benutzer die Anwendung PDFix für den oben genannten Betrag nutzen darf.");
     $F->setSaveCustomerPage("Jetzt aktivieren", null, true, "function(){ document.location.href='./index.php?CC=RegistrationPDFix&thankA=1'; }");
     $html .= $F;
     return $html;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:50,代码来源:CCRegistrationPDFix.class.php

示例6: getHTML

 function getHTML($id)
 {
     $this->addOrderV3("PatchID");
     $this->lCV3($id);
     $gui = new HTMLGUI();
     $gui->setName("Updates");
     $gui->setAttributes($this->collector);
     $gui->setCollectionOf($this->collectionOf, "Update");
     $gui->setShowAttributes(array("PatchDescription", "PatchExecuted"));
     $gui->setParser("PatchExecuted", "Util::catchParser");
     $gui->setParser("PatchDescription", "mPatchGUI::descriptionParser");
     #$gui->setIsDisplayMode(true);
     #$gui->setEditInDisplayMode(true,"contentLeft");
     #$gui->setDeleteInDisplayMode(false);
     $BXML = new Button("XML\nerzeugen", "empty");
     $BXML->style("float:right;");
     $BXML->windowRme("mPatch", "-1", "getXML", "");
     if (strpos($_SERVER["SCRIPT_FILENAME"], "/nemiah") === false) {
         $BXML = "";
     }
     $BU = new Button("Updates\naktualisieren", "refresh");
     $BU->rmePCR("mPatch", "-1", "update", "", "function(transport){ if(transport.responseText != 'error') " . OnEvent::reload("Right") . " else new Effect.BlindDown('errorMessage'); }");
     $T = new HTMLTable(1, "Einzelne Aktualisierungen");
     $T->addRow(array($BU . $BXML . "\n\t\t\t\t\t<div id=\"errorMessage\" style=\"display:none;color:red;\">Es konnte keine Verbindung zum Updates-Server hergestellt werden.<br />Bitte stellen Sie folgende Voraussetzungen sicher:\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>Der Server mit Ihrer Installation kann eine Verbindung ins Internet aufbauen.</li>\n\t\t\t\t\t\t<li>Sie benutzen die aktuellste Version des Update-Plugins.</li>\n\t\t\t\t\t</ul></div>"));
     $html = OnEvent::script("var Patch = { popup: { 'width':600, 'hPosition': 'center', hasX: false } }") . $T;
     /*"
     		<table>
     			<colgroup>
     				<col class=\"backgroundColor3\" />
     			</colgroup>
     			<tr>
     				<td>
     					".(strpos($_SERVER["SCRIPT_FILENAME"], "/nemiah") !== false ? "<input
     						style=\"float:right;\"
     						onclick=\"windowWithRme('mPatch','','getXML','');\"
     						type=\"button\"
     						class=\"bigButton backgroundColor2\"
     						value=\"XML\nerzeugen\"
     					/>" : "")."
     					<input
     						style=\"background-image:url(./images/navi/refresh.png);\"
     						onclick=\"rme('mPatch','','update','','if(transport.responseText != \'error\') contentManager.reloadFrameRight(); else new Effect.BlindDown(\'errorMessage\');');\"
     						type=\"button\"
     						class=\"bigButton backgroundColor2\"
     						value=\"Updates\naktualisieren\"
     					/>
     				</td>
     			</tr>
     		</table>";*/
     #else
     #	$html = "";
     $F = new HTMLForm("updateForm", array("file"), "Die Anwendung aktualisieren");
     $F->getTable()->setColWidth(1, 120);
     $F->setType("file", "file");
     $F->setLabel("file", "Paket");
     $F->addJSEvent("file", "onChange", "Overlay.showDark(0.1, 0.8); " . OnEvent::popup("Anwendungsaktualisierung", "mPatch", "-1", "processUpdate", array("fileName"), "", "Patch.popup"));
     $F->setDescriptionField("file", "Hier aktualisieren Sie Ihre komplette Anwendung mit einem neuen Paket, das Sie von Furtmeier Hard- und Software erhalten haben.<br /><br />Sie können damit sowohl neue Versionen (Update) einspielen als auch eine mit Plugins erweiterte Version (Upgrade) einrichten.<br /><br />Alle Dateien werden vorher gesichert und alle eingetragenen Daten bleiben erhalten.");
     try {
         return ($id == -1 ? $F . "<div style=\"height:30px;\"></div>" . $html : "") . $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
     return $html;
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:63,代码来源:mPatchGUI.class.php

示例7: authenticationPopup

 function authenticationPopup()
 {
     $allowedUsers = Environment::getS("allowedUsers", null);
     if ($allowedUsers !== null) {
         return;
     }
     $F = new HTMLForm("appserver", array("appServer"), "Application Server");
     $F->useRecentlyChanged();
     $F->setLabel("appServer", "App-Server");
     if (function_exists("ldap_connect")) {
         $F->getTable()->setTableStyle("margin-bottom:30px;");
     }
     $F->getTable()->setColWidth(1, 120);
     $F->setValue("appServer", mUserdata::getGlobalSettingValue("AppServer", ""));
     $F->setDescriptionField("appServer", "Wenn Sie einen Application Server betreiben, tragen Sie hier bitte die URL ein, um die Benutzer mit diesem Server zu authentifizieren.");
     $F->setSaveRMEPCR("Speichern", "", "Users", "", "saveAppServer", OnEvent::closePopup("Users"));
     echo $F;
     if (!function_exists("ldap_connect")) {
         return;
     }
     echo "<span></span><div class=\"backgroundColor1 Tab\"><p>Active Directory</p></div>";
     $LD = LoginData::get("ADServerUserPass");
     BPS::setProperty("LoginDataGUI", "preset", "adServer");
     $gui = new LoginDataGUI($LD == null ? -1 : $LD->getID());
     $gui->loadMeOrEmpty();
     if ($LD != null) {
         $gui->setA($LD->getA());
     }
     $gui->getPopup();
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:30,代码来源:UsersGUI.class.php

示例8: getEditHTML

 function getEditHTML()
 {
     $this->object->loadMeOrEmpty();
     if ($this->object->getID() == -1) {
         $this->addToEvent("onSave", "\$('contentLeft').update('');");
     }
     $F = new HTMLForm($this->formID == null ? "edit" . get_class($this->object) : $this->formID, $this->attributes == null ? $this->object : $this->attributes, strpos($this->displayMode, "popup") === false ? $this->operationsButton() . $this->name : null);
     $F->getTable()->setColWidth(1, 120);
     if ($this->showSave) {
         $F->setSaveClass(get_class($this->object), $this->object->getID(), $this->functionEntrySave, $this->name);
     }
     $F->isEditable($this->showInputs);
     foreach ($this->object->getA() as $n => $v) {
         $F->setValue($n, $v);
         $F->setLabel($n, str_replace($this->object->getClearClass(), "", $n));
     }
     foreach ($this->types as $n => $l) {
         $F->setType($n, $l, null, isset($this->options[$n]) ? $this->options[$n] : null);
     }
     foreach ($this->labels as $n => $l) {
         $F->setLabel($n, $l);
     }
     foreach ($this->descriptionsField as $n => $l) {
         $F->setDescriptionField($n, $l);
     }
     foreach ($this->parsers as $n => $l) {
         $F->setType($n, "parser", null, array($l, $this->object));
     }
     foreach ($this->spaces as $n => $l) {
         $F->insertSpaceAbove($n, $l);
     }
     foreach ($this->fieldButtons as $n => $B) {
         $F->addFieldButton($n, $B);
     }
     foreach ($this->fieldEvents as $k => $v) {
         $F->addJSEvent($v[0], $v[1], $v[2]);
     }
     foreach ($this->hiddenLines as $n) {
         $F->inputLineStyle($n, "display:none;");
     }
     foreach ($this->inputStyles as $k => $n) {
         $F->setInputStyle($k, $n);
     }
     foreach ($this->autocomplete as $k => $a) {
         $F->setAutoComplete($k, $a[0], $a[1]);
     }
     return $this->topButtons() . $this->sideButtons() . $F;
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:48,代码来源:HTMLGUIX.class.php


注:本文中的HTMLForm::setDescriptionField方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。