本文整理汇总了PHP中anyC::get方法的典型用法代码示例。如果您正苦于以下问题:PHP anyC::get方法的具体用法?PHP anyC::get怎么用?PHP anyC::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类anyC
的用法示例。
在下文中一共展示了anyC::get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: update
public static function update()
{
$AC = anyC::get("RSSParser", "RSSParserUseCache", "1");
while ($R = $AC->n()) {
$R->download();
}
}
示例2: getCMSHTML
function getCMSHTML()
{
$key = substr(Util::eK(), 0, 5);
if (!isset($_GET["key"]) or $key != $_GET["key"]) {
return "<span style=\"color:red;\">Bitte geben Sie den richtigen Schlüssel zum Aufrufen der Seite in der Adresszeile an.</span>";
}
registerClassPath("Einkaufszettel", Util::getRootPath() . "fheME/Einkaufszettel/Einkaufszettel.class.php");
/*
registerClassPath("GSRaumgruppe", Util::getRootPath()."FCalc/GSRaumgruppe/GSRaumgruppe.class.php");
registerClassPath("ObjektL", Util::getRootPath()."personalKartei/ObjekteL/ObjektL.class.php");
registerClassPath("mGSTaetigkeitGUI", Util::getRootPath()."FCalc/GSTaetigkeit/mGSTaetigkeitGUI.class.php");
registerClassPath("GSTaetigkeit", Util::getRootPath()."FCalc/GSTaetigkeit/GSTaetigkeit.class.php");
*
*/
$AC = anyC::get("Einkaufszettel");
$AC->addAssocV3("EinkaufszettelBought", "=", "0");
$AC->addOrderV3("EinkaufszettelName");
$html = "<style type=\"text/css\">\n\t\t\t\tbody {\n\t\t\t\t\tmargin:0px;\n\t\t\t\t\tmargin-top:10px;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entry {\n\t\t\t\t\tpadding:10px;\n\t\t\t\t\tborder-top-width:1px;\n\t\t\t\t\tborder-top-style:solid;\n\t\t\t\t\tborder-bottom-width:1px;\n\t\t\t\t\tborder-bottom-style:solid;\n\t\t\t\t\tfont-size:2em;\n\t\t\t\t\tmargin-bottom:10px;\n\t\t\t\t\tcursor:pointer;\n\t\t\t\t\t-webkit-touch-callout: none;\n\t\t\t\t\t-webkit-user-select: none;\n\t\t\t\t\t-khtml-user-select: none;\n\t\t\t\t\t-moz-user-select: none;\n\t\t\t\t\t-ms-user-select: none;\n\t\t\t\t\tuser-select: none;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entryTouch {\n\t\t\t\t\tbackground-color: #c5d674;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div id=\"einkaufsliste\">";
while ($E = $AC->getNextEntry()) {
$html .= "<div id=\"entry" . $E->getID() . "\" onclick=\"CustomerPage.rme('setBought', [" . $E->getID() . "], function(){ \$('#entry" . $E->getID() . "').remove(); if(\$('#einkaufsliste .nonEmpty').length == 0) \$('#emptyEntry').show(); });\" class=\"nonEmpty entry backgroundColor1 borderColor1\">" . ($E->A("EinkaufszettelMenge") > 1 ? $E->A("EinkaufszettelMenge") . " x " : "") . $E->A("EinkaufszettelName") . ($E->A("EinkaufszettelNameDetails") != "" ? "<br /><small style=\"color:grey;\">" . $E->A("EinkaufszettelNameDetails") . "</small>" : "") . "</div>";
}
$html .= "<div style=\"" . ($AC->numLoaded() == 0 ? "" : "display:none;") . "\" class=\"entry backgroundColor1 borderColor1\" id=\"emptyEntry\">Die Einkaufsliste enthält keine Einträge.<br /><small style=\"color:grey;\">" . Util::CLDateParser(time()) . "</small></div>";
$html .= "</div>";
return $html . OnEvent::script("\$('.entry').hammer().on('touch', function(){ \$(this).addClass('entryTouch'); }); \$('.entry').hammer().on('release', function(){ \$(this).removeClass('entryTouch'); });");
}
示例3: getAngebote
public function getAngebote($data)
{
if (!$this->loggedIn) {
return "TIMEOUT";
}
$html = "";
$T = new HTMLTable(2);
#, "Bitte wählen Sie einen Lieferschein");
$T->setTableStyle("width:100%;margin-top:10px;");
$T->setColWidth(1, 130);
$T->useForSelection(false);
$T->maxHeight(400);
$AC = anyC::get("GRLBM", "isA", "1");
$AC->addJoinV3("Auftrag", "AuftragID", "=", "AuftragID");
$AC->addAssocV3("UserID", "=", Session::currentUser()->getID());
$AC->addAssocV3("status", "=", "open");
#$AC->addOrderV3("datum", "DESC");
$AC->addOrderV3("nummer", "DESC");
#$AC->setLimitV3(100);
#$AC->addJoinV3("Adresse", "t2.AdresseID", "=", "AdresseID");
$i = 0;
while ($B = $AC->n()) {
$Adresse = new Adresse($B->A("AdresseID"));
$T->addRow(array("<span style=\"font-size:20px;font-weight:bold;\">" . $B->A("prefix") . $B->A("nummer") . "</span><br><span style=\"color:grey;\">" . Util::CLDateParser($B->A("datum")) . "</span>", $Adresse->getHTMLFormattedAddress()));
$T->addCellStyle(1, "vertical-align:top;");
$T->addRowStyle("cursor:pointer;border-bottom:1px solid #ccc;");
#if($i % 2 == 1)
# $T->addRowStyle ("background-color:#eee;");
$T->addRowEvent("click", "\n\t\t\t\t\$(this).addClass('selected');\n\t\t\t\t\n\t\t\t\tCustomerPage.rme('getAuftrag', {GRLBMID: " . $B->getID() . "}, function(transport){ \n\t\t\t\t\t\tif(transport == 'TIMEOUT') { document.location.reload(); return; } \n\t\t\t\t\t\t\$('#contentLeft').html(transport); \n\t\t\t\t\t}, \n\t\t\t\t\tfunction(){},\n\t\t\t\t\t'POST');\n\t\t\t\t\t\n\t\t\t\tCustomerPage.rme('getArtikel', {GRLBMID: " . $B->getID() . ", query : '', KategorieID: ''}, function(transport){ \n\t\t\t\t\t\tif(transport == 'TIMEOUT') { document.location.reload(); return; } \n\t\t\t\t\t\t\$('#contentRight').html(transport); \n\t\t\t\t\t\t\$('.selected').removeClass('selected');\n\t\t\t\t\t\t\$('#frameSelect').hide(); \$('#frameEdit').show();\n\t\t\t\t\t}, \n\t\t\t\t\tfunction(){},\n\t\t\t\t\t'POST');");
$i++;
}
$html .= $T;
return $html;
}
示例4: getCMSHTML
function getCMSHTML()
{
$key = substr(Util::eK(), 0, 5);
if (!isset($_GET["key"]) or $key != $_GET["key"]) {
return "<span style=\"color:red;\">Bitte geben Sie den richtigen Schlüssel zum Aufrufen der Seite in der Adresszeile an.</span>";
}
registerClassPath("Einkaufszettel", Util::getRootPath() . "fheME/Einkaufszettel/Einkaufszettel.class.php");
/*
registerClassPath("GSRaumgruppe", Util::getRootPath()."FCalc/GSRaumgruppe/GSRaumgruppe.class.php");
registerClassPath("ObjektL", Util::getRootPath()."personalKartei/ObjekteL/ObjektL.class.php");
registerClassPath("mGSTaetigkeitGUI", Util::getRootPath()."FCalc/GSTaetigkeit/mGSTaetigkeitGUI.class.php");
registerClassPath("GSTaetigkeit", Util::getRootPath()."FCalc/GSTaetigkeit/GSTaetigkeit.class.php");
*
*/
$AC = anyC::get("Einkaufszettel");
$AC->addAssocV3("EinkaufszettelBought", "=", "0");
$AC->addJoinV3("EinkaufszettelKategorie", "EinkaufszettelEinkaufszettelKategorieID", "=", "EinkaufszettelKategorieID");
$AC->addOrderV3("EinkaufszettelKategorieName");
$AC->addOrderV3("EinkaufszettelName");
$html = "<style type=\"text/css\">\n\t\t\t\tbody {\n\t\t\t\t\tmargin:0px;\n\t\t\t\t\tmargin-top:10px;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@media only screen and (max-width: 360px) {\n\t\t\t\t\thtml {\n\t\t\t\t\t\tzoom: .8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t.entry {\n\t\t\t\t\tpadding:10px;\n\t\t\t\t\tborder-top-width:1px;\n\t\t\t\t\tborder-top-style:solid;\n\t\t\t\t\tborder-bottom-width:1px;\n\t\t\t\t\tborder-bottom-style:solid;\n\t\t\t\t\tfont-size:2em;\n\t\t\t\t\tmargin-bottom:10px;\n\t\t\t\t\tcursor:pointer;\n\t\t\t\t\t-webkit-touch-callout: none;\n\t\t\t\t\t-webkit-user-select: none;\n\t\t\t\t\t-khtml-user-select: none;\n\t\t\t\t\t-moz-user-select: none;\n\t\t\t\t\t-ms-user-select: none;\n\t\t\t\t\tuser-select: none;\n\t\t\t\t\t-webkit-tap-highlight-color:rgba(255,255,255,0);\n\t\t\t\t\twidth:100%;\n\t\t\t\t\tbox-sizing:border-box;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entryRestore {\n\t\t\t\t\tborder-top-width:1px;\n\t\t\t\t\tborder-top-style:solid;\n\t\t\t\t\tborder-bottom-width:1px;\n\t\t\t\t\tborder-bottom-style:solid;\n\t\t\t\t\tpadding:10px;\n\t\t\t\t\tfont-size:2em;\n\t\t\t\t\tmargin-bottom:10px;\n\t\t\t\t\tcursor:pointer;\n\t\t\t\t\t-webkit-touch-callout: none;\n\t\t\t\t\t-webkit-user-select: none;\n\t\t\t\t\t-khtml-user-select: none;\n\t\t\t\t\t-moz-user-select: none;\n\t\t\t\t\t-ms-user-select: none;\n\t\t\t\t\tuser-select: none;\n\t\t\t\t\tcolor:#444;\n\t\t\t\t\t-webkit-tap-highlight-color:rgba(255,255,255,0);\n\t\t\t\t\twidth:100%;\n\t\t\t\t\tbox-sizing:border-box;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.backgroundColor4 {\n\t\t\t\t\tbackground-color: #eee;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entryTouch {\n\t\t\t\t\tbackground-color: #c5d674;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.borderColor0 {\n\t\t\t\t\tborder-color:white;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div id=\"einkaufsliste\">";
$B = new Button("Wiederherstellen", "undo", "iconicL");
$last = null;
while ($E = $AC->getNextEntry()) {
if ($last != $E->A("EinkaufszettelKategorieName") and $last !== null) {
$html .= "<h1 style=\"padding-left:10px;padding-top:15px;padding-bottom:7px;\">" . $E->A("EinkaufszettelKategorieName") . "</h1>";
}
$html .= "\n\t\t\t\t<div\n\t\t\t\t\tid=\"entry" . $E->getID() . "\"\n\t\t\t\t\tontouchend=\"if(Touch.cancelNext) return; CustomerPage.rme('setBought', [" . $E->getID() . "], function(){ \$('#entry" . $E->getID() . "').hide(); \$('#restoreEntry" . $E->getID() . "').show(); \$('#emptyEntry').hide(); if(\$('#einkaufsliste .nonEmpty').length == 0) \$('#emptyEntry').show(); });\"\n\t\t\t\t\tclass=\"nonEmpty entry backgroundColor1 borderColor1\">\n\t\t\t\t\t\n\t\t\t\t\t" . ($E->A("EinkaufszettelMenge") > 1 ? $E->A("EinkaufszettelMenge") . " x " : "") . $E->A("EinkaufszettelName") . ($E->A("EinkaufszettelNameDetails") != "" ? "<br /><small style=\"color:grey;\">" . $E->A("EinkaufszettelNameDetails") . "</small>" : "") . "\n\t\t\t\t</div>\n\t\t\t\t<div \n\t\t\t\t\tclass=\"nonEmpty entryRestore backgroundColor4 borderColor0\"\n\t\t\t\t\tontouchend=\"if(Touch.cancelNext) return; CustomerPage.rme('setUnBought', [" . $E->getID() . "], function(){ \$('#entry" . $E->getID() . "').show(); \$('#restoreEntry" . $E->getID() . "').hide(); \$('#emptyEntry').hide(); if(\$('#einkaufsliste .nonEmpty').length == 0) \$('#emptyEntry').show(); });\"\n\t\t\t\t\tid=\"restoreEntry" . $E->getID() . "\" style=\"display:none;\">" . $E->A("EinkaufszettelName") . " {$B}</div>";
$last = $E->A("EinkaufszettelKategorieName");
}
$html .= "<div style=\"" . ($AC->numLoaded() == 0 ? "" : "display:none;") . "\" class=\"entry backgroundColor1 borderColor1\" id=\"emptyEntry\">Die Einkaufsliste enthält keine Einträge.<br /><small style=\"color:grey;\">" . Util::CLDateParser(time()) . "</small></div>";
$html .= "</div>";
return $html . OnEvent::script("\n\t\tvar Touch = {};\n\t\t\n\t\t\$(document).on('touchstart mousedown', '[ontouchend]', function(ev){\n\t\t\t\$(this).addClass('entryTouch'); \n\t\t\t\n\t\t\tTouch.startPos = [ev.clientX, ev.clientY];\n\t\t\tTouch.cancelNext = false;\n\t\t\tTouch.inAction = this;\n\t\t\n\t\t}); \n\t\t\n\t\t\$(document).on('touchend mouseup', '[ontouchend]', function(ev){\n\t\t\t\$(this).removeClass('entryTouch');\n\t\t\tTouch.inAction = false;\n\t\t});\n\t\t\t\n\t\t\$(document).on('touchmove mousemove', '[ontouchend]', function(ev){\n\t\t\tif(!Touch.inAction)\n\t\t\t\treturn;\n\n\t\t\tif(Math.abs(ev.clientX - Touch.startPos[0]) < 15 && Math.abs(ev.clientY - Touch.startPos[1]) < 15)\n\t\t\t\treturn;\n\n\t\t\tTouch.cancelNext = true;\n\t\t\t\$('.entryTouch').removeClass('entryTouch');\n\t\t\t\n\t\t\t//\$(ev.target).trigger('touchend');\n\t\t});\n\t");
}
示例5: row
private function row(poolAnzeige $A)
{
$html = "\n\t\t\t<div style=\"height:auto;padding-top:30px;padding-bottom:25px;border-bottom: 1px solid #ddd;\">";
$I = new HTMLInput("poolAnzeigeName", "text", $A->A("poolAnzeigeName"));
$I->activateMultiEdit("poolAnzeige", $A->getID());
$I->style("text-align: right;width:90%;");
$I->placeholder("Beschriftung");
$B = new Button("Zeile löschen", "trash_stroke", "iconicL");
$B->style("margin-top:10px;");
$B->doBefore("if(confirm('Die Zeile löschen?')) %AFTER");
$B->rmePCR("poolAnzeige", $A->getID(), "deleteMe", "", OnEvent::reload("Screen"));
$html .= "\n\t\t\t\t<div style=\"text-align: right;color: #777;font-size: 1.5em;display: inline-block;width: 195px;height: auto;vertical-align: top;margin-top: 7px;margin-right: 21px;\">\n\t\t\t\t\t{$I}{$B}\n\t\t\t\t</div>";
$close = 0;
$AC = anyC::get("poolAnzeigeControl", "poolAnzeigeControlpoolAnzeigeID", $A->getID());
$AC->addOrderV3("poolAnzeigeControlOrder");
$AC->addOrderV3("poolAnzeigeControlID");
while ($C = $AC->n()) {
if ($C->A("poolAnzeigeControlNewLine")) {
$html .= "<div style=\"margin-top:15px;\">\n\t\t\t\t\t<div style=\"display: inline-block;width: 195px;height: 120px;vertical-align: top;margin-top: 7px;margin-right: 21px;\"></div>";
$close++;
}
$html .= $this->control($C);
}
$B = new Button("Element\nhinzufügen", "new");
$B->style("margin:10px;display:inline-block;vertical-align:top;");
$B->popup("", "Element hinzufügen", "mpoolAnzeige", "-1", "addElementPopup", array($A->getID()));
$html .= $B;
for ($i = 0; $i < $close; $i++) {
$html .= "</div>";
}
$html .= "</div>";
return $html;
}
示例6: deleteMe
function deleteMe()
{
$AC = anyC::get("Navigation", "parentID", $this->getID());
while ($N = $AC->getNextEntry()) {
$N->deleteMe();
}
parent::deleteMe();
}
示例7: update
public static function update()
{
$AC = anyC::get("OpenWeatherMap");
$AC->addAssocV3("OpenWeatherMapLastUpdate + (OpenWeatherMapUpdateInterval * 60)", "<=", time());
while ($O = $AC->n()) {
$O->download();
}
}
示例8: getService
public function getService($data)
{
if (!$this->loggedIn) {
return "TIMEOUT";
}
$html = "";
$T = new HTMLTable(4);
#, "Bitte wählen Sie einen Lieferschein");
$T->setTableStyle("width:100%;margin-top:10px;");
$T->setColWidth(1, 200);
$T->setColWidth(4, 200);
$T->useForSelection(false);
$T->maxHeight(400);
$AC = anyC::get("GRLBM", "isWhat", "S");
$AC->addJoinV3("Auftrag", "AuftragID", "=", "AuftragID");
#$AC->addAssocV3("UserID", "=", Session::currentUser()->getID());
$AC->addAssocV3("isPrinted", "=", "0");
$AC->addAssocV3("isEMailed", "=", "0");
$AC->addAssocV3("isPixelLetteredTime", "=", "0");
#$AC->addAssocV3("status", "=", "delivered");
$AC->addAssocV3("GRLBMServiceMitarbeiter", "=", Session::currentUser()->getID(), "AND", "2");
$AC->addAssocV3("GRLBMServiceMitarbeiter2", "=", Session::currentUser()->getID(), "OR", "2");
$AC->addAssocV3("GRLBMServiceMitarbeiter3", "=", Session::currentUser()->getID(), "OR", "2");
$AC->addAssocV3("GRLBMServiceMitarbeiter4", "=", Session::currentUser()->getID(), "OR", "2");
$AC->addOrderV3("datum", "DESC");
#$AC->addOrderV3("nummer", "DESC");
#$AC->setLimitV3(100);
#$AC->addJoinV3("Adresse", "t2.AdresseID", "=", "AdresseID");
$i = 0;
while ($B = $AC->n()) {
$BPDF = new Button("PDF anzeigen");
$BPDF->className("submitFormButton");
$BPDF->style("background-color:#DDD;color:grey;float:right;");
$BPDF->onclick("CustomerPage.popup('Service PDF', 'getPDFViewer', {GRLBMID: '" . $B->getID() . "'}, {width:'800px'});");
$BOK = "";
if ($B->A("GRLBMServiceSigAG") != "" and $B->A("GRLBMServiceSigAG") != "[]") {
$BOK = new Button("Kunde hat unterschrieben", "check", "iconic");
$BOK->style("font-size:55px;");
}
$Adresse = new Adresse($B->A("AdresseID"));
$T->addRow(array("<span style=\"font-size:20px;font-weight:bold;\">" . $B->A("prefix") . $B->A("nummer") . "</span><br><span style=\"color:grey;\">" . Util::CLDateParser($B->A("datum")) . "</span>", $Adresse->getHTMLFormattedAddress(), $BOK, $BPDF));
$T->addCellStyle(1, "vertical-align:top;");
$T->addRowStyle("border-bottom:1px solid #ccc;");
#if($i % 2 == 1)
# $T->addRowStyle ("background-color:#eee;");
$event = "\n\t\t\t\t\$(this).addClass('selected');\n\t\t\t\tCCAuftrag.lastTextbausteinUnten = null;\n\t\t\t\t\n\t\t\t\tCustomerPage.rme('getAuftrag', {GRLBMID: " . $B->getID() . "}, function(transport){ \n\t\t\t\t\t\tif(transport == 'TIMEOUT') { document.location.reload(); return; } \n\t\t\t\t\t\t\$('#contentLeft').html(transport); \n\t\t\t\t\t\t\$('#frameSelect').hide(); \$('#frameEdit').show();\n\t\t\t\t\t}, \n\t\t\t\t\tfunction(){},\n\t\t\t\t\t'POST');\n\t\t\t\t\t\n\t\t\t\tCustomerPage.rme('getArtikel', {GRLBMID: " . $B->getID() . ", query : '', KategorieID: ''}, function(transport){ \n\t\t\t\t\t\tif(transport == 'TIMEOUT') { document.location.reload(); return; } \n\t\t\t\t\t\t\$('#contentRight').html(transport); \n\t\t\t\t\t\t\$('.selected').removeClass('selected');\n\t\t\t\t\t}, \n\t\t\t\t\tfunction(){},\n\t\t\t\t\t'POST');";
if ($B->A("GRLBMServiceSigAG") == "" or $B->A("GRLBMServiceSigAG") == "[]") {
$T->addCellEvent(1, "click", $event);
$T->addCellEvent(2, "click", $event);
$T->addRowStyle("cursor:pointer;");
} else {
$T->addRowStyle("cursor:default;");
}
$i++;
}
$html .= $T;
return $html;
}
示例9: updatePath
public static function updatePath($oldPath, $newPath)
{
$AC = anyC::get("Datei", "DateiPath", $oldPath);
while ($D = $AC->getNextEntry()) {
$D->changeA("DateiPath", $newPath);
$D->changeA("DateiName", basename($newPath));
$D->saveMe();
}
}
示例10: saveMe
function saveMe($checkUserData = true, $output = false)
{
$AC = anyC::get("poolSteuerung", "poolSteuerungTyp", $this->A("poolSteuerungTyp"));
$AC->addAssocV3("poolSteuerungID", "!=", $this->getID());
$S = $AC->n();
if ($S !== null) {
Red::errorD("Jeder Steuerungstyp darf maximal einmal angelegt werden.");
}
return parent::saveMe($checkUserData, $output);
}
示例11: renameDownloaded
public function renameDownloaded($output = false)
{
$AC = anyC::get("JDownload");
$AC->addAssocV3("JDownloadRenameto", "!=", "");
$AC->addAssocV3("JDownloadFilename", "!=", "");
$AC->addAssocV3("JDownloadRenamed", "=", "0");
$AC->addAssocV3("JDownloadDate", ">=", time() - 3600 * 24 * 2);
$dirs = array();
$ACI = anyC::get("Incoming", "IncomingUseForDownloads", "1");
while ($I = $ACI->getNextEntry()) {
$dirs[] = $I->A("IncomingDir");
}
while ($D = $AC->getNextEntry()) {
$filename = preg_replace("/\\.htm\$/", "", basename($D->A("JDownloadFilename")));
$ext = Util::ext($filename);
$found = false;
foreach ($dirs as $dir) {
if (!file_exists($dir . "/{$filename}") and file_exists($dir . "/" . basename($D->A("JDownloadFilename")))) {
$filename = basename($D->A("JDownloadFilename"));
}
if (file_exists($dir . "/{$filename}")) {
$found = true;
$newName = Util::makeFilename(str_replace(" ", ".", $D->A("JDownloadRenameto")) . ($ext != "" ? ".{$ext}" : ""));
if (file_exists($dir . "/" . $newName)) {
if ($output) {
echo "<p>{$filename}: {$newName} ALREADY EXISTS!</p>";
}
$D->changeA("JDownloadRenamed", "-1");
$D->saveMe();
continue;
}
if (filesize($dir . "/{$filename}") != $D->A("JDownloadFilesize")) {
continue;
}
if (rename($dir . "/{$filename}", $dir . "/" . $newName)) {
if ($output) {
echo "<p>renamed {$dir}/{$filename} to " . $newName . "</p>";
}
$D->changeA("JDownloadRenamed", time());
$D->saveMe();
} else {
if ($output) {
echo "<p>{$filename}: ERROR RENAMING!</p>";
}
}
}
# rename($filename, Util::makeFilename($D->A("JDownloadRenameto").".$ext"));
}
if (!$found and $output) {
echo "<p>{$filename}: NOT FOUND!</p>";
}
}
}
示例12: getCMSHTML
function getCMSHTML()
{
$html = "";
$AC = anyC::get("Tinkerforge");
while ($T = $AC->getNextEntry()) {
$ACB = anyC::get("TinkerforgeBricklet", "TinkerforgeBrickletTinkerforgeID", $T->getID());
while ($B = $ACB->getNextEntry()) {
$html .= $this->getControl($B);
}
}
return $html;
}
示例13: getHistorieData
public static function getHistorieData($ownerClass, $ownerClassID, HistorieTable $Tab)
{
$AC = anyC::get("Todo", "TodoClass", $ownerClass);
$AC->addAssocV3("TodoClassID", "=", $ownerClassID);
$AC->addOrderV3("TodoFromDay", "DESC");
$AC->setLimitV3("10");
while ($D = $AC->getNextEntry()) {
$B = new Button("Aktivität anzeigen", "./ubiquitous/Todo/Todo.png", "icon");
$B->popup("", "Event", "mKalender", "-1", "getInfo", array("'mTodoGUI'", $D->getID(), $D->A("TodoFromDay")));
$Tab->addHistorie("Aktivität", "./ubiquitous/Todo/Todo.png", $D->A("TodoFromDay"), $D->getOwnerObject()->getCalendarTitle(), $B, $D->A("TodoDescription"), $D->A("TodoCreatorUserID"));
}
return true;
}
示例14: getOverviewContent
public function getOverviewContent()
{
$html = "<div class=\"touchHeader\"><span class=\"lastUpdate\" id=\"lastUpdatemTinkerforgeGUI\"></span><p>Tinkerforge</p></div>\n\t\t\t<div style=\"padding:10px;\">";
$AC = anyC::get("Tinkerforge");
while ($T = $AC->getNextEntry()) {
$ACB = anyC::get("TinkerforgeBricklet", "TinkerforgeBrickletTinkerforgeID", $T->getID());
while ($B = $ACB->getNextEntry()) {
$html .= $B->getControl();
}
}
$html .= "</div>";
echo $html;
}
示例15: 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;
}