本文整理汇总了PHP中Session::isPluginLoaded方法的典型用法代码示例。如果您正苦于以下问题:PHP Session::isPluginLoaded方法的具体用法?PHP Session::isPluginLoaded怎么用?PHP Session::isPluginLoaded使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Session
的用法示例。
在下文中一共展示了Session::isPluginLoaded方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHTML
function getHTML($id)
{
$this->loadMeOrEmpty();
$gui = new HTMLGUIX($this);
$gui->name("Fhem");
$gui->label("FhemServerID", "Server");
$gui->label("FhemName", "Name in FHEM");
$gui->label("FhemAlias", "Zu zeigender Name");
$gui->label("FhemType", "Type");
$gui->label("FhemSpecific", "Adresscode");
$gui->label("FhemRoom", "Raumname");
$gui->label("FhemModel", "Model");
$gui->label("FhemFHTModel", "Model");
$gui->label("FhemITModel", "Model");
$gui->label("FhemHMModel", "Model");
$gui->label("FhemHMSub", "Sub-Type");
$gui->label("FhemHMClass", "hmClass");
$gui->label("FhemEMModel", "Model");
$gui->label("FhemRunOn", "run on");
$gui->label("FhemCommand", "Command");
$gui->label("FhemLocationID", "Location");
$gui->label("FhemInOverview", "In Overview?");
$gui->label("FhemFHTDefaultDayTemp", "day-temp");
$gui->label("FhemExtension", "Erweiterung");
$extensions = array("none" => "keine");
if (Session::isPluginLoaded("mSieHabenPost")) {
$extensions["SieHabenPost"] = "Briefkasten";
}
$gui->type("FhemExtension", "select", $extensions);
$gui->type("FhemInOverview", "checkbox");
$gui->type("FhemModel", "select", array("" => "none", "fs20du" => "FS20 DU", "fs20s4u" => "FS20 S4U", "fs20s4" => "FS20 S4", "fs20st" => "FS20 ST", "fs20di" => "FS20 DI", "fs20irf" => "FS20 IRF", "fs20rsu" => "FS20 RSU"));
$gui->type("FhemITModel", "select", array("" => "none", "itdimmer" => "IT-Dimmer", "itswitch" => "IT-Switch"));
$gui->type("FhemHMModel", "select", array("" => "none", "dimmer" => "Dimmer", "switch" => "Switch", "HM-LC-Dim1L-CV" => "HM-LC-Dim1L-CV", "HM-LC-Dim1L-Pl" => "HM-LC-Dim1L-Pl", "HM-LC-Dim1PBU-FM" => "HM-LC-Dim1PBU-FM", "HM-LC-Dim1T-CV" => "HM-LC-Dim1T-CV", "HM-LC-Dim1T-Pl" => "HM-LC-Dim1T-Pl", "HM-LC-Dim2L-SM" => "HM-LC-Dim2L-SM", "HM-LC-Dim2T-SM" => "HM-LC-Dim2T-SM", "HM-LC-Sw1-FM" => "HM-LC-Sw1-FM", "HM-LC-Sw1-Pl" => "HM-LC-Sw1-Pl", "HM-LC-Sw1-SM" => "HM-LC-Sw1-SM", "HM-LC-Sw1PB-FM" => "HM-LC-Sw1PB-FM", "HM-LC-Sw1PBU-FM" => "HM-LC-Sw1PBU-FM", "HM-LC-Sw2-FM" => "HM-LC-Sw2-FM", "HM-LC-Sw4-WM" => "HM-LC-Sw4-WM", "HM-Sec-RHS" => "HM-Sec-RHS"));
$gui->type("FhemHMSub", "select", array("" => "none", "AlarmControl" => "AlarmControl", "KFM100" => "KFM100", "THSensor" => "THSensor", "blindActuator" => "blindActuator", "dimmer" => "dimmer", "keyMatic" => "keyMatic", "motionDetector" => "motionDetector", "pushButton" => "pushButton", "remote" => "remote", "sensor" => "sensor", "smokeDetector" => "smokeDetector", "swi" => "swi", "switch" => "switch", "threeStateSensor" => "threeStateSensor", "winMatic" => "winMatic"));
$gui->type("FhemHMClass", "select", array("" => "none", "receiver" => "Empfänger", "sender" => "Sender"));
$gui->type("FhemEMModel", "select", array("" => "none", "EMEM" => "EM 1000-EM"));
$gui->type("FhemFHTModel", "select", array("" => "none", "fht80b" => "80B"));
$gui->type("FhemType", "select", array("" => "none", "FS20" => "FS20", "FHZ" => "FHZ", "FHT" => "FHT", "CUL_HM" => "HomeMatic", "IT" => "Intertechno", "CUL_EM" => "ELV EM", "notify" => "notify", "dummy" => "dummy"));
$B = $gui->addSideButton("Show\ndata", "./fheME/Fhem/showData.png");
$B->popup("", "Show data", "Fhem", $this->getID(), "showData");
$gui->type("FhemLocationID", "select", new mFhemLocationGUI(), "FhemLocationName", "everywhere");
#$gui->selectWithCollection("FhemLocationID", );
$gui->type("FhemCommand", "textarea");
$gui->descriptionField("FhemRunOn", "e.g. Door:toggle");
$gui->descriptionField("FhemCommand", "you may use new line, it will be replaced by space");
$gui->inputStyle("FhemCommand", "height:300px;font-size:8px;");
$gui->attributes(array("FhemServerID", "FhemLocationID", "FhemName", "FhemAlias", "FhemInOverview", "FhemType", "FhemExtension", "FhemModel", "FhemITModel", "FhemHMModel", "FhemEMModel", "FhemFHTModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom", "FhemRunOn", "FhemCommand"));
$gui->space("FhemType");
$gui->toggleFieldsInit("FhemType", array("FhemModel", "FhemITModel", "FhemHMModel", "FhemEMModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom", "FhemRunOn", "FhemCommand", "FhemFHTModel", "FhemFHTDefaultDayTemp", "FhemExtension"));
$gui->toggleFields("FhemType", "FHZ", array("FhemSpecific", "FhemRoom"));
$gui->toggleFields("FhemType", "FS20", array("FhemModel", "FhemSpecific", "FhemRoom"));
$gui->toggleFields("FhemType", "notify", array("FhemRunOn", "FhemCommand", "FhemRoom"));
$gui->toggleFields("FhemType", "IT", array("FhemITModel", "FhemSpecific", "FhemRoom"));
$gui->toggleFields("FhemType", "CUL_HM", array("FhemHMModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom"));
$gui->toggleFields("FhemType", "CUL_EM", array("FhemEMModel", "FhemSpecific", "FhemRoom"));
$gui->toggleFields("FhemType", "FHT", array("FhemFHTModel", "FhemSpecific", "FhemRoom"));
$gui->toggleFields("FhemType", "dummy", array("FhemRoom", "FhemExtension"));
$gui->type("FhemServerID", "select", new mFhemServerGUI(), "FhemServerName");
return $gui->getEditHTML();
}
示例2: getHTML
public function getHTML($id)
{
$this->loadMeOrEmpty();
#if($this->A == null AND $id != -1) $this->loadMe();
#if($id == -1) $this->A = new InstallationAttributes();
BPS::setProperty("mInstallationGUI", "showErrorText", "1");
$gui = new HTMLGUI();
if (!Session::isPluginLoaded("multiInstall")) {
$this->A->httpHost = "*";
$gui->setType("httpHost", "hidden");
} else {
$gui->insertSpaceAbove("httpHost");
}
$gui->setObject($this);
$gui->setName("Zugangsdaten");
$gui->setType("password", "password");
$gui->setLabel("datab", "Datenbank");
$gui->setLabel("user", "Benutzer");
$gui->setLabel("password", "Passwort");
$gui->setLabel("httpHost", "Domain");
$gui->setFieldDescription("host", "Der Rechner, auf dem die Datenbank liegt. Das kann 'localhost' sein, oder eine IP wie '192.168.8.243' oder ein Hostname wie 'rdbms.strato.de'.");
$gui->setFieldDescription("httpHost", "unter der phynx erreichbar ist oder * für alle Domains");
#$this->loadGUITranslation($gui);
$gui->translate($this->loadTranslation());
$gui->setJSEvent("onSave", "\n\t\t\t\tfunction() {\n\t\t\t\t\tcontentManager.emptyFrame('contentLeft');\n\t\t\t\t\tcontentManager.emptyFrame('contentBelow');\n\t\t\t\t\tcontentManager.reloadFrame('contentRight');" . "\n\t\t\t\t}");
$gui->setStandardSaveButton($this);
return $gui->getEditHTML();
}
示例3: joinPoint
public static function joinPoint($mode, $class, $method, $args = null, $defaultValue = null)
{
$value = Aspect::findPointCut($mode, $class, $method, $args);
if (Session::isPluginLoaded("mAchievement") and $mode == "after") {
Achievement::findPointCut($class, $method, $args);
}
if ($value === null) {
return $defaultValue;
}
return $value;
}
示例4: getHTML
function getHTML($id, $page, $frame = null)
{
$this->loadMultiPageMode($id, $page);
$gui = new HTMLGUIX($this);
$tab = "";
if (Session::isPluginLoaded("mAdressBuch") and $id == -1) {
$tab = mAdressBuchGUI::getSelectionMenu($this, $frame, false, true);
}
$gui->displayGroup("KategorieID", "AdressenGUI::DGParser");
$gui->options(true, true, true, true);
$gui->parser("firma", "mAdresseGUI::parserFirma");
if ($frame != null) {
$gui->targetFrame($frame);
}
$gui->attributes(array("firma"));
return $tab . $gui->getBrowserHTML($id);
}
示例5: getHTML
function getHTML($id)
{
$this->loadMeOrEmpty();
$gui = new HTMLGUI();
$gui->setObject($this);
$gui->setName("Domain");
if ($id != -1) {
$Seiten = new SeitenGUI();
$Seiten->addAssocV3("DomainID", "=", $this->getID());
$Seiten->setFieldsV3(array("SeiteID", "IF(name = '', header , name) AS name"));
$gui->selectWithCollection("startseite", $Seiten, "name");
} else {
$gui->setParser("startseite", "DomainGUI::startseiteParser");
}
$T = new TemplatesGUI();
$T->addAssocV3("templateType", "=", "domainTemplate");
$gui->selectWithCollection("TemplateID", $T, "name");
$gui->setStandardSaveButton($this);
#$gui->setSaveButtonValues(get_parent_class($this),$this->ID,"Domains");
$gui->setShowAttributes(array("TemplateID", "url", "DomainDefaultSpracheID", "startseite", "title", "header", "umleitung", "permalinkPrefix", "horizontalNav"));
if (Session::isPluginLoaded("mSprache")) {
$mS = new anyC();
$mS->setCollectionOf("Sprache");
$gui->selectWithCollection("DomainDefaultSpracheID", $mS, "SpracheIdentifier", "keine Auswahl");
} else {
$gui->setType("DomainDefaultSpracheID", "hidden");
}
$gui->setLabel("DomainDefaultSpracheID", "Sprache");
$gui->setLabel("url", "Domains");
$gui->setLabel("title", "Titelzeile");
$gui->setLabel("header", "Header");
$gui->setLabel("permalinkPrefix", "Permalink-Präfix");
$gui->setLabel("horizontalNav", "horizontale Navigation");
$gui->setType("horizontalNav", "checkbox");
$gui->setFieldDescription("horizontalNav", "Subkategorien in der Navigation werden nicht zwischen den Einträgen angezeigt sondern am Ende angehängt.");
$gui->setFieldDescription("umleitung", "<b>www-Umleitung</b><br />Anfragen an Adressen ohne www-Subdomain werden auf die www-subdomain umgeleitet. Also es würde http://example.com an http://www.example.com umgeleitet. Nicht jedoch http://test.example.com<br /><br /><b>erster Eintrag</b><br />Alle Anfragen werden auf den ersten Eintrag der Liste umgeleitet.");
$gui->setType("umleitung", "select");
$gui->setOptions("umleitung", array("0", "1", "2"), array("keine", "www-Umleitung", "erster Eintrag"));
$gui->setType("url", "textarea");
$gui->setFieldDescription("url", "geben Sie eine Domain pro Zeile an oder * für eine beliebige Domain");
$tab = new HTMLTable(1);
$tab->addRow("Das Permalink-Präfix wird vor den Permalink geschrieben, wenn er für eine Seite eingetragen wurde.<br /><br />Wenn Sie also \"page-\" als Präfix angeben, wird der Permalink für die Startseite so aussehen (wenn der Permalink für die Startseite \"Startseite\" lautet) page-Startseite.<br /><br />Sie müssen diesen Permalink dann noch mit mod_rewrite umschreiben. Mit präfix \"page-\" dann zum Beispiel:<pre style=\"font-size:9px;\">RewriteEngine on\nRewriteRule ^page-([a-zA-Z0-9-_]*)\$ ?permalink=\$1</pre>");
return $gui->getEditHTML() . $tab;
}
示例6: getHTML
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);
}
示例7: getHTML
function getHTML($id)
{
$U = new mUserdata();
$U = $U->getUDValue("selectedDomain");
$this->loadMeOrEmpty();
if ($id == -1 and $U != null) {
$this->A->DomainID = $U;
$this->A->sort = -1;
$this->A->SeiteID = -1;
}
$gui = new HTMLGUI();
$gui->setObject($this);
$gui->setName("Navigation");
$N = new mNavigation();
$N->addAssocV3("NavigationID", "!=", $this->ID);
$N->addAssocV3("DomainID", "=", $U);
//$gui->selectWithCollection("DomainID", new Domains(), "url");
$gui->selectWithCollection("parentID", $N, "name", "kein übergeordnetes Element");
#$gui->setType("parentID","hidden");
#$gui->selectWithCollection("SeiteID", $aC, "name");
/*$aC = new anyC();
$aC->setCollectionOf("Seite");
$aC->setFieldsV3(array("IF(name = '', header, name) AS name"));
$aC->addAssocV3("DomainID","=",$this->A->DomainID);
$pages = array();
while($s = $aC->getNextEntry()){
$pages[$s->getID()] = $s->A("name");
}
$gui->setType("SeiteID","select");
$gui->setOptions("SeiteID", array_keys($pages), array_values($pages));*/
$gui->setParser("SeiteID", "NavigationGUI::SeiteParser", array($this->A->DomainID));
$gui->setType("DomainID", "hidden");
$gui->insertSpaceAbove("activeTemplateID");
$gui->insertSpaceAbove("linkType");
$gui->insertSpaceAbove("hidden", "Optionen", true);
$gui->setType("sort", "hidden");
$gui->setLabel("httpsLink", "Https-Link?");
$gui->setType("httpsLink", "checkbox");
$gui->setLabel("activeTemplateID", "Link aktiv");
$gui->setLabel("inactiveTemplateID", "Link inaktiv");
$gui->setLabel("DomainID", "Domain");
$gui->setLabel("SeiteID", "Seite");
$gui->setLabel("parentID", "Vaterelement");
/*if($this->A->linkType == "cmsPage" OR $id == -1)
$gui->setLineStyle("linkURL","display:none;");
else*/
$gui->setLineStyle("SeiteID", "display:none;");
$gui->setLineStyle("linkURL", "display:none;");
$gui->setLineStyle("inactiveTemplateID", "display:none;");
$gui->setLineStyle("activeTemplateID", "display:none;");
if ($this->A->linkType == "cmsPage" or $id == -1) {
$gui->setLineStyle("SeiteID", "");
$gui->setLineStyle("inactiveTemplateID", "");
$gui->setLineStyle("activeTemplateID", "");
} else {
if ($this->A->linkType == 'url') {
$gui->setLineStyle("linkURL", "");
$gui->setLineStyle("inactiveTemplateID", "");
} else {
if ($this->A->linkType == 'HTML') {
$gui->setLineStyle("activeTemplateID", "");
} else {
if ($this->A->linkType == 'separator') {
}
}
}
}
if (Session::isPluginLoaded("mMultiLanguage")) {
$gui->activateFeature("addAnotherLanguageButton", $this, "name");
}
$gui->setLabel("linkType", "Link-Typ");
$gui->setInputJSEvent("linkType", "onchange", "Website.set(this)");
$gui->setLabel("linkURL", "Link-URL");
$T = new TemplatesGUI();
$T->addAssocV3("templateType", "=", "naviTemplate");
$gui->selectWithCollection("activeTemplateID", $T, "name");
$T = new TemplatesGUI();
$T->addAssocV3("templateType", "=", "naviTemplate");
$gui->selectWithCollection("inactiveTemplateID", $T, "name");
$gui->setLabel("hidden", "versteckt");
$gui->setFieldDescription("hidden", "Der Menüpunkt wird auf der Seite nicht angezeigt");
$gui->setType("hidden", "checkbox");
#$gui->insertSpaceAbove("parentID");
$gui->setLabel("displaySub", "Unterkat. immer anzeigen");
$gui->setFieldDescription("displaySub", "Blendet die Unterkategorien immer ein, auch wenn der Menüpunkt nicht ausgewählt ist.");
$gui->setType("displaySub", "checkbox");
#$gui->setType("displaySub","hidden");
$gui->setFieldDescription("httpsLink", "Erzeugt einen https://...-Link");
$gui->setType("linkType", "select");
#$gui->setOptions("linkType", array("cmsPage", "url", "separator"), array("multiCMS-Seite", "URL", "Trennlinie"));
$gui->setOptions("linkType", array("cmsPage", "url", "separator", "HTML"), array("multiCMS-Seite", "URL", "Trennlinie", "Template-HTML"));
if ($id == -1) {
$gui->setJSEvent("onSave", "function() { \$('contentLeft').update(); contentManager.reloadFrameRight(); }");
} else {
$gui->setJSEvent("onSave", "function() { contentManager.reloadFrameRight(); }");
}
$gui->setStandardSaveButton($this);
#$gui->setSaveButtonValues(get_parent_class($this),$this->ID,"mNavigation");
//.........这里部分代码省略.........
示例8: deleteMe
function deleteMe()
{
mUserdata::checkRestrictionOrDie("cantDelete" . str_replace("GUI", "", get_class($this)));
try {
if (Session::isPluginLoaded("mArchiv")) {
Archiv::archive($this);
}
} catch (TableDoesNotExistException $e) {
}
$this->loadAdapter();
if (!$this->noDeleteHideOnly) {
$this->Adapter->deleteSingle($this->getClearClass(get_class($this)));
} else {
$this->loadMe();
$this->A->isDeleted = 1;
$this->saveMe();
}
Aspect::joinPoint("after", $this, get_class($this) . "::deleteMe", $this->A);
}
示例9: getLangCurrencyFactor
public static function getLangCurrencyFactor($language)
{
if (!Session::isPluginLoaded("mSprache")) {
return 1;
}
$Sprache = anyC::getFirst("Sprache", "SpracheIdentifier", $language);
$faktor = 1;
if ($Sprache != null) {
$faktor = $Sprache->A("SpracheWaehrungFaktor") * 1;
}
if ($Sprache == null) {
$Sprache = anyC::getFirst("Sprache", "CONCAT(SpracheIdentifier, '_', SpracheWaehrung) ", $language);
if ($Sprache != null) {
$faktor = $Sprache->A("SpracheWaehrungFaktor") * 1;
}
}
return $faktor;
}
示例10: 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 "";
}
示例11: getHTML
public function getHTML($id)
{
$bps = $this->getMyBPSData();
$B1 = new Button("Servers", "./fheME/Fhem/fhemServers.png");
$B1->style("float:right;");
$B1->onclick("contentManager.loadFrame('contentRight','mFhemServer'); contentManager.emptyFrame('contentLeft');");
$B2 = new Button("Devices", "./fheME/Fhem/fhem.png");
$B2->style("float:right;");
$B2->onclick("contentManager.loadFrame('contentRight','mFhem', -1, 0,'mFhemGUI;showDevices:true'); contentManager.emptyFrame('contentLeft');");
// $B3 = new Button("Rooms","gutschrift");
// $B3->style("float:right;");
// $B3->onclick("contentManager.loadFrame('contentRight','mGruppe');");
$B6 = new Button("Presets", "./fheME/Fhem/events.png");
$B6->style("float:right;");
$B6->onclick("contentManager.loadFrame('contentRight','mFhemPreset'); contentManager.emptyFrame('contentLeft');");
$BLoc = new Button("Locations", "./fheME/FhemLocation/FhemLocation.png");
$BLoc->style("float:right;");
$BLoc->onclick("contentManager.loadFrame('contentRight','mFhemLocation'); contentManager.emptyFrame('contentLeft');");
if (!Session::isPluginLoaded("mFhemLocation")) {
$BLoc = "";
}
// $B4 = new Button("Refresh","refresh");
// $B4->style("float:right;");
// $B4->onclick("Fhem.refreshControls();");
#$B5 = new Button("Timers","backup");
#$B5->style("float:right;");
#$B5->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;-'); contentManager.emptyFrame('contentLeft');");
$html = "\n\t\t<script type=\"text/javascript\">\n\t\t\tcontentManager.loadFrame('contentLeft','FhemControl');\n\t\t</script>";
if (isset($bps["noLeft"])) {
$html = "";
}
$t = new HTMLTable(1);
$t->setTableStyle("width:160px;float:right;margin-right:10px;");
#$t->addRow($B5);
#$t->addRowClass("backgroundColor0");
#$t->addRow("");
#$t->addRowClass("backgroundColor1");
// $t->addRow($B3);
// $t->addRowClass("backgroundColor0");
$t->addRow($B2);
$t->addRowClass("backgroundColor0");
$t->addRow($B6);
$t->addRowClass("backgroundColor0");
// $t->addRow($B4);
// $t->addRowClass("backgroundColor0");
$t->addRow($B1);
$t->addRowClass("backgroundColor0");
$t->addRow($BLoc);
$t->addRowClass("backgroundColor0");
if (!isset($bps["showDevices"]) and !isset($bps["selectionMode"])) {
return $html . $t;
}
if (isset($bps["selectionMode"])) {
$this->addAssocV3("FhemServerID", "=", $_SESSION["BPS"]->getProperty("mFhemSelection", "selectionServerID"));
$this->addAssocV3("FhemType", "!=", "FHZ");
}
#----------------------------------------------
$this->addOrderV3("FhemServerID");
$this->addOrderV3("FhemType");
$this->addOrderV3("FhemName");
$gui = new HTMLGUIX($this);
$gui->displayGroup("FhemServerID", "mFhemGUI::DGParser");
$B = $gui->addSideButton("Load devices\nfrom server", "refresh");
$B->popup("", "Load devices", "mFhem", "-1", "loadDevices");
$B = $gui->addSideButton("Register\nsettings", "./fheME/Fhem/fhem.png");
$B->rme("FhemControl", "", "registerSettings", "", "if(checkResponse(transport)) \$(\\'contentLeft\\').update(transport.responseText);");
$B = $gui->addSideButton("Reset\nServers", "empty");
$B->rme("FhemControl", "", "resetServers", "", "if(checkResponse(transport)) \$(\\'contentLeft\\').update(transport.responseText);");
#$this->lCV3($id);
$gui->attributes(array("FhemName", "FhemType"));
$gui->name("Device");
if ($bps != -1 and isset($bps["selectionMode"])) {
$t2 = "";
}
return $gui->getBrowserHTML($id);
}
示例12: 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");
//.........这里部分代码省略.........
示例13: catch
SysMessages::log($errortype[$errno] . ": " . $errmsg . "\n{$filename}:{$linenum}", "PHP");
} catch (Exception $e) {
}
}
session_start();
if (isset($_COOKIE["phynx_customer"]) and isset($_GET["cloud"]) and $_COOKIE["phynx_customer"] != $_GET["cloud"]) {
//if someone switches the cloud, kick him and reinitialize
session_destroy();
session_start();
}
if (!isset($_SESSION["classPaths"])) {
$_SESSION["classPaths"] = array();
}
function __autoload($class_name)
{
try {
return findClass($class_name);
} catch (ClassNotFoundException $e) {
$_SESSION["classPaths"] = array();
return findClass($class_name);
}
}
if (!isset($_SESSION["S"]) or !isset($_SESSION["applications"]) or $_SESSION["applications"]->numAppsLoaded() == 0) {
Session::init();
if (Session::isPluginLoaded("mAutoLogin")) {
mAutoLogin::doAutoLogin();
}
}
if ($physion != "default" and isset($_GET["application"]) and isset($_GET["plugin"])) {
Session::physion($_GET["physion"], $_GET["application"], $_GET["plugin"]);
}
示例14: 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") {
$html .= "<img title=\"Operationen\" id=\"" . $pluginName . "Operations\" src=\"./images/i2/settings.png\" onclick=\"phynxContextMenu.start(this, 'HTML','operations:{$pluginName}:{$id}:{$os}','" . $this->texts["Operationen"] . ":');\" style=\"float:right;\" />";
}
return $html;
}
示例15: getHTML
function getHTML($id)
{
$U = new mUserdata();
$U = $U->getUDValue("selectedDomain");
if ($id == -1) {
$this->A = $this->newAttributes();
$this->A->DomainID = $U;
$this->A->header = "leere Seite";
if ($_SESSION["S"]->checkForPlugin("Templates")) {
$this->A->TemplateID = TemplatesGUI::getDefault("pageTemplate");
}
$id = $this->newMe();
$c = new Content(-1);
$cA = $c->newAttributes();
$c->setA($cA);
$c->changeA("SeiteID", $id);
if ($_SESSION["S"]->checkForPlugin("Templates")) {
$c->changeA("TemplateID", TemplatesGUI::getDefault("contentTemplate"));
}
$c->newMe();
$this->forceReload();
}
if ($this->A == null) {
$this->loadMe();
}
#$this->loadMeOrEmpty();
#if($id == -1 AND $U != null) $this->A->DomainID = $U;
$gui = new HTMLGUI();
$gui->setObject($this);
$gui->setName("Seite");
$gui->setShowAttributes(array("header", "TemplateID", "name", "metaTagDescription", "permalink"));
$gui->insertSpaceAbove("name", "sonstiges", true);
$gui->setLabel("header", "Seitenname");
#$gui->insertSpaceAbove("metaTagDescription");
#$gui->setFieldDescription("header","wird auf der Seite angezeigt");
$gui->setFieldDescription("name", "wird nur intern angezeigt");
$gui->setFieldDescription("permalink", "Ein Name, unter der die Seite über ?permalink= erreichbar ist. Darf nur aus Buchstaben (keine Umlaute), Zahlen, _ und - bestehen und muss eindeutig für die Domain sein. Es kann dann mit mod_rewrite auf diesen permalink an Stelle der SeitenID verlinkt werden.");
$gui->setLabel("TemplateID", "Vorlage");
$gui->setType("DomainID", "hidden");
$gui->setType("metaTagDescription", "textarea");
$gui->setLabel("metaTagDescription", "Beschreibung für meta tag");
$gui->setInputJSEvent("metaTagDescription", "onkeyup", "\$('charCounter').update(\$('metaTagDescription').value.length)");
$gui->setFieldDescription("metaTagDescription", "<span id=\"charCounter\">" . strlen($this->A("metaTagDescription")) . "</span> Zeichen");
$gui->setInputStyle("metaTagDescription", "font-size:8px;");
if (Session::isPluginLoaded("mMultiLanguage")) {
$gui->activateFeature("addAnotherLanguageButton", $this, "header");
}
if (Session::isPluginLoaded("Templates")) {
$T = new anyC();
$T->setCollectionOf("Template");
$T->addAssocV3("templateType", "=", "pageTemplate", "AND", "1");
$T->addAssocV3("TemplateDomainID", "=", "0", "AND", "2");
$T->addAssocV3("TemplateDomainID", "=", $this->A("DomainID"), "OR", "2");
$gui->selectWithCollection("TemplateID", $T, "name");
} else {
$gui->setType("TemplateID", "hidden");
}
$gui->setStandardSaveButton($this);
$H = "";
$E = "";
$C = new mContentGUI();
$C->addAssocV3("SeiteID", "=", $this->ID);
$C->lCV3();
if ($C->numLoaded() == 1) {
$content = $C->getNextEntry();
$H = new ContentGUI($content->getID());
$H->singular = true;
$H = "<div style=\"height:20px;width:20px;\"></div>" . $H->getHTML($content->getID());
} else {
$E = $C->getHTML(-1);
}
$tab = new HTMLTable(1);
$tab->setTableStyle("margin-top:20px;");
$B = new Button("Content\nhinzufügen", "gutschrift");
$B->rmePCR("Seite", $this->ID, "createContent", "", "contentManager.reloadFrame('contentLeft');");
$tab->addRow($B);
return $gui->getEditHTML() . $H . $tab . $E;
}