/htdocs/theme/phones/smartphone/tpl/login.tpl.php
PHP | 104 lines | 74 code | 14 blank | 16 comment | 10 complexity | 3be396ca537803bd6f5aeb011fd4f8a1 MD5 | raw file
Possible License(s): LGPL-2.0
- <?php
- /* Copyright (C) 2009-2010 Regis Houssin <regis@dolibarr.fr>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- top_httphead();
- ?>
- <!DOCTYPE html>
- <html>
- <?php
- include('header.tpl.php');
- ?>
- <body>
- <script type="text/javascript">
- jQuery(document).bind("mobileinit", function(){
- jQuery.mobile.defaultTransition('pop');
- });
- </script>
- <!-- START LOGIN SMARTPHONE TEMPLATE -->
- <div data-role="page" id="dol-home" data-theme="b">
- <div data-role="header" data-nobackbtn="true" data-theme="b">
- <div id="dol-homeheader">
- <?php
- $appli='Dolibarr';
- if (! empty($conf->global->MAIN_APPLICATION_TITLE)) $appli=$conf->global->MAIN_APPLICATION_TITLE;
- print $appli;
- ?>
- </div>
- </div>
- <div data-role="content">
- <form id="login" class="loginform" name="login" method="post" action="<?php echo $php_self; ?>">
- <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
- <input type="hidden" name="loginfunction" value="loginfunction" />
- <div data-role="fieldcontain">
- <label for="username"><?php echo $langs->trans('Login'); ?></label>
- <input type="text" name="username" id="username" value="<?php echo $login; ?>" />
- <br><label for="password"><?php echo $langs->trans('Password'); ?></label>
- <input type="password" name="password" id="password" value="<?php echo $password; ?>" />
- <?php if ($select_entity) { ?>
- <br><label for="entity" class="select"><?php echo $langs->trans('Entity'); ?></label>
- <?php echo $select_entity; ?>
- <?php } ?>
- <?php if ($captcha) { ?>
- <label for="securitycode"><?php echo $langs->trans('SecurityCode'); ?></label>
- <input type="text" id="securitycode" name="securitycode" />
- <div align="center"><img src="<?php echo $dol_url_root.'/core/antispamimage.php'; ?>" border="0" width="128" height="36" /></div>
- <?php } ?>
- </div>
- <input type="submit" data-theme="b" value="<?php echo $langs->trans('Connection'); ?>" />
- </form>
- </div><!-- /content -->
- <?php if ($forgetpasslink || $helpcenterlink) { ?>
- <div data-role="footer" data-id="foo1" data-theme="b">
- <div data-role="navbar">
- <ul>
- <li>
- <?php if ($forgetpasslink) { ?>
- <a href="<?php echo $dol_url_root.'/user/passwordforgotten.php'; ?>" data-icon="gear"><?php echo $langs->trans('PasswordForgotten'); ?></a>
- <?php } ?>
- </li>
- <li>
- <?php if ($helpcenterlink && 1 == 2) { ?>
- <a href="<?php echo $dol_url_root.'/support/index.php'; ?>" data-icon="info"><?php echo $langs->trans('NeedHelpCenter'); ?></a>
- <?php } ?>
- </li>
- </ul>
- </div>
- </div>
- <?php } ?>
- </div><!-- /page -->
- <?php if ($dol_loginmesg) { ?>
- <script type="text/javascript">
- alert('<?php echo $dol_loginmesg; ?>');
- </script>
- <?php } ?>
- <!-- END LOGIN SMARTPHONE TEMPLATE -->
- </body>
- </html>