<?php
/* Smarty version 4.1.1, created on 2022-09-26 10:55:59
  from 'C:\xampp\htdocs\Templates\white\user\settings.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.1.1',
  'unifunc' => 'content_6331af6fc86c64_33831157',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '63d3ba85d94fed78be3d9e0b9915379e66ba80fb' => 
    array (
      0 => 'C:\\xampp\\htdocs\\Templates\\white\\user\\settings.tpl',
      1 => 1664200548,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6331af6fc86c64_33831157 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_8211093346331af6fc79d80_23894631', 'main');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, "layout/layout.tpl");
}
/* {block 'main'} */
class Block_8211093346331af6fc79d80_23894631 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'main' => 
  array (
    0 => 'Block_8211093346331af6fc79d80_23894631',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>


<div class="slim-mainpanel">
      <div class="container">
        <div class="slim-pageheader">
          <ol class="breadcrumb slim-breadcrumb">
            <li class="breadcrumb-item"><a href="#">User</a></li>
            <li class="breadcrumb-item"><a href="#">Settings</a></li>
            <li class="breadcrumb-item active" aria-current="page">Edit</li>
          </ol>
          <h6 class="slim-pagetitle">Edita Perfil</h6>
        </div><!-- slim-pageheader -->

        <div class="section-wrapper">
          <?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
          <div class="alert alert-danger mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>[ERROR]</strong> <?php echo $_smarty_tpl->tpl_vars['error']->value->listErrors();?>

          </div><br>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['msg']->value) {?>
          <div class="alert alert-success mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>OK</strong> <?php echo $_smarty_tpl->tpl_vars['msg']->value;?>

          </div><br>
          <?php }?>
         
          <div class="form-layout">
            <div class="row row-sm mg-t-20">
            <?php if ($_SESSION['Nivel'] == 2) {?>
          <div class="col-lg-6">
             <form method="POST" action="<?php echo base_url();?>
/user/settings">
            <div class="section-wrapper">
              <label class="section-title">Alterar Email</label>
              <div class="form-layout form-layout-4">
                <div class="row">
                  <label class="col-sm-4 form-control-label">Email Atual: <span class="tx-danger">*</span></label>
                  <div class="col-sm-8 mg-t-10 mg-sm-t-0">
                    <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['user']->value->Mail;?>
" placeholder="" disabled>
                  </div>
                </div><!-- row -->
                <div class="row mg-t-20">
                  <label class="col-sm-4 form-control-label"><span class="tx-danger">*</span> Novo Email:</label>
                  <div class="col-sm-8 mg-t-10 mg-sm-t-0">
                    <input type="text" class="form-control" name="mail" placeholder="Novo Email">
                  </div>
                </div>              
                <div class="form-layout-footer mg-t-30">
                  <button class="btn btn-primary bd-0">Alterar</button>
                  <button class="btn btn-secondary bd-0">Cancel</button>
                </div><!-- form-layout-footer -->
              </div><!-- form-layout -->
            </div><!-- section-wrapper -->
             <input type="hidden" name="<?php echo csrf_token();?>
" value="<?php echo csrf_hash();?>
" />
            </form>
          </div><!-- col-6 -->
          <?php }?>

          <div class="col-lg-6 mg-t-20 mg-lg-t-0">
            <form method="POST" action="<?php echo base_url();?>
/user/settings">
            <div class="section-wrapper">
              <label class="section-title">Alterar Senha</label>
              <div class="form-layout form-layout-5">
                <div class="row">
                  <label class="col-sm-4 form-control-label"><span class="tx-danger">*</span> Senha Atual:</label>
                  <div class="col-sm-8 mg-t-10 mg-sm-t-0">
                    <input type="password" class="form-control" name="pass" placeholder="Cloque sua senha atual">
                  </div>
                </div><!-- row -->
                <div class="row mg-t-20">
                  <label class="col-sm-4 form-control-label"><span class="tx-danger">*</span> Nova Senha:</label>
                  <div class="col-sm-8 mg-t-10 mg-sm-t-0">
                    <input type="password" class="form-control" name="newpass" placeholder="Nova senha">
                  </div>
                </div> 
               <div class="row mg-t-20">
                  <label class="col-sm-4 form-control-label"><span class="tx-danger">*</span> Confirmar Senha:</label>
                  <div class="col-sm-8 mg-t-10 mg-sm-t-0">
                    <input type="password" class="form-control" name="confirmpassword" placeholder="Confirmar senha">
                  </div>
                </div>            
                <div class="row mg-t-30">
                  <div class="col-sm-8 mg-l-auto">
                    <div class="form-layout-footer">
                      <button  class="btn btn-primary bd-0">Alterar</button>
                      <button class="btn btn-secondary bd-0">Cancel</button>
                    </div><!-- form-layout-footer -->
                  </div><!-- col-8 -->
                </div>
              </div><!-- form-layout -->
            </div><!-- section-wrapper -->
            <input type="hidden" name="<?php echo csrf_token();?>
" value="<?php echo csrf_hash();?>
" />          
            </form>
          </div><!-- col-6 -->
          
        </div>
          </div><!-- form-layout -->
        
        </div><!-- section-wrapper -->

      </div><!-- container -->
    </div>
<?php
}
}
/* {/block 'main'} */
}
