164 lines
7.6 KiB
PHP
Executable File
164 lines
7.6 KiB
PHP
Executable File
<?php /* Smarty version Smarty3-b7, created on 2014-09-15 14:28:51
|
|
compiled from "/var/www/html/templates/lists/pedidos-proporciones.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:68213310554173df35227a9-24460529%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'2546d9c710de13c9516219cb22a1e93d3bfccfdc' =>
|
|
array (
|
|
0 => '/var/www/html/templates/lists/pedidos-proporciones.tpl',
|
|
1 => 1410130460,
|
|
),
|
|
),
|
|
'nocache_hash' => '68213310554173df35227a9-24460529',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<table width="" cellpadding="0" cellspacing="0" border="1">
|
|
<tr>
|
|
<td width="120" align="center" height="30"><b>Color / Talla</b></td>
|
|
<td width="80" align="center"><b>Prop. Color</b></td>
|
|
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('tallas')->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;
|
|
?>
|
|
<td align="left" width="90">
|
|
<?php if ($_smarty_tpl->getVariable('item')->value['id']>0){?>
|
|
<div align="center"><b><?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
</b></div>
|
|
<input type="hidden" name="proporcionNT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
]" id="proporcionNT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
" />
|
|
<?php }else{ ?>
|
|
<input type="text" class="smallInput" name="proporcionNT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
]" id="proporcionNT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('item')->value['nombre'];?>
|
|
" style="width:60px" />
|
|
<a href="javascript:void(0)" onclick="DelTalla(<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
)">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/delete.gif" border="0" />
|
|
</a>
|
|
<?php }?>
|
|
<input type="hidden" name="proporcionIT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
]" id="proporcionIT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('item')->value['id'];?>
|
|
" />
|
|
</td>
|
|
<?php }} ?>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" height="30"><b>Prop. Talla</b></td>
|
|
<td align="center"></td>
|
|
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('tallas')->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;
|
|
?>
|
|
<td align="left">
|
|
<input type="text" class="smallInput" name="proporcionT[<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
]" id="proporcionT_<?php echo $_smarty_tpl->getVariable('key')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('item')->value['cantidad'];?>
|
|
" style="width:60px" />
|
|
</td>
|
|
<?php }} ?>
|
|
</tr>
|
|
<?php $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['idC'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('colores')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['c']->key => $_smarty_tpl->tpl_vars['c']->value){
|
|
$_smarty_tpl->tpl_vars['idC']->value = $_smarty_tpl->tpl_vars['c']->key;
|
|
?>
|
|
<tr>
|
|
<td align="center" height="30">
|
|
<?php if ($_smarty_tpl->getVariable('c')->value['id']>0){?>
|
|
<div align="center"><b><?php echo $_smarty_tpl->getVariable('c')->value['nombre'];?>
|
|
</b></div>
|
|
<input type="hidden" name="proporcionNC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
]" id="proporcionNC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('c')->value['nombre'];?>
|
|
" />
|
|
<?php }else{ ?>
|
|
<input type="text" class="smallInput" name="proporcionNC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
]" id="proporcionNC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('c')->value['nombre'];?>
|
|
" style="width:60px" />
|
|
<a href="javascript:void(0)" onclick="DelColor(<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
)">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/delete.gif" border="0" />
|
|
</a>
|
|
<?php }?>
|
|
<input type="hidden" name="proporcionIC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
]" id="proporcionIC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('c')->value['id'];?>
|
|
" />
|
|
</td>
|
|
<td align="center">
|
|
<input type="text" class="smallInput" name="proporcionC[<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
]" id="proporcionC_<?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
" value="<?php echo $_smarty_tpl->getVariable('c')->value['cantidad'];?>
|
|
" style="width:60px" />
|
|
</td>
|
|
<?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['idT'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('tallas')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
if (count($_from) > 0){
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value){
|
|
$_smarty_tpl->tpl_vars['idT']->value = $_smarty_tpl->tpl_vars['t']->key;
|
|
?>
|
|
<td align="center"><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idT')->value;?>
|
|
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idC')->value;?>
|
|
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->getVariable('subtotales')->value[$_tmp1][$_tmp2];?>
|
|
</td>
|
|
<?php }} ?>
|
|
</tr>
|
|
<?php }} ?>
|
|
<tr>
|
|
<td align="center" height="30"><b>Total</b></td>
|
|
<td align="center"></td>
|
|
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
|
$_smarty_tpl->tpl_vars['idT'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->getVariable('tallas')->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['idT']->value = $_smarty_tpl->tpl_vars['item']->key;
|
|
?>
|
|
<td align="center"><?php ob_start();?><?php echo $_smarty_tpl->getVariable('idT')->value;?>
|
|
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->getVariable('totales')->value[$_tmp3];?>
|
|
</td>
|
|
<?php }} ?>
|
|
</tr>
|
|
</table>
|
|
|
|
<div id="tblLoader"></div>
|
|
|
|
<?php if ($_smarty_tpl->getVariable('productoId')->value){?>
|
|
|
|
<div align="center">
|
|
<input type="button" name="btnUpdate" onclick="UpdateProporcion()" value="Actualizar Proporciones" style="padding:10px" />
|
|
</div>
|
|
<br />
|
|
<table width="300" cellpadding="0" cellspacing="0" border="0">
|
|
|
|
<tr>
|
|
<td align="left">Cant. de Prendas a adquirir:</td>
|
|
<td align="left">
|
|
<input name="cantPrendas" id="cantPrendas" type="text" class="largeInput" style="width:80px" value="" />
|
|
<input type="hidden" name="cantLotes" id="cantLotes" value="1" />
|
|
<input type="hidden" name="totalLote" id="totalLote" value="<?php echo $_smarty_tpl->getVariable('totalLote')->value;?>
|
|
" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<?php }?>
|