本文整理汇总了PHP中HTMLForm::setSaveRMEPCR方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLForm::setSaveRMEPCR方法的具体用法?PHP HTMLForm::setSaveRMEPCR怎么用?PHP HTMLForm::setSaveRMEPCR使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLForm
的用法示例。
在下文中一共展示了HTMLForm::setSaveRMEPCR方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPopupEinstellungen
public function getPopupEinstellungen()
{
$F = new HTMLForm("allgemeineWerte", array("OWMApiKey"));
$F->getTable()->setColWidth(1, 120);
$F->setValue("OWMApiKey", mUserdata::getGlobalSettingValue("OWMApiKey", ""));
$F->setSaveRMEPCR("Speichern", "", "mOpenWeatherMap", "-1", "saveEinstellungen", OnEvent::closePopup("mOpenWeatherMap"));
echo $F;
}
示例2: testDownloadPopup
public function testDownloadPopup()
{
$F = new HTMLForm("tdl", array("link"));
$F->setType("link", "textarea");
$F->getTable()->setColWidth(1, 60);
$F->setSaveRMEPCR("test download", "", "JD", $this->getID(), "testDownload", "function(t){ \$j('#downloadResult').html(t.responseText); }");
$F->setInputStyle("link", "font-size:10px;height:200px;");
echo $F . "<pre style=\"padding:5px;\" id=\"downloadResult\"></pre>";
}
示例3: downloadPopup
public function downloadPopup()
{
$J = array();
$AC = anyC::get("JD");
while ($D = $AC->getNextEntry()) {
$J[$D->getID()] = $D->A("JDName");
}
$F = new HTMLForm("tdl", array("link", "JD"));
$F->setType("link", "textarea");
$F->setType("JD", "select", null, $J);
$F->getTable()->setColWidth(1, 60);
$F->setSaveRMEPCR("Download", "", "mJD", -1, "download", "function(t){ \$j('#downloadResult').html(t.responseText); }");
$F->setInputStyle("link", "font-size:10px;height:200px;");
echo $F . "<pre style=\"padding:5px;\" id=\"downloadResult\"></pre>";
}
示例4: popup
function popup($ibanField, $bicField)
{
$F = new HTMLForm("ibanCalc", array("land", "kontonummer", "bankleitzahl", "ibanField", "bicField"));
$F->getTable()->setColWidth(1, 120);
$I = new IBAN();
$l = array();
foreach ($I->Countries() as $c) {
$IC = new IBANCountry($c);
if (!$IC->IsSEPA()) {
continue;
}
$l[$c] = ISO3166::getCountryToCode($c) . " ({$c})";
}
asort($l);
$F->setType("land", "select", "DE", $l);
$F->setType("ibanField", "hidden");
$F->setType("bicField", "hidden");
$F->setValue("ibanField", $ibanField);
$F->setValue("bicField", $bicField);
$F->setSaveRMEPCR("Berechnen", "", "IBANCalc", "-1", "calc", "function(t){ \$j('#ibanCalcResult').html(t.responseText); }");
echo $F . "<div id=\"ibanCalcResult\"></div>";
}
示例5: share
public function share()
{
$fields = array();
$US = Users::getUsers();
while ($U = $US->getNextEntry()) {
if ($U->getID() == Session::currentUser()->getID()) {
continue;
}
$fields[] = "User" . $U->getID();
}
$US->resetPointer();
echo "<p>In diesem Fenster bestimmen Sie andere Systembenutzer, die auf Ihren Kalender zugreifen können. Falls es andere Systembenutzer gibt.</p>";
if (count($fields) == 0) {
return;
}
$F = new HTMLForm("shareMailBox", $fields);
$F->getTable()->setColWidth(1, 120);
#$F->setValue("MailKontoID", $MailKontoID);
#$F->setType("MailKontoID", "hidden");
while ($U = $US->getNextEntry()) {
$F->setLabel("User" . $U->getID(), $U->A("name"));
$F->setType("User" . $U->getID(), "select", null, array("none" => "kein Zugriff", "read" => "lesen", "read.create" => "lesen und erstellen"));
}
$UD = new mUserdata();
$shareWith = $UD->getAsArray("shareCalendar");
foreach ($shareWith as $v => $n) {
$v = str_replace("shareCalendarTo", "", $v);
$F->setValue("User{$v}", $n);
}
$F->setSaveRMEPCR("Speichern", "", "mKalender", "-1", "saveShare", OnEvent::closePopup("mKalender"));
echo $F;
}
示例6: 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>";
}
示例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();
}
示例8: getContextMenuHTML
public function getContextMenuHTML($identifier)
{
$F = new HTMLForm("dlSettings", array("dlCover"));
$F->setType("dlCover", "checkbox");
$F->setLabel("dlCover", "DL Cover?");
$F->setValue("dlCover", mUserdata::getGlobalSettingValue("trinityDBdlCover", "0"));
$F->setSaveRMEPCR("save", "./images/i2/save.gif", "Serie", "-1", "saveContextMenu", "function() { phynxContextMenu.stop(); }");
echo $F;
}
示例9: getInvitees
public function getInvitees($TodoID)
{
$AC = anyC::get("TodoInvitation", "TodoInvitationTodoID", $TodoID);
$AC->addOrderV3("TodoInvitationID", "DESC");
$T = new HTMLTable(3, "Teilnehmer");
$T->setColWidth(1, 20);
$T->setColWidth(3, 20);
$T->maxHeight(200);
while ($I = $AC->n()) {
$IH = new HTMLInput("TodoInvitationIsHead", "checkbox", $I->A("TodoInvitationIsHead"));
$IH->activateMultiEdit("TodoInvitation", $I->getID());
$IH->title("Moderator?");
$BD = new Button("Teilnehmer entfernen", "trash_stroke", "iconic");
$BD->rmePCR("mTodo", "-1", "removeInvitee", array($TodoID, $I->getID()), "function(t){ \$j('#eventSideContent').html(t.responseText); }");
$T->addRow(array($IH, $I->A("TodoInvitationName") . "<br><small style=\"color:grey;\"><" . $I->A("TodoInvitationUserEmail") . "></small>", $BD));
}
if ($AC->numLoaded() == 0) {
$T->addRow(array("Keine Teilnehmer"));
$T->addRowColspan(1, 2);
}
#$T->addRow(array("HI", "HO"));
echo $T;
$Todo = new Todo($TodoID);
$BN = new Button("Neuer Teilnehmer", "new", "icon");
$BN->className("highlight");
$BN->style("padding:10px;");
$BN->onclick("\$j('#containerButtons .highlight').removeClass('highlight'); \$j(this).addClass('highlight'); \$j('.teilnehmerContainer').hide(); \$j('#containerNew').show(); ");
$BS = new Button("Systembenutzer", "users", "icon");
$BS->style("padding:10px;");
$BS->onclick("\$j('#containerButtons .highlight').removeClass('highlight'); \$j(this).addClass('highlight'); \$j('.teilnehmerContainer').hide(); \$j('#containerSystem').show(); ");
$BA = "";
if (Session::isPluginLoaded("mAnsprechpartner") and $Todo->A("TodoClass") == "WAdresse") {
$BA = new Button("Ansprechpartner", "./ubiquitous/Ansprechpartner/Ansprechpartner.png", "icon");
$BA->style("padding:10px;");
$BA->onclick("\$j('#containerButtons .highlight').removeClass('highlight'); \$j(this).addClass('highlight'); \$j('.teilnehmerContainer').hide(); \$j('#containerAnsprech').show(); ");
}
echo "<div style=\"height:30px;\"></div><div id=\"containerButtons\">{$BN}{$BS}{$BA}</div>";
$F = new HTMLForm("neuerTeilnehmer", array("TodoID", "name", "email"), " Neuer Teilnehmer");
$F->getTable()->setColWidth(1, 120);
$F->setValue("TodoID", $TodoID);
$F->setLabel("email", "E-Mail");
$F->setType("TodoID", "hidden");
$F->setSaveRMEPCR("Hinzufügen", "", "mTodo", -1, "addInvitee", "function(t){ \$j('#eventSideContent').html(t.responseText); }");
echo "<div id=\"containerNew\" class=\"teilnehmerContainer\" style=\"padding-bottom:10px;\">" . $F . "</div>";
$S = new HTMLList();
$AC = Users::getUsers();
while ($U = $AC->n()) {
$S->addItem("<a href=\"#\" onclick=\"" . OnEvent::rme(new mTodoGUI(-1), "addInvitee", array($TodoID, "'" . $U->A("name") . "'", "'" . $U->A("UserEmail") . "'"), "function(t){ \$j('#eventSideContent').html(t.responseText); }") . " return false;\">" . $U->A("name") . "</a>");
if ($U->getID() == Session::currentUser()->getID()) {
$S->addItemClass("confirm");
$S->addItemStyle("padding-top:5px;padding-bottom:5px;");
}
}
echo "<div id=\"containerSystem\" class=\"teilnehmerContainer\" style=\"display:none;padding-bottom:10px;\">" . $S . "</div>";
$T = new HTMLTable(1);
if ($Todo->A("TodoClass") == "WAdresse" and Session::isPluginLoaded("mAnsprechpartner")) {
$S = new HTMLList();
$AC = Ansprechpartner::getAllAnsprechpartnerToAdresse($Todo->A("TodoClassID"));
while ($U = $AC->n()) {
$S->addItem("<a href=\"#\" onclick=\"" . OnEvent::rme(new mTodoGUI(-1), "addInvitee", array($TodoID, "'" . $U->A("AnsprechpartnerVorname") . " " . $U->A("AnsprechpartnerNachname") . "'", "'" . $U->A("AnsprechpartnerEmail") . "'"), "function(t){ \$j('#eventSideContent').html(t.responseText); }") . " return false;\">" . $U->A("AnsprechpartnerVorname") . " " . $U->A("AnsprechpartnerNachname") . "</a>");
}
if ($AC->numLoaded() == 0) {
$S->addItem("Keine Ansprechpartner");
}
echo "<div id=\"containerAnsprech\" class=\"teilnehmerContainer\" style=\"display:none;padding-bottom:10px;\">{$S}</div>";
}
}
示例10: getContextMenuHTML
public function getContextMenuHTML($identifier)
{
$F = new HTMLForm("prettifyerForm", array("execute"));
$F->setType("execute", "checkbox");
$F->setLabel("execute", "Execute?");
$F->setValue("execute", mUserdata::getUDValueS("trinityDBPrettifyExecute", "0"));
$F->setSaveRMEPCR("save", "./images/i2/save.gif", "mIncomingPrettify", "-1", "saveContextMenu", "function() { phynxContextMenu.stop(); }");
echo $F;
}