]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Users/login.tpl
Release 6.4.0
[Github/sugarcrm.git] / modules / Users / login.tpl
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37 /*********************************************************************************
38
39  ********************************************************************************/
40 -->
41 <script type='text/javascript'>
42 var LBL_LOGIN_SUBMIT = '{sugar_translate module="Users" label="LBL_LOGIN_SUBMIT"}';
43 var LBL_REQUEST_SUBMIT = '{sugar_translate module="Users" label="LBL_REQUEST_SUBMIT"}';
44 var LBL_SHOWOPTIONS = '{sugar_translate module="Users" label="LBL_SHOWOPTIONS"}';
45 var LBL_HIDEOPTIONS = '{sugar_translate module="Users" label="LBL_HIDEOPTIONS"}';
46 </script>
47 <table cellpadding="0" align="center" width="100%" cellspacing="0" border="0">
48         <tr>
49                 <td align="center">
50                 <div class="loginBoxShadow" style="width: 460px;">
51                         <div class="loginBox">
52                         <table cellpadding="0" cellspacing="0" border="0" align="center">
53                                 <tr>
54                                         <td align="left"><b>{sugar_translate module="Users" label="LBL_LOGIN_WELCOME_TO"}</b><br>
55                                             {$LOGIN_IMAGE}
56                                         </td>
57                                 </tr>
58                                 <tr>
59                                         <td align="center">
60                                                 <div class="login">
61                                                         <form action="index.php" method="post" name="DetailView" id="form" onsubmit="return document.getElementById('cant_login').value == ''">
62                                                                 <table cellpadding="0" cellspacing="2" border="0" align="center" width="100%">
63                                                                         {if $LOGIN_ERROR !=''}
64                                                                         <tr>
65                                                                                 <td scope="row" colspan="2"><span class="error">{$LOGIN_ERROR}</span></td>
66                                                         {if $WAITING_ERROR !=''}
67                                                                 <tr>
68                                                                     <td scope="row" colspan="2"><span class="error">{$WAITING_ERROR}</span></td>
69                                                                         </tr>
70                                                                 {/if}
71                                                                         </tr>
72                                                                 {else}
73                                                                         <tr>
74                                                                                 <td scope="row" width='1%'></td>
75                                                                                 <td scope="row"><span id='post_error' class="error"></span></td>
76                                                                         </tr>
77                                                                 {/if}
78                                                                         <tr>
79                                                                                 <td scope="row" colspan="2" width="100%" style="font-size: 12px; font-weight: normal; padding-bottom: 4px;">
80                                                                                 {sugar_translate label="NTC_LOGIN_MESSAGE"}
81                                                                                 <input type="hidden" name="module" value="Users">
82                                                                                 <input type="hidden" name="action" value="Authenticate">
83                                                                                 <input type="hidden" name="return_module" value="Users">
84                                                                                 <input type="hidden" name="return_action" value="Login">
85                                                                                 <input type="hidden" id="cant_login" name="cant_login" value="">
86                                                                                 <input type="hidden" name="login_module" value="{$LOGIN_MODULE}">
87                                                                                 <input type="hidden" name="login_action" value="{$LOGIN_ACTION}">
88                                                                                 <input type="hidden" name="login_record" value="{$LOGIN_RECORD}">
89                                                                                 </td>
90                                                                         </tr>
91                                                                         
92                                     <tr><td>&nbsp;</td></tr>
93                                                                         <tr>
94                                                                                 <td scope="row" width="30%"><label for="user_name">{sugar_translate module="Users" label="LBL_USER_NAME"}:</label></td>
95                                                                                 <td width="70%"><input type="text" size='35' tabindex="1" id="user_name" name="user_name"  value='{$LOGIN_USER_NAME}' /></td>
96                                                                         </tr>
97                                                                         <tr>
98                                                                                 <td scope="row"><label for="user_password">{sugar_translate module="Users" label="LBL_PASSWORD"}:</label></td>
99                                                                                 <td width="30%"><input type="password" size='26' tabindex="2" id="user_password" name="user_password" value='{$LOGIN_PASSWORD}' /></td>
100                                                                         </tr>
101                                                                         {if !empty($SELECT_LANGUAGE)}
102                                                                         
103                                                                         
104                                                                         <tr>
105                                                                             <td scope="row">{sugar_translate module="Users" label="LBL_LANGUAGE"}:</td>
106                                         <td><select style='width: 152px' name='login_language' onchange="switchLanguage(this.value)">{$SELECT_LANGUAGE}</select></td>
107                                                                         </tr>
108                                     <tr><td>&nbsp;</td></tr>
109                                                                         {/if}
110                                                                         <tr>
111                                                                                 <td>&nbsp;</td>
112                                                                                 <td><input title="{sugar_translate module="Users" label="LBL_LOGIN_BUTTON_TITLE"}" accessKey="{sugar_translate module="Users" label="LBL_LOGIN_BUTTON_TITLE"}" class="button primary" type="submit" tabindex="3" id="login_button" name="Login" value="{sugar_translate module="Users" label="LBL_LOGIN_BUTTON_LABEL"}"><br>&nbsp;</td>         
113                                                                         </tr>
114                                                                 </table>
115                                                         </form>
116                                                         <form action="index.php" method="post" name="fp_form" id="fp_form" >
117                                                                 <table cellpadding="0" cellspacing="2" border="0" align="center" width="100%">
118                                                                         <tr>
119                                                                                 <td colspan="2" class="login_more">
120                                                                                 <div  style="cursor: hand; cursor: pointer; display:{$DISPLAY_FORGOT_PASSWORD_FEATURE};" onclick='toggleDisplay("forgot_password_dialog");'>
121                                                                                         <a href='javascript:void(0)'><IMG src="{sugar_getimagepath file='advanced_search.gif'}" border="0" alt="Hide Options" id="forgot_password_dialog_options">{sugar_translate module="Users" label="LBL_LOGIN_FORGOT_PASSWORD"}</a>
122                                                                                 </div>
123                                                                                         <div id="forgot_password_dialog" style="display:none" >
124                                                                                                 <input type="hidden" name="entryPoint" value="GeneratePassword">
125                                                                                                 <table cellpadding="0" cellspacing="2" border="0" align="center" width="100%" >
126                                                                                                         <tr>
127                                                                                                                 <td colspan="2">
128                                                                                                                         <div id="generate_success" class='error' style="display:inline;"> </div>
129                                                                                                                 </td>
130                                                                                                         </tr>
131                                                                                                         <tr>
132                                                                                                                 <td scope="row" width="30%"><label for="fp_user_name">{sugar_translate module="Users" label="LBL_USER_NAME"}:</label></td>
133                                                                                                                 <td width="70%"><input type="text" size='26' id="fp_user_name" name="fp_user_name"  value='{$LOGIN_USER_NAME}' /></td>
134                                                                                                         </tr>
135                                                                                                         <tr>
136                                                                                                     <td scope="row" width="30%"><label for="fp_user_mail">{sugar_translate module="Users" label="LBL_EMAIL"}:</label></td>
137                                                                                                     <td width="70%"><input type="text" size='26' id="fp_user_mail" name="fp_user_mail"  value='' ></td>
138                                                                                                 </tr>
139                                                                                                         {$CAPTCHA}
140                                                                                                         <tr>
141                                                                                                             <td scope="row" width="30%"><div id='wait_pwd_generation'></div></td>
142                                                                                                                 <td width="70%"><input title="Email Temp Password" class="button" type="button" style="display:inline" onclick="validateAndSubmit(); return document.getElementById('cant_login').value == ''" id="generate_pwd_button" name="fp_login" value="{sugar_translate module="Users" label="LBL_LOGIN_SUBMIT"}"></td>
143                                                                                                         </tr>
144                                                                                                 </table>
145                                                                                         </div>
146                                                                                 </td>
147                                                                         </tr>
148                                                                 </table>
149                                                         </form>
150                                                 </div>
151
152
153                                         </td>
154                                 </tr>
155                         </table>
156                         </div>
157
158 </div>
159                 </td>
160         </tr>
161 </table>
162 <br>
163 <br>