本文整理汇总了PHP中HTMLTable::addHeaderRow方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLTable::addHeaderRow方法的具体用法?PHP HTMLTable::addHeaderRow怎么用?PHP HTMLTable::addHeaderRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLTable
的用法示例。
在下文中一共展示了HTMLTable::addHeaderRow方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHTML
function getHTML($id)
{
#$p = mUserdata::getPluginSpecificData("mStatistik");
#if(!isset($p["pluginSpecificCanUseControlling"]))
# return;
$html = "";
#parent::getHTML($id);
$tab = new HTMLTable(1);
$tab->addRow("<div id=\"my_chartTodo\" style=\"height:200px;width:470px;\"></div>");
$tab->addRowClass("backgroundColor0");
$AC = $this->data();
$U = Users::getUsersArray(null, true);
$U[-1] = "Allgemein";
$T = new HTMLTable(6);
$T->addColStyle(2, "text-align:right;");
$T->addColStyle(3, "text-align:right;");
$T->addColStyle(4, "text-align:right;");
$T->addColStyle(5, "text-align:right;");
$T->addColStyle(6, "text-align:right;");
$T->addHeaderRow(array("Benutzer", "Gesamt", "Abgesch.", "Kalt", "Erst", "Folge"));
while ($A = $AC->n()) {
$T->addRow(array(isset($U[$A->A("TodoUserID")]) ? $U[$A->A("TodoUserID")] : "Benutzer ID " . $A->A("TodoUserID"), $A->A("gesamt"), $A->A("gesamtDM") . " (" . Util::CLNumberParserZ($A->A("gesamt") != 0 ? round($A->A("gesamtDM") / $A->A("gesamt") * 100, 2) : 0) . "%)", $A->A("gesamtKalt"), $A->A("gesamtErst"), $A->A("gesamtFolge")));
$T->addRowStyle("cursor:pointer;");
$T->addRowEvent("click", OnEvent::rme($this, "details", array($A->A("TodoUserID")), "function(t){ \$j('#contentScreenLeft').html(t.responseText); }"));
}
if ($AC->numLoaded() == 0) {
$T->addRow(array("Es liegen keine Daten vor"));
$T->addRowColspan(1, 4);
}
return "<p class=\"prettySubtitle\">Termine</p>" . $tab . $html . $T . OnEvent::script("\n\t\t\tvar plot = \$j.plot(\$j('#my_chartTodo'), " . $this->chart() . ", {\n\t\t\tseries: {\n\t\t\t\tpie: { show: true, innerRadius: 0.4 }\n\t\t\t}\n\t\t\t});" . OnEvent::rme($this, "getHeaderCenter", "", "function(transport){ \$j('#contentScreenCenterHeader').html(transport.responseText); }"));
}
示例2: calc
function calc($land, $kontonummer, $bankleitzahl, $ibanField, $bicField)
{
if ($kontonummer == "" or $bankleitzahl == "") {
Red::alertD("Bitte tragen Sie Bankleitzahl und Kontonummer ein");
}
$url = "http://www.iban.de/iban-berechnen.html";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array('User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0', 'Referer: http://www.iban.de/iban-berechnen.html', 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8', 'X-Requested-With: XMLHttpRequest'));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "ibanrechnerCountry={$land}&ibanrechnerBlz={$bankleitzahl}&ibanrechnerKonto={$kontonummer}&ibanToolkit=ibanrechner");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
$I = new IBAN(trim(str_replace("Die IBAN lautet: ", "", strip_tags($result))));
$iban = $I->MachineFormat();
$url = "https://www.s-bausparkasse.at/portal/if_ajax.asp";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "mode=calc.ibanbic.listofbic&cuid=&alt_iban=&iban={$iban}&rechnername=IBAN%2FBIC-Rechner¤tpageid=87&berechnungsdaten=&autocalc=&getresult=&country={$land}&bank={$bankleitzahl}&account=" . str_pad($kontonummer, 10, "0", STR_PAD_LEFT));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
$ex = explode("&&&", $result);
$ex[0] = str_replace("listofbic==", "", strip_tags(trim($ex[0])));
$ex[1] = str_replace("iban==", "", trim($ex[1]));
$T = new HTMLTable(3, "Gefundene Ergebnisse");
$T->weight("light");
$T->useForSelection(false);
$T->setColWidth(1, 20);
$T->addHeaderRow(array("", "BIC", "IBAN"));
foreach (explode("\n", $ex[0]) as $bic) {
$B = new Button("Diese Kombination verwenden", "arrow_right", "iconic");
$T->addRow(array($B, trim($bic), $ex[1]));
$T->addRowEvent("click", "\$j('[name={$ibanField}]').val('{$ex['1']}'); \$j('[name={$bicField}]').val('" . trim($bic) . "'); " . OnEvent::closePopup("IBANCalc"));
}
echo $T;
#echo "<pre>";
#echo htmlentities(print_r($ex, true));
#echo($result);
#echo "</pre>";
}
示例3: showOverview
function showOverview()
{
$html = "";
$T = new HTMLTable(4, "Events");
$T->setTableStyle("width:100%;");
$T->addHeaderRow(array("Event", "Anzahl", "Preis", "Gesamt"));
$gesamtpreis = 0;
$mwst = 0;
foreach ($_SESSION["ticketDataSelection"] as $SeminarID => $anzahl) {
if ($anzahl == 0) {
continue;
}
$S = new Seminar($SeminarID);
$T->addRow(array("" . $S->A("SeminarName") . ", " . $S->A("SeminarVon") . " ab " . Util::CLTimeParser($S->A("SeminarStart")) . " Uhr", $anzahl, $S->A("SeminarPreisErwachsene"), Util::formatCurrency("de_DE", $anzahl * $S->A("SeminarPreisErwachsene"), true)));
$T->addColStyle(1, "text-align:left;");
$T->addColStyle(2, "text-align:right;");
$T->addColStyle(3, "text-align:right;");
$T->addColStyle(4, "text-align:right;");
$gesamtpreis += $anzahl * $S->A("SeminarPreisErwachsene");
$mwst = $S->A("SeminarMwSt");
#$T->addCellID(4, "PreisGesamt".$S->getID());
}
$T->addRow(array("<label style=\"width:auto;\">Zu zahlender Betrag:</label>", "", "", "<b>" . Util::formatCurrency("de_DE", $gesamtpreis, true) . "</b>"));
$T->addRowColspan(1, 3);
$T->addRowStyle("border-top:1px solid black;");
$calcMwst = Util::kRound($gesamtpreis / (100 + $mwst) * $mwst);
$T->addRow(array("MwSt (" . Util::CLNumberParser($mwst) . "%):", "", "", Util::formatCurrency("de_DE", $calcMwst, true)));
$T->addRowColspan(1, 3);
$T->addCellStyle(1, "text-align:right;");
$T->addRow(array("Netto-Betrag:", "", "", Util::formatCurrency("de_DE", $gesamtpreis - $calcMwst, true)));
$T->addRowColspan(1, 3);
$T->addCellStyle(1, "text-align:right;");
$html .= $T;
$T = new HTMLTable(2, "Rechnungsdaten");
$T->setTableStyle("width:100%;");
$T->addLV("Name:", $_SESSION["ticketDataAddress"]["vorname"] . " " . $_SESSION["ticketDataAddress"]["nachname"]);
$T->addLV("Firma:", $_SESSION["ticketDataAddress"]["firma"]);
$T->addRow(array(" ", ""));
$T->addLV("E-Mail:", $_SESSION["ticketDataAddress"]["email"]);
$T->addLV("Telefon:", $_SESSION["ticketDataAddress"]["tel"]);
$T->addRow(array(" ", ""));
$T->addLV("Straße:", $_SESSION["ticketDataAddress"]["strasse"] . " " . $_SESSION["ticketDataAddress"]["nr"]);
$T->addLV("Ort:", $_SESSION["ticketDataAddress"]["plz"] . " " . $_SESSION["ticketDataAddress"]["ort"]);
$T->addLV("Land:", ISO3166::getCountryToCode($_SESSION["ticketDataAddress"]["land"]));
$html .= $T;
$this->paymentMethods["cash"] = "Bar";
$T = new HTMLTable(2, "Zahlung");
$T->addLV("Zahlungsart:", $this->paymentMethods[$_SESSION["ticketDataPayment"]["via"]]);
$T->setTableStyle("width:100%;");
if ($_SESSION["ticketDataPayment"]["via"] == "debit") {
$T->addRow(array(" ", ""));
$T->addLV("Inhaber:", $_SESSION["ticketDataPayment"]["debitInhaber"]);
$T->addLV("Kontonummer:", $_SESSION["ticketDataPayment"]["debitKontonummer"]);
$T->addLV("BLZ:", $_SESSION["ticketDataPayment"]["debitBlz"]);
#$T->addLV("Name der Bank:", $_SESSION["ticketDataPayment"]["debitBankName"]);
}
/*
$T->addRow(array(" ", ""));
$T->addLV("E-Mail:", $_SESSION["ticketDataAddress"]["email"]);
$T->addLV("Telefon:", $_SESSION["ticketDataAddress"]["tel"]);
$T->addRow(array(" ", ""));
$T->addLV("Straße:", $_SESSION["ticketDataAddress"]["strasse"]." ".$_SESSION["ticketDataAddress"]["nr"]);
$T->addLV("Ort:", $_SESSION["ticketDataAddress"]["plz"]." ".$_SESSION["ticketDataAddress"]["ort"]);
$T->addLV("Land:", ISO3166::getCountryToCode($_SESSION["ticketDataAddress"]["land"]));*/
$I = new Button("Tickets kaufen", "");
$I->onclick("CustomerPage.rme('handleOrder', [], function(){ document.location.reload(); })");
$I->className("submitFormButton");
$T->addRow($I);
$T->addRowColspan(1, 2);
$html .= $T;
return "<form>" . $html . "</form>";
}
示例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: leftFrame
public function leftFrame($R = null)
{
if ($R == null) {
$R = new GSRaumgruppe($_GET["RGID"]);
}
$GST = $this->getTaetigkeiten($R);
$Tab = new HTMLTable(3);
$Tab->setColWidth(1, 500);
$Tab->setColWidth(2, 120);
$Tab->setColWidth(3, 120);
$Tab->addColStyle(1, "text-align:left;font-size:11px;");
$Tab->addColStyle(2, "text-align:right;");
$Tab->addColStyle(3, "text-align:right;");
$Tab->addHeaderRow(array("", "wöchentlich", "jährlich"));
$i = 0;
while ($T = $GST->getNextEntry()) {
$IW = new HTMLInput("GSTaetigkeitTurnusWoechentlich", "select", $T->A("GSTaetigkeitTurnusWoechentlich"), mGSTaetigkeitGUI::$woechentlich);
$IW->style("text-align:right;width:50px;");
$IJ = new HTMLInput("GSTaetigkeitTurnusJaehrlich", "select", $T->A("GSTaetigkeitTurnusJaehrlich"), mGSTaetigkeitGUI::$jaehrlich);
$IJ->style("text-align:right;width:50px;");
$Tab->addRow(array($T->A("GSTaetigkeitName"), $IW, $IJ));
$i++;
}
return "<h4>Zugeordnete Tätigkeiten</h4>{$Tab}" . ($i == 0 ? "<p>Keine Tätigkeiten zugeordnet</p>" : "");
}