246 lines
12 KiB
PHP
Executable File
246 lines
12 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-07 17:56:29
|
|
compiled from "./templates/forms/editar-usuario.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:168052946354075d4e1e3370-13513098%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'8abdfd8261495cafc4c1afdf90df24b36afd0edd' =>
|
|
array (
|
|
0 => './templates/forms/editar-usuario.tpl',
|
|
1 => 1410130451,
|
|
),
|
|
),
|
|
'nocache_hash' => '168052946354075d4e1e3370-13513098',
|
|
'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ó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ó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ó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é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ñ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 />
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" align="center"><input type="file" name="identificacion" id="identificacion" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5"> </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 />
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" align="center"><input type="file" name="comprobante" id="comprobante" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5"> </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"> </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ón...
|
|
<br />Este proceso puede tardar unos segundos.
|
|
<br />
|
|
</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>
|