本文整理匯總了PHP中HTMLTable::addColStyle方法的典型用法代碼示例。如果您正苦於以下問題:PHP HTMLTable::addColStyle方法的具體用法?PHP HTMLTable::addColStyle怎麽用?PHP HTMLTable::addColStyle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HTMLTable
的用法示例。
在下文中一共展示了HTMLTable::addColStyle方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: details
public function details($UserID)
{
$p = mUserdata::getPluginSpecificData("mStatistik");
$ps = mUserdata::getPluginSpecificData("mAkquise");
if (!isset($p["pluginSpecificCanUseControlling"]) and $UserID != Session::currentUser()->getID() and !isset($ps["pluginSpecificCanSeeFrom{$UserID}"])) {
return "";
}
$U = Users::getUsersArray(null, true);
$AC = $this->data();
$AC->setOrderV3("anzahl", "DESC");
$AC->addJoinV3("Adresse", "TodoClassID", "=", "AdresseID");
$AC->setGroupV3("CONCAT(TodoClass, TodoClassID)");
$AC->addAssocV3("TodoUserID", "=", $UserID);
$AC->setFieldsV3(array("firma", "vorname", "nachname", "COUNT(*) AS anzahl", "AdresseID", "TodoClass"));
$T = new HTMLTable(2, "Termine " . $U[$UserID] . " vom {$this->startDatum} bis {$this->endDatum}");
$T->setColWidth(1, 30);
#$T->setColWidth(3, 20);
$T->addColStyle(1, "text-align:right;");
#$T->setTableID("termineTable");
while ($A = $AC->n()) {
#$B = new Button("Akquise anzeigen", "./images/i2/telephone.png", "icon");
#$B->onclick("\$j('#termineTable .lastSelected').removeClass('lastSelected'); \$j(this).parent().parent().addClass('lastSelected'); ".Akquise::getWindowAction($A->A("AdresseID"), 0));
#onclick="Popup.load('Akquise', 'mAkquise', '-1', 'showMinTelPopup', Array('65143','0'), '', 'edit', '{width: 730, top:$j(\'#navTabsWrapper\').outerHeight() + 20, left: contentManager.maxWidth() < 800 + 730 ? contentManager.maxWidth() - 740 : 800}');"
if ($A->A("TodoClass") != "WAdresse") {
$T->addRow(array($A->A("anzahl") . "x", "Ohne Adresse"));
continue;
}
if ($A->A("TodoClass") == "WAdresse" and !$A->A("AdresseID")) {
$T->addRow(array($A->A("anzahl") . "x", "Adresse gelöscht"));
continue;
}
$T->addRow(array($A->A("anzahl") . "x", $A->A("firma") != "" ? $A->A("firma") : $A->A("vorname") . " " . $A->A("nachname")));
}
echo $T;
}
示例2: getHTML
public function getHTML($id)
{
// <editor-fold defaultstate="collapsed" desc="Aspect:jP">
try {
$MArgs = func_get_args();
return Aspect::joinPoint("around", $this, __METHOD__, $MArgs);
} catch (AOPNoAdviceException $e) {
}
Aspect::joinPoint("before", $this, __METHOD__, $MArgs);
// </editor-fold>
if ($_SESSION["S"]->isUserAdmin()) {
return parent::getHTML($id);
}
switch ($id) {
case "1":
$AC = anyC::get("JDownload");
$AC->addOrderV3("JDownloadDate", "DESC");
$AC->setLimitV3(19);
$T = new HTMLTable(2);
$T->weight("light");
$T->addColStyle(1, "padding:5px;padding-left:10px;");
$T->addColStyle(2, "color:grey;text-align:right;padding:5px;");
while ($D = $AC->getNextEntry()) {
$T->addRow(array($D->A("JDownloadRenameto"), Util::formatByte($D->A("JDownloadFilesize"), 2)));
if ($D->A("JDownloadRenamed") == 0) {
$T->addRowClass("error");
}
#$r .= OnEvent::script ("\$j('#BrowsermJDownload".$E->getID()."').css('background-color', '');");
$T->addRowStyle("cursor:pointer;");
$T->addRowEvent("click", "contentManager.loadPlugin('contentRight', 'mJDownload', '', " . $D->getID() . ");");
}
return "<p class=\"prettyTitle\">Downloads</p>" . $T;
break;
case "2":
break;
case "3":
return "";
break;
}
}
示例3: 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();
}
示例4: getWindowHTML
public function getWindowHTML()
{
$bps = $this->getMyBPSData();
#print_r($bps);
$v = false;
$b = false;
$von = "Bitte ziehen Sie ein <img src=\"./images/i2/add.png\" style=\"margin-bottom:-5px;\" />-Symbol auf dieses Feld.";
$bis = "Bitte ziehen Sie ein <img src=\"./images/i2/add.png\" style=\"margin-bottom:-5px;\" />-Symbol auf dieses Feld.";
if ($bps != -1 and isset($bps["VonClass"])) {
$VonClass = $bps["VonClass"];
$VonClass = new $VonClass($bps["VonID"]);
$von = $VonClass->getCategorizerLabel();
$v = true;
}
if ($bps != -1 and isset($bps["BisClass"])) {
$BisClass = $bps["BisClass"];
$BisClass = new $BisClass($bps["BisID"]);
$bis = $BisClass->getCategorizerLabel();
$b = true;
}
$t = new HTMLTable(2);
$t->addColStyle(1, "width:120px;");
$t->addRow(array("<label>Von:</label>", $von));
$t->addCellID(2, "droppableVon");
$t->addCellStyle(2, "height:30px;");
$t->addRow(array("<label>Bis:</label>", $bis));
$t->addCellID(2, "droppableBis");
$t->addCellStyle(2, "height:30px;");
if ($v and $b) {
$K = $BisClass->getCategorizerOptions();
$o = HTMLGUI::getOptions(array_keys($K), array_values($K));
$t->addRow(array("<label>Kategorie:</label>", "<select id=\"categorizeWithCategory\">{$o}</select>"));
$t->addRow(array("<input\n\t\t\ttype=\"button\"\n\t\t\tclass=\"bigButton backgroundColor3\"\n\t\t\tvalue=\"Kategorisieren\"\n\t\t\tstyle=\"background-image:url(./images/navi/okCatch.png);float:right;\"\n\t\t\tonclick=\"rme('Categorizer','','categorize',Array(\$('categorizeWithCategory').value),'if(checkResponse(transport)) { Popup.close(\\'Categorizer\\', 0); contentManager.reloadFrameRight(); }');\" />"));
$t->addRowColspan(1, 2);
}
$html = "\n\t\t<script type=\"text/javascript\">\n\t\t\tDroppables.add('droppableVon', {hoverclass: 'backgroundColor1', accept: 'draggable', onDrop: function(element){ rme('Categorizer','','saveVon',Array(element.id),'Popup.update(transport, \\'Categorizer\\', 0);'); }});\n\t\t\tDroppables.add('droppableBis', {hoverclass: 'backgroundColor1', accept: 'draggable', onDrop: function(element){ rme('Categorizer','','saveBis',Array(element.id),'Popup.update(transport, \\'Categorizer\\', 0);'); }});\n\t\t</script>";
echo $t->getHTML() . $html;
}
示例5: 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>";
}
示例6: rolesPopup
public function rolesPopup($UserID)
{
echo "<p class=\"highlight\">Die Rollen fassen mehrere Berechtigungen aus unterschiedlichen Plugins zusammen.</p><div style=\"max-height:400px;overflow:auto;\">";
$ps = $_SESSION["CurrentAppPlugins"]->getAllPlugins();
foreach ($this->roles() as $R => $O) {
$T = new HTMLTable(3, $R);
$T->weight("light");
$T->setColWidth(1, 70);
$T->setColWidth(3, 30);
$i = 0;
foreach ($O as $c => $s) {
if ($c == "cantEdit" or $c == "cantDelete" or $c == "cantCreate") {
foreach ($s as $p) {
if ($p == "WAdresse") {
continue;
}
if ($c == "cantEdit") {
$T->addRow(array($p, "Kann nicht bearbeiten"));
}
if ($c == "cantDelete") {
$T->addRow(array($p, "Kann nicht löschen"));
}
if ($c == "cantCreate") {
$T->addRow(array($p, "Kann nicht erstellen"));
}
}
continue;
}
if ($c == "hidePlugin") {
foreach ($s as $p) {
$T->addRow(array(array_search($p, $ps), "Plugin ausblenden"));
}
continue;
}
$B = new Button("Rolle aktivieren", "./plugins/Userdata/role.png", "icon");
$B->rmePCR("mUserdata", "-1", "rolesActivate", array($UserID, "'{$R}'"), OnEvent::reload("Left"));
$class = new $c();
$pSs = $class->getPluginSpecificRestrictions();
$l = "";
foreach ($s as $k => $p) {
$l .= ($k > 0 ? "<br>" : "") . $pSs[$p];
}
$T->addRow(array(array_search($c, $ps) . ":", $l, $i == 0 ? $B : ""));
if ($i == 0) {
$T->addColStyle(3, "vertical-align:top;");
$T->addColRowspan(3, 3);
}
$i++;
}
#$T->addRow(array($l, $B));
#$T->addColStyle(2, "vertical-align:top;");
echo $T;
}
echo "</div>";
}
示例7: realpath
if (isset($argv[2])) {
$_SERVER["HTTP_HOST"] = $argv[2];
}
session_name("ExtConnInstallation");
require_once realpath(dirname(__FILE__) . "/../../system/connect.php");
$absolutePathToPhynx = realpath(dirname(__FILE__) . "/../../") . "/";
$e = new ExtConn($absolutePathToPhynx);
$e->addClassPath($absolutePathToPhynx . "/plugins/Installation");
$e->useDefaultMySQLData();
$e->useAdminUser();
$CH = Util::getCloudHost();
$I = new mInstallation();
$data = $I->updateAllTables();
$T = new HTMLTable(2);
$T->setTableStyle("font-size:10px;font-family:sans-serif;");
$T->addColStyle(1, "vertical-align:top;");
foreach ($data as $k => $v) {
$T->addRow(array($k, "<pre>" . trim($v) . "</pre>"));
}
$mimeMail2 = new PHPMailer(true, "", true);
$mimeMail2->CharSet = "UTF-8";
$mimeMail2->Subject = "Installation Plugin";
$mimeMail2->From = $CH->emailAdmin;
$mimeMail2->Sender = $CH->emailAdmin;
$mimeMail2->FromName = "Cloud Server Cronjob";
$mimeMail2->Body = "<html><body>" . $T . "</body></html>";
$mimeMail2->IsHTML();
$mimeMail2->AltBody = "Diese Nachricht wird nur als HTML übertragen";
$mimeMail2->AddAddress($CH->emailAdmin);
if (!$mimeMail2->Send()) {
throw new Exception("E-Mail could not be sent!");
示例8: getInfo
function getInfo($time)
{
$BE = "";
$BD = "";
$BDS = "";
if ($this->editable != null) {
if ($this->editable[0] != null) {
$BE = new Button("Bearbeiten", "edit", "icon");
$BE->style("margin:10px;float:right;");
$BE->popup("", "Kalendereintrag bearbeiten", "mKalender", $this->classID, "editInPopup", array("'" . $this->className . "'", $this->classID, "'{$this->editable[0]}'"));
}
$BD = new Button("Dieses Event löschen", "trash", "icon");
$BD->style("float:right;margin:10px;");
$BD->doBefore("if(confirm('Löschen?')) %AFTER");
$BD->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], $this->classID, "contentManager.reloadFrame('contentScreen'); Popup.close('mKalender', 'edit');");
if ($this->repeat() !== false) {
$BD->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], array($this->classID, $time + Kalender::parseTime($this->time) - 60), "contentManager.reloadFrame('contentLeft'); Popup.close('mKalender', 'edit');");
$BDS = new Button("Alle Events Löschen", "./ubiquitous/Kalender/deleteSeries.png", "icon");
$BDS->style("float:right;margin:10px;");
$BDS->doBefore("if(confirm('Löschen?')) %AFTER");
$BDS->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], $this->classID, "contentManager.reloadFrame('contentLeft'); Popup.close('mKalender', 'edit');");
}
}
$T = new HTMLTable(2, "Eventdetails");
$T->setColWidth(1, 120);
$T->addColStyle(1, "vertical-align:top;");
$T->addLV("Betreff", $this->title);
$T->addLV("Tag", Util::CLDateParser($time));
if (!$this->allDay) {
$T->addLV("Uhrzeit", $this->formatTime($this->time));
} else {
$T->addLV("Uhrzeit", "Ganzer Tag");
}
$T->addLV("Details", "<div style=\"max-height:300px;overflow:auto;\">" . $this->summary . "</div>");
if ($this->organizer) {
$T->addLV("Organisator", $this->organizer);
}
if (count($this->values) > 0) {
$T->insertSpaceAbove();
}
foreach ($this->values as $label => $value) {
$T->addLV($label, $value);
}
$BN = "";
if ($this->canNotify) {
// TODO: Entfernen sobald Einladungen funktionieren
$BN = new Button("Terminbestätigung", "mail" . ($this->notified ? "ed" : ""), "icon");
$BN->style("margin-top:10px;margin-left:10px;");
$BN->popup("", "Terminbestätigung", "Util", "-1", "EMailPopup", array("'mKalender'", "-1", "'notification::{$this->className}::{$this->classID}::{$time}'", "'function(){ Kalender.refreshInfoPopup(); }'"));
}
$BR = "";
if ($this->isRepeatable and $this->getException() === false) {
$BR = new Button("Wiederholungen", "refresh", "icon");
$BR->style("margin:10px;float:right;");
$BR->rmePCR("mKalender", "-1", "getRepeatable", array("'{$this->className}'", "'{$this->classID}'", "'{$this->isRepeatable}'"), "function(transport){ \$j('#eventSideContent').html(''); \$j('#editDetailsmKalender').animate({'width':'400px'}, 200, 'swing'); \$j('#eventAdditionalContent').html(transport.responseText).slideDown(); }");
}
$BI = new Button("Teilnehmer", "./ubiquitous/Kalender/einladungen.png", "icon");
$BI->style("margin: 10px; float: right;");
$BI->rmePCR("mKalender", "-1", "getInvitees", array("'{$this->className}'", "'{$this->classID}'"), "function(t){ \$j('#eventAdditionalContent').html(''); \$j('#editDetailsmKalender').animate({'width':'800px'}, 200, 'swing', function(){ \$j('#eventSideContent').html(t.responseText).fadeIn(); }); }");
if (!$this->canInvite) {
$BI = "";
}
$closed = "";
if ($this->closeable) {
$BC = new Button("Termin abschließen", "bestaetigung", "icon");
$BC->style("margin: 10px; float: right;");
$BC->rmePCR("mKalender", "-1", "getClose", array("'{$this->className}'", "'{$this->classID}'"), "function(t){ \$j('#editDetailsContentmKalender').html(t.responseText); }");
if ($this->closed[0]) {
$BC = "";
$closed = "<p>Termin abgeschlossen am " . Util::CLDateParser($this->closed[0]) . ($this->closed[1] != "" ? ":<br>" . nl2br($this->closed[1]) : "") . "</p>";
}
}
$topButtons = "";
foreach ($this->topButtons as $B) {
$B->type("icon");
$B->style("margin-top:10px;margin-left:10px;");
$topButtons .= $B;
}
return "<div style=\"width:400px;\">" . $BDS . $BD . $BE . $BN . $topButtons . $BR . $BI . $BC . $closed . "</div><div style=\"clear:both;\"></div><div style=\"display:none;\" id=\"eventAdditionalContent\"></div><div style=\"display:none;width:400px;float:right;\" id=\"eventSideContent\"></div><div style=\"width:400px;float:left;\" id=\"eventDefaultContent\"{$T}</div>";
}
示例9: getPosten
public function getPosten(GRLBM $Beleg)
{
$TPosten = new HTMLTable(8, "Auftragspositionen");
$TPosten->setTableStyle("width:100%;");
#$TPosten->addColStyle(3, "text-align:right;");
$TPosten->addColStyle(5, "text-align:right;");
$TPosten->addColStyle(6, "text-align:right;");
$TPosten->addColStyle(7, "text-align:right;color:grey;");
$TPosten->addColStyle(8, "text-align:right;");
$TPosten->setColWidth(1, 26);
$TPosten->setColWidth(2, 80);
$TPosten->setColWidth(5, 80);
$TPosten->setColWidth(6, 80);
$TPosten->setColWidth(7, 80);
$TPosten->setColWidth(8, 20);
Aspect::joinPoint("alterTable", $this, __METHOD__, array($TPosten));
$AC = anyC::get("Posten", "GRLBMID", $Beleg->getID());
$AC->addOrderV3("PostenID");
$i = 0;
$O = new Button("Positionen", "list", "iconic");
while ($P = $AC->getNextEntry()) {
$B = new Button("Position löschen", "trash_stroke", "iconic");
$B->onclick("CustomerPage.rme('delPosten', {PostenID: '" . $P->getID() . "'}, function(){ CustomerPage.rme('getAuftrag', {GRLBMID: " . $Beleg->getID() . "}, function(transport){ \$('#contentLeft').html(transport); }); });");
$I = new HTMLInput("mwst", "text", Util::CLNumberParserZ($P->A("menge")));
$I->style("text-align:right;width:80px;");
$I->onEnter("\$j(this).trigger('blur');");
$I->onfocus("CCAuftrag.lastValue = this.value; CCAuftrag.allowSave = true;");
$I->onblur("if(CCAuftrag.lastValue != this.value && CCAuftrag.allowSave) CustomerPage.rme('setMenge', {PostenID: '" . $P->getID() . "', menge: this.value}, function(){ CustomerPage.rme('getAuftrag', {GRLBMID: " . $Beleg->getID() . "}, function(transport){ \$('#contentLeft').html(transport); }); }); CCAuftrag.allowSave = false;");
$name = Aspect::joinPoint("alterName", $this, __METHOD__, array($P, $P->A("name")), $P->A("name"));
$buttons = Aspect::joinPoint("alterButtons", $this, __METHOD__, array($P, $B), $B);
$TPosten->addRow(array($i == 0 ? $O : "", $I, $P->A("gebinde"), $name, $this->showPrices ? Util::CLNumberParserZ($P->A("preis")) : "", $this->showPrices ? Util::CLNumberParserZ($P->A("menge") * $P->A("preis")) : "", $this->showPrices ? Util::CLNumberParserZ($P->A("mwst")) . "%" : "", $buttons));
$i++;
}
if ($AC->numLoaded() == 0) {
$TPosten->addRow(array($O, "Bitte fügen Sie einen Artikel hinzu."));
$TPosten->addRowColspan(2, 6);
$TPosten->setColWidth(2, "100%");
$TPosten->setColStyle(2, "text-align:left;");
}
return $TPosten;
}
示例10: getInfo
function getInfo($time)
{
$BE = "";
$BD = "";
$BDS = "";
if ($this->editable != null) {
if ($this->editable[0] != null) {
$BE = new Button("Bearbeiten", "edit", "icon");
$BE->style("margin:10px;float:right;");
$BE->popup("", "Kalendereintrag bearbeiten", "mKalender", $this->classID, "editInPopup", array("'" . $this->className . "'", $this->classID, "'{$this->editable[0]}'"));
}
$BD = new Button("Dieses Event Löschen", "trash", "icon");
$BD->style("float:right;margin:10px;");
$BD->onclick("if(confirm('Löschen?')) ");
$BD->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], $this->classID, "contentManager.reloadFrame('contentLeft'); Popup.close('mKalender', 'edit');");
if ($this->repeat() !== false) {
$BD->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], array($this->classID, $time + Kalender::parseTime($this->time) - 60), "contentManager.reloadFrame('contentLeft'); Popup.close('mKalender', 'edit');");
$BDS = new Button("Alle Events Löschen", "./ubiquitous/Kalender/deleteSeries.png", "icon");
$BDS->style("float:right;margin:10px;");
$BDS->onclick("if(confirm('Löschen?')) ");
$BDS->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], $this->classID, "contentManager.reloadFrame('contentLeft'); Popup.close('mKalender', 'edit');");
}
}
$T = new HTMLTable(2, "Eventdetails");
$T->setColWidth(1, 120);
$T->addColStyle(1, "vertical-align:top;");
$T->addLV("Betreff", $this->title);
$T->addLV("Tag", Util::CLDateParser($time));
if (!$this->allDay) {
$T->addLV("Uhrzeit", $this->formatTime($this->time));
} else {
$T->addLV("Uhrzeit", "Ganzer Tag");
}
$T->addLV("Details", "<div style=\"max-height:300px;overflow:auto;\">" . $this->summary . "</div>");
if ($this->organizer) {
$T->addLV("Organisator", $this->organizer);
}
if (count($this->values) > 0) {
$T->insertSpaceAbove();
}
foreach ($this->values as $label => $value) {
$T->addLV($label, $value);
}
$BN = "";
if ($this->canNotify) {
// TODO: Entfernen sobald Einladungen funktionieren
$BN = new Button("Termin-\nbestätigung", "mail" . ($this->notified ? "ed" : ""), "icon");
$BN->style("margin-top:10px;margin-left:10px;");
$BN->popup("", "Terminbestätigung", "Util", "-1", "EMailPopup", array("'mKalender'", "-1", "'notification::{$this->className}::{$this->classID}::{$time}'", "'function(){ Kalender.refreshInfoPopup(); }'"));
}
$BR = "";
if ($this->isRepeatable and $this->getException() === false) {
$BR = new Button("Wiederholungen", "refresh", "icon");
$BR->style("margin:10px;float:right;");
$BR->rmePCR("mKalender", "-1", "getRepeatable", array("'{$this->className}'", "'{$this->classID}'", "'{$this->isRepeatable}'"), "function(transport){ \$j('#eventAdditionalContent').html(transport.responseText).slideDown(); }");
}
// TODO: Flag für Teilnehmer erstellen
// nur anzeigen, wenn es sich um eine ToDo handelt
// $buttonInvite = new Button("Teilnehmer einladen", "refresh", "icon");
// $buttonInvite->style("margin: 10px; float: right;");
// $buttonInvite->rmePCR("mKalender", "-1", "getInviteForm", array("'$this->className'", "'$this->classID'", "'getInviteForm'"), "function(transport){ \$j('#eventAdditionalContent').html(transport.responseText).slideDown(); }");
$topButtons = "";
foreach ($this->topButtons as $B) {
$B->type("icon");
$B->style("margin-top:10px;margin-left:10px;");
$topButtons .= $B;
}
return $BDS . $BD . $BE . $BN . $topButtons . $BR . $buttonInvite . "<div style=\"clear:both;\"></div><div style=\"display:none;\" id=\"eventAdditionalContent\"></div>" . $T;
}
示例11: getBrowserHTML
//.........這裏部分代碼省略.........
$row = array();
$styles = array();
if ($this->displaySide == "left") {
$colsLeft = $this->newColsRight;
$colsRight = $this->newColsLeft;
} else {
$colsLeft = $this->newColsLeft;
$colsRight = $this->newColsRight;
}
if (count($colsLeft) > 0) {
foreach ($colsLeft as $key => $value) {
$row[] = str_replace("%%VALUE%%", $aid, $value);
$valuesTab->setColWidth(count($row), "20px");
}
}
foreach ($this->showAttributes as $key => $value) {
if (isset($userHiddenFields[$value])) {
continue;
}
if (isset($this->parsers[$value])) {
$t = $this->invokeParser($this->parsers[$value], $sc->{$value}, $this->makeParameterStringFromArray($this->parserParameters[$value], $sc, $aid));
} else {
$t = htmlspecialchars($sc->{$value});
}
if ($this->multiEditMode != null and in_array($value, $this->multiEditMode)) {
$posInArray = array_search($value, $this->multiEditMode);
if ($this->multiEditModeInputs[$posInArray] == null) {
$MI = new HTMLInput($value . "ID{$aid}", "multiInput", $sc->{$value}, array($this->singularClass, $aid, $value));
if ($this->multiEditModeStyle != null) {
$MI->style($this->multiEditModeStyle[$posInArray]);
}
} else {
$MI = clone $this->multiEditModeInputs[$posInArray];
$MI->setValue($sc->{$value});
$MI->activateMultiEdit($this->singularClass, $aid);
}
$t = $MI;
}
#<td id=\"Browser".$value."$aid\" ".(isset($this->colStyles[$value]) ? "style=\"".$this->colStyles[$value]."\"" : "").">".$t."</td>";
$row[] = $t;
if (isset($this->colStyles[$value])) {
$styles[count($row)] = $this->colStyles[$value];
}
}
if (count($colsRight) > 0) {
foreach ($colsRight as $key => $value) {
$row[] = str_replace("%%VALUE%%", $aid, $value);
$valuesTab->setColWidth(count($row), "20px");
}
}
$valuesTab->addRow($row);
if (count($styles) > 0) {
foreach ($styles as $col => $s) {
$valuesTab->addColStyle($col, $s);
}
}
$valuesTab->setRowID("BrowserMain{$aid}");
#foreach($this->showAttributes as $key => $value) {
# $valuesTab->addCellID($cellNo, "Browser".$value."$aid");
#}
if ($this->displayGroupBy != null) {
$displayGroup = $sc->{$displayGroupField};
}
}
if ($filteredCol !== null) {
$valuesTab->addRow($filteredCol);
$valuesTab->addRowColspan(2, $cols - 1);
$valuesTab->addRowClass("backgroundColor0");
$valuesTab->addRowStyle("color:grey;");
}
if ($lineWithId == -1 and $isMultiPageMode) {
$valuesTab->addRow("");
$valuesTab->addRowColspan(1, $cols);
$valuesTab->addRowClass("backgroundColor0 browserSeparatorBottom");
if (!$userDefinedEntriesPerPage) {
$valuesTab->addRow(array($pageOptions));
$valuesTab->addRowColspan(1, $cols);
} else {
if ($this->displaySide == "left") {
$valuesTab->addRow(array($pageOptions, $BSettings));
$valuesTab->addRowColspan(1, $cols - 1);
} else {
$valuesTab->addRow(array($BSettings, $pageOptions));
$valuesTab->addRowColspan(2, $cols - 1);
}
}
$valuesTab->addRowClass("backgroundColorHeader");
#$valuesTab->addRow(array($pageLinks));
#$valuesTab->addRowColspan(1, $cols);
#$valuesTab->addRowClass("backgroundColorHeader");
}
if (count($this->attributes) == 0) {
$valuesTab->addRow(array("keine Einträge"));
$valuesTab->addRowColspan(1, $cols);
}
if ($lineWithId != -1) {
$valuesTab = $valuesTab->getHTMLForUpdate();
}
return $errorTab . $returnTab . $valuesTab . ($lineWithId == -1 ? $this->tip : "");
}
示例12: 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>" : "");
}
示例13: getAuftrag
public function getAuftrag($data)
{
$Beleg = new GRLBM($data["GRLBMID"]);
#$this->createAuftrag(new Adresse(1), "W");
$Auftrag = new Auftrag($Beleg->A("AuftragID"));
$Adresse = new Adresse($Auftrag->A("AdresseID"));
$BCheckK = "";
if (Session::isPluginLoaded("mklickTel")) {
$BCheckK = new Button("Adresse mit klickTel prüfen", "compass", "iconic");
$BCheckK->style("float:right;font-size:30px;margin-right:15px;");
$BCheckK->onclick("CustomerPage.popup('Adressprüfung', 'checkAddressKlickTel', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckK->id("BCheckKT");
Aspect::joinPoint("modButtonKlickTel", $this, __METHOD__, array($BCheckK, $Auftrag));
}
$BUpdate = new Button("Adresse ändern", "pen_alt2", "iconic");
$BUpdate->style("float:right;font-size:30px;margin-right:15px;");
$BUpdate->onclick("CustomerPage.popup('Adresse ändern', 'alterAddress', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckG = new Button("Adresse mit Google prüfen", "compass", "iconic");
$BCheckG->style("float:right;font-size:30px;");
$BCheckG->onclick("CustomerPage.popup('Adressprüfung', 'checkAddressGoogle', {AdresseID: {$Adresse->getID()}, GRLBMID: {$data['GRLBMID']}}, {modal: true, width: 500, resizable: false, position: ['center', 40]});");
$BCheckG->id("BCheckG");
Aspect::joinPoint("modButtonGoogle", $this, __METHOD__, array($BCheckG, $Auftrag));
$TAdresse = new HTMLTable(2, "Kundenadresse");
$TAdresse->setColWidth(1, 26);
$TAdresse->setTableStyle("width:100%;");
$TAdresse->addRow(array(new Button("Adresse", "home", "iconic"), $BCheckG . $BCheckK . $BUpdate . $Adresse->getHTMLFormattedAddress()));
$TAdresse->setColStyle(1, "vertical-align:top;");
$TPosten = new HTMLTable(7, "Auftragspositionen");
$TPosten->setTableStyle("width:100%;");
#$TPosten->addColStyle(3, "text-align:right;");
$TPosten->addColStyle(4, "text-align:right;");
$TPosten->addColStyle(5, "text-align:right;");
$TPosten->addColStyle(6, "text-align:right;color:grey;");
$TPosten->setColWidth(1, 26);
$TPosten->setColWidth(2, 80);
$TPosten->setColWidth(4, 80);
$TPosten->setColWidth(5, 80);
$TPosten->setColWidth(6, 80);
$TPosten->setColWidth(7, 20);
$AC = anyC::get("Posten", "GRLBMID", $Beleg->getID());
$AC->addOrderV3("PostenID");
$i = 0;
$O = new Button("Positionen", "list", "iconic");
while ($P = $AC->getNextEntry()) {
$B = new Button("Position löschen", "trash_stroke", "iconic");
$B->onclick("CustomerPage.rme('delPosten', {PostenID: '" . $P->getID() . "'}, function(){ CustomerPage.rme('getAuftrag', {GRLBMID: {$data['GRLBMID']}}, function(transport){ \$('#contentLeft').html(transport); }); });");
$I = new HTMLInput("mwst", "text", Util::CLNumberParserZ($P->A("menge")));
$I->style("text-align:right;width:80px;");
$I->onEnter("\$j(this).trigger('blur');");
$I->onblur("CustomerPage.rme('setMenge', {PostenID: '" . $P->getID() . "', menge: this.value}, function(){ CustomerPage.rme('getAuftrag', {GRLBMID: {$data['GRLBMID']}}, function(transport){ \$('#contentLeft').html(transport); }); });");
$TPosten->addRow(array($i == 0 ? $O : "", $I, $P->A("name"), Util::CLNumberParserZ($P->A("preis")), Util::CLNumberParserZ($P->A("menge") * $P->A("preis")), Util::CLNumberParserZ($P->A("mwst")) . "%", $B));
$i++;
}
if ($AC->numLoaded() == 0) {
$TPosten->addRow(array($O, "Bitte fügen Sie einen Artikel hinzu."));
$TPosten->addRowColspan(2, 6);
$TPosten->setColWidth(2, "100%");
$TPosten->setColStyle(2, "text-align:left;");
}
$TSumme = new HTMLTable(3);
$TSumme->setTableStyle("width:100%;border-top:1px solid #AAA;margin-top:30px;");
$TSumme->setColWidth(1, 26);
$TSumme->addColStyle(3, "text-align:right;");
$TSumme->addRow(array("", "Netto: <b>" . Util::CLFormatCurrency($Beleg->A("nettobetrag") * 1, true) . "</b>", "Brutto: <b>" . Util::CLFormatCurrency($Beleg->A("bruttobetrag") * 1, true) . "</b>"));
$IZahlungsart = new HTMLInput("zahlungsart", "select", $Beleg->A("GRLBMpayedVia"), GRLBM::getPaymentVia(null, array("transfer", "debit")));
$IZahlungsart->onchange("if(this.value == 'debit') \$('#rowZahlungsart').show(); else \$('#rowZahlungsart').hide(); CustomerPage.timeout = window.setTimeout(CustomerPage.saveKontodaten, 300);");
$IBankleitzahl = new HTMLInput("bankleitzahl", "text", $Beleg->A("GRLBMBankleitzahl"));
$IBankleitzahl->placeholder("Bankleitzahl");
$IBankleitzahl->style("margin-top:10px;text-align:right;width:130px;");
$IBankleitzahl->onkeyup("if(CustomerPage.timeout != null) window.clearTimeout(CustomerPage.timeout); CustomerPage.timeout = window.setTimeout(CustomerPage.saveKontodaten, 300);");
$IKontonummer = new HTMLInput("kontonummer", "text", $Beleg->A("GRLBMKontonummer"));
$IKontonummer->placeholder("Kontonummer");
$IKontonummer->style("margin-top:10px;text-align:right;margin-left:10px;width:130px;");
$IKontonummer->onkeyup("if(CustomerPage.timeout != null) window.clearTimeout(CustomerPage.timeout); CustomerPage.timeout = window.setTimeout(CustomerPage.saveKontodaten, 300);");
#$IBIC = new HTMLInput("bic");
#$IIBAN = new HTMLInput("iban");
$BCheck = new Button("Prüfung", "question_mark", "iconic");
$BCheck->id("ktoCheck");
$BCheck->style("margin-left:8px;");
$TZahlungsart = new HTMLTable(2, "Zahlungsart");
$TZahlungsart->setTableStyle("width:100%;");
$TZahlungsart->setColWidth(1, 26);
$TZahlungsart->addRow(array(new Button("Zahlungsart", "pin", "iconic"), $IZahlungsart));
$TZahlungsart->addRowColspan(2, 2);
$TZahlungsart->addCellStyle(1, "vertical-align:top;");
$TZahlungsart->addRow(array("", $IBankleitzahl . " " . $IKontonummer . "{$BCheck} <div id=\"bankMessage\" style=\"margin-top:6px;\"> </div>"));
$TZahlungsart->setRowID("rowZahlungsart");
if ($Beleg->A("GRLBMpayedVia") != "debit") {
$TZahlungsart->addRowStyle("display:none;");
} else {
echo OnEvent::script("CustomerPage.saveKontodaten();");
}
$IBemerkung = new HTMLInput("bemerkung", "textarea", $Beleg->A("textbausteinUnten"));
$IBemerkung->style("width:100%;height:100px;margin-top:40px;");
$IBemerkung->placeholder("Bemerkungen");
#$IBemerkung->onblur("");
$IBemerkung->onkeyup("if(CustomerPage.timeout != null) window.clearTimeout(CustomerPage.timeout); CustomerPage.timeout = window.setTimeout(CustomerPage.saveBemerkung, 300);");
$TZahlungsart->addRow(array(new Button("Bemerkung", "document_alt_stroke", "iconic"), $IBemerkung));
#$TSumme->addRowColspan(2, 2);
$TZahlungsart->addCellStyle(1, "vertical-align:top;padding-top:40px;");
//.........這裏部分代碼省略.........
示例14: getWindow
public function getWindow()
{
$F = new File(Util::getRootPath() . "system/Backup");
if (!$F->A("FileIsWritable")) {
$B = new Button("Achtung", "restrictions");
$B->type("icon");
$B->style("float:left;margin-right:10px;");
$T = new HTMLTable(1);
$T->addRow($B . "Es können keine Backups von Ihrer Datenbank angelegt werden, da das Verzeichnis /system/Backup nicht durch den Webserver beschreibbar ist.");
$T->addRow("Machen Sie das Verzeichnis mit einem FTP-Programm beschreibbar. Klicken Sie dazu mit der rechten Maustaste auf das Verzeichnis auf dem Server, wählen Sie \"Eigenschaften\", und geben Sie den Modus 777 an, damit es durch den Besitzer, die Gruppe und alle Anderen les- und schreibbar ist.");
$BRefresh = new Button("Aktualisieren", "refresh");
$BRefresh->rmePCR("BackupManager", "", "getWindow", "", "Popup.displayNamed('BackupManagerGUI','Backup-Manager',transport);");
$BRefresh->style("float:right;");
$T->addRow($BRefresh);
$T->addRow("");
$T->addRowClass("backgroundColor0");
$T->addRow($this->noBackupButton());
die($T);
}
$html = "";
if (!BackupManagerGUI::checkForTodaysBackup()) {
$T = new HTMLTable(1);
$BOK = $this->makeBackupOfToday();
$F = new File(BackupManagerGUI::getNewBackupName());
$F->loadMe();
if ($BOK === basename(BackupManagerGUI::getNewBackupName()) and $F->A("FileSize") > 100) {
$B = new Button("Backup abgeschlossen", "okCatch");
$B->type("icon");
$B->style("float:left;margin-right:10px;");
$T->addRow($B . "Das Backup wurde erfolgreich abgeschlossen!<br />Die Größe des Backups beträgt " . Util::formatByte($F->A("FileSize"), 2));
try {
$ftpUpload = $this->FTPUpload(Util::getRootPath() . "system/Backup/{$BOK}");
if ($ftpUpload === true) {
$B = new Button("FTP-Upload erfolgreich", "okCatch");
$B->type("icon");
$B->style("float:left;margin-right:10px;");
$T->addRow(array($B . "Das Backup wurde erfolgreich auf den FTP-Server hochgeladen"));
}
} catch (Exception $e) {
$T->addRow(array($B . $e->getMessage()));
}
$html .= $T;
} else {
$B = new Button("Es ist ein Fehler aufgetreten", "stop");
$B->type("icon");
$B->style("float:left;margin-right:10px;");
$T->addRow($B . "Beim Erstellen des Backups ist ein Fehler aufgetreten: {$BOK}");
$html .= $T;
}
$html .= "<script type=\"text/javascript\">contentManager.reloadFrame('contentLeft');</script>";
}
$gesamt = 0;
$data = $this->getBackupsList();
$i = 0;
$maxD = 5;
if (count($data) < $maxD) {
$maxD = count($data);
}
$TF = new HTMLTable(2, "Backups ({$maxD}/" . count($data) . ")");
$TF->addColStyle(2, "text-align:right;");
$TF->setColWidth(2, "80px");
foreach ($data as $name => $size) {
if ($i < 5) {
if ($name == basename(BackupManagerGUI::getNewBackupName())) {
$name = "<span style=\"color:green;\">{$name}</span>";
}
$TF->addRow(array($name, Util::formatByte($size, 2)));
}
$i++;
$gesamt += $size;
}
$TF->addRow("");
$TF->addRowClass("backgroundColor0");
$TF->addRow(array("<b>Gesamt:</b>", "<b>" . Util::formatByte($gesamt, 2) . "</b>"));
$TF->addCellStyle(1, "text-align:right");
$TF->addRow(array("Diese Backups können als Admin-Benutzer im Installation-Plugin heruntergeladen und wiederhergestellt werden."));
$TF->addRowColspan(1, 2);
$TF->addRow("");
$TF->addRowClass("backgroundColor0");
$TF->addRow(array($this->noBackupButton()));
$TF->addRowColspan(1, 2);
echo $html . $TF;
}
示例15: loadDetails
public function loadDetails()
{
echo $this->getHTML($this->ID, "window");
return;
$this->setParser("TodoFromDay", "Util::nothingParser");
$this->setParser("TodoFromTime", "Util::nothingParser");
$this->setParser("TodoTillDay", "Util::nothingParser");
$this->setParser("TodoTillTime", "Util::nothingParser");
$this->loadMe();
$head = "<div id=\"TodoDetailsHandler{$this->ID}\" class=\"backgroundColor1 cMHeader\">Detailansicht ToDo \"" . $this->A->TodoName . "\"</div>";
try {
$T = new mTeilnehmerGUI();
$T->classID = $this->ID;
$T->className = "Todo";
$T->addAssocV3("TeilnehmerTodoID", "=", $this->ID);
$T->addJoinV3("User", "TeilnehmerUserID", "=", "UserID");
$T->addOrderV3("TeilnehmerTeamID");
$table = "\n\t\t\t<table style=\"width:100%;border:0px;\">\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col />\n\t\t\t\t</colgroup>";
$teilnehmerID = 0;
$teilnehmerStatus = -1;
$cu = $_SESSION["S"]->getCurrentUser()->getID();
while ($s = $T->getNextEntry()) {
if ($s->getA()->TeilnehmerUserID == $cu) {
$teilnehmerID = $s->getID();
$teilnehmerStatus = $s->getA()->TeilnehmerStatus;
}
$table .= "\n\t\t\t\t<tr>\n\t\t\t\t\t<td style=\"padding-left:0px;padding-top:0px;\">" . $s->getA()->name . "</td>\n\t\t\t\t</tr>";
}
$table .= "\n\t\t\t</table>";
} catch (ClassNotFoundException $e) {
$table = "";
}
$t = new HTMLTable(2, "Detailansicht ToDo \"" . $this->A->TodoName . "\"");
$t->addColStyle(1, "text-align:right;");
$t->addColStyle(1, "width:110px;");
#<input class=\"multiEditInput2\" onfocus=\"oldValue = this.value;\" onblur=\"if(oldValue != this.value) saveMultiEditInput('Posten','".$t->getID()."','preis');\" value=\"$ta->preis\" id=\"preisID".$t->getID()."\" type=\"text\" onkeyup=\"updateEKs('".$t->getID()."');\" onkeydown=\"if(event.keyCode == 13) saveMultiEditInput('Posten','".$t->getID()."','preis');\" />
if ($teilnehmerID != 0) {
$st = $this->getStatus();
$o = "";
foreach ($st as $k => $v) {
$o .= "<option " . ($k == $this->A->TodoStatus ? "selected=\"selected\"" : "") . " value=\"{$k}\">{$v}</option>";
}
$status = "<select id=\"TodoStatusID{$this->ID}\" onchange=\"saveMultiEditInput('Todo','" . $this->getID() . "','TodoStatus');\">{$o}</select>";
} else {
$status = $this->getStatus($this->A->TodoStatus);
}
$t->addRow(array("Priorität:", $this->getPriorities($this->A->TodoPriority)));
$t->addRow(array("Status:", $status));
if ($teilnehmerID != 0) {
$percent = "\n\t\t\t<select id=\"TodoPercentID{$this->ID}\" onchange=\"ToDo.onChange();\">";
for ($i = 0; $i <= 100; $i += 5) {
$percent .= "\n\t\t\t\t<option " . ($this->A->TodoPercent == $i ? "selected=\"selected\"" : "") . " value=\"{$i}\">{$i} %</option>";
}
$percent .= "\n\t\t\t</select>\n\t\t\t<input type=\"hidden\" id=\"TodoID\" value=\"{$this->ID}\" />";
/*<input type=\"text\" readonly=\"readonly\" id=\"TodoPercentID$this->ID\" value=\"{$this->A->TodoPercent}\" style=\"width:30px;float:right;text-align:right;margin-right:13px;\" />
<div id=\"prozentSlider$this->ID\" style=\"height:19px;width:4px;background-color:black;cursor:move;margin-bottom:-17px;\"></div>
<div id=\"prozentTrack$this->ID\" style=\"width:80%;height:15px;\" class=\"backgroundColor1\" />";
*/
} else {
$percent = $this->A->TodoPercent;
}
$t->addRow(array("Prozent:", $percent));
if ($this->A->TodoDescription != "") {
$t->addRow("");
$t->addRowClass("backgroundColor0");
$t->addRow(array("Beschreibung:", nl2br($this->A->TodoDescription)));
}
$t->addRow("");
$t->addRowClass("backgroundColor0");
$t->addRow(array("Beginn am:", Util::CLDateParserL($this->A->TodoFromDay)));
$t->addRow(array("Fällig bis:", Util::CLDateParserL($this->A->TodoTillDay)));
$t->addRow("");
$t->addRowClass("backgroundColor0");
echo $t->getHTML();
}