本文整理汇总了PHP中Button::id方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::id方法的具体用法?PHP Button::id怎么用?PHP Button::id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::id方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHTML
public function getHTML($id)
{
#$_SESSION["BPS"]->unregisterClass(get_class($this));
$defaultAnsicht = "monat";
if (Applications::activeApplication() == "personalKartei") {
$defaultAnsicht = "jahr";
}
$ansicht = mUserdata::getUDValueS("KalenderAnsicht", $defaultAnsicht);
#$ansicht = $ansicht->getUDValue("KalenderAnsicht");
#if($ansicht == null) $ansicht = "monat";
$display = mUserdata::getUDValueS("KalenderDisplay" . ucfirst($ansicht), "0");
$BThis = new Button("", "arrow_down", "iconicG");
$BThis->style("float:left;margin-top:-6px;margin-right:5px;");
$Calendars = "";
Registry::reset("Kalender");
while ($C = Registry::callNext("Kalender", "categories")) {
if (!$C) {
continue;
}
foreach ($C as $tab) {
$Calendars .= "<div onclick=\"{$tab->onclick}\">" . ($tab->isCurrent ? $BThis : "") . " {$tab->label}</div>";
}
}
// <editor-fold defaultstate="collapsed" desc="styles">
$html = "\n\t\t\n\t\t<style type=\"text/css\">\n\t\t.Day {\n\t\t\t-moz-user-select:none;\n\t\t\tborder-left:1px solid #EEE;\n\t\t\tborder-bottom:1px solid #EEE;\n\t\t}\n\t\t\n\t\t/*.Day:hover {\n\t\t\tborder-style:solid;\n\t\t\tborder-width:1px;\n\t\t\tpadding:2px;\n\t\t}*/\n\n\t\t.dayOptions {\n\t\t\tdisplay:none;\n\t\t}\n\n\t\t.Day:hover .dayOptions {\n\t\t\tdisplay:inline;\n\t\t}\n\n\t\t.Termin {\n\t\t\tposition:relative;\n\t\t\tleft:44px;\n\t\t\tcursor:pointer;\n\t\t\twidth:150px;\n\t\t\tfloat:left;\n\t\t\tborder-style:solid;\n\t\t\tborder-width:1px;\n\t\t\tmargin-right:3px;\n\t\t}\n\t\t\n\t\t.KalenderButton {\n\t\t\topacity:0.5;\n\t\t}\n\t\t\n\t\t.KalenderButton:hover {\n\t\t\topacity:1;\n\t\t}\n\t\t\n\t\t.KalenderUser {\n\t\t\tmargin-left:10px;\n\t\t}\n\t\t\n\t\t.KalenderUser div {\n\t\t\tpadding:10px;\n\t\t\tpadding-top:10px;\n\t\t\tpadding-bottom:5px;\n\t\t\tdisplay:inline-block;\n\t\t\tmargin-right:20px;\n\t\t\tcursor:pointer;\n\t\t\tmin-width:150px;\n\t\t}\n\t\t\n\t\t.cellHeight {\n\t\t}\n\t\t\n\t\t.ui-datepicker {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t#contentScreen tr:hover {\n\t\t\tbackground-color:inherit;\n\t\t}\n\n\t\t#calendar1stMonth .ui-datepicker-prev, #calendar1stMonth .ui-datepicker-next/*,\n\t\t#calendar2ndMonth .ui-datepicker-prev, #calendar2ndMonth .ui-datepicker-next */{\n\t\t\tdisplay:none;\n\t\t}\n\t\t\n\t\t#calendar1stMonth .ui-widget-content,\n\t\t#calendar2ndMonth .ui-widget-content, \n\t\t#calendar2ndMonth .ui-widget-content .ui-state-default,\n\t\t#calendar1stMonth .ui-widget-content .ui-state-default {\n\t\t\tborder:0px;\n\t\t}\n\t\t\n\t\t#calendar1stMonth .ui-datepicker-header,\n\t\t#calendar2ndMonth .ui-datepicker-header {\n\t\t\tborder:0px;\n\t\t}\n\t\t\n\t\t/*@media only screen and (max-height: 820px) {\n\t\t\t.cellHeight {\n\t\t\t\theight:55px;\n\t\t\t}\n\t\t}*/\n\t\t</style>";
// </editor-fold>
$BLeft = new Button("Zurück", "back", "icon");
$BLeft->rmePCR("mKalender", "", "setDisplay", $display - 1, "contentManager.loadFrame('contentScreen','mKalender');");
$BLeft->style("margin-right:10px;");
$BRight = new Button("Weiter", "navigation", "icon");
$BRight->rmePCR("mKalender", "", "setDisplay", $display + 1, "contentManager.loadFrame('contentScreen','mKalender');");
$BRight->style("margin-right:10px;");
$BToday = new Button("Aktuelles Datum", "down", "icon");
$BToday->rmePCR("mKalender", "", "setToday", '', "contentManager.loadFrame('contentScreen','mKalender');");
$BToday->style("margin-right:10px;");
$BJahr = new Button("Jahr", "./ubiquitous/Kalender/month.png", "icon");
$BJahr->rmePCR("mKalender", "", "setView", "jahr", "contentManager.loadFrame('contentScreen','mKalender');");
$BJahr->style("margin-right:10px;" . ($ansicht != "jahr" ? "opacity:0.5;" : ""));
$BJahr->id("jahrButton");
$BMonat = new Button("Monat", "./ubiquitous/Kalender/month.png", "icon");
$BMonat->rmePCR("mKalender", "", "setView", "monat", "contentManager.loadFrame('contentScreen','mKalender');");
$BMonat->style("margin-right:10px;" . ($ansicht != "monat" ? "opacity:0.5;" : ""));
$BMonat->id("monatButton");
$BWoche = new Button("Woche", "./ubiquitous/Kalender/workweek.png", "icon");
$BWoche->rmePCR("mKalender", "", "setView", "woche", "contentManager.loadFrame('contentScreen','mKalender');");
$BWoche->style("margin-right:10px;" . ($ansicht != "woche" ? "opacity:0.5;" : ""));
$BWoche->id("wocheButton");
$BTag = new Button("Tag", "./ubiquitous/Kalender/day.png", "icon");
$BTag->rmePCR("mKalender", "", "setView", "tag", "contentManager.loadFrame('contentScreen','mKalender');");
$BTag->style("margin-right:10px;" . ($ansicht != "tag" ? "opacity:0.5;" : ""));
$BTag->id("tagButton");
if (Applications::activeApplication() == "personalKartei") {
$BTag = "";
$BWoche = "";
$BMonat = "";
}
if (Applications::activeApplication() != "personalKartei") {
$BJahr = "";
}
$ST = new HTMLTable(1);
$ST->setColClass(1, "");
#$ST->setTableStyle("width:40px;margin:0px;margin-right:-215px;float:right;/*margin-right:-50px;margin-top:95px;*/");
$newWindow = new Button("Kalender in neuem Fenster öffnen", "new_window", "iconicL");
$newWindow->style("margin-right:10px;");
$newWindow->newSession("Mail", Applications::activeApplication(), "mKalender", "Kalender");
if (Session::physion()) {
$newWindow = "";
}
$reminder = "";
if (Session::isPluginLoaded("mReminder")) {
$reminder = Reminder::getButton();
$reminder->style("margin-right:10px;");
}
$ST->addRow("<div id=\"calendar1stMonth\"></div>");
$ST->addRow("<div id=\"calendar2ndMonth\"></div>");
$TC = "KalenderView" . ucfirst($ansicht);
$TC = new $TC();
$TCalendars = "<div>";
if (trim($Calendars) != "") {
$TCalendars .= "<div class=\"KalenderUser\">" . $Calendars . "</div>";
}
$TCalendars .= "</div>";
$pCalButton = "";
if (Session::isPluginLoaded("mpCal")) {
$pCalButton = pCal::getTBButton();
$pCalButton->type("icon");
$pCalButton->style("margin-right:10px;");
}
$GoogleButton = "";
$GoogleDLButton = "";
if (Session::isPluginLoaded("mGoogle")) {
$GoogleButton = LoginData::getButtonU("GoogleAccountUserPass", "Google-Daten bearbeiten", "./ubiquitous/Google/google.png");
$GoogleButton->type("icon");
$GoogleButton->style("margin-right:10px;");
$GoogleDLButton = new Button("Daten herunterladen", "./ubiquitous/Google/googleDL.png", "icon");
$GoogleDLButton->popup("", "Daten herunterladen", "Google", "-1", "syncByDateRange", array("'" . date("Y-m-d", $TC->getFirst()) . "'", "'" . date("Y-m-d", $TC->getLast()) . "'"));
$GoogleDLButton->style("margin-right:10px;");
}
$xCalButton = "";
if (Session::isPluginLoaded("mxCal")) {
//.........这里部分代码省略.........
示例2: getAdresse
public function getAdresse($Beleg)
{
$Auftrag = new Auftrag($Beleg->A("AuftragID"));
$Adresse = new Adresse($Auftrag->A("AdresseID"));
$BCheckK = "";
if (Session::isPluginLoaded("mklickTel")) {
$BCheckK = new Button("Adresse mit klickTel prüfen", "compass", "iconic");
$BCheckK->style("float:right;font-size:30px;margin-right:15px;");
$BCheckK->onclick("CustomerPage.popup('Adressprüfung', 'checkAddressKlickTel', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckK->id("BCheckKT");
Aspect::joinPoint("modButtonKlickTel", $this, __METHOD__, array($BCheckK, $Auftrag));
}
$BUpdate = new Button("Adresse ändern", "pen_alt2", "iconic");
$BUpdate->style("float:right;font-size:30px;margin-right:15px;");
$BUpdate->onclick("CustomerPage.popup('Adresse ändern', 'alterAddress', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
if (!$this->showButtonEditAddress) {
$BUpdate = "";
}
$BCheckG = new Button("Adresse mit Google prüfen", "compass", "iconic");
$BCheckG->style("float:right;font-size:30px;");
$BCheckG->onclick("CustomerPage.popup('Adressprüfung', 'checkAddressGoogle', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckG->id("BCheckG");
if (!$this->showButtonCheckWithGoogle) {
$BCheckG = "";
}
Aspect::joinPoint("modButtonGoogle", $this, __METHOD__, array($BCheckG, $Auftrag));
$TAdresse = new HTMLTable(2, "Kundenadresse");
$TAdresse->setColWidth(1, 26);
$TAdresse->setTableStyle("width:100%;");
$TAdresse->addRow(array(new Button("Adresse", "home", "iconic"), $BCheckG . $BCheckK . $BUpdate . $Adresse->getHTMLFormattedAddress()));
$TAdresse->setColStyle(1, "vertical-align:top;");
return $TAdresse;
}
示例3: getActions
public function getActions()
{
$DBFilePath = Util::getRootPath() . "system/DBData/Installation.pfdb.php";
$File = new File($DBFilePath);
$File->loadMe();
$ASetup = "contentManager.loadPlugin('contentRight', 'mInstallation');";
$B = new Button("Erneut prüfen", "./plugins/Installation/recheck.png", "icon");
$B->onclick($ASetup);
$B->id("recheckButton");
$hasDBConnection = false;
try {
$Version = mUserdata::getGlobalSettingValue("DBVersion", false);
$hasDBConnection = true;
} catch (Exception $e) {
}
if (!$File->A("FileIsWritable") and !$hasDBConnection) {
$message = "<p style=\"padding:20px;font-size:20px;color:#555;text-align:center;\">" . $_SESSION["applications"]->getActiveApplication() . " ist auf diesem Server noch nicht installiert.</p>";
$html = "<div style=\"width:600px;margin:auto;line-height:1.5;\">\n\t\t\t\t<p>\n\t\t\t\t<img src=\"./images/navi/restrictions.png\" style=\"float:left;margin-right:10px;\"/>\n\t\t\t\tDie Datei <code>/system/DBData/Installation.pfdb.php</code> ist <b>nicht beschreibbar</b>.</p>\n\t\t\t\t\n\t\t\t\t<p style=\"margin-top:20px;\">Machen Sie die Datei mit einem FTP-Programm beschreibbar.<br />\n\t\t\t\tKlicken Sie dazu mit der rechten Maustaste auf die Datei auf dem Server, wählen Sie <b>\"Eigenschaften\"</b>, und geben Sie den Modus <b>666</b> an, damit sie durch den Besitzer, die Gruppe und alle Anderen les- und beschreibbar ist.</p>\n\t\t\t\t<div style=\"width:350px;margin:auto;padding-top:20px;padding-bottom:20px;\">\n\t\t\t\t" . $this->box($B, $ASetup, "Erneut<br />prüfen") . "\n\t\t\t\t</div>\n\t\t\t</div>";
die($message . $html);
}
$containers = 0;
$message = "";
$html = "";
$hidden = "<a class=\"hiddenLink\" href=\"#\" onclick=\"" . OnEvent::popup("Fehlerausgabe", "mInstallation", "-1", "updateAllTables", array("'1'")) . "return false;\"> </a>";
try {
$Version = mUserdata::getGlobalSettingValue("DBVersion", false);
if ($Version !== false and $Version == Phynx::build()) {
$message = "<p style=\"padding:20px;font-size:20px;color:#555;text-align:center;\">Ihre Datenbank ist auf dem aktuellen Stand.{$hidden}</p>";
}
if ($Version === false or $Version != Phynx::build()) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;margin-bottom:40px;text-align:center;\">Ihre Datenbank muss aktualisiert werden.</p>";
$ASetup = "\$j('#updateButton').attr('src', './plugins/Installation/bigLoader.png'); " . OnEvent::rme($this, "updateAllTables", "", "function(transport){ contentManager.contentBelow(transport.responseText); }");
$B = new Button("Datenbank aktualisieren", "./plugins/Installation/aktualisieren.png", "icon");
$B->onclick($ASetup);
$B->id("updateButton");
$html = $this->box($B, $ASetup, "Die Datenbank<br />aktualisieren", "", $hidden);
$html = "<div style=\"width:350px;margin:auto;padding-bottom:40px;\">" . $html . "</div>";
}
} catch (NoDBUserDataException $e) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;text-align:center;color:red;\">Mit den angegebenen Datenbank-Zugangsdaten kann keine Verbindung aufgebaut werden.</p>";
echo OnEvent::script("contentManager.loadFrame('contentLeft','Installation','1');");
if (PHYNX_MAIN_STORAGE == "MySQL") {
try {
$DB1 = new DBStorageU();
$BN = new Button("Hinweis", "notice", "icon");
$BN->style("float:left;margin-right:10px;");
$File = new File(Util::getRootPath() . "system/connect.php");
$B = new Button("Verbindungsart umstellen", "./plugins/Installation/changedb.png", "icon");
$B->onclick($A);
$B->id("changedbButton");
$A = OnEvent::rme($this, "switchDBToMySQLo", "", "function(){ Installation.reloadApp(); }");
$BR = "<p style=\"margin-top:20px;\">Verwenden Sie den Knopf unten, um die Verbindungsart auf die ältere Version umzustellen.<br />\n\t\t\t\t\t\tSie müssen sich anschließend erneut anmelden.</p>\n\t\t\t\t\t\t<div style=\"width:350px;margin:auto;padding-top:20px;padding-bottom:20px;\">" . $this->box($B, $A, "Verbindungsart<br />umstellen") . "</div>";
$A = "contentManager.loadPlugin('contentRight', 'mInstallation');";
$B = new Button("Erneut prüfen", "./plugins/Installation/recheck.png", "icon");
$B->onclick($A);
$B->id("recheckButton");
if (!$File->A("FileIsWritable")) {
$BR = "<p style=\"margin-top:20px;\">Bitte machen Sie die Datei /system/connect.php für den Webserver beschreibbar, damit phynx auf die ältere Verbindungsart umstellen kann.<br /><br />Verwenden Sie dazu Ihr FTP-Programm. Klicken Sie mit der rechten Maustaste auf die Datei auf dem Server, wählen Sie \"Eigenschaften\", und geben Sie den Modus 666 an, damit sie durch den Besitzer, die Gruppe und alle Anderen les- und schreibbar ist.\n\t\t\t\t\t\t\t</p><div style=\"width:350px;margin:auto;padding-top:20px;padding-bottom:20px;\">" . $this->box($B, $A, "Erneut<br />prüfen") . "</div>";
}
$html = "<p style=\"margin-top:30px;\">{$BN} Möglicherweise ist die MySQLi-Erweiterung auf Ihrem Server nicht korrekt konfiguriert.</p>{$BR}";
$html = "<div style=\"width:700px;margin:auto;padding-bottom:40px;\">" . $html . "</div>";
} catch (Exception $e) {
#echo "MySQL geht auch nicht!";
}
}
} catch (DatabaseNotFoundException $e) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;text-align:center;color:red;\">Die angegebene Datenbank konnte nicht gefunden werden.</p>";
echo OnEvent::script("contentManager.loadFrame('contentLeft','Installation','1');");
} catch (TableDoesNotExistException $e) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;margin-bottom:40px;text-align:center;\">Ihre Datenbank hat derzeit noch keinen Inhalt.</p>";
$ASetup = "\$j('#setupButton').attr('src', './plugins/Installation/bigLoader.png'); " . OnEvent::rme($this, "setupAllTables", "", "function(transport){ contentManager.contentBelow(transport.responseText); }");
$BSetup = new Button("Datenbank einrichten", "./plugins/Installation/setup.png", "icon");
$BSetup->onclick($ASetup);
$BSetup->id("setupButton");
$hidden = "<a class=\"hiddenLink\" href=\"#\" onclick=\"" . OnEvent::popup("Fehlerausgabe", "mInstallation", "-1", "setupAllTables", array("'1'")) . "return false;\"> </a>";
$html = $this->box($BSetup, $ASetup, "Die Datenbank<br />einrichten", "", $hidden);
$containers = 1;
$BM = new BackupManagerGUI();
$list = $BM->getBackupsList();
$ARestore = OnEvent::popup("Backup-Manager", "BackupManager", "-1", "inPopup");
$BRestore = new Button("Datenbank wiederherstellen", "./plugins/Installation/restore.png", "icon");
$BRestore->onclick($ARestore);
$BRestore->id("setupButton");
$html .= $this->box($BRestore, $ARestore, "Eine Sicherung<br />wiederherstellen", count($list) == 0 ? "color:grey;" : "");
$containers++;
$html = "<div style=\"width:" . $containers * 360 . "px;margin:auto;padding-bottom:40px;\">" . $html . "</div>";
}
echo "{$message}{$html}";
}
示例4: getBrowserHTML
function getBrowserHTML($lineWithId = -1)
{
$this->texts = $this->languageClass->getBrowserTexts();
$singularLanguageClass = $this->loadLanguageClass($this->singularClass);
$userCanDelete = mUserdata::isDisallowedTo("cantDelete" . $this->singularClass);
$userCanCreate = mUserdata::isDisallowedTo("cantCreate" . $this->singularClass);
$userHiddenFields = mUserdata::getHides($this->singularClass);
$defaultTarget = "contentRight";
if ($this->displaySide != "default") {
$defaultTarget = "content" . ucfirst($this->displaySide);
}
if ($this->singularClass == "none") {
echo "collectionOf is not set. See message log for further details.";
throw new CollectionOfNotSetException();
}
if ($this->name == "Noname") {
$_SESSION["messages"]->addMessage("There is no name set. You might use setName of HTMLGUI to do that.");
}
/**
* ERROR-TABLE
*/
$errorTab = new HTMLTable(1);
if (isset($_SESSION["phynx_errors"]) and $lineWithId == -1 and ($_SERVER["HTTP_HOST"] == "dev.furtmeier.lan" or strpos(__FILE__, "nemiah") !== false)) {
$errorTab->addRow("\n\t\t\t\t\t<img style=\"float:left;margin-right:10px;\" src=\"./images/navi/warning.png\" />\n\t\t\t\t\t<b>Es " . (count($_SESSION["phynx_errors"]) != 1 ? "liegen" : "liegt") . " " . count($_SESSION["phynx_errors"]) . " PHP-Fehler vor:</b><br />\n\t\t\t\t\t<a href=\"javascript:windowWithRme('Util','','showPHPErrors','');\">Fehler anzeigen</a>,<br />\n\t\t\t\t\t<a href=\"javascript:rme('Util','','deletePHPErrors','','contentManager.reloadFrameRight();');\">Fehler löschen</a>");
}
/**
* RETURN-BUTTON
*/
$returnTab = new HTMLTable(1);
if ($this->isSelection) {
$BReturn = new Button("Auswahl\nbeenden", "back");
$BReturn->onclick("contentManager.restoreFrame('content" . ucfirst($this->displaySide) . "','selectionOverlay');");
#return "<input type=\"button\" value=\"zurück zu\n".$p2[$s[0]]."\" style=\"background-image:url(./images/navi/back.png);\" class=\"bigButton backgroundColor3\" onclick=\"loadFrameV2('contentRight','$s[0]');\" />";
$returnTab->addRow($BReturn);
}
/**
* DELETE-BUTTON
*/
if ((!$this->onlyDisplayMode or $this->deleteInDisplayMode) and $userCanDelete and !$this->isSelection and $this->showDeleteButton) {
$this->newColsRight["delete"] = "\n\t\t\t<span class=\"iconic trash_stroke\" onclick=\"deleteClass('" . $this->singularClass . "','%%VALUE%%', " . ($this->JSOnDelete == null ? "function() { " . ($this->displaySide == "left" ? "contentManager.reloadFrameLeft();" : "contentManager.reloadFrameRight(); if(typeof lastLoadedLeft != 'undefined' && lastLoadedLeft == '%%VALUE%%') \$('contentLeft').update('');") . " }" : $this->JSOnDelete) . ",'" . str_replace("%1", $this->singularName, $this->texts["%1 wirklich löschen?"]) . "');\"></span>";
} elseif (!$userCanDelete) {
$this->newColsRight["delete"] = "<img src=\"./images/i2/empty.png\" />";
}
/**
* EDIT-BUTTON
*/
if (!isset($this->newColsLeft["select"]) and (!$this->onlyDisplayMode or $this->editInDisplayMode) and $this->showEditButton) {
$EB = new Button("", "./images/i2/edit.png");
$EB->type("icon");
$EB->className("editButton");
if ($this->JSOnEdit == null) {
$EB->onclick("contentManager.selectRow(this); contentManager.loadFrame('contentLeft','" . $this->singularClass . "','%%VALUE%%','0');");
} else {
$EB->onclick($this->JSOnEdit);
}
$this->newColsLeft["select"] = $EB;
}
$cols = count($this->showAttributes) + count($this->newColsLeft) + count($this->newColsRight);
$valuesTab = new HTMLTable($cols, $lineWithId == -1 ? $this->displaySide == "left" ? $this->name : "" : null);
$valuesTab->addTableClass("contentBrowser");
/*if(isset($this->newColsRight["delete"]) AND ($this->displaySide == "default" OR $this->displaySide == "right"))
$valuesTab->setColClass($cols, "backgroundColor0");
if(isset($this->newColsRight["delete"]) AND $this->displaySide == "left")
$valuesTab->setColClass(1, "backgroundColor0");*/
/**
* QUICKSEARCH
*/
#$quickSearchRow = "";
if ($this->quickSearchPlugin != "" and $lineWithId == -1) {
list($quickSearchRow, $BSearchInfo) = $this->getQuicksearchField();
if ($this->displaySide == "left") {
$insertRow = array($quickSearchRow);
for ($i = 1; $i < $cols - 1; $i++) {
$insertRow[] = "";
}
$insertRow[] = $BSearchInfo;
$valuesTab->addRow($insertRow);
$valuesTab->addRowColspan(1, $cols - 1);
} else {
$valuesTab->addRow(array($BSearchInfo, $quickSearchRow));
$valuesTab->addRowColspan(2, $cols - 1);
}
$valuesTab->addRowClass("backgroundColorHeader");
}
if ($this->headerRow != null) {
$valuesTab->addHeaderRow($this->headerRow);
}
/**
* PAGE-BROWSER
*/
#$multiPageRow = "";
$separator = "";
$userDefinedEntriesPerPage = false;
$isMultiPageMode = false;
if (count($this->multiPageMode) > 0) {
$isMultiPageMode = true;
$this->multiPageMode[3] = $defaultTarget;
if ($this->multiPageMode[2] == 0) {
$userDefinedEntriesPerPage = true;
#$mU = new mUserdata();
//.........这里部分代码省略.........
示例5: sendMessagePopup
public function sendMessagePopup()
{
$AC = anyC::get("Device");
$AC->addOrderV3("DeviceName");
$B = new Button("Alle", "fullscreen", "touch");
$B->className("nuntiusMessageTo");
$B->id("nuntiusMessageTarget0");
$B->onclick("\$j('.nuntiusMessageTo:not(#nuntiusMessageTarget0)').slideToggle(); \$j('#nuntiusMessageContainer').slideToggle();");
$L = $B;
while ($D = $AC->getNextEntry()) {
$B = new Button($D->A("DeviceName"), "iphone", "touch");
$B->className("nuntiusMessageTo");
$B->id("nuntiusMessageTarget" . $D->getID());
$B->onclick("\$j('.nuntiusMessageTo:not(#nuntiusMessageTarget" . $D->getID() . ")').slideToggle(); \$j('#nuntiusMessageContainer').slideToggle();");
$L .= $B;
}
$BS = new Button("Senden", "arrow_right", "touch");
$BS->style("margin-top:0px;height:190px;margin-bottom:0px;");
$BS->rmePCR("mNuntius", "-1", "sendMessage", array("\$j('.nuntiusMessageTo:visible').attr('id').replace('nuntiusMessageTarget', '')", "\$j('[name=NuntiusMessage]').val()", "'Device:'+\$j.jStorage.get('phynxDeviceID', -1)"), "function(){ " . OnEvent::closePopup("mNuntius") . " }");
$I = new HTMLInput("NuntiusMessage", "textarea");
$I->style("width:100%;height:200px;max-width:400px;font-size:15px;");
$I->placeholder("Nachricht...");
echo "\n\t\t\t<div id=\"nuntiusTargets\" style=\"padding-top:15px;padding-bottom:1px;\">\n\t\t\t\t" . $L . "\n\t\t\t</div>\n\t\t\t<div style=\"display:none;padding-bottom:1px;\" id=\"nuntiusMessageContainer\">\n\t\t\t\t<div style=\"width:100px;float:right;\">{$BS}</div><div style=\"width:300px;\">{$I}</div>\n\t\t\t</div>";
}
示例6: getHTML
public function getHTML($id)
{
if ($_SESSION["S"]->checkIfUserLoggedIn() == true) {
return -1;
}
$es = $_SESSION["CurrentAppPlugins"]->getMenuEntries();
$ts = $_SESSION["CurrentAppPlugins"]->getMenuTargets();
$icons = $_SESSION["CurrentAppPlugins"]->getIcons();
$appIco = $_SESSION["applications"]->getApplicationIcon($_SESSION["applications"]->getActiveApplication());
if (isset($_COOKIE["phynx_color"]) and $_COOKIE["phynx_color"] != "standard") {
$suffix = strrchr($appIco, ".");
$newLogo = str_replace($suffix, ucfirst($_COOKIE["phynx_color"]) . $suffix, $appIco);
if (file_exists("." . $newLogo)) {
$appIco = $newLogo;
}
}
// <editor-fold defaultstate="collapsed" desc="Aspect:jP">
$newAppIco = Aspect::joinPoint("appLogo", $this, __METHOD__);
if ($newAppIco != null) {
$appIco = $newAppIco;
}
// </editor-fold>
$appMenuHidden = "";
$appMenuDisplayed = "";
$appMenuActive = (!$_SESSION["S"]->isUserAdmin() and (!isset($_COOKIE["phynx_layout"]) or $_COOKIE["phynx_layout"] == "fixed" or $_COOKIE["phynx_layout"] == "horizontal" or $_COOKIE["phynx_layout"] == "desktop" or $_COOKIE["phynx_layout"] == "vertical"));
// <editor-fold defaultstate="collapsed" desc="Aspect:jP">
$aspectAppMenuActive = Aspect::joinPoint("appMenuActive", $this, __METHOD__);
if ($aspectAppMenuActive !== null) {
$appMenuActive = $aspectAppMenuActive;
}
// </editor-fold>
$appIco = Environment::getS("ApplicationIcon:" . Applications::activeApplication(), $appIco);
if ($appIco != "") {
if (count($_SESSION["applications"]->getApplicationsList()) > 1 and !$_SESSION["S"]->isAltUser()) {
echo "<img src=\"{$appIco}\" style=\"margin-left:10px;float:left;\" alt=\"Abmelden/Anwendung wechseln\" title=\"Abmelden/Anwendung wechseln\" onclick=\"" . Environment::getS("onLogout", "phynxContextMenu.start(this, 'Menu','1','Anwendung wechseln:','right');") . "\" />";
} else {
echo "<img src=\"{$appIco}\" style=\"margin-left:10px;float:left;\" alt=\"Abmelden\" title=\"Abmelden\" onclick=\"" . Environment::getS("onLogout", "userControl.doLogout();") . "\" />";
}
}
$bigWorld = false;
if (isset($_COOKIE["phynx_layout"]) and ($_COOKIE["phynx_layout"] == "desktop" or $_COOKIE["phynx_layout"] == "vertical")) {
$bigWorld = true;
}
if (!$_SESSION["S"]->isUserAdmin()) {
$userHiddenPlugins = mUserdata::getHiddenPlugins();
$U = new mUserdata();
$U->addAssocV3("typ", "=", "TTP");
$B = new Button(Environment::getS("renameApplication:" . $_SESSION["applications"]->getActiveApplication(), $_SESSION["applications"]->getActiveApplication()), "application");
$B->type("icon");
$B->className($bigWorld ? "tabImg" : "smallTabImg");
#".(($t == null OR $t == "big") ? "class=\"tabImg\"" : "class=\"smallTabImg\"")."
$B->hasMouseOverEffect(false);
$B->id("busyBox");
#$appMenuHidden = $this->getAppMenuOrder("appMenuHidden");
$appMenuDisplayed = $this->getAppMenuOrder("appMenuDisplayed");
#if($appMenuDisplayed != "" AND $appMenuHidden == "")
# $appMenuHidden = implode(";", array_diff(array_values($es), explode(";", $appMenuDisplayed)));
}
$appMenuH = "\n\t\t\t<li id=\"appMenu_emptyList\" style=\"height:auto;" . ($appMenuHidden != "emptyList" ? "display:none;" : "") . "\">Ziehen Sie Einträge auf diese Seite, um sie aus dem Menü auszublenden und nur hier anzuzeigen.</li>";
$appMenuD = "";
if ($appMenuActive) {
$es = self::sort($es, $appMenuDisplayed);
}
#, $appMenuHidden);
echo "\n\t\t\t<div id=\"navTabsWrapper\">";
if ($appMenuActive) {
echo "\n\t\t\t<div\n\t\t\t\tclass=\"navBackgroundColor navBorderColor " . ($bigWorld ? "" : " smallTab") . " navTab\"\n\t\t\t\tid=\"SpellbookMenuEntry\"\n\t\t\t>\n\t\t\t\t<div onclick=\"contentManager.loadPlugin('contentScreen', 'Spellbook', 'SpellbookGUI;-');\" style=\"padding:3px;padding-right:7px;padding-top:7px;height:18px;\">\n\t\t\t\t{$B}" . ($bigWorld ? Environment::getS("renameApplication:" . $_SESSION["applications"]->getActiveApplication(), $_SESSION["applications"]->getActiveApplication()) : "") . "\n\t\t\t\t</div>\n\t\t\t</div>";
}
$collapsedTabs = Environment::getS("collapsedTabs", "0") == "1";
foreach ($es as $key => $value) {
if (isset($userHiddenPlugins[$value])) {
continue;
}
$single = $_SESSION["CurrentAppPlugins"]->isCollectionOfFlip($value);
$anyC = new anyC();
$text = $anyC->loadLanguageClass($single);
if ($text != null and $text->getMenuEntry() != "") {
$key = $text->getMenuEntry();
}
$t = !$_SESSION["S"]->isUserAdmin() ? $U->getUDValueCached("ToggleTab{$value}") : "big";
if ($t == null and $collapsedTabs) {
$t = "small";
}
$key = Aspect::joinPoint("renameTab", $this, __METHOD__, array($key), $key);
if (isset($_COOKIE["phynx_layout"]) and ($_COOKIE["phynx_layout"] == "vertical" or $_COOKIE["phynx_layout"] == "desktop")) {
$t = "big";
}
#$emptyFrame = "contentLeft";
#if(isset($ts[$value]) AND $ts[$value] == "contentLeft") $emptyFrame = "contentRight";
#$onclick = "contentManager.emptyFrame('contentLeft'); contentManager.emptyFrame('contentRight'); contentManager.emptyFrame('contentScreen'); contentManager.loadFrame('".(isset($ts[$value]) ? $ts[$value] : "contentRight")."', '$value', -1, 0, '{$value}GUI;-');$('windows').update('');";
$onclick = "contentManager.loadPlugin('" . (isset($ts[$value]) ? $ts[$value] : "contentRight") . "', '{$value}', '{$value}GUI;-');";
$B = new Button($key, $icons[$value]);
$B->type("icon");
$B->style("float:left;margin-right:10px;");
$BM = new Button("Reihenfolge ändern", "./images/i2/topdown.png");
$BM->type("icon");
$BM->style("float:right;margin-right:5px;");
$BM->className("appMenuHandle");
$appMenu = "\n\t\t\t<li\n\t\t\t\tid=\"appMenu_{$value}\"\n\t\t\t\tonmouseover = \"this.className = 'navBackgroundColor';\"\n\t\t\t\tonmouseout = \"this.className = '';\"\n\t\t\t>\n\t\t\t\t{$BM}\n\t\t\t\t<div\n\t\t\t\t\tonclick=\"appMenu.hide(); {$onclick}\"\n\t\t\t\t>\n\t\t\t\t{$B}<p>{$key}</p>\n\t\t\t\t</div>\n\t\t\t</li>";
if (strpos($appMenuHidden, $value) !== false) {
//.........这里部分代码省略.........
示例7: __toString
public function __toString()
{
#$style = "";
if ($this->type == "date" and strpos($this->style, "width:") === false) {
$this->style .= "width:87%;";
}
#if($this->style != null) $style = " style=\"$this->style\"";
switch ($this->type) {
case "audio":
return "<audio controls preload=\"auto\" autobuffer style=\"{$this->style}\"><source src=\"{$this->value}\"></audio>";
break;
case "search":
$currentId = $this->id != null ? $this->id : $this->name . rand(100, 100000000);
$enter = "if(\$j('#{$currentId}').val() != ''){ \$j('#SB{$currentId}').fadeOut(200, function(){ \$j('#SA{$currentId}').fadeIn();}); } else { \$j('#SA{$currentId}').fadeOut(200, function(){ \$j('#SB{$currentId}').fadeIn(); }); }";
$I = new HTMLInput($this->name, "text", $this->value, $this->options);
$I->style($this->style);
$I->placeholder($this->placeholder);
$I->onEnter($this->onenter . $enter);
#$I->onEnter(" ");
$I->id($currentId);
$BSearch = new Button("Suchen", "question_mark", "iconicG");
$BSearch->style("margin-left:5px;");
$BSearch->id("SB{$currentId}");
$BSearch->onclick($this->onenter . $enter);
#$BSearch->id("searchMailsInfo");
$BSearchClear = new Button("Suche beenden", "x_alt", "iconicR");
$BSearchClear->style("margin-left:5px;display:none;");
$BSearchClear->id("SA{$currentId}");
$BSearchClear->onclick("\$j('#{$currentId}').val('').trigger('blur'); {$this->onenter}{$enter}");
#$BSearchClear->id("searchMailsClear");
return $I . $BSearch . $BSearchClear . $this->requestFocus;
break;
case "HTMLEditor":
$B = new Button("in HTML-Editor\nbearbeiten", "editor");
$B->windowRme("Wysiwyg", "", "getEditor", "", "WysiwygGUI;FieldClass:{$this->options[0]};FieldClassID:{$this->options[1]};FieldName:{$this->options[2]}");
$B->className("backgroundColor2");
return $B->__toString();
break;
case "TextEditor":
#return "<input ".(isset($this->events[$as]) ? $eve : "")." style=\"background-image:url(./images/navi/editor.png);".(isset($this->inputStyle[$as]) ? "".$this->inputStyle[$as]."" : "")."\" type=\"button\" class=\"bigButton backgroundColor2\" onclick=\"TextEditor.show('$as','$this->FormID');\" value=\"".$this->texts["in Editor bearbeiten"]."\" /><textarea style=\"display:none;\" name=\"".$as."\" id=\"".$as."\">".$this->attributes->$as."</textarea>";
$B = new Button("in Editor\nbearbeiten", "editor");
$B->className("backgroundColor2");
$B->onclick("TextEditor.show('{$this->name}','{$this->options[0]}');");
$ITA = new HTMLInput($this->name, "textarea", $this->value);
$ITA->id($this->name);
$ITA->style("display:none;");
return $B->__toString() . $ITA;
break;
case "nicEdit":
$BO = array("'{$this->options[0]}'", "'{$this->options[1]}'");
if (isset($this->options[2])) {
$BO[] = "'{$this->options[2]}'";
}
$B = new Button("in Editor\nbearbeiten", "editor");
#$B->windowRme("Wysiwyg","","getEditor","","WysiwygGUI;FieldClass:{$this->options[0]};FieldClassID:{$this->options[1]};FieldName:{$this->options[2]}");
$B->doBefore("Overlay.showDark(); %AFTER");
$B->popup("", "Editor", "nicEdit", "-1", "editInPopup", $BO, "", "Popup.presets.large");
$B->className("backgroundColor2");
$ITA = new HTMLInput($this->name, "hidden", $this->value);
return $B->__toString() . $ITA;
break;
case "tinyMCE":
$BO = array("'{$this->options[0]}'", "'{$this->options[1]}'");
if (isset($this->options[2])) {
$BO[] = "'{$this->options[2]}'";
}
$B = new Button("in Editor\nbearbeiten", "editor");
#$B->windowRme("Wysiwyg","","getEditor","","WysiwygGUI;FieldClass:{$this->options[0]};FieldClassID:{$this->options[1]};FieldName:{$this->options[2]}");
$B->popup("", "Editor", "Wysiwyg", "-1", "editInPopup", $BO, "", "Popup.presets.large");
$B->className("backgroundColor2");
$ITA = new HTMLInput($this->name, "textarea", $this->value);
return $B->__toString() . $ITA;
break;
case "multiInput":
return "<input\n\t\t\t\t\tclass=\"multiEditInput2\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t" . ($this->style != null ? " style=\"{$this->style}\"" : "") . "\n\t\t\t\t\tvalue=\"" . htmlspecialchars($this->value) . "\"\n\t\t\t\t\tonfocus=\"oldValue = this.value;\"\n\t\t\t\t\tid=\"" . $this->options[2] . "ID" . $this->options[1] . "\"\n\t\t\t\t\tonblur=\"if(oldValue != this.value) saveMultiEditInput('" . $this->options[0] . "','" . $this->options[1] . "','" . $this->options[2] . "');\"\n\t\t\t\t\tonkeydown=\"if(event.keyCode == 13) saveMultiEditInput('" . $this->options[0] . "','" . $this->options[1] . "','" . $this->options[2] . "');\"/>";
break;
/*case "customSelection":
$B = new Button("Eintrag auswählen...", "gutschrift");
$B->type("LPBig");
$B->style("float:right;margin-left:10px;");
# "contentRight" "callingPluginID" "selectPlugin"
$B->customSelect($this->options[0], $this->options[1], $this->options[2], $this->options[3]);
return $B."<input type=\"text\" name=\"$this->name\" value=\"$this->value\" />";
break;*/
/*case "customSelection":
$B = new Button("Eintrag auswählen...", "gutschrift");
$B->type("LPBig");
$B->style("float:right;margin-left:10px;");
# "contentRight" "callingPluginID" "selectPlugin"
$B->customSelect($this->options[0], $this->options[1], $this->options[2], $this->options[3]);
return $B."<input type=\"text\" name=\"$this->name\" value=\"$this->value\" />";
break;*/
case "textarea":
if ($this->isDisplayMode) {
return nl2br($this->value);
}
if ($this->multiEditOptions != null) {
$this->id($this->name . "ID" . $this->multiEditOptions[1]);
//.........这里部分代码省略.........
示例8: getOperationsHTML
function getOperationsHTML($pluginName, $id = -1)
{
$userCanDelete = mUserdata::isDisallowedTo("cantDelete" . $pluginName);
$userCanCreate = mUserdata::isDisallowedTo("cantCreate" . $pluginName);
if ($this->texts == null) {
$c = $this->loadLanguageClass("HTML");
$this->texts = $c->getEditTexts();
}
$html = "";
if (PMReflector::implementsInterface($pluginName, "iNewWithValues") and $userCanCreate) {
$os = "1";
} else {
$os = "0";
}
if (PMReflector::implementsInterface($pluginName, "iCloneable") and $userCanCreate) {
$os .= "1";
} else {
$os .= "0";
}
if ((PMReflector::implementsInterface($pluginName, "iDeletable") or PMReflector::implementsInterface($pluginName, "iDeletable2")) and $userCanDelete) {
$os .= "1";
} else {
$os .= "0";
}
if (PMReflector::implementsInterface($pluginName, "iRepeatable") and Session::isPluginLoaded("mRepeatable")) {
$os .= "1";
} else {
$os .= "0";
}
if (PMReflector::implementsInterface($pluginName, "iXMLExport")) {
$os .= "1";
} else {
$os .= "0";
}
if ($id != -1 and $os != "00000") {
$B = new Button("Operationen", "wrench", "iconic");
$B->id($pluginName . "Operations");
$B->onclick("phynxContextMenu.start(this, 'HTML','operations:{$pluginName}:{$id}:{$os}','" . $this->texts["Operationen"] . ":');");
$B->style("float:right;margin-top:-3px;");
return $B;
#"<span title=\"Operationen\" id=\"".$pluginName."Operations\" class=\"iconic wrench\" onclick=\"\" style=\"\" ></span>";
}
return "";
}
示例9: controls
public function controls()
{
echo "<p class=\"prettyTitle\">" . $this->A("UPnPName") . "</p>";
#$desiredCommands = array("Play", "Pause", "Stop", "Next", "Previous");
$icons = array("Play" => "play", "Pause" => "pause", "Stop" => "stop", "Next" => "arrow_right", "Previous" => "arrow_left", "Mute" => "volume_mute", "UnMute" => "volume", "Shutdown" => "download");
if (file_get_contents($this->A("UPnPLocation")) === false) {
$B = new Button("Achtung", "notice", "icon");
$B->style("float:left;margin:10px;");
echo $B . "<p>Der Server ist nicht erreichbar!</p>";
}
#$info = file_get_contents($url["scheme"]."://".$url["host"].":".$url["port"].$this->A("UPnPAVTransportSCPDURL"));
#$xml = new SimpleXMLElement($info);
#echo "<pre style=\"padding:5px;font-size:9px;overflow:auto;height:400px;\">";
/*foreach ($xml->actionList->action AS $action){
$name = $action->name[0]."";
if(!in_array($name, $desiredCommands))
continue;
$B = new Button($name, $icons[$name], "touch");
$B->rmePCR("UPnP", $this->getID(), $name, array("'0'"));
echo $B;
#echo "<p><a href=\"#\" onclick=\"".OnEvent::rme($this, $name, array("'0'"))." return false;\">".$name."</a></p>";
}*/
#$this->prettyfy($info);
#echo "</pre>";
#print_r($info);
echo "<div style=\"clear:both;height:10px;\"></div>";
$B = new Button("Play", $icons["Play"], "touch");
$B->rmePCR("UPnP", $this->getID(), "Play", array("'0'"));
#$B->style("display:inline-block;width:30%;");
echo $B;
$B = new Button("Pause", $icons["Pause"], "touch");
$B->rmePCR("UPnP", $this->getID(), "Pause", array("'0'"));
#$B->style("display:inline-block;width:30%;");
echo $B;
$B = new Button("Stop", $icons["Stop"], "touch");
$B->rmePCR("UPnP", $this->getID(), "Stop", array("'0'"));
#$B->style("display:inline-block;width:30%;");
echo $B;
echo "<br />";
echo "<br />";
$B = new Button("Previous", $icons["Previous"], "touch");
$B->rmePCR("UPnP", $this->getID(), "Previous", array("'0'"));
$B->style("display:inline-block;width:47%;");
echo $B;
$B = new Button("Next", $icons["Next"], "touch");
$B->rmePCR("UPnP", $this->getID(), "Next", array("'0'"));
$B->style("display:inline-block;width:47%;");
echo $B;
$B = new Button("Mute", $icons["Mute"], "touch");
$B->rmePCR("UPnP", $this->getID(), "SetMute", array("'0'", "'Master'", "'1'"), "function(){ \$j('#UPnPControlsMute').hide(); \$j('#UPnPControlsUnMute').show(); }");
$B->style("width:47%;" . ($this->GetMute(0, "Master") == "0" ? "" : "display:none;"));
$B->id("UPnPControlsMute");
echo $B;
$B = new Button("UnMute", $icons["UnMute"], "touch");
$B->rmePCR("UPnP", $this->getID(), "SetMute", array("'0'", "'Master'", "'0'"), "function(){ \$j('#UPnPControlsMute').show(); \$j('#UPnPControlsUnMute').hide(); }");
$B->style("width:47%;" . ($this->GetMute(0, "Master") == "1" ? "" : "display:none;"));
$B->id("UPnPControlsUnMute");
echo $B;
/*if(strpos($this->A("UPnPModelName"), "XBMC") !== false){
$B = new Button("Shutdown", $icons["Shutdown"], "touch");
$B->doBefore("if(confirm('Möchten Sie das Gerät herunterfahren?')) %AFTER");
$B->rmePCR("UPnP", $this->getID(), "VendorShutdown");
$B->style("display:inline-block;width:47%;");
echo $B;
}*/
echo "<div style=\"height:1px;\"></div>";
}
示例10: getAuftrag
public function getAuftrag($data)
{
$Beleg = new GRLBM($data["GRLBMID"]);
#$this->createAuftrag(new Adresse(1), "W");
$Auftrag = new Auftrag($Beleg->A("AuftragID"));
$Adresse = new Adresse($Auftrag->A("AdresseID"));
$BCheckK = "";
if (Session::isPluginLoaded("mklickTel")) {
$BCheckK = new Button("Adresse mit klickTel prüfen", "compass", "iconic");
$BCheckK->style("float:right;font-size:30px;margin-right:15px;");
$BCheckK->onclick("CustomerPage.popup('Adressprüfung', 'checkAddressKlickTel', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckK->id("BCheckKT");
Aspect::joinPoint("modButtonKlickTel", $this, __METHOD__, array($BCheckK, $Auftrag));
}
$BUpdate = new Button("Adresse ändern", "pen_alt2", "iconic");
$BUpdate->style("float:right;font-size:30px;margin-right:15px;");
$BUpdate->onclick("CustomerPage.popup('Adresse ändern', 'alterAddress', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckG = new Button("Adresse mit Google prüfen", "compass", "iconic");
$BCheckG->style("float:right;font-size:30px;");
$BCheckG->onclick("CustomerPage.popup('Adressprüfung', 'checkAddressGoogle', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckG->id("BCheckG");
Aspect::joinPoint("modButtonGoogle", $this, __METHOD__, array($BCheckG, $Auftrag));
$TAdresse = new HTMLTable(2, "Kundenadresse");
$TAdresse->setColWidth(1, 26);
$TAdresse->setTableStyle("width:100%;");
$TAdresse->addRow(array(new Button("Adresse", "home", "iconic"), $BCheckG . $BCheckK . $BUpdate . $Adresse->getHTMLFormattedAddress()));
$TAdresse->setColStyle(1, "vertical-align:top;");
$TPosten = new HTMLTable(7, "Auftragspositionen");
$TPosten->setTableStyle("width:100%;");
#$TPosten->addColStyle(3, "text-align:right;");
$TPosten->addColStyle(4, "text-align:right;");
$TPosten->addColStyle(5, "text-align:right;");
$TPosten->addColStyle(6, "text-align:right;color:grey;");
$TPosten->setColWidth(1, 26);
$TPosten->setColWidth(2, 80);
$TPosten->setColWidth(4, 80);
$TPosten->setColWidth(5, 80);
$TPosten->setColWidth(6, 80);
$TPosten->setColWidth(7, 20);
$AC = anyC::get("Posten", "GRLBMID", $Beleg->getID());
$AC->addOrderV3("PostenID");
$i = 0;
$O = new Button("Positionen", "list", "iconic");
while ($P = $AC->getNextEntry()) {
$B = new Button("Position löschen", "trash_stroke", "iconic");
$B->onclick("CustomerPage.rme('delPosten', {PostenID: '" . $P->getID() . "'}, function(){ CustomerPage.rme('getAuftrag', {GRLBMID: {$data['GRLBMID']}}, function(transport){ \$('#contentLeft').html(transport); }); });");
$I = new HTMLInput("mwst", "text", Util::CLNumberParserZ($P->A("menge")));
$I->style("text-align:right;width:80px;");
$I->onEnter("\$j(this).trigger('blur');");
$I->onblur("CustomerPage.rme('setMenge', {PostenID: '" . $P->getID() . "', menge: this.value}, function(){ CustomerPage.rme('getAuftrag', {GRLBMID: {$data['GRLBMID']}}, function(transport){ \$('#contentLeft').html(transport); }); });");
$TPosten->addRow(array($i == 0 ? $O : "", $I, $P->A("name"), Util::CLNumberParserZ($P->A("preis")), Util::CLNumberParserZ($P->A("menge") * $P->A("preis")), Util::CLNumberParserZ($P->A("mwst")) . "%", $B));
$i++;
}
if ($AC->numLoaded() == 0) {
$TPosten->addRow(array($O, "Bitte fügen Sie einen Artikel hinzu."));
$TPosten->addRowColspan(2, 6);
$TPosten->setColWidth(2, "100%");
$TPosten->setColStyle(2, "text-align:left;");
}
$TSumme = new HTMLTable(3);
$TSumme->setTableStyle("width:100%;border-top:1px solid #AAA;margin-top:30px;");
$TSumme->setColWidth(1, 26);
$TSumme->addColStyle(3, "text-align:right;");
$TSumme->addRow(array("", "Netto: <b>" . Util::CLFormatCurrency($Beleg->A("nettobetrag") * 1, true) . "</b>", "Brutto: <b>" . Util::CLFormatCurrency($Beleg->A("bruttobetrag") * 1, true) . "</b>"));
$IZahlungsart = new HTMLInput("zahlungsart", "select", $Beleg->A("GRLBMpayedVia"), GRLBM::getPaymentVia(null, array("transfer", "debit")));
$IZahlungsart->onchange("if(this.value == 'debit') \$('#rowZahlungsart').show(); else \$('#rowZahlungsart').hide(); CustomerPage.timeout = window.setTimeout(CustomerPage.saveKontodaten, 300);");
$IBankleitzahl = new HTMLInput("bankleitzahl", "text", $Beleg->A("GRLBMBankleitzahl"));
$IBankleitzahl->placeholder("Bankleitzahl");
$IBankleitzahl->style("margin-top:10px;text-align:right;width:130px;");
$IBankleitzahl->onkeyup("if(CustomerPage.timeout != null) window.clearTimeout(CustomerPage.timeout); CustomerPage.timeout = window.setTimeout(CustomerPage.saveKontodaten, 300);");
$IKontonummer = new HTMLInput("kontonummer", "text", $Beleg->A("GRLBMKontonummer"));
$IKontonummer->placeholder("Kontonummer");
$IKontonummer->style("margin-top:10px;text-align:right;margin-left:10px;width:130px;");
$IKontonummer->onkeyup("if(CustomerPage.timeout != null) window.clearTimeout(CustomerPage.timeout); CustomerPage.timeout = window.setTimeout(CustomerPage.saveKontodaten, 300);");
#$IBIC = new HTMLInput("bic");
#$IIBAN = new HTMLInput("iban");
$BCheck = new Button("Prüfung", "question_mark", "iconic");
$BCheck->id("ktoCheck");
$BCheck->style("margin-left:8px;");
$TZahlungsart = new HTMLTable(2, "Zahlungsart");
$TZahlungsart->setTableStyle("width:100%;");
$TZahlungsart->setColWidth(1, 26);
$TZahlungsart->addRow(array(new Button("Zahlungsart", "pin", "iconic"), $IZahlungsart));
$TZahlungsart->addRowColspan(2, 2);
$TZahlungsart->addCellStyle(1, "vertical-align:top;");
$TZahlungsart->addRow(array("", $IBankleitzahl . " " . $IKontonummer . "{$BCheck} <div id=\"bankMessage\" style=\"margin-top:6px;\"> </div>"));
$TZahlungsart->setRowID("rowZahlungsart");
if ($Beleg->A("GRLBMpayedVia") != "debit") {
$TZahlungsart->addRowStyle("display:none;");
} else {
echo OnEvent::script("CustomerPage.saveKontodaten();");
}
$IBemerkung = new HTMLInput("bemerkung", "textarea", $Beleg->A("textbausteinUnten"));
$IBemerkung->style("width:100%;height:100px;margin-top:40px;");
$IBemerkung->placeholder("Bemerkungen");
#$IBemerkung->onblur("");
$IBemerkung->onkeyup("if(CustomerPage.timeout != null) window.clearTimeout(CustomerPage.timeout); CustomerPage.timeout = window.setTimeout(CustomerPage.saveBemerkung, 300);");
$TZahlungsart->addRow(array(new Button("Bemerkung", "document_alt_stroke", "iconic"), $IBemerkung));
#$TSumme->addRowColspan(2, 2);
$TZahlungsart->addCellStyle(1, "vertical-align:top;padding-top:40px;");
//.........这里部分代码省略.........
示例11: getHTML
function getHTML($id)
{
$forReload = "";
$displayMode = null;
$AuftragID = -1;
$bps = $this->getMyBPSData();
if ($bps != -1 and isset($bps["AuftragID"])) {
$AuftragID = $bps["AuftragID"];
}
if ($bps != -1 and isset($bps["displayMode"])) {
$displayMode = $bps["displayMode"];
}
$_SESSION["BPS"]->unsetACProperty("AuftragID");
$_SESSION["BPS"]->unsetACProperty("displayMode");
#if($this->A == null AND $id != -1) $this->loadMe();
$this->loadMeOrEmpty();
if ($id * 1 == -1) {
$this->A = $this->newAttributes();
$this->A->AuftragID = $AuftragID;
if ($displayMode != null) {
$this->A->type = $displayMode;
}
//Has to stay or lieferAdresse will also overwrite a normal Auftrags-Adresse
if (Session::isPluginLoaded("mAdressBuch")) {
$AB = BPS::getProperty("AdressenGUI", "AdressBuch", null);
if ($AB) {
$this->A->type = "AB{$AB}";
}
}
$id = $this->newMe(true, false);
$this->forceReload();
try {
$K = new Kunden();
if ($displayMode == null and $this->A("type") == "default") {
//Or else a lieferAdresse will get a Kundennummer
$K->createKundeToAdresse($id, false);
}
} catch (ClassNotFoundException $e) {
}
$forReload = "<script type=\"text/javascript\">lastLoadedLeft = {$id}; lastLoadedLeftPlugin = 'Adresse';</script>";
}
$OptTab = new HTMLSideTable("right");
if (Session::isPluginLoaded("Kunden") and $this->A->AuftragID == -1) {
$B = new Button("Kundendaten", "kunden");
$B->loadFrame("contentLeft", "Kunde", "-1", "0", "KundeGUI;AdresseID:{$this->getID()};action:Kappendix");
$OptTab->addRow($B);
}
if ($_SESSION["applications"]->getActiveApplication() == "open3A") {
if ($displayMode != null) {
$OptTab->setTableStyle("width:160px;margin:0px;margin-left:-170px;float:left;");
}
if (($id == -1 or $forReload != "") and Session::isPluginLoaded("mImport")) {
$OTBV = new Button("Schnell-\nImport", "import");
#$OTBV->rmePCR("importAdresse", "", "getFastImportWindow", "", "Popup.display('Adresse importieren:',transport);");
$OTBV->onclick("Import.openSchnellImportAdresse('Adresse importieren:');");
$OTBV->id("ButtonAdresseSchnellImport");
$OptTab->addRow($OTBV);
}
if ($id != -1 and Session::isPluginLoaded("Kundenpreise") and $this->A->AuftragID == -1 and $this->A->type == "default") {
$ButtonKundenpreise = new Button("Kundenpreise", "package");
$ButtonKundenpreise->onclick("contentManager.loadFrame('contentLeft','Kunde', -1, 0, 'KundeGUI;AdresseID:{$this->ID};action:Kundenpreise');");
$OptTab->addRow($ButtonKundenpreise);
}
if ($this->A->AuftragID == -1 and (Session::isPluginLoaded("mAnsprechpartner") or Session::isPluginLoaded("mOSM"))) {
$OptTab->addRow("");
$OptTab->addCellStyle(1, "height:30px;");
}
if ($id != -1 and Session::isPluginLoaded("mAnsprechpartner") and $this->A->AuftragID == -1) {
$OptTab->addRow(Ansprechpartner::getButton("Adresse", $this->getID()));
}
if ($id != -1 and Session::isPluginLoaded("mOSM") and $this->A("AuftragID") == -1) {
$OptTab->addRow(OpenLayers::getButton("Adresse", $this->getID()));
}
}
if (Session::isPluginLoaded("mklickTel") and $this->A->AuftragID == -1) {
$OptTab->addRow(klickTel::getButton($this->getID()));
}
$this->loadMeOrEmpty();
$gui = $this->gui;
$gui->insertSpaceAbove("tel", "Kontakt");
$gui->insertSpaceAbove("strasse", "Adresse");
$gui->insertSpaceAbove("homepage", "Sonstiges");
$gui->setFormID("AdresseForm");
$fields = array("firma", "position", "anrede", "vorname", "nachname", "AdresseSpracheID", "strasse", "bezirk", "zusatz1", "ort", "land", "tel", "fax", "mobil", "email", "homepage", "gebRem", "gebRemMail", "AuftragID", "KategorieID", "type", "geb", "bemerkung");
if (Session::isPluginLoaded("mLDAP")) {
$fields[] = "exportToLDAP";
}
$gui->setShowAttributes($fields);
$gui->setLabel("bemerkung", "Notizen");
if (Session::isPluginLoaded("mSprache")) {
$gui->setLabel("AdresseSpracheID", "Sprache");
$gui->setLabelDescription("AdresseSpracheID", "und Währung");
#$ACS = anyC::get("Sprache");
#$S = array();
#while($SLW = $ACS->getNextEntry())
# $S[$SLW->getID()] = $SLW->A("SpracheSprache")." "." ".$SLW->A("SpracheWaehrung");
$gui->selectWithCollection("AdresseSpracheID", new mSprache(), "SpracheName");
#$gui->setType("AdresseSpracheID", "select");
#$gui->setOptions("AdresseSpracheID", array_keys($S), array_values($S));
#$gui->insertSpaceAbove("firma");
//.........这里部分代码省略.........