Files
ventas_php/templates_c/9ccf44b2052cba4f41d239df4d51a440ebb3f5d2.file.editar-usuario.tpl.php

246 lines
12 KiB
PHP

<?php /* Smarty version Smarty3-b7, created on 2026-01-07 01:01:51
compiled from "/var/www/html/ventas/templates/forms/editar-usuario.tpl" */ ?>
<?php /*%%SmartyHeaderCode:83719563695e04df6de5b6-90687919%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'9ccf44b2052cba4f41d239df4d51a440ebb3f5d2' =>
array (
0 => '/var/www/html/ventas/templates/forms/editar-usuario.tpl',
1 => 1767753171,
),
),
'nocache_hash' => '83719563695e04df6de5b6-90687919',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div id="divForm">
<form id="editarUsuarioForm" name="editarUsuarioForm" method="post" enctype="multipart/form-data">
<input type="hidden" id="usuarioId" name="usuarioId" value="<?php echo $_smarty_tpl->getVariable('info')->value['usuarioId'];?>
" />
<input type="hidden" id="type" name="type" value="saveEditUsuario" />
<fieldset>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="130" height="40">* Tipo:</td>
<td><?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumUserTypes.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
</td>
<td width="10"></td>
<td width="130"><div id="txtSuc" <?php if ($_smarty_tpl->getVariable('info')->value['type']=="supervisor"){?>style="display:none"<?php }?>>Sucursal:</div></td>
<td>
<div id="listSuc" <?php if ($_smarty_tpl->getVariable('info')->value['type']=="supervisor"){?>style="display:none"<?php }?>>
<select name="sucursalId" id="sucursalId" class="largeInput" style="width:300px">
<option value="">Seleccione</option>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<option value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
" <?php if ($_smarty_tpl->getVariable('info')->value['sucursalId']==$_smarty_tpl->getVariable('item')->value['sucursalId']){?>selected<?php }?>><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</option>
<?php }} ?>
</select>
</div>
</td>
</tr>
<tr>
<td height="40">* Nombre:</td>
<td><input name="nombre" id="nombre" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['nombre'];?>
"/></td>
<td width="10"></td>
<td>Apellidos:</td>
<td><input name="apellidos" id="apellidos" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['apellidos'];?>
"/></td>
</tr>
<tr>
<td height="40">Direcci&oacute;n:</td>
<td><input name="calle" id="calle" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['calle'];?>
"/></td>
<td width="10"></td>
<td>No Exterior:</td>
<td><input name="noExt" id="noExt" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['noExt'];?>
"/></td>
</tr>
<tr>
<td height="40">No Interior:</td>
<td><input name="noInt" id="noInt" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['noInt'];?>
"/></td>
<td width="10"></td>
<td>Referencia:</td>
<td><input name="referencia" id="referencia" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['referencia'];?>
"/></td>
</tr>
<tr>
<td height="40">Colonia:</td>
<td><input name="colonia" id="colonia" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['colonia'];?>
"/></td>
<td width="10"></td>
<td>Localidad:</td>
<td><input name="localidad" id="localidad" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['localidad'];?>
"/></td>
</tr>
<tr>
<td height="40">Municipio o Delegaci&oacute;n:</td>
<td><input name="municipio" id="municipio" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['municipio'];?>
"/></td>
<td width="10"></td>
<td>Estado:</td>
<td><input name="estado" id="estado" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['estado'];?>
"/></td>
</tr>
<tr>
<td height="40">Pais:</td>
<td><input name="pais" id="pais" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['pais'];?>
"/></td>
<td width="10"></td>
<td>C&oacute;digo Postal:</td>
<td><input name="codigoPostal" id="codigoPostal" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['codigoPostal'];?>
"/></td>
</tr>
<tr>
<td height="40">Tel&eacute;fono:</td>
<td><input name="telefono" id="telefono" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['telefono'];?>
"/></td>
<td width="10"></td>
<td>Celular:</td>
<td><input name="celular" id="celular" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['celular'];?>
"/></td>
</tr>
<tr>
<td height="40">No. IMSS:</td>
<td><input name="noImss" id="noImss" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['noImss'];?>
"/></td>
<td width="10"></td>
<td>CURP:</td>
<td><input name="curp" id="curp" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['curp'];?>
"/></td>
</tr>
<tr>
<td height="40">RFC:</td>
<td><input name="rfc" id="rfc" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['rfc'];?>
"/></td>
<td width="10"></td>
<td>Email:</td>
<td><input name="email" id="email" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['email'];?>
"/></td>
</tr>
<tr>
<td height="40">Contrase&ntilde;a:</td>
<td><input name="password" id="password" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['password'];?>
"/></td>
<td width="10"></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="5" align="center" height="50"><b>.:: IDENTIFICACION OFICIAL ::.</b></td>
</tr>
<tr>
<td colspan="5" align="center">
<?php if ($_smarty_tpl->getVariable('info')->value['identificacion']!=''){?>
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/identificacion/<?php echo $_smarty_tpl->getVariable('info')->value['identificacion'];?>
" target="_blank">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/identificacion/<?php echo $_smarty_tpl->getVariable('info')->value['identificacion'];?>
" width="100" height="100" border="0" />
</a>
<br />
<input type="checkbox" name="delIdentificacion" id="delIdentificacion" value="1" />Eliminar imagen
<br />&nbsp;
<?php }?>
</td>
</tr>
<tr>
<td colspan="5" align="center"><input type="file" name="identificacion" id="identificacion" /></td>
</tr>
<tr>
<td colspan="5">&nbsp;</td>
</tr>
<tr>
<td colspan="5" align="center" height="50"><b>.:: COMPROBANTE DE DOMICILIO ::.</b></td>
</tr>
<tr>
<td colspan="5" align="center">
<?php if ($_smarty_tpl->getVariable('info')->value['comprobante']!=''){?>}
<a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/comprobante/<?php echo $_smarty_tpl->getVariable('info')->value['comprobante'];?>
" target="_blank">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/comprobante/<?php echo $_smarty_tpl->getVariable('info')->value['comprobante'];?>
" width="100" height="100" border="0" />
</a>
<br />
<input type="checkbox" name="delComprobante" id="delComprobante" value="1" />Eliminar imagen
<br />&nbsp;
<?php }?>
</td>
</tr>
<tr>
<td colspan="5" align="center"><input type="file" name="comprobante" id="comprobante" /></td>
</tr>
<tr>
<td colspan="5">&nbsp;</td>
</tr>
</table>
<div align="center" id="sucSup" <?php if ($_smarty_tpl->getVariable('info')->value['type']!="supervisor"){?>style="display:none"<?php }?>>
<table width="30%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" colspan="2"><b>.:: SUCURSALES A SUPERVISAR ::.</b></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<tr>
<td align="center"><input type="checkbox" name="idSuc[]" value="<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
" <?php if ($_smarty_tpl->getVariable('item')->value['checked']){?>checked<?php }?> /></td>
<td align="left"><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
</td>
</tr>
<?php }} ?>
</table>
</div>
<div class="formLine">
<hr />
* Campos requeridos
</div>
</fieldset>
</form>
<div align="center" style="display:none" id="loader">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/loading.gif">
<br>
Guardando Informaci&oacute;n...
<br />Este proceso puede tardar unos segundos.
<br />&nbsp;
</div>
<div style="clear:both"></div>
<div style="margin-left:415px">
<a class="button" name="btnSave" onclick="EditUsuario()"><span>Guardar</span></a>
</div>
<div style="clear:both"></div>
<br /><br />
<div style="margin-left:410px"><a href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/usuarios"><< Regresar</a></div>
</div>