本文整理汇总了PHP中Button::onclick方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::onclick方法的具体用法?PHP Button::onclick怎么用?PHP Button::onclick使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::onclick方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: check
public function check($touch = false)
{
$mbox = $this->connection();
#echo "<h1>Nachrichten in INBOX</h1><div style=\"overflow:auto;max-height:400px;\"><pre>";
$MC = imap_check($mbox);
$T = new HTMLTable(1, $touch ? "Mails" : "");
$T->setTableStyle("font-size:11px;");
$T->useForSelection();
$start = $MC->Nmsgs - 10;
if ($start < 1) {
$start = 1;
}
$result = imap_fetch_overview($mbox, "{$start}:{$MC->Nmsgs}", 0);
$result = array_reverse($result);
foreach ($result as $overview) {
#print_r($overview);
$T->addRow(array("\n\t\t\t\t<small style=\"color:grey;float:right;\">" . Util::CLDateParser($overview->udate) . "</small>\n\t\t\t\t" . str_replace("\"", "", $this->decodeBlubb($overview->from)) . "<br />\n\t\t\t\t<small style=\"color:grey;\">" . substr($this->decodeBlubb($overview->subject), 0, 50) . "</small>"));
$T->addCellEvent(1, "click", "\$j('#MailFrame').attr('src', './interface/rme.php?class=MailCheck&constructor=" . $this->getID() . "&method=showMailBody¶meters=\\'{$overview->uid}\\'');");
}
imap_close($mbox);
#echo "</pre></div>";
$BC = "";
if ($touch) {
$BC = new Button("Fenster\nschließen", "stop");
$BC->style("float:right;margin:10px;");
$BC->onclick(OnEvent::closePopup("MailCheck"));
}
echo "<div style=\"float:right;width:300px;\">";
echo $BC;
echo "<p>{$MC->Nmsgs} Nachricht" . ($MC->Nmsgs == 1 ? "" : "en") . "</p><div style=\"clear:both;\"></div>";
echo $T;
echo "</div>";
echo "\n\t\t\t<div style=\"border-right-style:solid;border-right-width:1px;width:699px;\" class=\"borderColor1\">\n\t\t\t\t<iframe id=\"MailFrame\" style=\"border:0px;width:699px;height:520px;\" src=\"./fheME/MailCheck/Home/index.html\"></iframe>\n\t\t\t</div>";
echo "<div style=\"clear:both;\"></div>";
}
示例2: sendEmail
public static function sendEmail($subject, $body, $recipient)
{
$S = new SupportGUI();
$data = $S->getEMailData();
$mailfrom = $data["fromAddress"];
$mailto = $data["recipients"][$recipient][1];
$mimeMail2 = new PHPMailer(false, substr($mailfrom, stripos($mailfrom, "@") + 1));
$mimeMail2->CharSet = "UTF-8";
$mimeMail2->Subject = $subject;
$mimeMail2->From = $mailfrom;
$mimeMail2->Sender = $mailfrom;
$mimeMail2->FromName = $data["fromName"];
$mimeMail2->Body = wordwrap($body, 80);
$mimeMail2->AddAddress($mailto);
$B = new Button("Danke!", "./images/big/thanks.png", "icon");
$B->style("float:left;margin-right:10px;margin-bottom:20px;");
$BOK = new Button("OK", "bestaetigung");
$BOK->onclick(OnEvent::closePopup("Support"));
$BOK->style("float:right;margin:10px;");
if ($mimeMail2->Send()) {
echo "<h1>{$B} Danke für Ihre Unterstützung!</h1><p>Sie erhalten in Kürze eine Antwort per E-Mail.</p>{$BOK}<div style=\"clear:both;\"></div>";
} else {
echo "<p style=\"padding:5px;color:red;\">Fehler beim Senden der E-Mail. Bitte überprüfen Sie Ihre Server-Einstellungen im Admin-Bereich.</p><p>Nachfolgend wird Ihre Nachricht angezeigt, falls Sie sie in die Zwischenablage kopieren (Strg + c) und manuell an <b>{$mailto}</b> möchten.</p><pre style=\"color:grey;max-height:300px;font-size:10px;padding:5px;width:590px;overflow:auto;\">" . wordwrap(stripslashes($body), 80) . "</pre>{$BOK}<div style=\"clear:both;\"></div>";
}
}
示例3: getHTML
function getHTML($id)
{
$this->loadMeOrEmpty();
$gui = new HTMLGUI2();
$gui->setObject($this);
$gui->setName("RSSFilter");
$gui->setShowAttributes(array("RSSFilterName", "RSSFilterFeed", "RSSFilterAdapter", "RSSFilterJDID", "RSSFilterAutoDL", "RSSFilterProviderRapidshare", "RSSFilterProviderNetload", "RSSFilterProviderUploaded"));
$gui->setLabel("RSSFilterName", "Name");
$gui->setLabel("RSSFilterFeed", "Feed URL");
$gui->setLabel("RSSFilterAdapter", "Adapter");
$gui->setLabel("RSSFilterJDID", "DL with");
$gui->setLabel("RSSFilterProviderRapidshare", "Rapidshare.com");
$gui->setLabel("RSSFilterProviderNetload", "Netload");
$gui->setLabel("RSSFilterProviderUploaded", "Uploaded");
$gui->setLabel("RSSFilterAutoDL", "Auto-DL?");
$gui->setType("RSSFilterProviderRapidshare", "checkbox");
$gui->setType("RSSFilterProviderNetload", "checkbox");
$gui->setType("RSSFilterAutoDL", "checkbox");
$gui->setType("RSSFilterProviderUploaded", "checkbox");
$gui->insertSpaceAbove("RSSFilterJDID");
$gui->setFieldDescription("RSSFilterAutoDL", "Currently only works when using JDownloader RC, Qnap and pyLoad. Will have no effect otherwise.");
$gui->selectWithCollection("RSSFilterJDID", new mJDGUI(), "JDName", "nicht herunterladen");
$gui->setStandardSaveButton($this);
$Tab = new HTMLSideTable("right");
$B = new Button("show filtered\nfeed", "./trinityDB/RSSFilter/Filtered.png");
$B->onclick("window.open('./trinityDB/RSSFilter/FilteredFeed.php?RSSFilterID=" . $this->getID() . "', 'Filtered feed');");
$Tab->addRow($B);
$FB = new FileBrowser();
$FB->addDir(Util::getRootPath() . "trinityDB/RSSFilter");
$Adapters = $FB->getAsLabeledArray("iFeedFilter", ".class.php", true);
$gui->setType("RSSFilterAdapter", "select");
$gui->setOptions("RSSFilterAdapter", array_values($Adapters), array_keys($Adapters));
return $Tab . $gui->getEditHTML();
}
示例4: getNav
private function getNav($parentID, $domain)
{
$mNav = new anyC();
$mNav->setCollectionOf("Navigation");
$mNav->addAssocV3("parentID", "=", $parentID);
$mNav->addAssocV3("DomainID", "=", $domain);
$mNav->addOrderV3("sort");
$mNav->lCV3();
if ($mNav->numLoaded() == 0) {
return;
}
$html = "\n\t\t<ul style=\"list-style-image:none;list-style-type:none;\" id=\"sortable_{$parentID}\">";
while ($n = $mNav->getNextEntry()) {
$B = new Button("Element bearbeiten", "./images/i2/edit.png");
$B->type("icon");
$B->onclick("contentManager.loadFrame('contentLeft','Navigation','" . $n->getID() . "');");
$B->style("float:left;margin-right:10px;");
$D = new Button("Element löschen", "./images/i2/delete.gif");
$D->type("icon");
$D->onclick("deleteClass('Navigation','" . $n->getID() . "', function() { contentManager.reloadFrameRight(); if(typeof lastLoadedLeft != 'undefined' && lastLoadedLeft == '1') \$('contentLeft').update(''); },'Element und alle Unterelemente wirklich löschen?');");
$D->style("float:right;margin-right:10px;");
$html .= "<li id=\"NavigationElementID_" . $n->getID() . "\" style=\"" . ($n->A("hidden") == "1" ? "text-decoration:line-through;" : "") . "\">{$D}<img src=\"./images/i2/topdown.png\" class=\"navigationHandler_sortable_{$parentID}\"\" style=\"cursor:pointer;float:right;margin-right:10px;\" />{$B}" . ($n->A("name") == "" ? "<kein Name>" : $n->A("name")) . $this->getNav($n->getID(), $domain) . "</li>";
}
#
$html .= "\n\t\t</ul>\n\t\t<script type=\"text/javascript\">Website.add('sortable_{$parentID}');</script>";
return $html;
}
示例5: nameParser
public static function nameParser($w, $E)
{
$B = new Button("display episodes", "./images/i2/folder.png");
$B->style("float:left;margin-right:5px;");
$B->type("icon");
$B->onclick("contentManager.loadFrame('contentLeft','mFolge',-1,0,'mFolgeGUI;SerieID:" . $E->getID() . "');");
return $B . $w;
}
示例6: noBackupButton
private function noBackupButton()
{
$GoAway = new HTMLInput("BackupGoAway", "checkbox");
$GoAway->id("BackupGoAway");
$GoAway->style("float:left;margin-right:5px;");
$BSave = new Button("Einstellung\nspeichern", "save");
$BSave->style("float:right;");
$BSave->onclick("if(\$('BackupGoAway').checked) ");
$BSave->rmePCR("BackupManager", "", "GoAway", "", "Popup.close('','BackupManagerGUI'); contentManager.reloadFrame('contentLeft');");
return $BSave . $GoAway . " <label for=\"BackupGoAway\" style=\"float:none;text-align:left;width:auto;\">Diese Meldung nicht mehr anzeigen, ich erstelle meine Backups selbst.</label>";
}
示例7: getHTML
function getHTML($id)
{
$BC = new Button("Abbrechen", "stop");
$BC->style("margin:10px;float:right;");
$BC->onclick("\$j('#listAP .lastSelected').removeClass('lastSelected'); \$j('#editAP').fadeOut(400, function(){ \$j('#editDetailsTinkerforge').animate({'width':'400px'}, 200, 'swing'); });");
$gui = new HTMLGUIX($this);
$gui->name("Bricklet");
$gui->type("TinkerforgeBrickletTinkerforgeID", "hidden");
$gui->type("TinkerforgeBrickletType", "select", self::$types);
$gui->addToEvent("onSave", "\$j('#listAP .lastSelected').removeClass('lastSelected'); \$j('#editAP').fadeOut(400, function(){ \$j('#editDetailsTinkerforge').animate({'width':'400px'}, 200, 'swing', function(){ " . OnEvent::reloadPopup("Tinkerforge") . " }); }); ");
return $BC . "<div style=\"clear:both;\"></div>" . $gui->getEditHTML();
}
示例8: getOverviewContent
public function getOverviewContent()
{
$html = "<div class=\"touchHeader\"><span class=\"lastUpdate\" id=\"lastUpdatemGerichtGUI\"></span><p>MailCheck</p></div>\n\t\t\t<div style=\"padding:10px;overflow:auto;\">";
$BU = new Button("", "./fheME/Gericht/update.png", "icon");
$BU->style("float:right;");
$BU->onclick("fheOverview.loadContent('mGerichtGUI::getOverviewContent');");
$AC = anyC::get("MailCheck");
while ($MC = $AC->getNextEntry()) {
$B = new Button("Mails abholen", "mail", "iconicL");
$html .= "\n\t\t\t<div class=\"touchButton\" onclick=\"Overlay.showDark();" . OnEvent::popup("Mails abholen", "MailCheck", $MC->getID(), "check", "1", "", "{width:1000, top:20, left:20, hPosition:'center'}") . "\">\n\t\t\t\t" . $B . "\n\t\t\t\t<div class=\"label\">" . $MC->A("MailCheckName") . "</div>\n\t\t\t\t<div style=\"clear:both;\"></div>\n\t\t\t</div>";
}
$html .= "</div>";
echo $html;
}
示例9: getHTML
function getHTML($id)
{
$this->loadMeOrEmpty();
$gui = new HTMLGUI2();
$gui->setObject($this);
$gui->setName("Serie");
$gui->setShowAttributes(array("name", "sprache", "dir", "lastupdate", "genre", "description", "status", "quality", "RSSFilterID", "altFeedName1", "altFileName1"));
#$gui->setType("adapter", "hidden");
#$gui->setType("lastupdate", "readonly");
#$gui->setType("siteID", "hidden");
#$gui->setType("url", "hidden");
$gui->setType("description", "textarea");
$gui->setLabel("sprache", "Language");
$gui->setLabel("lastupdate", "Last update");
$gui->setLabel("RSSFilterID", "RSS feed");
$gui->setLabel("altFileName1", "alt. file name");
$gui->setLabel("altFeedName1", "alt. feed name");
$gui->setFieldDescription("altFileName1", "This is useful if the filenames do not match the full series name. trinityDB will then look for both names on the harddrive. For example 'switch' instead of 'Switch Reloaded'.");
$gui->setFieldDescription("altFeedName1", "This is useful if the feed names do not match the full series name. trinityDB will then look for both names in the feeds. For example 'Human.Target.2010' instead of 'Human Target (2010)'.");
$gui->setParser("lastupdate", "SerieGUI::lastUpdateParser");
$gui->setType("quality", "select");
$gui->setOptions("quality", array_keys(self::getQualities()), array_values(self::getQualities()));
$gui->setType("sprache", "select");
$gui->setOptions("sprache", array("en", "de"), array("english", "deutsch"));
$gui->setStandardSaveButton($this);
$gui->insertSpaceAbove("RSSFilterID");
$gui->selectWithCollection("RSSFilterID", new mRSSFilterGUI(), "RSSFilterName", "none");
$tab = new HTMLSideTable("right");
$B = new Button("Download\nepisodes", "./trinityDB/Serien/Updates.png");
#$B->rmePCR("Serie", $this->ID, "downloadEpisodes", array("'1'"), "Popup.display('Download-Status', transport);");
$B->popup("", "Download-Status", "Serie", $this->ID, "downloadEpisodes", array("'1'"));
$S = new Button("Settings", "./images/i2/settings.png");
$S->type("icon");
$S->style("float:right;margin-right:-20px;");
$S->contextMenu("Serie", "download", "Settings");
$tab->addRow($S . $B);
$B = new Button("Show\nepisodes", "./trinityDB/Serien/Folge.png");
$B->onclick("contentManager.loadFrame('contentLeft','mFolge',-1,0,'mFolgeGUI;SerieID:" . $this->getID() . "');");
$tab->addRow($B);
#$B = new Button("Find new\nepisodes","./trinityDB/RSSFilter/RSSFilter.png");
#$B->rmePCR("Serie", $this->ID, "checkRSS", "", "Popup.display('Episoden-Status', transport);");
#$tab->addRow($B);
$B = new Button("Check\nepisodes", "okCatch");
$B->rmePCR("Serie", $this->ID, "checkAllEpisodes", "", "Popup.display('Episoden-Status', transport);");
$tab->addRow($B);
$Image = new Button("", DBImageGUI::imageLink("Serie", $this->getID(), "cover", false, true), "icon");
$Image->style("width:150px;");
$tab->addRow(array($Image));
return $tab . $gui->getEditHTML();
}
示例10: getHTML
public function getHTML($id)
{
$bps = $this->getMyBPSData();
$t = new HTMLTable(1);
$t->setTableStyle("width:160px;float:right;margin-right:10px;");
if (!isset($bps["ID"])) {
$F = new mFhemGUI();
$F->addAssocV3("FhemType", "!=", "FHZ");
while ($f = $F->getNextEntry()) {
$B = new Button($f->getA()->FhemName, "./fheME/Fhem/fhem.png");
$B->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;ID:" . $f->getID() . ";type:D;name:" . $f->getA()->FhemName . "');");
$t->addRow($B);
$t->addRowClass("backgroundColor0");
}
$t->addRow("");
$t->addRowClass("backgroundColor1");
$F = new anyC();
$F->setCollectionOf("FhemPreset");
$F->addAssocV3("FhemPresetHide", "=", "0");
while ($f = $F->getNextEntry()) {
$B = new Button($f->getA()->FhemPresetName, "./fheME/Fhem/events.png");
$B->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;ID:" . $f->getID() . ";type:P;name:" . $f->getA()->FhemPresetName . "');");
$t->addRow($B);
$t->addRowClass("backgroundColor0");
}
return $t;
}
if (isset($bps["ID"])) {
if ($bps["type"] == "D") {
$F = new Fhem($bps["ID"]);
$F->loadMe();
$FF = new Fhem("timer");
$FF->setA($F->getA());
$C = new FhemControlGUI();
$control = $C->getControl($FF);
} else {
$control = "";
}
$rand = rand(10, 10000000);
$B = new Button("set timer", "okCatch");
$B->rme("FhemControl", '', 'setTimer', array($bps["ID"], "'setBPSValue'", "'{$bps['type']}'", "parent.clock4Timer{$rand}.stunden", "parent.clock4Timer{$rand}.minuten", "'{$bps['name']}'"), "contentManager.loadFrame(\\'contentRight\\',\\'mFhem\\',-1,0,\\'\\');");
$B->style("float:right;");
$t->addRow("<iframe name=\"clock4Timer{$rand}\" style=\"width:240px;height:330px;border:0px;\" src=\"./libraries/ClockGUI.class.php\"></iframe>");
$t->addRowClass("backgroundColor0");
$t->addRow($B);
$t->addRowClass("backgroundColor0");
return $control . $t;
}
}
示例11: getPopup
public function getPopup()
{
$bps = $this->getMyBPSData();
$gui = $this->getGUI($this->getID());
$gui->addToEvent("onSave", "Popup.close('LoginData', 'edit');");
#$gui->setJSEvent("onSave", "function() { Popup.close('', 'mailServer'); contentManager.reloadFrame('contentRight'); }");
#$gui->setStandardSaveButton($this,"mLoginData");
$gui->displayMode("popup");
$html = "";
$html2 = "";
if ($bps != -1 and isset($bps["preset"]) and $bps["preset"] == "mailServer") {
$BAbort = new Button("Abbrechen", "stop");
$BAbort->onclick("Popup.close('LoginData', 'edit');");
$BAbort->style("float:right;");
$html = "<p style=\"padding:5px;\">{$BAbort}<small>Sie müssen hier nur Einstellungen vornehmen, wenn Sie diese Anwendung lokal auf einem Windows-Rechner betreiben oder direkt über einen SMTP-Server versenden möchten (z.B. Newsletter).</small></p>";
$gui->type("UserID", "hidden");
$this->changeA("UserID", "-1");
$gui->type("name", "hidden");
$this->changeA("name", "MailServerUserPass");
$gui->type("optionen", "hidden");
}
if ($bps != -1 and isset($bps["preset"]) and $bps["preset"] == "backupFTPServer") {
$BAbort = new Button("Abbrechen", "stop");
$BAbort->onclick("Popup.close('LoginData', 'edit');");
$BAbort->style("float:right;");
$html = "<p style=\"padding:5px;\">{$BAbort}<small>Sie müssen hier nur Einstellungen vornehmen, wenn Sie die Backups automatisch auf einen FTP-Server hochladen möchten.</small></p>";
$gui->type("UserID", "hidden");
$this->changeA("UserID", "-1");
$gui->type("name", "hidden");
$this->changeA("name", "BackupFTPServerUserPass");
$gui->descriptionField("optionen", "Bitte geben Sie hier das Unterverzeichnis an, in das die Datei hochgeladen werden soll");
$gui->label("optionen", "Verzeichnis");
#$gui->type("optionen", "hidden");
}
#
if ($bps != -1 and isset($bps["preset"]) and $bps["preset"] == "googleData") {
$html = "<p>Bitte beachten Sie: Es werden nur Ihre eigenen Termine synchronisiert.</p>";
$gui->type("UserID", "hidden");
$this->changeA("UserID", Session::currentUser()->getID());
$gui->type("name", "hidden");
$this->changeA("name", "GoogleAccountUserPass");
$gui->type("optionen", "hidden");
$gui->type("server", "hidden");
}
$gui->label("benutzername", "Benutzername");
$gui->label("passwort", "Passwort");
$gui->label("server", "Server");
echo $html . $gui->getEditHTML();
}
示例12: browser
public function browser()
{
$BA = new Button("Eintrag\nhinzufügen", "new");
$BA->doBefore("\$j('#popupEditEntry').fadeOut(400, function(){ \$j('#editDetails" . $this->object->getClearClass() . "').animate({'width':'400px'}, 200, 'swing', function(){ %AFTER }); });");
$BA->rmePCR($this->object->getClearClass(), "-1", "create", $this->parametersCreate, OnEvent::reloadPopup($this->object->getClearClass()));
$BA->style("margin:10px;");
$cols = 3 + count($this->colsLeft) + count($this->colsRight);
$TE = new HTMLTable($cols, "Einträge");
$TE->setColWidth(1, 20);
$TE->setColWidth($cols, 20);
$TE->useForSelection(false);
$TE->maxHeight(400);
$TE->weight("light");
$BE = new Button("Eintrag bearbeiten", "arrow_right", "iconic");
$autoLoad = false;
while ($A = $this->object->getNextEntry()) {
$BD = new Button("Eintrag löschen", "trash_stroke", "iconic");
$BD->doBefore("\$j('#popupEditEntry').fadeOut(400, function(){ \$j('#editDetails" . $this->object->getClearClass() . "').animate({'width':'400px'}, 200, 'swing', function(){ %AFTER }); });");
$BD->onclick("deleteClass('" . get_class($A) . "','" . $A->getID() . "', function() { " . OnEvent::reloadPopup($this->object->getClearClass()) . " },'Eintrag wirklich löschen?');");
$isEmpty = false;
if ($this->emptyCheckField != null and $A->A($this->emptyCheckField) == "") {
$autoLoad = $A->getID();
$isEmpty = true;
}
if (!$isEmpty) {
$div = Util::invokeStaticMethod(get_class($this->object), $this->parsers["main"], array($A));
} else {
$div = "Neuer Eintrag";
}
$row = array();
$row[] = $BD;
$row[] = $div;
foreach ($this->colsRight as $col) {
$c = Util::invokeStaticMethod(get_class($this->object), $col[0], array($A));
$row[] = $c;
}
$row[] = $BE;
$TE->addRow($row);
$action = "contentManager.selectRow(this); \$j('#editDetails" . $this->object->getClearClass() . "').animate({'width':'800px'}, 200, 'swing', function(){ " . OnEvent::frame("popupEditEntry", get_class($A), $A->getID(), "0", "function(){ \$j('#popupEditEntry').fadeIn(); }") . " });";
$TE->addCellEvent(2, "click", $action);
$TE->addCellID(2, "popupEntryID" . $A->getID());
$TE->addCellEvent(count($row), "click", $action);
}
if ($this->object->numLoaded() == 0) {
$TE->addRow("Keine Einträge");
$TE->addRowColspan(1, 3);
}
return "{$BA}\n\t\t\t<div style=\"float:right;width:400px;height:500px;display:none;\" id=\"popupEditEntry\"></div>\n\t\t\t<div id=\"popupListEntries\" style=\"width:400px;height:440px;overflow:auto;\">{$TE}</div>\n\t\t\t<div style=\"clear:both;\"></div>\n\t\t\t" . ($autoLoad ? OnEvent::script("\$j('#popupEntryID" . $autoLoad . "').trigger(Touch.trigger);") : "");
}
示例13: getOverviewContent
public function getOverviewContent()
{
$html = "<div class=\"touchHeader\"><span class=\"lastUpdate\" id=\"lastUpdatemtrinityDBGUI\"></span><p>trinityDB</p></div>\n\t\t\t<div style=\"padding:10px;\">";
$AC = anyC::get("trinityDB");
while ($T = $AC->getNextEntry()) {
$B = new Button("Neue Folgen", "star", "touch");
$B->onclick("trinityDB.show(" . $T->getID() . ", 'newEpisodes');");
$html .= "{$B}";
$B = new Button("Serienbrowser", "aperture", "touch");
$B->onclick("trinityDB.show(" . $T->getID() . ", 'browser');");
$html .= "{$B}";
}
$html .= "</div>";
echo $html;
}
示例14: getHTML
public function getHTML($id)
{
$gui = new HTMLGUI();
$gui->VersionCheck($this->getClearClass());
$t = new HTMLTable(2, $this->tableLabel);
$t->addColStyle(1, "width:20px;");
$FB = new FileBrowser();
$FB->addDir($this->directory);
$w = $FB->getAsLabeledArray("iFileBrowser", ".class.php");
foreach ($w as $k => $v) {
$B = new Button("", "./images/i2/edit.png");
$B->type("icon");
$B->onclick("contentManager.loadFrame('contentLeft','{$v}');");
$t->addRow(array($B, "{$k}"));
}
return $t->getHTML();
}
示例15: getHTML
public function getHTML($id)
{
$gui = new HTMLGUI();
$gui->VersionCheck("mTool");
$FB = new FileBrowser();
$FB->addDir("../PM/GoD");
$files = $FB->getAsLabeledArray("iPMTool", ".class.php", true);
$tab = new HTMLTable(2, "Tools");
$tab->setColWidth(1, "20px");
foreach ($files as $key => $value) {
$B = new Button("", "./images/i2/edit.png");
$B->type("icon");
$B->onclick("loadFrameV2('contentLeft','{$value}');");
$tab->addRow(array($B, $key));
}
return $tab;
}