m.deny.html.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The deny mobile view file of user module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package user
  9. * @version $Id: index.html.php 3830 2016-05-18 09:34:17Z liugang $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php
  14. $bodyClass = 'with-menu-top';
  15. include "../../common/view/m.header.html.php";
  16. ?>
  17. <div id='page' class='list-with-actions'>
  18. <div class='section no-margin'>
  19. <div class='content'>
  20. <?php
  21. $moduleName = isset($lang->$module->common) ? $lang->$module->common: $module;
  22. $methodName = isset($lang->$module->$method) ? $lang->$module->$method: $method;
  23. /* find method name if method is lowercase letter. */
  24. if(!isset($lang->$module->$method))
  25. {
  26. $tmpLang = array();
  27. foreach($lang->$module as $key => $value)
  28. {
  29. $tmpLang[strtolower($key)] = $value;
  30. }
  31. $methodName = isset($tmpLang[$method]) ? $tmpLang[$method] : $method;
  32. }
  33. printf($lang->user->errorDeny, $moduleName, $methodName);
  34. ?>
  35. </div>
  36. <nav class='nav nav-auto affix dock-bottom footer-actions'>
  37. <?php
  38. $isOnlybody = helper::inOnlyBodyMode();
  39. unset($_GET['onlybody']);
  40. echo html::a($this->createLink($config->default->module), $lang->my->common, ($isOnlybody ? '_parent' : ''), "class='btn'");
  41. if($refererBeforeDeny) echo html::a(helper::safe64Decode($refererBeforeDeny), $lang->user->goback, ($isOnlybody ? '_parent' : ''), "class='btn'");
  42. echo html::a($this->createLink('user', 'logout', "referer=" . helper::safe64Encode($denyPage)), $lang->user->relogin, ($isOnlybody ? '_parent' : ''), "class='btn btn-primary'");
  43. ?>
  44. </nav>
  45. </div>
  46. </div>
  47. <?php include "../../common/view/m.footer.html.php"; ?>