<?php
/* Smarty version 4.3.2, created on 2024-04-08 17:33:42
  from '/var/www/html/public/legacy/modules/Administration/PasswordManager.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.2',
  'unifunc' => 'content_66142a76b0ba86_85740113',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ff745d438e052824d1cc85143d44f657da7b63b6' => 
    array (
      0 => '/var/www/html/public/legacy/modules/Administration/PasswordManager.tpl',
      1 => 1709743135,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:modules/Administration/PasswordManagerSecurity.tpl' => 1,
  ),
),false)) {
function content_66142a76b0ba86_85740113 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_help.php','function'=>'smarty_function_sugar_help',),1=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_getimagepath.php','function'=>'smarty_function_sugar_getimagepath',),));
?>
<form name="ConfigurePasswordSettings" method="POST" action="index.php" class="password-manager">
<input type='hidden' name='action' value='PasswordManager'/>
<input type='hidden' name='module' value='Administration'/>
<input type='hidden' name='saveConfig' value='1'/>
<span class='error'><?php echo $_smarty_tpl->tpl_vars['error']->value['main'];?>
</span>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="actionsContainer">
	<tr>
		<td class="action-button-top">
			<input title="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SAVE_BUTTON_TITLE'];?>
" accessKey="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SAVE_BUTTON_KEY'];?>
" class="button primary" id="btn_save" type="submit" onclick="addcheck(form);return check_form('ConfigurePasswordSettings');"  name="save" value="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SAVE_BUTTON_LABEL'];?>
" >
			&nbsp;<input title="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CANCEL_BUTTON_TITLE'];?>
" id="btn_cancel" onclick="document.location.href='index.php?module=Administration&action=index'" class="button"  type="button" name="cancel" value="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_CANCEL_BUTTON_LABEL'];?>
" >
		</td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<table id="sysGeneratedId" name="sysGeneratedName" width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
					<tr>
						<th align="left" scope="row" colspan="4">
							<h4>
								<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_SYST_GENERATED_TITLE'];?>

							</h4>
						</th>
							</tr>
								<tr>
									<td  scope="row" width='25%'>
										<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_SYST_GENERATED_PWD_ON'];?>
:&nbsp<?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_SYST_GENERATED_PWD_HELP'],'WIDTH'=>400),$_smarty_tpl);?>

									</td>
									<td >
									<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['SystemGeneratedPasswordON']) == '1') {?>
										<?php $_smarty_tpl->_assignInScope('SystemGeneratedPasswordON', 'CHECKED');?>
									<?php } else { ?>
										<?php $_smarty_tpl->_assignInScope('SystemGeneratedPasswordON', '');?>
									<?php }?>
										<input type='hidden' name='passwordsetting_SystemGeneratedPasswordON' value='0'>
										<input name='passwordsetting_SystemGeneratedPasswordON' id='SystemGeneratedPassword_checkbox'   type='checkbox' value='1' <?php echo $_smarty_tpl->tpl_vars['SystemGeneratedPasswordON']->value;?>
 onclick='enable_syst_generated_pwd(this);toggleDisplay("SystemGeneratedPassword_warning");'>
									</td>
									<?php if (!($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['SystemGeneratedPasswordON'])) {?>
										<?php $_smarty_tpl->_assignInScope('smtp_warning', 'none');?>
									<?php }?>
								</tr>
								<tr>
									<td colspan="2" id="SystemGeneratedPassword_warning" scope="row" style='display:<?php echo $_smarty_tpl->tpl_vars['smtp_warning']->value;?>
';>
									<i><?php if ($_smarty_tpl->tpl_vars['SMTP_SERVER_NOT_SET']->value) {?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['MOD']->value['ERR_SMTP_SERVER_NOT_SET'];?>
<br><?php }?>
									&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_EMAIL_ADDRESS_REQUIRED_FOR_FEATURE'];?>
</i>
								</td>
								</tr>
								<tr>
									<td align="left" scope="row" colspan="4">
											<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_SYST_EXPIRATION'];?>

									</td>
								</tr>
								<tr>
									<td colspan='4'>
										<table width="100%" id='syst_generated_pwd_table' border="0" cellspacing="1" cellpadding="0">
											<tr>
													<?php $_smarty_tpl->_assignInScope('systexplogin', '');?>
													<?php $_smarty_tpl->_assignInScope('systexptime', '');?>
													<?php $_smarty_tpl->_assignInScope('systexpnone', '');?>
												<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpiration']) == '0' || $_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpiration'] == '') {?>
													<?php $_smarty_tpl->_assignInScope('systexpnone', 'CHECKED');?>
												<?php }?>
												<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpiration']) == '1') {?>
													<?php $_smarty_tpl->_assignInScope('systexptime', 'CHECKED');?>
												<?php }?>
												<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpiration']) == '2') {?>
													<?php $_smarty_tpl->_assignInScope('systexplogin', 'CHECKED');?>
												<?php }?>
												<td width='30%'>
													<input type="radio"  name="passwordsetting_systexpiration"  value='0' <?php echo $_smarty_tpl->tpl_vars['systexpnone']->value;?>
 onclick="form.passwordsetting_systexpirationtime.value='';form.passwordsetting_systexpirationlogin.value='';">
													<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_UW_NONE'];?>

												</td>
												<td  width='30%'>
													<input type="radio"  name="passwordsetting_systexpiration" id="required_sys_pwd_exp_time" value='1' <?php echo $_smarty_tpl->tpl_vars['systexptime']->value;?>
 onclick="form.passwordsetting_systexpirationlogin.value='';">
													<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_EXP_IN'];?>

													<?php $_smarty_tpl->_assignInScope('sdays', '');?>
													<?php $_smarty_tpl->_assignInScope('sweeks', '');?>
													<?php $_smarty_tpl->_assignInScope('smonths', '');?>
												<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpirationtype']) == '1') {?>
													<?php $_smarty_tpl->_assignInScope('sdays', 'SELECTED');?>
												<?php }?>
												<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpirationtype']) == '7') {?>
													<?php $_smarty_tpl->_assignInScope('sweeks', 'SELECTED');?>
												<?php }?>
												<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpirationtype']) == '30') {?>
													<?php $_smarty_tpl->_assignInScope('smonths', 'SELECTED');?>
												<?php }?>
													<input type='text' maxlength="3" and style="width:2em"  name='passwordsetting_systexpirationtime' value='<?php echo $_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpirationtime'];?>
'>
													<SELECT  NAME="passwordsetting_systexpirationtype">
														<OPTION VALUE='1' <?php echo $_smarty_tpl->tpl_vars['sdays']->value;?>
><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_DAYS'];?>

														<OPTION VALUE='7' <?php echo $_smarty_tpl->tpl_vars['sweeks']->value;?>
><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_WEEKS'];?>

														<OPTION VALUE='30' <?php echo $_smarty_tpl->tpl_vars['smonths']->value;?>
><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MONTHS'];?>

													</SELECT>
												</td>
												<td colspan='2' width='40%'>
													<input type="radio" name="passwordsetting_systexpiration"  id="required_sys_pwd_exp_login" value='2' <?php echo $_smarty_tpl->tpl_vars['systexplogin']->value;?>
 onclick="form.passwordsetting_systexpirationtime.value='';">
													<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_EXP_AFTER'];?>

													<input type='text' maxlength="3" and style="width:2em"  name='passwordsetting_systexpirationlogin' value="<?php echo $_smarty_tpl->tpl_vars['config']->value['passwordsetting']['systexpirationlogin'];?>
">
													<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_LOGINS'];?>

												</td>
											</tr>
										</table>
									</td>
								</tr>
			</table>

			<!-- PASSWORD SECURITY SETTINGS -->
			<table id="pwdsec_table" width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
				<tr>
					<td><?php $_smarty_tpl->_subTemplateRender("file:modules/Administration/PasswordManagerSecurity.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?></td>
				</tr>
			</table>
			<!-- END PASSWORD SECURITY SETTINGS -->


			<table id="userResetPassId" name="userResetPassName" width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
							<tr>
								<th align="left" scope="row" colspan="2"><h4><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_USER_RESET'];?>
</h4>
								</th>
							</tr>
							<tr>

											<td width="25%" scope="row"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_FORGOT_FEATURE'];?>
:&nbsp<?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_FORGOT_FEATURE_HELP'],'WIDTH'=>400),$_smarty_tpl);?>
</td>
											<td scope="row" width="25%" >
												<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['forgotpasswordON']) == '1') {?>
													<?php $_smarty_tpl->_assignInScope('forgotpasswordON', 'CHECKED');?>
												<?php } else { ?>
													<?php $_smarty_tpl->_assignInScope('forgotpasswordON', '');?>
												<?php }?>
												<input type='hidden' name='passwordsetting_forgotpasswordON' value='0'>
												<input name="passwordsetting_forgotpasswordON" id="forgotpassword_checkbox" value="1" class="checkbox" type="checkbox"  onclick='forgot_password_enable(this); toggleDisplay("SystemGeneratedPassword_warning2");' <?php echo $_smarty_tpl->tpl_vars['forgotpasswordON']->value;?>
>
											</td>
											<?php if (!($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['forgotpasswordON'])) {?>
												<?php $_smarty_tpl->_assignInScope('smtp_warning_2', 'none');?>
											<?php }?>
										</tr>
										<tr><td colspan="4" id="SystemGeneratedPassword_warning2" scope="row" style='display:<?php echo $_smarty_tpl->tpl_vars['smtp_warning_2']->value;?>
';>
											<i><?php if ($_smarty_tpl->tpl_vars['SMTP_SERVER_NOT_SET']->value) {?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['MOD']->value['ERR_SMTP_SERVER_NOT_SET'];?>
<br><?php }?>
											&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_EMAIL_ADDRESS_REQUIRED_FOR_FEATURE'];?>
</i>
											</td>
										</tr>
										<tr>
										<td width="25%" scope="row"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_LINK_EXPIRATION'];?>
:&nbsp<?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_LINK_EXPIRATION_HELP'],'WIDTH'=>400),$_smarty_tpl);?>
</td>
											<td colspan="3">
												<table width="100%" border="0" cellspacing="0" cellpadding="0" id="forgot_password_table">
													<tr>

											    		<?php $_smarty_tpl->_assignInScope('linkexptime', '');?>
			                                                <?php $_smarty_tpl->_assignInScope('linkexpnone', '');?>
			                                            <?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['linkexpiration']) == '0') {?>
			                                                <?php $_smarty_tpl->_assignInScope('linkexpnone', 'CHECKED');?>
			                                            <?php }?>
			                                            <?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['linkexpiration']) == '1') {?>
			                                                <?php $_smarty_tpl->_assignInScope('linkexptime', 'CHECKED');?>
			                                            <?php }?>
			                                            <td  width='30%'>
			                                                <input type="radio" name="passwordsetting_linkexpiration" value='0'  <?php echo $_smarty_tpl->tpl_vars['linkexpnone']->value;?>
  onclick="form.passwordsetting_linkexpirationtime.value='';">
			                                               <?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_UW_NONE'];?>

			                                            </td>
			    										<td  width='30%'>
															<input type="radio" name="passwordsetting_linkexpiration" id="required_link_exp_time" value='1'  <?php echo $_smarty_tpl->tpl_vars['linkexptime']->value;?>
>
															<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_LINK_EXP_IN'];?>

															<?php $_smarty_tpl->_assignInScope('ldays', '');?>
															<?php $_smarty_tpl->_assignInScope('lweeks', '');?>
															<?php $_smarty_tpl->_assignInScope('lmonths', '');?>
														<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['linkexpirationtype']) == '1') {?>
															<?php $_smarty_tpl->_assignInScope('ldays', 'SELECTED');?>
														<?php }?>
														<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['linkexpirationtype']) == '60') {?>
															<?php $_smarty_tpl->_assignInScope('lweeks', 'SELECTED');?>
														<?php }?>
														<?php if (($_smarty_tpl->tpl_vars['config']->value['passwordsetting']['linkexpirationtype']) == '1440') {?>
															<?php $_smarty_tpl->_assignInScope('lmonths', 'SELECTED');?>
														<?php }?>
															<input type='text' maxlength="3" and style="width:2em" name='passwordsetting_linkexpirationtime'  value='<?php echo $_smarty_tpl->tpl_vars['config']->value['passwordsetting']['linkexpirationtime'];?>
'>
															<SELECT   NAME="passwordsetting_linkexpirationtype">
																<OPTION VALUE='1' <?php echo $_smarty_tpl->tpl_vars['ldays']->value;?>
><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MINUTES'];?>

																<OPTION VALUE='60' <?php echo $_smarty_tpl->tpl_vars['lweeks']->value;?>
><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_HOURS'];?>

																<OPTION VALUE='1440' <?php echo $_smarty_tpl->tpl_vars['lmonths']->value;?>
><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_DAYS'];?>

															</SELECT>
														</td width='40%'>
														<td >
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
										<?php if (!empty($_smarty_tpl->tpl_vars['settings']->value['captcha_on']) || !($_smarty_tpl->tpl_vars['VALID_PUBLIC_KEY']->value)) {?>
											<?php $_smarty_tpl->_assignInScope('captcha_checked', 'CHECKED');?>
										<?php } else { ?>
											<?php $_smarty_tpl->_assignInScope('captcha_checked', '');?>
										<?php }?>
											<td width="25%" scope="row"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['ENABLE_CAPTCHA'];?>
:&nbsp<?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_CAPTCHA_HELP_TEXT'],'WIDTH'=>400),$_smarty_tpl);?>
</td>
											<td scope="row" width="75%"><input type='hidden' name='captcha_on' value='0'><input name="captcha_on" id="captcha_id" value="1" class="checkbox" tabindex='1' type="checkbox" onclick='document.getElementById("captcha_config_display").style.display=this.checked?"":"none";' <?php echo $_smarty_tpl->tpl_vars['captcha_checked']->value;?>
></td>
										</tr>
									</table>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td colspan="4">
												<div id="captcha_config_display" style="display:<?php echo $_smarty_tpl->tpl_vars['CAPTCHA_CONFIG_DISPLAY']->value;?>
">
													<table width="100%" cellpadding="0" cellspacing="0">
													<tr>
														<td width="10%" scope="row"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PUBLIC_KEY'];?>
<span class="required">*</span></td>
														<td width="40%" ><input type="text" name="captcha_public_key" id="captcha_public_key" size="45"  value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['captcha_public_key'];?>
" tabindex='1' onblur="this.value=this.value.replace(/^\s+/,'').replace(/\s+$/,'')"></td>
														<td width="10%" scope="row"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PRIVATE_KEY'];?>
<span class="required">*</span></td>
														<td width="40%" ><input type="text" name="captcha_private_key" size="45"  value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['captcha_private_key'];?>
" tabindex='1' onblur="this.value=this.value.replace(/^\s+/,'').replace(/\s+$/,'')"></td>
													</tr>
													</table>
												</div>
											</td>
										</tr>
									<?php if (!($_smarty_tpl->tpl_vars['VALID_PUBLIC_KEY']->value)) {?>
										<tr><td scope="row"><span class='error'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['ERR_PUBLIC_CAPTCHA_KEY'];?>
</span></td></tr>
									<?php }?>
									</table>




						<table id="emailTemplatesId" name="emailTemplatesName" width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
							<tr>
								<th align="left" scope="row" colspan="4">
									<h4>
										<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_TEMPLATE'];?>

									</h4>
								</th>
							</tr>

										<tr>
									        <td  scope="row" width="25%"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_GENERATE_TEMPLATE_MSG'];?>
: </td>
									        <td>
										        <span class="action-btn-create-edit">
									        		<select tabindex='251' id="generatepasswordtmpl" name="passwordsetting_generatepasswordtmpl" <?php echo $_smarty_tpl->tpl_vars['IE_DISABLED']->value;?>
><?php echo $_smarty_tpl->tpl_vars['TMPL_DRPDWN_GENERATE']->value;?>
</select>													
													<input type="button" class="button" onclick="javascript:open_email_template_form('generatepasswordtmpl')" value="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_CREATE_TEMPLATE'];?>
" <?php echo $_smarty_tpl->tpl_vars['IE_DISABLED']->value;?>
>
													<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_EDIT_TEMPLATE'];?>
" class="button" onclick="javascript:edit_email_template_form('generatepasswordtmpl')" name='edit_generatepasswordtmpl' id='edit_generatepasswordtmpl' style="<?php echo $_smarty_tpl->tpl_vars['EDIT_TEMPLATE']->value;?>
">
												</span>
									        </td>
									        <td ></td>
									        <td  ></td>
										</tr>
										<tr>
									        <td  scope="row"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_LOST_TEMPLATE_MSG'];?>
: </td>
									        <td  >
							        			<span>
									        		<select tabindex='251' id="lostpasswordtmpl" name="passwordsetting_lostpasswordtmpl" <?php echo $_smarty_tpl->tpl_vars['IE_DISABLED']->value;?>
><?php echo $_smarty_tpl->tpl_vars['TMPL_DRPDWN_LOST']->value;?>
</select>
													<input type="button" class="button" onclick="javascript:open_email_template_form('lostpasswordtmpl')" value="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_CREATE_TEMPLATE'];?>
" <?php echo $_smarty_tpl->tpl_vars['IE_DISABLED']->value;?>
>
													<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_EDIT_TEMPLATE'];?>
" class="button" onclick="javascript:edit_email_template_form('lostpasswordtmpl')" name='edit_lostpasswordtmpl' id='edit_lostpasswordtmpl' style="<?php echo $_smarty_tpl->tpl_vars['EDIT_TEMPLATE']->value;?>
">
												</span>
							        		 </td>
									        <td ></td>
									        <td ></td>
										</tr>


							<tr>
								<td  scope="row"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_TWO_FACTOR_AUTH_EMAIL_TPL'];?>
: </td>
								<td>
									<span>
										<select tabindex='251' id="factoremailtmpl"
                                                name="passwordsetting_factoremailtmpl" <?php echo $_smarty_tpl->tpl_vars['IE_DISABLED']->value;?>
><?php echo $_smarty_tpl->tpl_vars['TMPL_DRPDWN_FACTOR']->value;?>
</select>
										<input type="button" class="button"
                                               onclick="open_email_template_form('factoremailtmpl')"
                                               value="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_CREATE_TEMPLATE'];?>
" <?php echo $_smarty_tpl->tpl_vars['IE_DISABLED']->value;?>
>
										<input type="button" value="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_PASSWORD_EDIT_TEMPLATE'];?>
" class="button"
                                               onclick="edit_email_template_form('factoremailtmpl')"
                                               name='edit_factoremailtmpl' id='edit_factoremailtmpl'
                                               style="<?php echo $_smarty_tpl->tpl_vars['EDIT_TEMPLATE']->value;?>
">
									</span>
                        </td>
								<td ></td>
								<td ></td>
							</tr>
						</table>


							<?php if (!empty($_smarty_tpl->tpl_vars['settings']->value['system_ldap_enabled'])) {?>
									<?php $_smarty_tpl->_assignInScope('system_ldap_enabled_checked', 'CHECKED');?>
									<?php $_smarty_tpl->_assignInScope('ldap_display', 'table');?>
								<?php } else { ?>
									<?php $_smarty_tpl->_assignInScope('system_ldap_enabled_checked', '');?>
									<?php $_smarty_tpl->_assignInScope('ldap_display', 'none');?>
							<?php }?>
							<table id='ldap_table' width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
								<tr>
									<td>
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<th align="left" scope="row" colspan='3'><h4><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_TITLE'];?>
</h4></th>
											</tr>
											<tr>
												<th align="left" scope="row" colspan='3'>
													<div>
														<div>
															<span class="label label-warning" style="text-transform: none;"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_LEGACY_WARNING'];?>
</span>
														</div>
														<div class="panel-body" style="text-transform: none; margin-top:10px">
															<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_LEGACY_WARNING_MORE'];?>

														</div>
													</div>

												</th>
											</tr>
											<tr>
												<td width="25%" scope="row" valign='middle'>
													<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_ENABLE'];
echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_HELP_TXT']),$_smarty_tpl);?>

												</td>
												<td width="75%" valign='middle'>
													<input name="system_ldap_enabled" id="system_ldap_enabled" class="checkbox"  type="checkbox" <?php echo $_smarty_tpl->tpl_vars['system_ldap_enabled_checked']->value;?>
 onclick='toggleDisplay("ldap_display");enableDisablePasswordTable("system_ldap_enabled");'>
												</td>
											</tr>
											<tr>
												<td colspan='2'>
													<table  cellspacing='0' cellpadding='1' id='ldap_display' style='display:<?php echo $_smarty_tpl->tpl_vars['ldap_display']->value;?>
' width='100%'>
														<tr>
															<td width='25%' scope="row" valign='top' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_SERVER_HOSTNAME'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_SERVER_HOSTNAME_DESC']),$_smarty_tpl);?>
</td><?php echo $_smarty_tpl->tpl_vars['settings']->value['proxy_host'];?>

															<td width='25%' align="left"  valign='top'><input name="ldap_hostname" size='35' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_hostname'];?>
"></td>
															<td width='25%' scope="row" valign='top' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_SERVER_PORT'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_SERVER_PORT_DESC']),$_smarty_tpl);?>
</td><?php echo $_smarty_tpl->tpl_vars['settings']->value['proxy_port'];?>

															<td width='25%' align="left"  valign='top' ><input name="ldap_port" size='35' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_port'];?>
"></td>
														</tr>
														<tr>
															<td scope="row" valign='middle' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_USER_DN'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_USER_DN_DESC']),$_smarty_tpl);?>
</td>
															<td align="left"  valign='middle'><input name="ldap_base_dn" size='35' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_base_dn'];?>
"></td>
															<td scope="row" valign='middle' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_USER_FILTER'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_USER_FILTER_DESC']),$_smarty_tpl);?>
</td>
															<td align="left"  valign='middle'><input name="ldap_login_filter" size='35' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_login_filter'];?>
"></td>
														</tr>
														<tr>
															<td scope="row" valign='top' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_BIND_ATTRIBUTE'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_BIND_ATTRIBUTE_DESC']),$_smarty_tpl);?>
</td>
															<td align="left"  valign='top'><input name="ldap_bind_attr" size='35' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_bind_attr'];?>
"> </td>
															<td scope="row" valign='middle' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_LOGIN_ATTRIBUTE'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_LOGIN_ATTRIBUTE_DESC']),$_smarty_tpl);?>
</td>
															<td align="left"  valign='middle'><input name="ldap_login_attr" size='35' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_login_attr'];?>
"></td>
														</tr>
														<tr>
															<td scope="row" valign='top'nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_MEMBERSHIP'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_MEMBERSHIP_DESC']),$_smarty_tpl);?>
</td>
															<td align="left"  valign='top'>
															<?php if (!empty($_smarty_tpl->tpl_vars['settings']->value['ldap_group'])) {?>
																<?php $_smarty_tpl->_assignInScope('ldap_group_checked', 'CHECKED');?>
																<?php $_smarty_tpl->_assignInScope('ldap_group_display', '');?>
															<?php } else { ?>
																<?php $_smarty_tpl->_assignInScope('ldap_group_checked', '');?>
																<?php $_smarty_tpl->_assignInScope('ldap_group_display', 'none');?>
															<?php }?>
																<input name="ldap_group_checkbox" class="checkbox" type="checkbox" <?php echo $_smarty_tpl->tpl_vars['ldap_group_checked']->value;?>
 onclick='toggleDisplay("ldap_group")'>
															</td>
															<td valign='middle' nowrap></td>
															<td align="left"  valign='middle'></td>
														</tr>
														<tr>
															<td></td>
															<td colspan='3'>
																<span id='ldap_group' style='display:<?php echo $_smarty_tpl->tpl_vars['ldap_group_display']->value;?>
'>
																	<table width='100%'>
																		<tr>
																			<td  width='25%' scope="row" valign='top'nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_DN'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_DN_DESC']),$_smarty_tpl);?>
</td>
																			<td  width='25%' align="left"  valign='top'><input name="ldap_group_dn" size='20' type="text"  value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_group_dn'];?>
"></td>
																			<td  width='25%' scope="row" valign='top'nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_NAME'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_NAME_DESC']),$_smarty_tpl);?>
</td>
																			<td  width='25%' align="left"  valign='top'><input name="ldap_group_name" size='20' type="text"  value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_group_name'];?>
"></td>
																		</tr>
																		<tr>
																			<td scope="row" valign='top' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_USER_ATTR'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_USER_ATTR_DESC']),$_smarty_tpl);?>
</td>
																			<td align="left"  valign='top'><input name="ldap_group_user_attr" size='20' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_group_user_attr'];?>
"> </td>
																			<td scope="row" valign='top' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_ATTR'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_ATTR_DESC']),$_smarty_tpl);?>
</td>
																			<td align="left"  valign='top'><input name="ldap_group_attr" size='20' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_group_attr'];?>
"> </td>
																		</tr>
																		<tr>
																			<td scope="row" valign='top' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_ATTR_REQ_DN'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_GROUP_ATTR_REQ_DN_DESC']),$_smarty_tpl);?>
</td>
																			<td align="left" valign='top'>
																			<?php if (!empty($_smarty_tpl->tpl_vars['settings']->value['ldap_group_attr_req_dn'])) {?>
																				<?php $_smarty_tpl->_assignInScope('ldap_group_attr_req_dn', 'CHECKED');?>
																			<?php } else { ?>
																				<?php $_smarty_tpl->_assignInScope('ldap_group_attr_req_dn', 'none');?>
																			<?php }?>
																			<input name="ldap_group_attr_req_dn" class="checkbox" type="checkbox" <?php echo $_smarty_tpl->tpl_vars['ldap_group_attr_req_dn']->value;?>
> </td>
																		</tr>
																	</table>
																 <br>
																</span>
															</td>
														</tr>
														<tr>
															<td scope="row" valign='top'nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_AUTHENTICATION'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_AUTHENTICATION_DESC']),$_smarty_tpl);?>
</td>
															<td align="left"  valign='top' >
															<?php if (!empty($_smarty_tpl->tpl_vars['settings']->value['ldap_authentication'])) {?>
																<?php $_smarty_tpl->_assignInScope('ldap_authentication_checked', 'CHECKED');?>
																<?php $_smarty_tpl->_assignInScope('ldap_authentication_display', '');?>
															<?php } else { ?>
																<?php $_smarty_tpl->_assignInScope('ldap_authentication_checked', '');?>
																<?php $_smarty_tpl->_assignInScope('ldap_authentication_display', 'none');?>
															<?php }?>
															<input name="ldap_authentication_checkbox" class="checkbox"  type="checkbox" <?php echo $_smarty_tpl->tpl_vars['ldap_authentication_checked']->value;?>
 onclick='toggleDisplay("ldap_authentication")'>
															</td>
															<td valign='middle' nowrap></td>
															<td align="left"  valign='middle'></td>
														</tr>
														<tr>
															<td></td>
															<td colspan='3'>
															<span id='ldap_authentication' style='display:<?php echo $_smarty_tpl->tpl_vars['ldap_authentication_display']->value;?>
'>
																<table width='100%' >
																	<tr>
																		<td width='25%' scope="row" valign='top'nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_ADMIN_USER'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_ADMIN_USER_DESC']),$_smarty_tpl);?>
</td>
																		<td width='25%' align="left"  valign='top'><input name="ldap_admin_user" size='20' type="text" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_admin_user'];?>
"></td>
																		<td width='25%' scope="row" valign='middle' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_ADMIN_PASSWORD'];?>
</td>
																		<td width='25%' align="left"  valign='middle'><input name="ldap_admin_password" size='20' type="password" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_admin_password'];?>
"> </td>
																	</tr>
																</table>
																<br>
															</span>
															</td>
														</tr>
														<tr>
															<td scope="row" valign='top' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_AUTO_CREATE_USERS'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_AUTO_CREATE_USERS_DESC']),$_smarty_tpl);?>
</td>
															<?php if (!empty($_smarty_tpl->tpl_vars['settings']->value['ldap_auto_create_users'])) {?>
																<?php $_smarty_tpl->_assignInScope('ldap_auto_create_users_checked', 'CHECKED');?>
															<?php } else { ?>
																<?php $_smarty_tpl->_assignInScope('ldap_auto_create_users_checked', '');?>
															<?php }?>
															<td align="left"  valign='top'><input type='hidden' name='ldap_auto_create_users' value='0'><input name="ldap_auto_create_users" value="1" class="checkbox" type="checkbox" <?php echo $_smarty_tpl->tpl_vars['ldap_auto_create_users_checked']->value;?>
></td>
															<td valign='middle' nowrap></td>
															<td align="left"  valign='middle'></td>
														</tr>
														<tr>
															<td scope="row" valign='middle' nowrap><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_LDAP_ENC_KEY'];?>
 <?php echo smarty_function_sugar_help(array('text'=>$_smarty_tpl->tpl_vars['LDAP_ENC_KEY_DESC']->value),$_smarty_tpl);?>
</td>
															<td align="left"  valign='middle'><input name="ldap_enc_key" size='35' type="password" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['ldap_enc_key'];?>
" <?php echo $_smarty_tpl->tpl_vars['LDAP_ENC_KEY_READONLY']->value;?>
> </td>
															<td valign='middle' nowrap></td>
															<td align="left"  valign='middle'></td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>

			<div class="action-button">
                <input title="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SAVE_BUTTON_TITLE'];?>
" class="button primary" id="btn_save" type="submit" onclick="addcheck(form);return check_form('ConfigurePasswordSettings');" name="save" value="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SAVE_BUTTON_LABEL'];?>
" />
                &nbsp;<input title="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CANCEL_BUTTON_TITLE'];?>
"  onclick="document.location.href='index.php?module=Administration&action=index'" class="button"  type="button" name="cancel" value="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_CANCEL_BUTTON_LABEL'];?>
" />
            </div>
		</td>
	</tr>
</table>
      </td>
   </tr>
</table>
</form>
<?php echo $_smarty_tpl->tpl_vars['JAVASCRIPT']->value;?>



<?php if (!($_smarty_tpl->tpl_vars['VALID_PUBLIC_KEY']->value)) {
echo '<script'; ?>
>
document.getElementById('captcha_public_key').focus();
document.getElementById('captcha_id').checked=true;
document.getElementById('forgotpassword_checkbox').checked=true;
<?php echo '</script'; ?>
>
<?php }?>



<?php echo '<script'; ?>
>
function addcheck(form){
	addForm('ConfigurePasswordSettings');


	if(document.getElementById('forgotpassword_checkbox').checked){
	addToValidate('ConfigurePasswordSettings', 'passwordsetting_linkexpirationtime', 'int', form.required_link_exp_time.checked,"<?php echo $_smarty_tpl->tpl_vars['MOD']->value['ERR_PASSWORD_LINK_EXPIRE_TIME'];?>
 ");
	}

	if(document.getElementById('SystemGeneratedPassword_checkbox').checked){
	addToValidate('ConfigurePasswordSettings', 'passwordsetting_systexpirationtime', 'int', form.required_sys_pwd_exp_time.checked,"<?php echo $_smarty_tpl->tpl_vars['MOD']->value['ERR_PASSWORD_EXPIRE_TIME'];?>
" );
	addToValidate('ConfigurePasswordSettings', 'passwordsetting_systexpirationlogin', 'int', form.required_sys_pwd_exp_login.checked,"<?php echo $_smarty_tpl->tpl_vars['MOD']->value['ERR_PASSWORD_EXPIRE_LOGIN'];?>
" );
   }


	}


function open_email_template_form(fieldToSet) {
	fieldToSetValue = fieldToSet;
	URL="index.php?module=EmailTemplates&action=EditView&inboundEmail=true&show_js=1";
	windowName = 'email_template';
	windowFeatures = 'width=800' + ',height=600' 	+ ',resizable=1,scrollbars=1';

	win = window.open(URL, windowName, windowFeatures);
	if(window.focus)
	{
		// put the focus on the popup if the browser supports the focus() method
		win.focus();
	}
}

function enableDisablePasswordTable(checkbox_id) {
   var other = checkbox_id == "system_saml_enabled" ? "ldap_table" :  "saml_table";
	var enabled = document.getElementById(checkbox_id).checked;
	if (enabled) {
		document.getElementById("emailTemplatesId").style.display = "none";
		document.getElementById("sysGeneratedId").style.display = "none";
		document.getElementById("userResetPassId").style.display = "none";
	} else {
		document.getElementById("emailTemplatesId").style.display = "";
		document.getElementById("sysGeneratedId").style.display = "";
		document.getElementById("userResetPassId").style.display = "";

	}
} // if

function edit_email_template_form(templateField) {
	fieldToSetValue = templateField;
	var field=document.getElementById(templateField);
	URL="index.php?module=EmailTemplates&action=EditView&inboundEmail=true&show_js=1";
	if (field.options[field.selectedIndex].value != 'undefined') {
		URL+="&record="+field.options[field.selectedIndex].value;
	}
	windowName = 'email_template';
	windowFeatures = 'width=800' + ',height=600' 	+ ',resizable=1,scrollbars=1';

	win = window.open(URL, windowName, windowFeatures);
	if(window.focus)
	{
		// put the focus on the popup if the browser supports the focus() method
		win.focus();
	}
}

function refresh_email_template_list(template_id, template_name) {
	var field=document.getElementById(fieldToSetValue);
	var bfound=0;
	for (var i=0; i < field.options.length; i++) {
			if (field.options[i].value == template_id) {
				if (field.options[i].selected==false) {
					field.options[i].selected=true;
				}
				field.options[i].text = template_name;
				bfound=1;
			}
	}
	//add item to selection list.
	if (bfound == 0) {
		var newElement=document.createElement('option');
		newElement.text=template_name;
		newElement.value=template_id;
		field.options.add(newElement);
		newElement.selected=true;
	}

	//enable the edit button.
	var editButtonName = 'edit_generatepasswordtmpl';
	if (fieldToSetValue == 'generatepasswordtmpl') {
		editButtonName = 'edit_lostpasswordtmpl';
	} // if
	var field1=document.getElementById(editButtonName);
	field1.style.visibility="visible";

	var applyListToTemplateField = 'generatepasswordtmpl';
	if (fieldToSetValue == 'generatepasswordtmpl') {
		applyListToTemplateField = 'lostpasswordtmpl';
	} // if
	var field=document.getElementById(applyListToTemplateField);
	if (bfound == 1) {
		for (var i=0; i < field.options.length; i++) {
			if (field.options[i].value == template_id) {
				field.options[i].text = template_name;
			} // if
		} // for

	} else {
		var newElement=document.createElement('option');
		newElement.text=template_name;
		newElement.value=template_id;
		field.options.add(newElement);
	} // else
        
}

function testregex(customregex)
{
try
  {
var string = 'hello';
string.match(customregex.value);
  }
catch(err)
  {
  	alert(SUGAR.language.get("Administration", "ERR_INCORRECT_REGEX"));
  	setTimeout("document.getElementById('customregex').select()",10);
  }
}
function toggleDisplay_2(id){

	if(this.document.getElementById(id).style.display=='none'){
		this.document.getElementById(id).style.display='';
		this.document.getElementById(id+"_lbl").innerHTML='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_HIDE_ADVANCED_OPTIONS'];?>
';
		this.document.getElementById("regex_config_display_img").src = '<?php echo smarty_function_sugar_getimagepath(array('file'=>"basic_search.gif"),$_smarty_tpl);?>
';
	}else{
		this.document.getElementById(id).style.display='none'
		this.document.getElementById(id+"_lbl").innerHTML='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_SHOW_ADVANCED_OPTIONS'];?>
';
		this.document.getElementById("regex_config_display_img").src = '<?php echo smarty_function_sugar_getimagepath(array('file'=>"advanced_search.gif"),$_smarty_tpl);?>
';
	}
}

function forgot_password_enable(check){
var table_fields=document.getElementById('forgot_password_table');
var forgot_password_input=table_fields.getElementsByTagName('input');
var forgot_password_select=table_fields.getElementsByTagName('select');
	if(check.checked){
		for (i=0;i<forgot_password_input.length;i++)
			forgot_password_input[i].disabled='';
		for (j=0;j<forgot_password_select.length;j++)
			forgot_password_select[j].disabled='';
		document.ConfigurePasswordSettings.captcha_on[1].disabled='';
	}else
		{
		document.ConfigurePasswordSettings.captcha_on[1].disabled='disabled';
		document.ConfigurePasswordSettings.captcha_on[1].checked='';
		document.getElementById("captcha_config_display").style.display='none';
		for (i=0;i<forgot_password_input.length;i++)
			forgot_password_input[i].disabled='disabled';
		for (j=0;j<forgot_password_select.length;j++)
			forgot_password_select[j].disabled='disabled';
	}
}

function enable_syst_generated_pwd(check){
var table_fields=document.getElementById('syst_generated_pwd_table');
var syst_generated_pwd_input=table_fields.getElementsByTagName('input');
var syst_generated_pwd_select=table_fields.getElementsByTagName('select');
	if(check.checked){
		for (i=0;i<syst_generated_pwd_input.length;i++)
			syst_generated_pwd_input[i].disabled='';
		for (j=0;j<syst_generated_pwd_select.length;j++)
			syst_generated_pwd_select[j].disabled='';
	}else
		{
		for (i=0;i<syst_generated_pwd_input.length;i++)
			syst_generated_pwd_input[i].disabled='disabled';
		for (j=0;j<syst_generated_pwd_select.length;j++)
			syst_generated_pwd_select[j].disabled='disabled';
	}
}
forgot_password_enable(document.getElementById('forgotpassword_checkbox'));
enable_syst_generated_pwd(document.getElementById('SystemGeneratedPassword_checkbox'));
if(document.getElementById('system_saml_enabled').checked)enableDisablePasswordTable('system_saml_enabled');
if(document.getElementById('system_ldap_enabled').checked)enableDisablePasswordTable('system_ldap_enabled');

<?php echo '</script'; ?>
>


<?php }
}
