m.login.html.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * The login 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 Fei Chen <chenfei@cnezsoft.com>
  8. * @package user
  9. * @version $Id: login.html.php 3633 2016-02-23 09:21:34Z daitingting $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php
  14. $bodyClass = 'with-nav-top';
  15. include '../../common/view/m.header.lite.html.php';
  16. if(empty($config->notMd5Pwd)) js::import($webRoot . 'js/md5.js');
  17. ?>
  18. <nav class='affix dock-top nav justify-center lang-menu'>
  19. <?php foreach($config->langs as $key => $value):?>
  20. <a data-value='<?php echo $key; ?>'<?php if($key === $this->app->getClientLang()) echo ' class="active"' ?>><?php echo $value;?></a>
  21. <?php endforeach;?>
  22. </nav>
  23. <div class='page with-nav-top'>
  24. <div id='login' class='column fluid-v no-margin flex-nowrap'>
  25. <div class='cell-3' id='loginLogo'>
  26. <div class='tile flex-center flex article'>
  27. <img src='<?php echo $webRoot . 'mobile/img/zentao.png' ?>' alt='<?php echo $lang->zentaoPMS;?>'>
  28. </div>
  29. </div>
  30. <div class='cell-5'>
  31. <div class='tile flex-center flex flex-column'>
  32. <form method='post' id='loginForm' target='hiddenwin'>
  33. <div class='control box danger form-message hide-empty'></div>
  34. <div class='control has-label-left fluid'>
  35. <input autofocus id='account' name='account' type='text' class='input' placeholder='<?php echo $lang->user->account?>'>
  36. <label for='account' title='<?php echo $lang->user->account;?>'><i class='icon icon-user'></i></label>
  37. <p class='help-text'></p>
  38. </div>
  39. <div class='control has-label-left fluid'>
  40. <input id='password' name='password' type='password' class='input' placeholder='<?php echo $lang->user->password;?>'>
  41. <label for='password' title='<?php echo $lang->user->password;?>'><i class='icon icon-lock'></i></label>
  42. <p class='help-text'></p>
  43. </div>
  44. <?php if(!empty($this->config->safe->loginCaptcha)):?>
  45. <div class='control has-label-left fluid'>
  46. <input id='captcha' name='captcha' type='text' class='input' placeholder='<?php echo $lang->user->captcha;?>'>
  47. <label for='captcha' title='<?php echo $lang->user->captcha;?>'></label>
  48. </div>
  49. <div class='control has-label-left fluid captchaBox'>
  50. <img src="<?php echo $this->createLink('misc', 'captcha', "sessionVar=captcha");?>" />
  51. </div>
  52. <?php endif;?>
  53. <div class='control'>
  54. <div class='checkbox pull-right block'>
  55. <input type='checkbox' name='keepLogin' value='on'>
  56. <label for='keepLogin'><?php echo $lang->user->keepLogin['on'];?></label>
  57. </div>
  58. </div>
  59. <div class='control'>
  60. <button type='submit' id='submit' class='btn rounded block fluid primary'><?php echo $lang->login;?></button>
  61. </div>
  62. </form>
  63. </div>
  64. </div>
  65. <div class='cell-4'>
  66. <div class='text-center fluid has-padding affix dock-bottom'><?php printf($lang->welcome, isset($config->company->name) ? $config->company->name : '');?></div>
  67. </div>
  68. </div>
  69. </div>
  70. <?php include '../../common/view/m.footer.html.php';?>