本文整理汇总了PHP中Button::loadFrame方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::loadFrame方法的具体用法?PHP Button::loadFrame怎么用?PHP Button::loadFrame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::loadFrame方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editIcon
private function editIcon($aid)
{
$B = new Button("", "./images/i2/edit.png", "icon");
$B->className("editButton");
$onSuccessFunction = $this->JSOnEdit != null ? str_replace("%%VALUE%%", "{$aid}", "{$this->JSOnEdit}") : "";
$B->loadFrame($this->editInDisplayModeTarget, $this->singularClass, $aid, 0, "", $onSuccessFunction);
return "<td>{$B}</td>";
/*
* <img
onclick=\"
".($this->editInDisplayModeTarget == "contentLeft" ? "lastLoadedLeft = $aid;lastLoadedLeftPlugin = '$this->singularClass';" : "")."
new Ajax.Request('./interface/loadFrame.php?p=".$this->singularClass."&id=$aid'".($this->JSOnEdit != null ? str_replace("%%VALUE%%","$aid",",{onSuccess: $this->JSOnEdit}") : ",{onSuccess: function(transport){ if(checkResponse(transport)) $('$this->editInDisplayModeTarget').update(transport.responseText); }}").");\" src=\"./images/i2/edit.png\" class=\"mouseoverFade\" />
*/
}
示例2: getCalendarDetails
public static function getCalendarDetails($className, $classID, $T = null)
{
$K = new Kalender();
if ($T == null) {
$T = new Todo($classID);
}
$name = "";
if ($T->A("TodoClass") == "Projekt" or $T->A("TodoClass") == "GRLBM") {
$O = $T->getOwnerObject();
$name = $O->getCalendarTitle();
} else {
$name = $T->A("TodoName");
}
$day = $T->A("TodoTillDay");
if ($T->A("TodoFromDay") != "0") {
$day = $T->A("TodoFromDay");
}
$time = $T->A("TodoTillTime");
if ($T->A("TodoFromTime") != "0") {
$time = $T->A("TodoFromTime");
}
$KE = new KalenderEvent($className, $classID, $K->formatDay($day), $K->formatTime($time), $name);
#echo $T->A("TodoOrt");
if ($T->A("TodoClass") == "WAdresse") {
$O = $T->getOwnerObject();
$KE->value("Kunde", $O->getHTMLFormattedAddress());
}
$KE->value("Typ", TodoGUI::types($T->A("TodoType")));
$KE->value("Ort", $T->A("TodoLocation"));
#$KE->value("Status", TodoGUI::getStatus($T->A("TodoStatus")));
$KE->owner($T->A("TodoUserID"));
if ($T->A("TodoClass") == "WAdresse") {
$KE->value("Telefon", $O->A("tel"));
$KE->value("Notiz", nl2br($O->A("bemerkung")));
$KE->canNotify(true, $T->A("TodoNotified") == "1");
if ($T->A("TodoType") == "1" and Session::isPluginLoaded("mAkquise")) {
$B = new Button("Akquise", "./lightCRM/Akquise/callTel.png");
#$B->doBefore(OnEvent::rme($T, "setStatus", array("'2'"), OnEvent::closePopup("mKalender").OnEvent::reload("Screen"))." %AFTER");
$B->doBefore(OnEvent::closePopup("mKalender") . "contentManager.emptyFrame('contentScreen'); %AFTER");
$B->loadFrame("contentLeft", "WAdresse", $T->A("TodoClassID"), 0, "mWAdresseGUI;Akquise:1;from:mKalender");
#$B->popup("", "Akquise", "mAkquise", "-1", "showTelPopup", array($T->A("TodoClassID")), "", "{width: 950, top:20, hPosition:'center'}");
$KE->addTopButton($B);
}
}
$KE->allDay($T->A("TodoAllDay") == "1");
if ($T->A("TodoClass") == "Projekt" and $O->A("ProjektKunde") != "0") {
$Adresse = new Adresse($O->A("ProjektKunde"));
$KE->value("Telefon", $Adresse->A("tel"));
}
if ($T->A("TodoClass") == "GRLBM") {
$Auftrag = new Auftrag($O->A("AuftragID"));
$Adresse = new Adresse($Auftrag->A("AdresseID"));
$KE->value("Telefon", $Adresse->A("tel"));
}
$KE->status($T->A("TodoStatus"));
$KE->endDay($K->formatDay($T->A("TodoTillDay")));
$KE->endTime($K->formatTime($T->A("TodoTillTime")));
$KE->icon(TodoGUI::typesImage($T->A("TodoType"), true));
$KE->summary(nl2br($T->A("TodoDescription")));
if ($T->A("TodoExceptionForID") != "0") {
$KE->exception($T->A("TodoExceptionStarttime"), $T->A("TodoIsDeleted") == "1", $T->A("TodoExceptionForID"));
}
if ($T->A("TodoRemind") != "-1") {
$KE->remind($T->A("TodoRemind") / 60, $T->A("TodoReminded"));
}
$editMethod = "editInPopup";
if ($T->A("TodoOrganizer") != "") {
$editMethod = null;
$KE->organizer($T->A("TodoOrganizer"));
}
if (!$T->A("TodoDoneTime")) {
$KE->editable($editMethod, "deleteFromCalendar");
}
if ($T->A("TodoOrganizer") == "" and !$T->A("TodoDoneTime")) {
$KE->repeatable("editRepeatable");
}
$KE->location($T->A("TodoLocation"));
$KE->repeat($T->A("TodoRepeat") != "", $T->A("TodoRepeat"), $T->A("TodoRepeatWeekOfMonth") * 1, $T->A("TodoRepeatDayOfWeek"), $T->A("TodoRepeatInterval"), $T->A("TodoRepeatUntil"));
$KE->UID("TodoID" . $T->getID() . "@" . substr(Util::eK(), 0, 20));
$KE->closeable($T->A("TodoDoneTime"), $T->A("TodoReport"));
if (!$T->A("TodoDoneTime")) {
$KE->canInvite();
}
return $KE;
}
示例3: isDirParser
public static function isDirParser($w, $E)
{
#$p = HTMLGUI::getArrayFromParametersString($p);
if ($w == "0") {
return "";
} else {
$symb = "./images/i2/folder.png";
if ($E->A("FileName") == ".") {
$symb = "./plugins/Files/thisDir.png";
}
if ($E->A("FileName") == "..") {
$symb = "./plugins/Files/parentDir.png";
}
$B = new Button("Verzeichnis öffnen", $symb, "icon");
#if(realpath($E->getID()) != realpath(Util::getRootPath()."specifics"))
#$B->onclick("contentManager.reloadFrame('contentRight', '_mFileGUI;path:".preg_replace("/^([A-Z]):/", "\\1%", str_replace('\\', "/", realpath($E->getID())))."');");
$B->loadFrame("contentRight", "mFile", "-1", "0", "_mFileGUI;path:" . preg_replace("/^([A-Z]):/", "\\1%", str_replace('\\', "/", realpath($E->getID()))) . "");
return $B;
#return "<img class=\"mouseoverFade\" onclick=\"contentManager.reloadFrameRight();\" src=\"\" />";
}
}
示例4: 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");
//.........这里部分代码省略.........