本文整理汇总了PHP中anyC::loadLanguageClass方法的典型用法代码示例。如果您正苦于以下问题:PHP anyC::loadLanguageClass方法的具体用法?PHP anyC::loadLanguageClass怎么用?PHP anyC::loadLanguageClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类anyC
的用法示例。
在下文中一共展示了anyC::loadLanguageClass方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getContextMenuHTML
public function getContextMenuHTML($identifier)
{
$deTexts = array();
$deTexts["pluginSupport"] = "Bitte beachten Sie, dass ein Plugin diese Einstellungen unterstützen muss, selbst wenn es hier angezeigt wird!";
$deTexts["selectPlugin"] = "Bitte Plugin wählen";
$deTexts["add"] = "hinzufügen";
$deTexts["selectPluginButton"] = "Plugin auswählen";
$deTexts["save"] = "speichern";
$deTexts["select"] = "auswählen";
$deTexts["noPsOptions"] = "keine plugin-spezifischen Optionen vorhanden";
$deTexts["newFieldName"] = "Neuer Feldname";
$deTexts["maybeHidden"] = "Bitte beachten Sie, dass hier interne Namen angezeigt werden, die von der Feldbeschriftung abweichen können!<br />Manche internen Felder werden möglichweise gar nicht angezeigt.";
$ac = new anyC();
$singularLanguageClass = $ac->loadLanguageClass("Userdata");
$text = $singularLanguageClass != null ? $singularLanguageClass->getText() : $deTexts;
$opts = "";
$ps = array_flip($_SESSION["CurrentAppPlugins"]->getAllPlugins());
$ms = $_SESSION["CurrentAppPlugins"]->getAllMenuEntries();
#print_r($ms);
foreach ($ps as $key => $value) {
if ($key == "mUserdata") {
continue;
}
if ($identifier == "4" and !PMReflector::implementsInterface($key, "iPluginSpecificRestrictions")) {
continue;
}
if ($identifier == "4") {
$c = new $key();
if (!$c->getPluginSpecificRestrictions()) {
continue;
}
}
if ($identifier == "5" and !in_array($key, $ms)) {
continue;
}
if ($value == "Kunde") {
continue;
}
if (!$_SESSION["CurrentAppPlugins"]->getIsAdminOnly($key) and $_SESSION["CurrentAppPlugins"]->isCollectionOfFlip($key) != "") {
$opts .= "<option value=\"{$key}:" . $_SESSION["CurrentAppPlugins"]->isCollectionOfFlip($key) . "\">{$value}</option>";
}
}
$s = explode(":", $identifier);
if (isset($s[1])) {
$identifier = $s[0];
}
switch ($identifier) {
case "1":
$c = isset($text["kann nicht erstellen"]) ? $text["kann nicht erstellen"] : "kann nicht\nerstellen";
$b = isset($text["kann nicht bearbeiten"]) ? $text["kann nicht bearbeiten"] : "kann nicht\nbearbeiten";
$l = isset($text["kann nicht löschen"]) ? $text["kann nicht löschen"] : "kann nicht\nlöschen";
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" class=\"bigButton backgroundColor2\" value=\"" . $c . "\" style=\"background-image:url(./images/navi/new.png);\" onclick=\"phynxContextMenu.update('mUserdata','Create','" . str_replace(array("\n", "'"), array(" ", "\\'"), $c) . ":');\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" class=\"bigButton backgroundColor2\" value=\"" . $b . "\" style=\"background-image:url(./images/navi/editb.png);\" onclick=\"phynxContextMenu.update('mUserdata','Edit','" . str_replace(array("\n", "'"), array(" ", "\\'"), $b) . ":');\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" class=\"bigButton backgroundColor2\" value=\"" . $l . "\" style=\"background-image:url(./images/navi/trash.png);\" onclick=\"phynxContextMenu.update('mUserdata','Delete','" . str_replace(array("\n", "'"), array(" ", "\\'"), $l) . ":');\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><img src=\"./images/navi/warning.png\" style=\"float:left;margin-right:4px;\" />" . $text["pluginSupport"] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "Edit":
case "Delete":
case "Create":
echo "\n\t\t\t\t<input type=\"hidden\" id=\"uRestAction\" value=\"{$identifier}\" />\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $text["selectPlugin"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"cant{$identifier}\">{$opts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["add"] . "\" onclick=\"addUserRestriction();\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "3":
case "2":
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $text["selectPlugin"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"relabelPlugin\">{$opts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["select"] . "\" onclick=\"phynxContextMenu.update('mUserdata','" . ($identifier == "2" ? "relabel" : "hide") . ":'+\$('relabelPlugin').value.split(':')[1], \$('relabelPlugin').value.split(':')[1]);\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><img src=\"./images/navi/warning.png\" style=\"float:left;margin-right:4px;\" />" . $text["maybeHidden"] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "5":
case "4":
if ($opts == "") {
die("<p>" . $text["noPsOptions"] . "</p>");
}
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $text["selectPlugin"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"relabelPlugin\">{$opts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t" . ($identifier == 4 ? "<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["selectPluginButton"] . "\" onclick=\"phynxContextMenu.update('mUserdata','pS:'+\$('relabelPlugin').value.split(':')[0], \$('relabelPlugin').value.split(':')[0]);\" /></td>\n\t\t\t\t\t</tr>" : "<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["selectPluginButton"] . "\" onclick=\"addHidePlugin();\" /></td>\n\t\t\t\t\t</tr>") . "\n\t\t\t\t</table>";
break;
case "pS":
$c = new $s[1]();
$pSs = $c->getPluginSpecificRestrictions();
$pSopts = "";
foreach ($pSs as $key => $value) {
$pSopts .= "<option value=\"{$key}:{$s['1']}\">{$value}</option>";
}
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"pSSelect\">{$pSopts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["save"] . "\" onclick=\"savePluginSpecificRestriction();\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "hide":
case "relabel":
try {
$c = new $s[1](-1);
$c = $c->newAttributes();
echo "\n\t\t\t\t<input type=\"hidden\" id=\"" . $identifier . "Plugin\" value=\"{$s['1']}\" />\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"" . $identifier . "Field\"><option>" . implode("</option><option>", PMReflector::getAttributesArray($c)) . "</option></select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t" . ($identifier == "relabel" ? "<tr>\n\t\t\t\t\t\t<td>" . $text["newFieldName"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input id=\"relabelTo\" type=\"text\" /></td>\n\t\t\t\t\t</tr>" : "") . "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["save"] . "\" onclick=\"" . ($identifier == "relabel" ? "saveFieldRelabeling();" : "saveFieldHiding();") . "\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
} catch (ClassNotFoundException $e) {
echo "<p>Diese Option steht bei diesem Plugin leider nicht zur Verfügung</p>";
}
break;
case "copyFromUser":
$T = new HTMLTable(2);
$T->useForSelection();
$T->setColWidth(1, 20);
$T->maxHeight(200);
$G = new Users();
$G->addAssocV3("isAdmin", "=", "0");
$G->setLimitV3("10");
$G->lCV3();
while ($t = $G->getNextEntry()) {
$T->addRow(array(new Button("", "./images/i2/copy.png", "icon"), $t->A("username")));
$T->addRowEvent("click", "copyFromOtherUser('" . $t->getID() . "');");
//.........这里部分代码省略.........
示例2: getHTML
public function getHTML($id)
{
if ($_SESSION["S"]->checkIfUserLoggedIn() == true) {
return -1;
}
$es = $_SESSION["CurrentAppPlugins"]->getMenuEntries();
$ts = $_SESSION["CurrentAppPlugins"]->getMenuTargets();
$icons = $_SESSION["CurrentAppPlugins"]->getIcons();
$appIco = $_SESSION["applications"]->getApplicationIcon($_SESSION["applications"]->getActiveApplication());
if (isset($_COOKIE["phynx_color"]) and $_COOKIE["phynx_color"] != "standard") {
$suffix = strrchr($appIco, ".");
$newLogo = str_replace($suffix, ucfirst($_COOKIE["phynx_color"]) . $suffix, $appIco);
if (file_exists("." . $newLogo)) {
$appIco = $newLogo;
}
}
// <editor-fold defaultstate="collapsed" desc="Aspect:jP">
$newAppIco = Aspect::joinPoint("appLogo", $this, __METHOD__);
if ($newAppIco != null) {
$appIco = $newAppIco;
}
// </editor-fold>
$appMenuHidden = "";
$appMenuDisplayed = "";
$appMenuActive = (!$_SESSION["S"]->isUserAdmin() and (!isset($_COOKIE["phynx_layout"]) or $_COOKIE["phynx_layout"] == "fixed" or $_COOKIE["phynx_layout"] == "horizontal" or $_COOKIE["phynx_layout"] == "desktop" or $_COOKIE["phynx_layout"] == "vertical"));
// <editor-fold defaultstate="collapsed" desc="Aspect:jP">
$aspectAppMenuActive = Aspect::joinPoint("appMenuActive", $this, __METHOD__);
if ($aspectAppMenuActive !== null) {
$appMenuActive = $aspectAppMenuActive;
}
// </editor-fold>
$appIco = Environment::getS("ApplicationIcon:" . Applications::activeApplication(), $appIco);
if ($appIco != "") {
if (count($_SESSION["applications"]->getApplicationsList()) > 1 and !$_SESSION["S"]->isAltUser()) {
echo "<img src=\"{$appIco}\" style=\"margin-left:10px;float:left;\" alt=\"Abmelden/Anwendung wechseln\" title=\"Abmelden/Anwendung wechseln\" onclick=\"" . Environment::getS("onLogout", "phynxContextMenu.start(this, 'Menu','1','Anwendung wechseln:','right');") . "\" />";
} else {
echo "<img src=\"{$appIco}\" style=\"margin-left:10px;float:left;\" alt=\"Abmelden\" title=\"Abmelden\" onclick=\"" . Environment::getS("onLogout", "userControl.doLogout();") . "\" />";
}
}
$bigWorld = false;
if (isset($_COOKIE["phynx_layout"]) and ($_COOKIE["phynx_layout"] == "desktop" or $_COOKIE["phynx_layout"] == "vertical")) {
$bigWorld = true;
}
if (!$_SESSION["S"]->isUserAdmin()) {
$userHiddenPlugins = mUserdata::getHiddenPlugins();
$U = new mUserdata();
$U->addAssocV3("typ", "=", "TTP");
$B = new Button(Environment::getS("renameApplication:" . $_SESSION["applications"]->getActiveApplication(), $_SESSION["applications"]->getActiveApplication()), "application");
$B->type("icon");
$B->className($bigWorld ? "tabImg" : "smallTabImg");
#".(($t == null OR $t == "big") ? "class=\"tabImg\"" : "class=\"smallTabImg\"")."
$B->hasMouseOverEffect(false);
$B->id("busyBox");
#$appMenuHidden = $this->getAppMenuOrder("appMenuHidden");
$appMenuDisplayed = $this->getAppMenuOrder("appMenuDisplayed");
#if($appMenuDisplayed != "" AND $appMenuHidden == "")
# $appMenuHidden = implode(";", array_diff(array_values($es), explode(";", $appMenuDisplayed)));
}
$appMenuH = "\n\t\t\t<li id=\"appMenu_emptyList\" style=\"height:auto;" . ($appMenuHidden != "emptyList" ? "display:none;" : "") . "\">Ziehen Sie Einträge auf diese Seite, um sie aus dem Menü auszublenden und nur hier anzuzeigen.</li>";
$appMenuD = "";
if ($appMenuActive) {
$es = self::sort($es, $appMenuDisplayed);
}
#, $appMenuHidden);
echo "\n\t\t\t<div id=\"navTabsWrapper\">";
if ($appMenuActive) {
echo "\n\t\t\t<div\n\t\t\t\tclass=\"navBackgroundColor navBorderColor " . ($bigWorld ? "" : " smallTab") . " navTab\"\n\t\t\t\tid=\"SpellbookMenuEntry\"\n\t\t\t>\n\t\t\t\t<div onclick=\"contentManager.loadPlugin('contentScreen', 'Spellbook', 'SpellbookGUI;-');\" style=\"padding:3px;padding-right:7px;padding-top:7px;height:18px;\">\n\t\t\t\t{$B}" . ($bigWorld ? Environment::getS("renameApplication:" . $_SESSION["applications"]->getActiveApplication(), $_SESSION["applications"]->getActiveApplication()) : "") . "\n\t\t\t\t</div>\n\t\t\t</div>";
}
$collapsedTabs = Environment::getS("collapsedTabs", "0") == "1";
foreach ($es as $key => $value) {
if (isset($userHiddenPlugins[$value])) {
continue;
}
$single = $_SESSION["CurrentAppPlugins"]->isCollectionOfFlip($value);
$anyC = new anyC();
$text = $anyC->loadLanguageClass($single);
if ($text != null and $text->getMenuEntry() != "") {
$key = $text->getMenuEntry();
}
$t = !$_SESSION["S"]->isUserAdmin() ? $U->getUDValueCached("ToggleTab{$value}") : "big";
if ($t == null and $collapsedTabs) {
$t = "small";
}
$key = Aspect::joinPoint("renameTab", $this, __METHOD__, array($key), $key);
if (isset($_COOKIE["phynx_layout"]) and ($_COOKIE["phynx_layout"] == "vertical" or $_COOKIE["phynx_layout"] == "desktop")) {
$t = "big";
}
#$emptyFrame = "contentLeft";
#if(isset($ts[$value]) AND $ts[$value] == "contentLeft") $emptyFrame = "contentRight";
#$onclick = "contentManager.emptyFrame('contentLeft'); contentManager.emptyFrame('contentRight'); contentManager.emptyFrame('contentScreen'); contentManager.loadFrame('".(isset($ts[$value]) ? $ts[$value] : "contentRight")."', '$value', -1, 0, '{$value}GUI;-');$('windows').update('');";
$onclick = "contentManager.loadPlugin('" . (isset($ts[$value]) ? $ts[$value] : "contentRight") . "', '{$value}', '{$value}GUI;-');";
$B = new Button($key, $icons[$value]);
$B->type("icon");
$B->style("float:left;margin-right:10px;");
$BM = new Button("Reihenfolge ändern", "./images/i2/topdown.png");
$BM->type("icon");
$BM->style("float:right;margin-right:5px;");
$BM->className("appMenuHandle");
$appMenu = "\n\t\t\t<li\n\t\t\t\tid=\"appMenu_{$value}\"\n\t\t\t\tonmouseover = \"this.className = 'navBackgroundColor';\"\n\t\t\t\tonmouseout = \"this.className = '';\"\n\t\t\t>\n\t\t\t\t{$BM}\n\t\t\t\t<div\n\t\t\t\t\tonclick=\"appMenu.hide(); {$onclick}\"\n\t\t\t\t>\n\t\t\t\t{$B}<p>{$key}</p>\n\t\t\t\t</div>\n\t\t\t</li>";
if (strpos($appMenuHidden, $value) !== false) {
//.........这里部分代码省略.........
示例3: messageC
public static function messageC($class, $message)
{
$ac = new anyC();
$Lang = $ac->loadLanguageClass($class)->getText();
die("message:'" . addslashes($Lang[$message]) . "'");
}
示例4: getContextMenuHTML
public function getContextMenuHTML($identifier)
{
$deTexts = array();
$deTexts["pluginSupport"] = "Bitte beachten Sie, dass ein Plugin diese Einstellungen unterstützen muss, selbst wenn es hier angezeigt wird!";
$deTexts["selectPlugin"] = "Bitte Plugin wählen";
$deTexts["add"] = "hinzufügen";
$deTexts["selectPluginButton"] = "Plugin auswählen";
$deTexts["save"] = "speichern";
$deTexts["select"] = "auswählen";
$deTexts["noPsOptions"] = "keine plugin-spezifischen Optionen vorhanden";
$deTexts["newFieldName"] = "Neuer Feldname";
$deTexts["maybeHidden"] = "Bitte beachten Sie, dass hier interne Namen angezeigt werden, die von der Feldbeschriftung abweichen können!<br />Manche internen Felder werden möglichweise gar nicht angezeigt.";
$ac = new anyC();
$singularLanguageClass = $ac->loadLanguageClass("Userdata");
$text = $singularLanguageClass != null ? $singularLanguageClass->getText() : $deTexts;
$opts = "";
$ps = array_flip($_SESSION["CurrentAppPlugins"]->getAllPlugins());
$ms = $_SESSION["CurrentAppPlugins"]->getAllMenuEntries();
#print_r($ms);
foreach ($ps as $key => $value) {
if ($key == "mUserdata") {
continue;
}
if ($identifier == "4" and !PMReflector::implementsInterface($key, "iPluginSpecificRestrictions")) {
continue;
}
if ($identifier == "5" and !in_array($key, $ms)) {
continue;
}
if (!$_SESSION["CurrentAppPlugins"]->getIsAdminOnly($key) and $_SESSION["CurrentAppPlugins"]->isCollectionOfFlip($key) != "") {
$opts .= "<option value=\"{$key}:" . $_SESSION["CurrentAppPlugins"]->isCollectionOfFlip($key) . "\">{$value}</option>";
}
}
$s = explode(":", $identifier);
if (isset($s[1])) {
$identifier = $s[0];
}
switch ($identifier) {
case "1":
$c = isset($text["kann nicht erstellen"]) ? $text["kann nicht erstellen"] : "kann nicht\nerstellen";
$b = isset($text["kann nicht bearbeiten"]) ? $text["kann nicht bearbeiten"] : "kann nicht\nbearbeiten";
$l = isset($text["kann nicht löschen"]) ? $text["kann nicht löschen"] : "kann nicht\nlöschen";
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" class=\"bigButton backgroundColor2\" value=\"" . $c . "\" style=\"background-image:url(./images/navi/new.png);\" onclick=\"phynxContextMenu.update('mUserdata','Create','" . str_replace(array("\n", "'"), array(" ", "\\'"), $c) . ":');\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" class=\"bigButton backgroundColor2\" value=\"" . $b . "\" style=\"background-image:url(./images/navi/editb.png);\" onclick=\"phynxContextMenu.update('mUserdata','Edit','" . str_replace(array("\n", "'"), array(" ", "\\'"), $b) . ":');\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" class=\"bigButton backgroundColor2\" value=\"" . $l . "\" style=\"background-image:url(./images/navi/trash.png);\" onclick=\"phynxContextMenu.update('mUserdata','Delete','" . str_replace(array("\n", "'"), array(" ", "\\'"), $l) . ":');\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><img src=\"./images/navi/warning.png\" style=\"float:left;margin-right:4px;\" />" . $text["pluginSupport"] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "Edit":
case "Delete":
case "Create":
echo "\n\t\t\t\t<input type=\"hidden\" id=\"uRestAction\" value=\"{$identifier}\" />\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $text["selectPlugin"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"cant{$identifier}\">{$opts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["add"] . "\" onclick=\"addUserRestriction();\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "3":
case "2":
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $text["selectPlugin"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"relabelPlugin\">{$opts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["select"] . "\" onclick=\"phynxContextMenu.update('mUserdata','" . ($identifier == "2" ? "relabel" : "hide") . ":'+\$('relabelPlugin').value.split(':')[1], \$('relabelPlugin').value.split(':')[1]);\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><img src=\"./images/navi/warning.png\" style=\"float:left;margin-right:4px;\" />" . $text["maybeHidden"] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "5":
case "4":
if ($opts == "") {
die("<p>" . $text["noPsOptions"] . "</p>");
}
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . $text["selectPlugin"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"relabelPlugin\">{$opts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t" . ($identifier == 4 ? "<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["selectPluginButton"] . "\" onclick=\"phynxContextMenu.update('mUserdata','pS:'+\$('relabelPlugin').value.split(':')[0], \$('relabelPlugin').value.split(':')[0]);\" /></td>\n\t\t\t\t\t</tr>" : "<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["selectPluginButton"] . "\" onclick=\"addHidePlugin();\" /></td>\n\t\t\t\t\t</tr>") . "\n\t\t\t\t</table>";
break;
case "pS":
$c = new $s[1]();
$pSs = $c->getPluginSpecificRestrictions();
$pSopts = "";
foreach ($pSs as $key => $value) {
$pSopts .= "<option value=\"{$key}:{$s['1']}\">{$value}</option>";
}
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"pSSelect\">{$pSopts}</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["save"] . "\" onclick=\"savePluginSpecificRestriction();\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
break;
case "hide":
case "relabel":
try {
$c = new $s[1](-1);
$c = $c->newAttributes();
echo "\n\t\t\t\t<input type=\"hidden\" id=\"" . $identifier . "Plugin\" value=\"{$s['1']}\" />\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><select id=\"" . $identifier . "Field\"><option>" . implode("</option><option>", PMReflector::getAttributesArray($c)) . "</option></select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t" . ($identifier == "relabel" ? "<tr>\n\t\t\t\t\t\t<td>" . $text["newFieldName"] . ":</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input id=\"relabelTo\" type=\"text\" /></td>\n\t\t\t\t\t</tr>" : "") . "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><input type=\"button\" value=\"" . $text["save"] . "\" onclick=\"" . ($identifier == "relabel" ? "saveFieldRelabeling();" : "saveFieldHiding();") . "\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
} catch (ClassNotFoundException $e) {
echo "<p>Diese Option steht bei diesem Plugin leider nicht zur Verfügung</p>";
}
break;
case "copyFromUser":
echo "\n\t\t\t\t<table>\n\t\t\t\t\t<colgroup>\n\t\t\t\t\t\t<col style=\"width:20px;\" />\n\t\t\t\t\t\t<col class=\"backgroundColor2\" />\n\t\t\t\t\t</colgroup>";
$G = new Users();
$G->addAssocV3("isAdmin", "=", "0");
#$G->addAssocV3("UserID","!=",$this->ID);
#$G->addJoinV3("Auftrag","AuftragID","=","AuftragID");
#$G->setAssocV3("is$identifier","=","1");
#if($bps != -1) $G->addAssocV3("GRLBMID","!=",$bps["loadGRLBMID"]);
#$G->addOrderV3("nummer","DESC");
$G->setLimitV3("10");
$G->lCV3();
while ($t = $G->getNextEntry()) {
echo "\n\t\t\t\t\t<tr onclick=\"copyFromOtherUser('" . $t->getID() . "');\" class=\"\" onmouseout=\"this.className='';\" style=\"cursor:pointer;\" onmouseover=\"this.className = 'backgroundColor0';\">\n\t\t\t\t\t\t<td><img src=\"./images/i2/copy.png\" class=\"mouseoverFade\" /></td>\n\t\t\t\t\t\t<td>" . $t->getA()->username . "</td>\n\t\t\t\t\t</tr>";
}
echo "\n\t\t\t\t</table>";
break;
}
}