Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,195 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-07 17:58:28
|
||||
compiled from "./templates/forms/agregar-usuario.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:208362189254075a9bac5bc8-59526592%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'279dbab88077f9b3d4c80e15cec359a91e646bcd' =>
|
||||
array (
|
||||
0 => './templates/forms/agregar-usuario.tpl',
|
||||
1 => 1410130450,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '208362189254075a9bac5bc8-59526592',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<div id="divForm">
|
||||
<form id="frmAgregarUsuario" name="frmAgregarUsuario" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="type" name="type" value="saveUsuario" />
|
||||
<fieldset>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td width="130" height="40">* Tipo:</td>
|
||||
<td>
|
||||
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
|
||||
<div class="txtFrm">Vendedor</div>
|
||||
<input type="hidden" name="tipo" id="tipo" value="vendedor" />
|
||||
<?php }else{ ?>
|
||||
<?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);?>
|
||||
|
||||
<?php }?>
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td width="130"><div id="txtSuc">Sucursal:</div></td>
|
||||
<td>
|
||||
<?php if ($_smarty_tpl->getVariable('Usr')->value['type']=="gerente"){?>
|
||||
<div class="txtFrm"><?php echo $_smarty_tpl->getVariable('nomSuc')->value;?>
|
||||
</div>
|
||||
<input type="hidden" name="sucursalId" id="sucursalId" value="<?php echo $_smarty_tpl->getVariable('Usr')->value['sucursalId'];?>
|
||||
" />
|
||||
<?php }else{ ?>
|
||||
<div id="listSuc">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumSucursales.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);?>
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">* Nombre:</td>
|
||||
<td><input name="nombre" id="nombre" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>Apellidos:</td>
|
||||
<td><input name="apellidos" id="apellidos" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">Dirección:</td>
|
||||
<td><input name="calle" id="calle" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>No Exterior:</td>
|
||||
<td><input name="noExt" id="noExt" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">No Interior:</td>
|
||||
<td><input name="noInt" id="noInt" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>Referencia:</td>
|
||||
<td><input name="referencia" id="referencia" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">Colonia:</td>
|
||||
<td><input name="colonia" id="colonia" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>Localidad:</td>
|
||||
<td><input name="localidad" id="localidad" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">Municipio o Delegación:</td>
|
||||
<td><input name="municipio" id="municipio" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>Estado:</td>
|
||||
<td><input name="estado" id="estado" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">Pais:</td>
|
||||
<td><input name="pais" id="pais" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>Código Postal:</td>
|
||||
<td><input name="codigoPostal" id="codigoPostal" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">Teléfono:</td>
|
||||
<td><input name="telefono" id="telefono" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>Celular:</td>
|
||||
<td><input name="celular" id="celular" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">No. IMSS:</td>
|
||||
<td><input name="noImss" id="noImss" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>CURP:</td>
|
||||
<td><input name="curp" id="curp" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">RFC:</td>
|
||||
<td><input name="rfc" id="rfc" type="text" class="largeInput" style="width:290px"/></td>
|
||||
<td width="10"></td>
|
||||
<td>Email:</td>
|
||||
<td><input name="email" id="email" type="text" class="largeInput" style="width:290px"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">Contraseña:</td>
|
||||
<td><input name="password" id="password" type="text" class="largeInput" style="width:290px"/></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"><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"><input type="file" name="comprobante" id="comprobante" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div align="center" id="sucSup" style="display:none">
|
||||
<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'];?>
|
||||
" /></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="AddUsuario()"><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>
|
||||
Reference in New Issue
Block a user