PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/htdocs/theme/phones/smartphone/tpl/login.tpl.php

https://github.com/asterix14/dolibarr
PHP | 104 lines | 74 code | 14 blank | 16 comment | 10 complexity | 3be396ca537803bd6f5aeb011fd4f8a1 MD5 | raw file
Possible License(s): LGPL-2.0
  1. <?php
  2. /* Copyright (C) 2009-2010 Regis Houssin <regis@dolibarr.fr>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. *
  17. */
  18. top_httphead();
  19. ?>
  20. <!DOCTYPE html>
  21. <html>
  22. <?php
  23. include('header.tpl.php');
  24. ?>
  25. <body>
  26. <script type="text/javascript">
  27. jQuery(document).bind("mobileinit", function(){
  28. jQuery.mobile.defaultTransition('pop');
  29. });
  30. </script>
  31. <!-- START LOGIN SMARTPHONE TEMPLATE -->
  32. <div data-role="page" id="dol-home" data-theme="b">
  33. <div data-role="header" data-nobackbtn="true" data-theme="b">
  34. <div id="dol-homeheader">
  35. <?php
  36. $appli='Dolibarr';
  37. if (! empty($conf->global->MAIN_APPLICATION_TITLE)) $appli=$conf->global->MAIN_APPLICATION_TITLE;
  38. print $appli;
  39. ?>
  40. </div>
  41. </div>
  42. <div data-role="content">
  43. <form id="login" class="loginform" name="login" method="post" action="<?php echo $php_self; ?>">
  44. <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
  45. <input type="hidden" name="loginfunction" value="loginfunction" />
  46. <div data-role="fieldcontain">
  47. <label for="username"><?php echo $langs->trans('Login'); ?></label>
  48. <input type="text" name="username" id="username" value="<?php echo $login; ?>" />
  49. <br><label for="password"><?php echo $langs->trans('Password'); ?></label>
  50. <input type="password" name="password" id="password" value="<?php echo $password; ?>" />
  51. <?php if ($select_entity) { ?>
  52. <br><label for="entity" class="select"><?php echo $langs->trans('Entity'); ?></label>
  53. <?php echo $select_entity; ?>
  54. <?php } ?>
  55. <?php if ($captcha) { ?>
  56. <label for="securitycode"><?php echo $langs->trans('SecurityCode'); ?></label>
  57. <input type="text" id="securitycode" name="securitycode" />
  58. <div align="center"><img src="<?php echo $dol_url_root.'/core/antispamimage.php'; ?>" border="0" width="128" height="36" /></div>
  59. <?php } ?>
  60. </div>
  61. <input type="submit" data-theme="b" value="<?php echo $langs->trans('Connection'); ?>" />
  62. </form>
  63. </div><!-- /content -->
  64. <?php if ($forgetpasslink || $helpcenterlink) { ?>
  65. <div data-role="footer" data-id="foo1" data-theme="b">
  66. <div data-role="navbar">
  67. <ul>
  68. <li>
  69. <?php if ($forgetpasslink) { ?>
  70. <a href="<?php echo $dol_url_root.'/user/passwordforgotten.php'; ?>" data-icon="gear"><?php echo $langs->trans('PasswordForgotten'); ?></a>
  71. <?php } ?>
  72. </li>
  73. <li>
  74. <?php if ($helpcenterlink && 1 == 2) { ?>
  75. <a href="<?php echo $dol_url_root.'/support/index.php'; ?>" data-icon="info"><?php echo $langs->trans('NeedHelpCenter'); ?></a>
  76. <?php } ?>
  77. </li>
  78. </ul>
  79. </div>
  80. </div>
  81. <?php } ?>
  82. </div><!-- /page -->
  83. <?php if ($dol_loginmesg) { ?>
  84. <script type="text/javascript">
  85. alert('<?php echo $dol_loginmesg; ?>');
  86. </script>
  87. <?php } ?>
  88. <!-- END LOGIN SMARTPHONE TEMPLATE -->
  89. </body>
  90. </html>