Primer commit del sistema avantika sin cambios
This commit is contained in:
293
templates_c/a92696ab48ff7c317f09e9dc252724563720bacc.file.editar-pedido.tpl.php
Executable file
293
templates_c/a92696ab48ff7c317f09e9dc252724563720bacc.file.editar-pedido.tpl.php
Executable file
@@ -0,0 +1,293 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2014-09-11 09:51:34
|
||||
compiled from "./templates/forms/editar-pedido.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:19684033605411b6f5737d57-24611518%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a92696ab48ff7c317f09e9dc252724563720bacc' =>
|
||||
array (
|
||||
0 => './templates/forms/editar-pedido.tpl',
|
||||
1 => 1410130451,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '19684033605411b6f5737d57-24611518',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<?php if (!is_callable('smarty_modifier_date_format')) include '/var/www/html/libs/plugins/modifier.date_format.php';
|
||||
?><div id="divForm">
|
||||
<form id="frmEditarPedido" name="frmEditarPedido" method="post">
|
||||
<input type="hidden" id="type" name="type" value="saveEditPedido" />
|
||||
<input type="hidden" id="pedidoId" name="pedidoId" value="<?php echo $_smarty_tpl->getVariable('info')->value['pedidoId'];?>
|
||||
" />
|
||||
<input type="hidden" id="proveedorId" name="proveedorId" value="<?php echo $_smarty_tpl->getVariable('info')->value['proveedorId'];?>
|
||||
" />
|
||||
<input type="hidden" id="key" name="key" value="" />
|
||||
<fieldset>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td width="120" height="40">No. Proveedor:</td>
|
||||
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['noProv'];?>
|
||||
</div></td>
|
||||
<td width="10"></td>
|
||||
<td width="130"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" height="40">* Proveedor:</td>
|
||||
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['proveedor'];?>
|
||||
</div></td>
|
||||
<td width="10"></td>
|
||||
<td width="130">No. de Pedido</td>
|
||||
<td><div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['noPedido'];?>
|
||||
</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" height="40">Fecha del Pedido:</td>
|
||||
<td>
|
||||
<div class="txtFrm"><?php echo $_smarty_tpl->getVariable('info')->value['fecha'];?>
|
||||
</div>
|
||||
<input type="hidden" name="fechaPedido" id="fechaPedido" value="<?php echo $_smarty_tpl->getVariable('info')->value['fechaPedido'];?>
|
||||
" />
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td width="130">* Fecha de Entrega</td>
|
||||
<td><div style="height:10px"></div>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td width="135">Del
|
||||
<input name="fechaEntrega" id="fechaEntrega" type="text" class="largeInput" style="width:100px" value="<?php echo $_smarty_tpl->getVariable('info')->value['fechaEntrega'];?>
|
||||
" readonly="readonly" />
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:void(0)" onclick="NewCal('fechaEntrega','ddmmyyyy')">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/calendar.gif" />
|
||||
</a>
|
||||
</td>
|
||||
<td width="138"> Al
|
||||
<input name="fechaEntregaF" id="fechaEntregaF" type="text" class="largeInput" style="width:100px" value="<?php echo $_smarty_tpl->getVariable('info')->value['fechaEntregaF'];?>
|
||||
" readonly="readonly" />
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:void(0)" onclick="NewCal('fechaEntregaF','ddmmyyyy')">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/calendar.gif" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" height="40">* Método de Compra:</td>
|
||||
<td><?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/enumMetodoCompra.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">Status</td>
|
||||
<td><div class="txtFrm">
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['status']=="Pendiente"){?>
|
||||
Pendiente de Aprobación
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Aprobado"){?>
|
||||
En espera de Distribución
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Rechazado"&&$_smarty_tpl->getVariable('info')->value['resurtido']=="1"){?>
|
||||
Resurtido No Autorizado
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Rechazado"){?>
|
||||
Rechazado
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"&&$_smarty_tpl->getVariable('info')->value['resurtido']=="1"){?>
|
||||
Resurtido Pendiente de Autorización
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Distribucion"){?>
|
||||
Pendiente Autorización Distribución
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Autorizado"){?>
|
||||
Orden de Compra Pte. de Envío a Prov.
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="Sugerencia"){?>
|
||||
Con Obs. de Distribución
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnv"){?>
|
||||
Orden Pendiente de Ingreso a CEDIS
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompEnvCan"){?>
|
||||
Orden de Compra Enviada Cancelada
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="OrdenCompIng"){?>
|
||||
Pte. Envío a Tiendas
|
||||
<?php }elseif($_smarty_tpl->getVariable('info')->value['status']=="EnvSuc"){?>
|
||||
Envíado a Tiendas
|
||||
<?php }?>
|
||||
</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">% Publicidad:</td>
|
||||
<td><input name="porcPub" id="porcPub" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['porcPub'];?>
|
||||
" /></td>
|
||||
<td width="10"></td>
|
||||
<td width="130">% Flete:</td>
|
||||
<td><input name="porcFlete" id="porcFlete" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['porcFlete'];?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40">% Desarrollo:</td>
|
||||
<td><input name="porcDes" id="porcDes" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['porcDes'];?>
|
||||
" /></td>
|
||||
<td width="10"></td>
|
||||
<td width="130">% Especial:</td>
|
||||
<td><input name="porcEsp" id="porcEsp" type="text" class="largeInput" style="width:290px" value="<?php echo $_smarty_tpl->getVariable('info')->value['porcEsp'];?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<?php if ($_smarty_tpl->getVariable('info')->value['status']!="OrdenCompIng"&&$_smarty_tpl->getVariable('info')->value['status']!="EnvSuc"){?>
|
||||
<tr>
|
||||
<td colspan="5" align="center" height="50"><b>.:: AGREGAR PRODUCTOS ::.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" height="40">* Código Barra:</td>
|
||||
<td>
|
||||
<input name="modelo" id="modelo" type="text" class="largeInput" style="width:290px" onkeyup="CheckKey(event)"/>
|
||||
<input type="hidden" name="productoId" id="productoId" value="" />
|
||||
<input type="hidden" name="prodCatId" id="prodCatId" value="" />
|
||||
<input type="hidden" name="prodSubcatId" id="prodSubcatId" value="" />
|
||||
<div style="position:relative">
|
||||
<div class="suggestGral" style="display:none;" id="sugProdDiv"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td width="130">Descripción</td>
|
||||
<td><div id="enumAtributos"></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center">
|
||||
<a href="javascript:void(0)" onclick="AddTalla()"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/add.png">Agregar Talla</a>
|
||||
|
||||
<a href="javascript:void(0)" onclick="AddColor()"><img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/add.png">Agregar Color</a>
|
||||
<div id="tblProporcion" align="center">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-proporciones.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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center">
|
||||
<div align="right" style="margin-right:20px">
|
||||
<a href="javascript:void(0)" onclick="AddProducto()">
|
||||
+ Agregar Producto
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center" style="border-top:1px solid #CCCCCC; padding-top:10px">
|
||||
<b>.:: PRODUCTOS ::.</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center">
|
||||
<div id="productos">
|
||||
<?php $_template = new Smarty_Internal_Template("{$_smarty_tpl->getVariable('DOC_ROOT')->value}/templates/lists/pedidos-productos-edit.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>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }else{ ?>
|
||||
<tr>
|
||||
<td align="center" colspan="5">
|
||||
<br />
|
||||
<div align="center">
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><b>Folio del Proveedor</b></td>
|
||||
<td align="center"><b>Fecha</b></td>
|
||||
<td align="center"></td>
|
||||
</tr>
|
||||
<?php $_smarty_tpl->tpl_vars['ii'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['ii']->step = (5 - (1) < 0) ? -1 : 1;$_smarty_tpl->tpl_vars['ii']->total = (int)ceil(($_smarty_tpl->tpl_vars['ii']->step > 0 ? 5+1 - 1 : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['ii']->step));
|
||||
if ($_smarty_tpl->tpl_vars['ii']->total > 0){
|
||||
for ($_smarty_tpl->tpl_vars['ii']->value = 1, $_smarty_tpl->tpl_vars['ii']->iteration = 1;$_smarty_tpl->tpl_vars['ii']->iteration <= $_smarty_tpl->tpl_vars['ii']->total;$_smarty_tpl->tpl_vars['ii']->value += $_smarty_tpl->tpl_vars['ii']->step, $_smarty_tpl->tpl_vars['ii']->iteration++){
|
||||
$_smarty_tpl->tpl_vars['ii']->first = $_smarty_tpl->tpl_vars['ii']->iteration == 1;$_smarty_tpl->tpl_vars['ii']->last = $_smarty_tpl->tpl_vars['ii']->iteration == $_smarty_tpl->tpl_vars['ii']->total;?>
|
||||
<?php if ($_smarty_tpl->getVariable('ii')->value==1){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==2){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv2']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio2']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==3){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv3']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio3']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==4){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv4']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio4']}",null,null);?>
|
||||
<?php }elseif($_smarty_tpl->getVariable('ii')->value==5){?>
|
||||
<?php $_smarty_tpl->assign("folio","{$_smarty_tpl->getVariable('info')->value['folioProv5']}",null,null);?>
|
||||
<?php $_smarty_tpl->assign("fecha","{$_smarty_tpl->getVariable('info')->value['fechaFolio5']}",null,null);?>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($_smarty_tpl->getVariable('fecha')->value=="0000-00-00"){?>
|
||||
<?php $_smarty_tpl->assign("fecha",'',null,null);?>
|
||||
<?php }?>
|
||||
|
||||
<tr>
|
||||
<td align="center">
|
||||
<input type="text" name="folioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" id="folioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" class="smallInput" value="<?php echo $_smarty_tpl->getVariable('folio')->value;?>
|
||||
" />
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="text" name="fechaFolioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" id="fechaFolioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
" class="smallInput" maxlength="10" value="<?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('fecha')->value,'%d-%m-%Y');?>
|
||||
" />
|
||||
</td>
|
||||
<td align="center">
|
||||
<div>
|
||||
<a href="javascript:void(0)" onclick="NewCal('fechaFolioProv_<?php echo $_smarty_tpl->getVariable('ii')->value;?>
|
||||
','ddmmyyyy')">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/calendar.gif" /></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<hr />
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
* Campos requeridos
|
||||
|
||||
<br />
|
||||
|
||||
<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:320px">
|
||||
<a class="button" name="btnSave" onclick="<?php if ($_smarty_tpl->getVariable('info')->value['status']!="OrdenCompIng"&&$_smarty_tpl->getVariable('info')->value['status']!="EnvSuc"){?>EditPedido()<?php }else{ ?>EditPedido2()<?php }?>" style="margin-right:20px">
|
||||
<span>Actualizar Pedido</span>
|
||||
</a>
|
||||
<a class="button" href="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/pedidos">
|
||||
<span>Cancelar Edición</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user