public static function nameParser($w, $l, $p) { $p = HTMLGUI::getArrayFromParametersString($p); $dl = "<img src=\"./plugins/Files/download.png\" class=\"mouseoverFade\" title=\"Datei herunterladen\" onclick=\"windowWithRme('File','{$p['0']}','download','');\" style=\"float:right;\" />"; if ($p[1] == "0") { return "{$dl}<small style=\"color:grey;float:right;margin-right:5px;\">" . Util::formatByte($p[2]) . "</small><img src=\"./images/i2/details.png\" class=\"mouseoverFade\" onclick=\"windowWithRme('File', '{$p['0']}', 'previewWindow', '');\" style=\"float:left;margin-right:5px;\" />" . $w; } else { return "<img src=\"./images/i2/folder.png\" style=\"float:left;margin-right:5px;\" />{$w}"; } }
public static function ActionParser($w, $l, $p) { $s = HTMLGUI::getArrayFromParametersString($p); if ($s[2] == "-1") { $I = new HTMLInput("FhemEventAction", "multiInput", $w, array("FhemEvent", $s[0], "FhemEventAction")); $I->style("width:95%;text-align:left;"); return $I; } $Fhem = new Fhem($s[1]); $Fhem->loadMe(); $op = $Fhem->getAvailableOptions(); $o = "<option value=\"\">select...</option>"; foreach ($op as $k => $v) { $o .= "<option " . ($w == $v ? "selected=\"selected\"" : "") . " value=\"{$v}\">{$k}</option>"; } return "<select onchange=\"rme('FhemEvent', '{$s['0']}', 'saveMultiEditField', Array('FhemEventAction',this.value), 'checkResponse(transport);');\">{$o}</select>"; }
public static function addReturnButton($w, $t, $p) { $s = HTMLGUI::getArrayFromParametersString($p); $p2 = array_flip($_SESSION["CurrentAppPlugins"]->getAllPlugins()); return "<input type=\"button\" value=\"zurück zu\n" . $p2[$s[0]] . "\" style=\"background-image:url(./images/navi/back.png);\" class=\"bigButton backgroundColor3\" onclick=\"contentManager.loadFrame('contentRight','{$s['0']}');\" />"; }
public static function catchParser($w, $l = "load", $p = "") { if (!is_array($p) and !is_object($p)) { $p = HTMLGUI::getArrayFromParametersString($p); } if (is_object($p)) { $p = array(); } if (is_array($p)) { unset($p[0]); } return $w == 1 ? "<img " . (isset($p[0]) ? "title=\"{$p['0']}\"" : "") . " src=\"./images/i2/ok.gif\" />" : "<img " . (isset($p[1]) ? "title=\"{$p['1']}\"" : "") . " src=\"./images/i2/notok.gif\" />"; }
public static function nameParser($w, $l, $s) { $s = HTMLGUI::getArrayFromParametersString($s); #return "<img title=\"Content anzeigen\" onclick=\"loadFrameV2('contentRight','mContent', 'mContentGUI;type:$s[0]');\" src=\"./images/i2/export.png\" class=\"mouseoverFade\" style=\"float:left;margin-right:3px;\" />". return $w != "" ? $w : $s[1]; }
public static function firmaParser($w, $a, $p) { if (!is_array($p)) { $s = HTMLGUI::getArrayFromParametersString($p); } else { $s = $p; } $SM = BPS::getProperty("AdressenGUI", "selectionMode", false); if ($s[9] == "mAdresseGUI") { $SM = BPS::getProperty("mAdresseGUI", "selectionMode", false); } $symbols = ""; if ($s[8] != "") { $symbols .= "<a href=\"{$s['8']}\" target=\"_blank\"><img class=\"mouseoverFade\" style=\"float:right;margin-left:4px;\" src=\"./images/i2/flowers.gif\" title=\"{$s['8']}\" /></a>"; } if ($s[7] != "") { if (Session::isPluginLoaded("mGemeinschaft")) { $B = Gemeinschaft::getCallButton($s[7], "mobile"); $B->style("float:right;margin-left:4px;"); $symbols .= $B; } else { $symbols .= "<img class=\"mouseoverFade\" style=\"float:right;margin-left:4px;\" src=\"./images/i2/mobile.png\" title=\"{$s['7']}\" />"; } } if ($s[6] != "") { $symbols .= "<a href=\"mailto:{$s['6']}\"><img class=\"mouseoverFade\" style=\"float:right;margin-left:4px;\" src=\"./images/i2/email.png\" title=\"{$s['6']}\" /></a>"; } if ($s[5] != "") { $symbols .= "<img class=\"mouseoverFade\" style=\"float:right;margin-left:4px;\" src=\"./images/i2/fax.png\" title=\"{$s['5']}\" />"; } if ($s[4] != "") { if (Session::isPluginLoaded("mGemeinschaft")) { $B = Gemeinschaft::getCallButton($s[7]); $B->style("float:right;margin-left:4px;"); $symbols .= $B; } else { $symbols .= "<img class=\"mouseoverFade\" style=\"float:right;margin-left:4px;\" src=\"./images/i2/telephone.png\" title=\"{$s['4']}\" />"; } } return $symbols . (($_SESSION["S"]->checkForPlugin("Kunden") and $s[3] == "default" and !$SM) ? "<img src=\"./images/i2/kunde.png\" title=\"Kundendaten anzeigen/erstellen\" onclick=\"contentManager.selectRow(this); contentManager.loadFrame('contentLeft', 'Kunde', -1, 0, 'KundeGUI;AdresseID:{$s['2']};action:Kappendix');\" style=\"float:left;margin-right:4px;\" class=\"mouseoverFade\" />" : "") . (($_SESSION["S"]->checkForPlugin("Kundenpreise") and $s[3] == "default" and !$SM) ? "<img src=\"./images/i2/kundenpreis.png\" title=\"Kundenpreise festlegen\" onclick=\"contentManager.selectRow(this); contentManager.loadFrame('contentLeft','Kunde', -1, 0,'KundeGUI;AdresseID:{$s['2']};action:Kundenpreise');\" style=\"float:left;margin-right:4px;\" class=\"mouseoverFade\" />" : "") . (($_SESSION["S"]->checkForPlugin("labelPrinter") and $s[3] == "default") ? "<img src=\"./images/i2/printer.png\" title=\"Etikette mit Adresse drucken\" onclick=\"rme('labelPrinter','','printEtikette','{$s['2']}');\" style=\"float:left;margin-right:4px;\" class=\"mouseoverFade\" />" : "") . ($w != "" ? stripslashes($w) . (($s[1] != "" or $s[0] != "") ? "<br /><small>{$s['0']} {$s['1']}</small>" : "") : $s[0] . " " . $s[1]); }