<?php
/* Smarty version 3.1.33, created on 2022-01-28 14:29:09
  from '/home/recursosspa/public_html/testlink/gui/templates/usermanagement/usersEdit.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f3fdb59c76f5_13368759',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b023ba31262e28e5192199696d4e77e2278af6db' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/usermanagement/usersEdit.tpl',
      1 => 1643038983,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_update.tpl' => 1,
    'file:error_icon.tpl' => 5,
  ),
),false)) {
function content_61f3fdb59c76f5_13368759 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
?>

<?php
$_smarty_tpl->smarty->ext->configLoad->_loadConfigFile($_smarty_tpl, "input_dimensions.conf", 'login', 0);
?>


<?php $_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('jsValidate'=>"yes",'openHead'=>"yes"), 0, false);
$_smarty_tpl->_subTemplateRender("file:inc_del_onclick.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'warning_empty_login,warning_empty_first_name,warning,btn_save,
             warning_empty_pwd,warning_different_pwd,empty_email_address,
             title_user_mgmt,title_account_settings,menu_edit_user,menu_new_user,
             menu_view_users,menu_define_roles,menu_view_roles,no_good_email_address,expiration_date,created_on,
             menu_assign_testproject_roles,warning_empty_last_name,btn_apikey_generate,show_calender,clear_date,
             menu_assign_testplan_roles,caption_user_details,show_event_history,
             th_login,th_first_name,th_last_name,th_password,th_email,authentication_method,
             th_role,th_locale,th_active,password_mgmt_is_external,demo_update_user_disabled,
             btn_upd_user_data,btn_add,btn_cancel,button_reset_password,demo_reset_password_disabled,title_api_interface'),$_smarty_tpl ) );?>


<?php echo '<script'; ?>
 type="text/javascript">
var alert_box_title = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_login      = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_login'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_first_name = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_first_name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_last_name  = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_last_name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_pwd = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_pwd'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_different_pwd = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_different_pwd'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_email_address = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['empty_email_address'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_no_good_email_address = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['no_good_email_address'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
"; 


function validateForm(f,check_password)
{
  var email_check = <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->validation_cfg->user_email_valid_regex_js;?>
;
  var email_warning;
  var show_email_warning=false;

  if (isWhitespace(f.login.value))
  {
    alert_message(alert_box_title,warning_empty_login);
    selectField(f, 'login');
    return false;
  }

  if (isWhitespace(f.firstName.value))
  {
    alert_message(alert_box_title,warning_empty_first_name);
    selectField(f, 'firstName');
    return false;
  }

  if (isWhitespace(f.lastName.value))
  {
    alert_message(alert_box_title,warning_empty_last_name);
    selectField(f, 'lastName');
    return false;
  }

  if( check_password )
  {
    if (isWhitespace(f.password.value))
    {
      alert_message(alert_box_title,warning_empty_pwd);
      selectField(f, 'password');
      return false;
    }
  }

  if (isWhitespace(f.emailAddress.value))
  {
    show_email_warning=true;
    email_warning=warning_empty_email_address;
  }
  else 
  { 
    if(!email_check.test(f.emailAddress.value))
    {
      show_email_warning=true;
      email_warning=warning_no_good_email_address;
    }
  }

  if( show_email_warning )
  {
    alert_message(alert_box_title,email_warning);
    selectField(f, 'emailAddress');
    return false;
  }

  return true;
}

/**
 *
 */
function managePasswordInputs(oid,targetSetOID)
{
  var source = document.getElementById(oid);
  var targetOID = targetSetOID.split(",");
  var len = 0;
  var idx = 0;
  var elem = '';
  var passwordMgmt = [];  // critic because ww want an array

  <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->authCfg['domain'], 'methodCfg', false, 'methodCode');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['methodCode']->value => $_smarty_tpl->tpl_vars['methodCfg']->value) {
?>
  passwordMgmt['<?php echo $_smarty_tpl->tpl_vars['methodCode']->value;?>
']=<?php if ($_smarty_tpl->tpl_vars['methodCfg']->value['allowPasswordManagement']) {?> 1 <?php } else { ?> 0 <?php }?>;
  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

  // Both work ok
  // alert(source.options[source.selectedIndex].value);
  // alert(source.value);
  len=targetOID.length;
  for(idx=0; idx < len; idx++)
  {
    elem = document.getElementById(targetOID[idx]);
    if(passwordMgmt[source.value])
    {
      elem.style.display = '';
    }  
    else
    {
      elem.style.display = 'none';
    }  
  }
}
<?php echo '</script'; ?>
>

<?php $_smarty_tpl->_assignInScope('ext_location', @constant('TL_EXTJS_RELATIVE_PATH'));?>
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['basehref']->value;
echo $_smarty_tpl->tpl_vars['ext_location']->value;?>
/css/ext-all.css" />
</head>

<body>
<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['gui']->value->main_title;?>
 </h1>
<?php $_smarty_tpl->_subTemplateRender("file:inc_update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('result'=>$_smarty_tpl->tpl_vars['result']->value,'item'=>"user",'action'=>((string)$_smarty_tpl->tpl_vars['action']->value),'user_feedback'=>$_smarty_tpl->tpl_vars['user_feedback']->value), 0, false);
?>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->op->status > 0) {?>
  <?php $_smarty_tpl->_assignInScope('user_id', '');?>
  <?php $_smarty_tpl->_assignInScope('user_login', '');?>
  <?php $_smarty_tpl->_assignInScope('user_login_readonly', '');?>
  <?php $_smarty_tpl->_assignInScope('reset_password_enabled', 0);?>
  <?php $_smarty_tpl->_assignInScope('reset_password_form_style', "display:none");?>
  
  <?php $_smarty_tpl->_assignInScope('show_password_field', 1);?>

  <?php if ($_smarty_tpl->tpl_vars['operation']->value == 'doCreate') {?>
    <?php $_smarty_tpl->_assignInScope('check_password', 1);?>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->user != null) {?>
        <?php $_smarty_tpl->_assignInScope('user_login', $_smarty_tpl->tpl_vars['gui']->value->user->login);?>
      <?php }?>
  <?php } else { ?>
     <?php $_smarty_tpl->_assignInScope('check_password', 0);?>
     <?php $_smarty_tpl->_assignInScope('user_id', $_smarty_tpl->tpl_vars['gui']->value->user->dbID);?>
     <?php $_smarty_tpl->_assignInScope('user_login', $_smarty_tpl->tpl_vars['gui']->value->user->login);?>
     <?php $_smarty_tpl->_assignInScope('user_login_readonly', 'readonly="readonly" disabled="disabled"');?>
     <?php $_smarty_tpl->_assignInScope('reset_password_enabled', 1);?>
     <?php $_smarty_tpl->_assignInScope('reset_password_form_style', "display:");?>
     <?php $_smarty_tpl->_assignInScope('show_password_field', 0);?>
  <?php }?>


  <?php $_smarty_tpl->_assignInScope('auth', $_smarty_tpl->tpl_vars['gui']->value->user->authentication);?>
  <?php if ($_smarty_tpl->tpl_vars['auth']->value == '') {?>
    <?php $_smarty_tpl->_assignInScope('auth', $_smarty_tpl->tpl_vars['gui']->value->authCfg['method']);?>
  <?php }?>  
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->authCfg['domain'][$_smarty_tpl->tpl_vars['auth']->value]['allowPasswordManagement'] == false) {?>
    <?php $_smarty_tpl->_assignInScope('check_password', 0);?>
    <?php $_smarty_tpl->_assignInScope('reset_password_enabled', 0);?>
    <?php $_smarty_tpl->_assignInScope('reset_password_form_style', "display:none");?>
    <?php $_smarty_tpl->_assignInScope('show_password_field', 0);?>
  <?php }?>  




<div class="workBack">
<form method="post" action="lib/usermanagement/usersEdit.php" class="x-form" name="useredit" 
    onSubmit="javascript:return validateForm(this,<?php echo $_smarty_tpl->tpl_vars['check_password']->value;?>
);">
  <input type="hidden" name="user_id" id="user_id_form1" value="<?php echo $_smarty_tpl->tpl_vars['user_id']->value;?>
" />
  <input type="hidden" id="user_login" name="user_login" value="<?php echo $_smarty_tpl->tpl_vars['user_login']->value;?>
" />

  <fieldset class="x-fieldset x-form-label-left" style="width:50%;">
  <legend class="x-fieldset-header x-unselectable" style="-moz-user-select: none;">
  <?php echo $_smarty_tpl->tpl_vars['labels']->value['caption_user_details'];?>

  <?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->mgt_view_events == "yes" && $_smarty_tpl->tpl_vars['user_id']->value) {?>
  <img style="margin-left:5px;" class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['help'];?>
" 
       onclick="showEventHistoryFor('<?php echo $_smarty_tpl->tpl_vars['user_id']->value;?>
','users')"
       alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['show_event_history'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['show_event_history'];?>
"/>
  <?php }?>
  </legend>
  <table class="common">
    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_login'];?>
</th>
      <td><input type="text" name="login" size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'LOGIN_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'LOGIN_MAXLEN');?>
"
      <?php echo $_smarty_tpl->tpl_vars['user_login_readonly']->value;?>
 value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->user->login, ENT_QUOTES, 'UTF-8', true);?>
" required />
      <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"login"), 0, false);
?>
       </td>
    </tr>
    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_first_name'];?>
</th>
      <td><input type="text" name="firstName" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->user->firstName, ENT_QUOTES, 'UTF-8', true);?>
"
           size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'NAMES_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'NAMES_SIZE');?>
" required />
           <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"firstName"), 0, true);
?>
      </td></tr>
    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_last_name'];?>
</th>
      <td><input type="text" name="lastName" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->user->lastName, ENT_QUOTES, 'UTF-8', true);?>
"
           size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'NAMES_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'NAMES_SIZE');?>
" required />
           <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"lastName"), 0, true);
?>
           </td>
    </tr>

    <?php if ($_smarty_tpl->tpl_vars['show_password_field']->value) {?>
      <tr id="passwordContainer">
      <?php if ($_smarty_tpl->tpl_vars['external_password_mgmt']->value == 0) {?>
        <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_password'];?>
</th>
        <td><input type="password" id="password" name="password"
                   size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'PASSWD_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'PASSWD_SIZE');?>
" required />
            <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"password"), 0, true);
?>
        </td>
      <?php }?>
      </tr>
   <?php }?>


    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_email'];?>
</th>
      <td><input type="text" id="email" name="emailAddress" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->user->emailAddress, ENT_QUOTES, 'UTF-8', true);?>
"
                 size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'EMAIL_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'EMAIL_MAXLEN');?>
" required />
          <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"emailAddress"), 0, true);
?>
      </td>
    </tr>
    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_role'];?>
</th>
      <td>
        <?php $_smarty_tpl->_assignInScope('selected_role', $_smarty_tpl->tpl_vars['gui']->value->user->globalRoleID);?>
        <?php if ($_smarty_tpl->tpl_vars['gui']->value->user->globalRoleID == 0) {?>
          <?php $_smarty_tpl->_assignInScope('selected_role', $_smarty_tpl->tpl_vars['tlCfg']->value->default_roleid);?>
        <?php }?>
        <select name="rights_id">
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['optRights']->value, 'role', false, 'role_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['role_id']->value => $_smarty_tpl->tpl_vars['role']->value) {
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['role_id']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['role_id']->value == $_smarty_tpl->tpl_vars['selected_role']->value) {?> selected="selected" <?php }?>>
          <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['role']->value->getDisplayName(), ENT_QUOTES, 'UTF-8', true);?>

        </option>
        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        </select>
      </td>
    </tr>

    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_locale'];?>
</th>
      <td>
        <?php $_smarty_tpl->_assignInScope('selected_locale', $_smarty_tpl->tpl_vars['gui']->value->user->locale);?>
        <?php if (preg_match_all('/[^\s]/u',$_smarty_tpl->tpl_vars['gui']->value->user->locale, $tmp) == 0) {?>
           <?php $_smarty_tpl->_assignInScope('selected_locale', $_smarty_tpl->tpl_vars['locale']->value);?>
        <?php }?>

        <select name="locale">
        <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->optLocale,'selected'=>$_smarty_tpl->tpl_vars['selected_locale']->value),$_smarty_tpl);?>

        </select>
      </td>
    </tr>

    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['authentication_method'];?>
</th>
      <td>
        <select id="authentication" name="authentication"> 
        <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->auth_method_opt,'selected'=>$_smarty_tpl->tpl_vars['gui']->value->user->authentication),$_smarty_tpl);?>

        </select>
      </td>
    </tr>


    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_active'];?>
</th>
      <td>
        <input type="checkbox"  name="user_is_active" <?php if ($_smarty_tpl->tpl_vars['gui']->value->user->isActive == 1) {?> checked <?php }?> />
      </td>
    </tr>

    <?php if ($_smarty_tpl->tpl_vars['gui']->value->expDateEnabled) {?>
    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['expiration_date'];?>
</th>
      <td>

        <input type="text" name="expiration_date" id="expiration_date" 
               value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->user->expiration_date, ENT_QUOTES, 'UTF-8', true);?>
" size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'DATE_PICKER');?>
"
               onclick="showCal('expiration_date-cal','expiration_date','<?php echo $_smarty_tpl->tpl_vars['gsmarty_datepicker_format']->value;?>
');" readonly />

        <img title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['show_calender'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['calendar'];?>
"
             onclick="showCal('expiration_date-cal','expiration_date','<?php echo $_smarty_tpl->tpl_vars['gsmarty_datepicker_format']->value;?>
');" >


        <img title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['clear_date'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['clear'];?>
"
               onclick="javascript:var x = document.getElementById('expiration_date'); x.value = '';" >
        <div id="expiration_date-cal" style="position:absolute;width:240px;left:300px;z-index:1;"></div>

      </td>
    </tr>
    <?php }?>

    <?php if ($_smarty_tpl->tpl_vars['external_password_mgmt']->value == 1) {?>
      <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['password_mgmt_is_external'];?>
</td>
    <?php }?>

  </table>

  <?php $_smarty_tpl->_assignInScope('submitEnabled', "1");?>
  <?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->demoMode) {?>
    <?php if ($_smarty_tpl->tpl_vars['operation']->value == 'doUpdate') {?>
      <?php $_smarty_tpl->_assignInScope('submitEnabled', "0");?>
    <?php }?> 
  <?php }?>


  <div class="groupBtn">
  <?php if ($_smarty_tpl->tpl_vars['submitEnabled']->value) {?>
    <input type="hidden" name="doAction" id="doActionUserEdit" value="<?php echo $_smarty_tpl->tpl_vars['operation']->value;?>
" />
    <input type="submit" name="do_update"   value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_save'];?>
" />
  <?php } else { ?>
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['demo_update_user_disabled'];?>
<br>
  <?php }?>
  <input type="button" name="cancel" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_cancel'];?>
"
      onclick="javascript: location.href=fRoot+'lib/usermanagement/usersView.php';" />

  </div>
</fieldset>
</form>

<br />
<form method="post" action="lib/usermanagement/usersEdit.php" 
      style=" <?php echo $_smarty_tpl->tpl_vars['reset_password_form_style']->value;?>
" 
      id="user_reset_password" name="user_reset_password">
  <?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->demoMode) {?>
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['demo_reset_password_disabled'];?>

  <?php } else { ?>
    <input type="hidden" name="doAction" id="doReset" value="" />
    <input type="hidden" name="user_id" id="user_id_form2" value="<?php echo $_smarty_tpl->tpl_vars['user_id']->value;?>
" />
    <input type="submit" id="do_reset_password" name="do_reset_password" 
           value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['button_reset_password'];?>
" 
           onclick="doReset.value='resetPassword'"/>

    <?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->api->enabled && $_smarty_tpl->tpl_vars['submitEnabled']->value) {?>       
    <input type="submit" id="genAPIKey" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_apikey_generate'];?>
" 
           onclick="doReset.value='genAPIKey'"/>
    <?php }?>
  <?php }?> 
</form>
</div>

<?php }?>
</body>
</html>
<?php }
}
