protected function popupError($rule = null) { $errorText = '<div class="mPopupAuthError">' . ($rule ? MRights::getError($rule, 1) : MText::_("noauth")) . '</div>'; $this->view->add2Content('<script noCache="1">newDarkenPopup(\'error\',mText.error,\'' . $errorText . '\',500,150);</script>'); $this->view->add2Content(fmGetFiles()); }
protected function _noAuth($rule = null) { $this->view->content(' <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tbody> <tr> <td align="center" valign="middle"> <span style="font-family: Trebuchet MS, Tahoma, Arial, sans-serif;font-size: 18px; font-weight: bold;"> ' . MRights::getError($rule, 1) . ' </span> </td> </tr> </tbody></table> '); }
protected function _noAuth($rule = null) { $this->view->content(' <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tbody> <tr> <td align="center" valign="middle"><span class="noAuth">' . MRights::getError($rule, 1) . '</span></td> </tr> </tbody></table> '); }
function authError($rule = null, $raw = false, $customContent = null) { if (!$rule) { return; } $content = (!$raw ? '_fmError' : '') . ($customContent ? $customContent : MRights::getError($rule, 1)); $this->slots["content"] = $content; }