0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
pshoptuscamisetaspersonalizadas
/
cache
/
smarty
/
compile
/
02
/
df
/
eb
/
[
Home
]
Name File: 02dfeb4cc491b9b2c06c48e702ba63076f3684d6.file.assoshop.tpl.php
< back
<?php /* Smarty version Smarty-3.1.13, created on 2013-07-23 13:17:40 compiled from "/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/helpers/form/assoshop.tpl" */ ?> <?php /*%%SmartyHeaderCode:69642298451ee66543da5f5-94869212%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '02dfeb4cc491b9b2c06c48e702ba63076f3684d6' => array ( 0 => '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/helpers/form/assoshop.tpl', 1 => 1369704489, 2 => 'file', ), ), 'nocache_hash' => '69642298451ee66543da5f5-94869212', 'function' => array ( ), 'variables' => array ( 'input' => 0, 'table' => 0, 'groupID' => 0, 'groupChecked' => 0, 'groupData' => 0, 'shopID' => 0, 'fields_value' => 0, 'j' => 0, 'checked' => 0, 'shopData' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.13', 'unifunc' => 'content_51ee66544b4dd2_93568256', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_51ee66544b4dd2_93568256')) {function content_51ee66544b4dd2_93568256($_smarty_tpl) {?> <script type="text/javascript"> $().ready(function() { $('.input_all_shop').live('click', function() { var checked = $(this).prop('checked'); $('.input_shop_group:not(:disabled)').attr('checked', checked); $('.input_shop:not(:disabled)').attr('checked', checked); }); // Click on a group shop $('.input_shop_group').live('click', function() { $('.input_shop[value='+$(this).val()+']').attr('checked', $(this).prop('checked')); check_all_shop(); }); // Click on a shop $('.input_shop').live('click', function() { check_shop_group_status($(this).val()); check_all_shop(); }); // Initialize checkbox $('.input_shop_group').each(function(k, v) { check_shop_group_status($(v).val()); check_all_shop(); }); }); function check_shop_group_status(id_group) { var groupChecked = true; var total = 0; $('.input_shop[value='+id_group+']').each(function(k, v) { total++; if (!$(v).prop('checked')) groupChecked = false; }); if (total > 0) $('.input_shop_group[value='+id_group+']').attr('checked', groupChecked); } function check_all_shop() { var allChecked = true; $('.input_shop_group:not(:disabled)').each(function(k, v) { if (!$(v).prop('checked')) allChecked = false; }); $('.input_all_shop').attr('checked', allChecked); } </script> <div class="assoShop"> <table class="table" cellpadding="0" cellspacing="0" width="100%"> <tr> <th><?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?> </th> </tr> <tr> <td> <label class="t"><input class="input_all_shop" type="checkbox" /> <b><?php echo smartyTranslate(array('s'=>'All shops'),$_smarty_tpl);?> </b></label> </td> </tr> <?php $_smarty_tpl->tpl_vars['groupData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['groupData']->_loop = false; $_smarty_tpl->tpl_vars['groupID'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['input']->value['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['groupData']->key => $_smarty_tpl->tpl_vars['groupData']->value){ $_smarty_tpl->tpl_vars['groupData']->_loop = true; $_smarty_tpl->tpl_vars['groupID']->value = $_smarty_tpl->tpl_vars['groupData']->key; ?> <?php $_smarty_tpl->tpl_vars['groupChecked'] = new Smarty_variable(false, null, 0);?> <tr <?php if ($_smarty_tpl->tpl_vars['input']->value['type']=='shop'){?>class="alt_row"<?php }?>> <td> <img style="vertical-align:middle;" alt="" src="../img/admin/lv2_b.gif" /> <label class="t"> <input class="input_shop_group" type="checkbox" name="checkBoxShopGroupAsso_<?php echo $_smarty_tpl->tpl_vars['table']->value;?> [<?php echo $_smarty_tpl->tpl_vars['groupID']->value;?> ]" value="<?php echo $_smarty_tpl->tpl_vars['groupID']->value;?> " <?php if ($_smarty_tpl->tpl_vars['groupChecked']->value){?> checked="checked"<?php }?> /> <b><?php echo smartyTranslate(array('s'=>'Group:'),$_smarty_tpl);?> <?php echo $_smarty_tpl->tpl_vars['groupData']->value['name'];?> </b> </label> </td> </tr> <?php if ($_smarty_tpl->tpl_vars['input']->value['type']=='shop'){?> <?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable(0, null, 0);?> <?php $_smarty_tpl->tpl_vars['shopData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['shopData']->_loop = false; $_smarty_tpl->tpl_vars['shopID'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['groupData']->value['shops']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['shopData']->key => $_smarty_tpl->tpl_vars['shopData']->value){ $_smarty_tpl->tpl_vars['shopData']->_loop = true; $_smarty_tpl->tpl_vars['shopID']->value = $_smarty_tpl->tpl_vars['shopData']->key; ?> <?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value['shop'][$_smarty_tpl->tpl_vars['shopID']->value]))){?> <?php $_smarty_tpl->tpl_vars['checked'] = new Smarty_variable(true, null, 0);?> <?php }else{ ?> <?php $_smarty_tpl->tpl_vars['checked'] = new Smarty_variable(false, null, 0);?> <?php }?> <tr> <td <?php if ($_smarty_tpl->tpl_vars['groupData']->value['disable_shops']){?>style="font-style:italic;background-color:#CFC4FF"<?php }?>> <img style="vertical-align:middle;" alt="" src="../img/admin/lv3_<?php if ($_smarty_tpl->tpl_vars['j']->value<count($_smarty_tpl->tpl_vars['groupData']->value['shops'])-1){?>b<?php }else{ ?>f<?php }?>.png" /> <label class="child"> <input class="input_shop" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['groupID']->value;?> " shop_id="<?php echo $_smarty_tpl->tpl_vars['shopID']->value;?> " name="checkBoxShopAsso_<?php echo $_smarty_tpl->tpl_vars['table']->value;?> [<?php echo $_smarty_tpl->tpl_vars['shopID']->value;?> ]" id="checkedBox_<?php echo $_smarty_tpl->tpl_vars['shopID']->value;?> " <?php if ($_smarty_tpl->tpl_vars['checked']->value){?> checked="checked"<?php }?> <?php if ($_smarty_tpl->tpl_vars['groupData']->value['disable_shops']){?> readonly="readonly" onclick="return false"<?php }?> /> <?php echo $_smarty_tpl->tpl_vars['shopData']->value['name'];?> </label> </td> </tr> <?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->tpl_vars['j']->value+1, null, 0);?> <?php } ?> <?php }?> <?php } ?> </table> </div><?php }} ?>
©
2018. | Recode by D7net