]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Users/Changenewpassword.tpl
Release 6.5.0
[Github/sugarcrm.git] / modules / Users / Changenewpassword.tpl
1 {*
2
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6  * 
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Affero General Public License version 3 as published by the
9  * Free Software Foundation with the addition of the following permission added
10  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13  * 
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
17  * details.
18  * 
19  * You should have received a copy of the GNU Affero General Public License along with
20  * this program; if not, see http://www.gnu.org/licenses or write to the Free
21  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  * 02110-1301 USA.
23  * 
24  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26  * 
27  * The interactive user interfaces in modified source and object code versions
28  * of this program must display Appropriate Legal Notices, as required under
29  * Section 5 of the GNU Affero General Public License version 3.
30  * 
31  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32  * these Appropriate Legal Notices must retain the display of the "Powered by
33  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34  * technical reasons, the Appropriate Legal Notices must display the words
35  * "Powered by SugarCRM".
36  ********************************************************************************/
37
38
39
40
41 *}
42 {literal}
43 <script type='text/javascript'>
44 <!--
45 var ERR_RULES_NOT_MET = '{/literal}{$MOD.ERR_RULES_NOT_MET}{literal}';
46 var ERR_ENTER_OLD_PASSWORD = '{/literal}{$MOD.ERR_ENTER_OLD_PASSWORD}{literal}';
47 var ERR_ENTER_NEW_PASSWORD = '{/literal}{$MOD.ERR_ENTER_NEW_PASSWORD}{literal}';
48 var ERR_ENTER_CONFIRMATION_PASSWORD = '{/literal}{$MOD.ERR_ENTER_CONFIRMATION_PASSWORD}{literal}';
49 var ERR_REENTER_PASSWORDS = '{/literal}{$MOD.ERR_REENTER_PASSWORDS}{literal}';
50 -->
51 </script>
52 <script type='text/javascript' src='{/literal}{sugar_getjspath file="modules/Users/PasswordRequirementBox.js"}{literal}'></script>
53 <style type="text/css">
54 <!--
55 .body 
56
57     font-size: 12px;
58 }
59     
60 .buttonLogin 
61 {
62     border: 1px solid #444444;
63     font-size: 11px;
64     color: #ffffff;
65     background-color: #666666;
66     font-weight: bold;
67 }
68     
69 table.tabForm td 
70 {
71     border: none;
72 }
73
74
75 {
76     MARGIN-TOP: 0px;
77     MARGIN-BOTTOM: 10px;
78 }
79     
80 form 
81 {
82     margin: 0px;
83 }
84     
85 #recaptcha_image 
86 {
87     height: 47.5px !important;
88     width: 250px !important;
89 }
90
91 #recaptcha_image img 
92 {
93     height: 47.5px;
94     width: 250px;
95 }       
96 -->
97 </style>
98 {/literal}
99
100 <form action="index.php" method="post" name="ChangePasswordForm" id="ChangePasswordForm" onsubmit="return document.getElementById('cant_login').value == ''">
101 <table cellpadding="0" align="center" width="100%" cellspacing="0" border="0">
102 <tr>
103 <td>
104 <table cellpadding="0"  cellspacing="0" border="0" align="center">
105 <tr>
106 <td style="padding-bottom: 10px;" ><b>{$MOD.LBL_LOGIN_WELCOME_TO}</b><br />
107 <img src="{$sugar_md}" alt="Sugar" width="340" height="25" /></td>
108 </tr>
109 <tr>
110 <td align="center">
111
112                 <table cellpadding="0" cellspacing="2" border="0" align="center" width="100%" class="edit view">
113                 <tr>
114                         <td colspan="2" width="100%" style="font-size: 12px; padding-bottom: 5px; font-weight: normal;">{$INSTRUCTION}</td>
115                 </tr>
116                         <input type="hidden" name="entryPoint" value="{$ENTRY_POINT}" />
117                         <input type='hidden' name='action' value="{$ACTION}" />
118                         <input type='hidden' name='module' value="{$MODULE}" />
119                         <input type="hidden" name="guid" value="{$GUID}" />
120                         <input type="hidden" name="return_module" value="Home" />
121                         <input type="hidden" name="login" value="1" />
122                         <input type="hidden" name="is_admin" value="{$IS_ADMIN}" />
123                         <input type="hidden" name="cant_login" id="cant_login" value="" />
124                         <input type="hidden" name="old_password" id="old_password" value="" />
125                         <input type="hidden" name="password_change" id="password_change" value="true" />
126                         <input type="hidden" value="" name="user_password" id="user_password" />
127                         <input type="hidden" name="page" value="Change" />
128                         <input type="hidden" name="return_id" value="{$ID}" />
129                         <input type="hidden" name="return_action" value="{$return_action}" />
130                         <input type="hidden" name="record" value="{$ID}" />
131                         <input type="hidden" name="user_name" value="{$USER_NAME}" />
132                         <input type='hidden' name='saveConfig' value='0' />
133                 <tr>
134                         <td  colspan='2'><span id='post_error' class="error">{$EXPIRATION_TYPE}&nbsp;</span></td>
135                 </tr>
136                 
137                 <tr>
138                 {if $OLD_PASSWORD_FIELD == '' &&  $USERNAME_FIELD == '' }
139                 <td  width="30%"></td><td></td>
140                 {/if}
141                         {$OLD_PASSWORD_FIELD}
142                         {$USERNAME_FIELD}
143                 </tr>
144                 <tr>
145                         <td scope="row">{$MOD.LBL_NEW_PASSWORD}:</td>
146                         <td width="30%"><input type="password" size="26" tabindex="2" id="new_password" name="new_password" value="" onkeyup="password_confirmation();newrules('{$PWDSETTINGS.minpwdlength}','{$PWDSETTINGS.maxpwdlength}','{$REGEX}');" /></td>
147                 </tr>
148                 <tr>
149                         <td scope="row">{$MOD.LBL_NEW_PASSWORD2}:</td>
150                         <td width="30%"><input type="password" size="26" tabindex="2" id="confirm_pwd" name="confirm_pwd" value="" onkeyup="password_confirmation();" /> <div id="comfirm_pwd_match" class="error" style="display: none;">mis-match</div></td>
151                 </tr>
152                 <tr>
153                         <td>{$CAPTCHA}</td>
154                 </tr>
155                 <tr>
156                         <td>&nbsp;</td>
157                         <td>
158                         {$SUBMIT_BUTTON}
159                         </td>           
160                 </tr>
161                 </table>
162         </td>
163 </tr>
164 </table>
165 </td>
166 </tr>
167 </table>
168 </form>