<?php
/* Smarty version 3.1.33, created on 2022-01-28 14:28:57
  from '/home/recursosspa/public_html/testlink/gui/templates/usermanagement/usersView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f3fda9dc4bc8_88043574',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f193521ed7eacc1f4502e73168cdff899f7c8c44' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/usermanagement/usersView.tpl',
      1 => 1643038984,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_ext_js.tpl' => 1,
    'file:inc_ext_table.tpl' => 1,
    'file:bootstrap.inc.tpl' => 1,
    'file:usermanagement/menu.inc.tpl' => 1,
    'file:inc_update.tpl' => 1,
  ),
),false)) {
function content_61f3fda9dc4bc8_88043574 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('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 '<script'; ?>
 type="text/javascript">
var del_action=fRoot+"lib/usermanagement/usersView.php?operation=disable&user=";
<?php echo '</script'; ?>
>

<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->tableSet, 'matrix', false, 'idx', 'initializer', array (
  'first' => true,
  'index' => true,
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idx']->value => $_smarty_tpl->tpl_vars['matrix']->value) {
$_smarty_tpl->tpl_vars['__smarty_foreach_initializer']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_initializer']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_initializer']->value['index'];
?>
  <?php $_smarty_tpl->_assignInScope('tableID', ((string)$_smarty_tpl->tpl_vars['matrix']->value)."->tableID");?>
  <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_initializer']->value['first']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_initializer']->value['first'] : null)) {?>
    <?php echo $_smarty_tpl->tpl_vars['matrix']->value->renderCommonGlobals();?>

    <?php if ($_smarty_tpl->tpl_vars['matrix']->value instanceof tlExtTable) {?>
        <?php $_smarty_tpl->_subTemplateRender("file:inc_ext_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('bResetEXTCss'=>1), 0, true);
?>
        <?php $_smarty_tpl->_subTemplateRender("file:inc_ext_table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
    <?php }?>
  <?php }?>
  <?php echo $_smarty_tpl->tpl_vars['matrix']->value->renderHeadSection();?>

<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

<style type=text/css>
.x-action-col-cell img.normal_user {
    height: 16px;
    width: 16px;
    background-image: url(<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['delete'];?>
);
}

.x-action-col-cell img.special_user {
    height: 16px;
    width: 16px;        
    background-image: url(<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['demo_mode'];?>
);
}
</style>

<?php $_smarty_tpl->_subTemplateRender("file:bootstrap.inc.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</head>

<?php $_smarty_tpl->_assignInScope('userActionMgr', "lib/usermanagement/usersEdit.php");
$_smarty_tpl->_assignInScope('createUserAction', ((string)$_smarty_tpl->tpl_vars['userActionMgr']->value)."?doAction=create");
$_smarty_tpl->_assignInScope('editUserAction', ((string)$_smarty_tpl->tpl_vars['userActionMgr']->value)."?doAction=edit");
$_smarty_tpl->_assignInScope('exportUsersAction', "lib/usermanagement/usersExport.php");?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>"title_user_mgmt,th_login,title_user_mgmt,th_login,th_first_name,th_last_name,th_email,
             th_role,order_by_role_descr,order_by_role_dir,th_locale,th_active,th_api,th_delete,
             disable,alt_edit_user,Yes,No,alt_delete_user,no_permissions_for_action,btn_create,
             show_inactive_users,hide_inactive_users,alt_disable_user,order_by_login,btn_manage_user,
             order_by_login_dir,alt_active_user,demo_special_user,btn_export"),$_smarty_tpl ) );?>


<body>
<?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->user_mgmt == "yes") {?>

  <h1 class="title"><?php echo $_smarty_tpl->tpl_vars['gui']->value->main_title;?>
</h1>
  <?php $_smarty_tpl->_subTemplateRender("file:usermanagement/menu.inc.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
  <div class="workBack">

    <?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['gui']->value->result,'item'=>"user",'action'=>$_smarty_tpl->tpl_vars['gui']->value->action,'user_feedback'=>$_smarty_tpl->tpl_vars['gui']->value->user_feedback), 0, false);
?>
             
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->tableSet, 'matrix', false, 'idx');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idx']->value => $_smarty_tpl->tpl_vars['matrix']->value) {
?>
      <?php echo $_smarty_tpl->tpl_vars['matrix']->value->renderBodySection();?>

    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

    <div class="groupBtn">
      <span style="float:left;">  
        <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['createUserAction']->value;?>
" name="launch_create">
          <input type="hidden" id="operation" name="operation" value="" />
          <input type="submit" name="doCreate"  value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_create'];?>
" />
        </form>
      </span>

      <span>
        <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['exportUsersAction']->value;?>
" name="launch_export" style="inline;">
          <input type="submit" id="export"  name="export" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_export'];?>
" style="margin-left: 3px;">
        </form>
      </span>

    </div>
    <div class="groupBtn">
        <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['editUserAction']->value;?>
" name="manage_user" style="inline;">
          <input type="text" id="login"  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');?>
"
                 placeholder="<?php echo $_smarty_tpl->tpl_vars['labels']->value['th_login'];?>
" required> 
          <input type="submit" id="manage_user"  name="manage_user" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_manage_user'];?>
" 
                 style="margin-left: 3px;">
        </form>
    </div>
  </div>
  
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->update_title_bar == 1) {?>
  <?php echo '<script'; ?>
 type="text/javascript">
    parent.titlebar.location.reload();
  <?php echo '</script'; ?>
>
  <?php }?>

  <?php if ($_smarty_tpl->tpl_vars['gui']->value->reload == 1) {?>
  <?php echo '<script'; ?>
 type="text/javascript">
    top.location.reload();
  <?php echo '</script'; ?>
>
  <?php }
} else { ?>
  <?php echo $_smarty_tpl->tpl_vars['labels']->value['no_permissions_for_action'];?>
<br />
  <a href="<?php echo $_smarty_tpl->tpl_vars['gui']->value->basehref;?>
" alt="Home">Home</a>
<?php }?>
</body>
</html><?php }
}
