本文整理汇总了PHP中Button::customSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::customSelect方法的具体用法?PHP Button::customSelect怎么用?PHP Button::customSelect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::customSelect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHTML
public function getHTML($id, $page)
{
$this->addAssocV3("DateiClassID", "=", $this->classID);
$this->addAssocV3("DateiClass", "=", $this->className);
$this->lCV3($id);
$gui = new HTMLGUI();
$gui->setName("Dateien");
$gui->setAttributes($this->collector);
$gui->setCollectionOf($this->collectionOf);
$gui->setShowAttributes(array("DateiName"));
$gui->setParser("DateiName", "mDateiGUI::nameParser", array("\$DateiPath", "\$DateiIsDir", "\$DateiSize"));
$gui->setIsDisplayMode(true);
if (!$this->viewOnly) {
$gui->setDeleteInDisplayMode(true);
}
$t = new HTMLTable(1);
if ($this->classID != null and !$this->viewOnly) {
$B = new Button("Datei\nhinzufügen", "computer");
$B->select(true, "mFile", $this->onAddClass != null ? $this->onAddClass : "'+lastLoadedLeftPlugin+'", $this->classID, "addFile");
$B->customSelect("contentRight", $this->classID, "mFile", "{$this->onAddClass}.addFile");
$t->addRow($B);
#$t->addRow(array("<input onclick=\"loadFrameV2('contentRight','mFile','mFileGUI;selectionMode:multiSelection,".($this->onAddClass != null ? $this->onAddClass : "'+lastLoadedLeftPlugin+'").",$this->classID,addFile,'+lastLoadedRightPlugin+',".($this->onReloadFrame != null ? $this->onReloadFrame : "contentLeft").",".($this->onReloadClass != null ? $this->onReloadClass : "'+lastLoadedLeftPlugin+'").",".($this->onReloadID != null ? $this->onReloadID : $this->classID)."');\" type=\"button\" class=\"backgroundColor3 bigButton\" style=\"background-image:url(./images/navi/computer.png);\" value=\"Datei\nhinzufügen\" />"));
}
$gui->setJSEvent("onDelete", $this->onDeleteFunction == null ? "function() { contentManager.reloadFrame('contentLeft'); }" : $this->onDeleteFunction);
try {
if ($this->viewOnly and $this->numLoaded() == 0) {
return "";
}
return $t->getHTML() . $gui->getBrowserHTML($id);
} catch (Exception $e) {
}
}
示例2: getHTML
function getHTML($id)
{
$type = "none";
$U = new mUserdata();
$U = $U->getUDValue("selectedDomain");
$bps = $this->getMyBPSData();
if ($bps != -1 and isset($bps["type"])) {
$type = $bps["type"];
}
$this->loadMeOrEmpty();
if ($id == -1) {
if ($type != "none" and $type != "undefined") {
$this->A->SeiteID = $type;
}
}
$gui = new HTMLGUI();
$gui->setObject($this);
$gui->setName("Content");
$gui->setType("contentType", "select");
$gui->setOptions("contentType", array("text", "preset", "downloads", "php"), array("Text", "HTML-Vorlage", "Downloads", "PHP"));
$FB = new FileBrowser();
$FB->addDir("../specifics/");
if ($_SESSION["S"]->checkForPlugin("mShop")) {
$FB->addDir("../multiCMS/Shop/");
}
$a = $FB->getAsLabeledArray("iCustomContent", ".class.php");
$gui->setLabel("customContent", "Inhalt");
$gui->setType("customContent", "select");
$gui->setOptions("customContent", array_values($a), array_keys($a));
$Tab = new HTMLTable(1);
if ($this->singular) {
$gui->setType("sort", "hidden");
} else {
$B = new Button("zurück", "back");
$B->onclick("contentManager.loadFrame('contentLeft','Seite', " . $this->A("SeiteID") . ");");
$Tab->addRow($B);
}
$gui->setLabel("contentType", "Typ");
$gui->setLabel("ContentImage", "Bild");
$gui->setLabel("SeiteID", "Seite");
$gui->setLabel("TemplateID", "Vorlage");
$gui->setLabel("sort", "Sortierung");
$gui->setFieldDescription("ContentImage", "Wird an Stelle des Parameters %%%IMAGE%%% eingesetzt.");
#$gui->setType("header","hidden");
$gui->insertSpaceAbove("contentType");
#$gui->insertSpaceAbove("TemplateID","sonstiges", true);
$gui->setInputJSEvent("contentType", "onchange", "Content.selectType(this);");
$gui->setType("text", "HTMLEditor");
if (Session::isPluginLoaded("mFile")) {
$B = new Button("Bild auswählen", "./images/i2/add.png");
$B->type("icon");
$B->customSelect("contentRight", $this->ID, "mFile", "Content.selectImage");
$gui->activateFeature("addCustomButton", $this, "ContentImage", $B);
} else {
$gui->setType("ContentImage", "hidden");
}
$gui->setShowAttributes(array("text", "ContentSpracheID", "ContentImage", "TemplateID", "header", "sort", "contentType", "presetTemplateID", "formHandlerID", "customContent"));
$gui->setFormID("ContentForm");
$S = new anyC();
$S->setCollectionOf("Seite");
$gui->selectWithCollection("SeiteID", $S, "name");
$gui->setType("name", "hidden");
$gui->setType("SeiteID", "hidden");
$gui->setLabel("presetTemplateID", "Vorlage");
$gui->setLabel("formHandlerID", "Handler");
$gui->setLabel("ContentSpracheID", "Sprache");
if (Session::isPluginLoaded("mSprache")) {
$Sprachen = new anyC();
$Sprachen->setCollectionOf("Sprache");
$gui->selectWithCollection("ContentSpracheID", $Sprachen, "SpracheIdentifier", "alle");
} else {
$gui->setType("ContentSpracheID", "hidden");
}
$aC = new anyC();
$aC->setCollectionOf("Template");
$aC->addAssocV3("templateType", "=", "presetTemplate");
$gui->selectWithCollection("presetTemplateID", $aC, "name");
if ($_SESSION["S"]->checkForPlugin("mHandler")) {
$handlerAC = new anyC();
$handlerAC->setCollectionOf("Handler");
$handlerAC->addAssocV3("HandlerDomainID", "=", $U);
$gui->selectWithCollection("formHandlerID", $handlerAC, "HandlerName", "keiner");
} else {
$gui->setParser("formHandlerID", "ContentGUI::noHandlerParser");
}
if ($this->A->contentType != "preset") {
$gui->setLineStyle("presetTemplateID", "display:none;");
$gui->setLineStyle("formHandlerID", "display:none;");
}
if ($this->A->contentType != "php") {
$gui->setLineStyle("customContent", "display:none;");
}
$T = new TemplatesGUI();
$T->addAssocV3("templateType", "=", "contentTemplate");
$T->addAssocV3("templateType", "=", "listTemplate", "OR");
$T->addAssocV3("templateType", "=", "tableTemplate", "OR");
$T->addAssocV3("templateType", "=", "dlTemplate", "OR");
$T->addOrderV3("templateType");
$TG = new TemplatesGUI();
$cats = $TG->getAvailableCategories();
//.........这里部分代码省略.........