0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
pshoptuscamisetaspersonalizadas
/
cache
/
smarty
/
compile
/
42
/
34
/
e1
/
[
Home
]
Name File: 4234e11e71f69e551b16449a03ab60a4c2689d9f.file.features.tpl.php
< back
<?php /* Smarty version Smarty-3.1.13, created on 2013-07-23 13:17:51 compiled from "/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/controllers/products/features.tpl" */ ?> <?php /*%%SmartyHeaderCode:152756431751ee665fbe0be0-17341961%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '4234e11e71f69e551b16449a03ab60a4c2689d9f' => array ( 0 => '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/controllers/products/features.tpl', 1 => 1369704480, 2 => 'file', ), ), 'nocache_hash' => '152756431751ee665fbe0be0-17341961', 'function' => array ( ), 'variables' => array ( 'product' => 0, 'available_features' => 0, 'available_feature' => 0, 'value' => 0, 'link' => 0, 'languages' => 0, 'language' => 0, 'default_form_language' => 0, 'k' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.13', 'unifunc' => 'content_51ee665fd2c609_60003677', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_51ee665fd2c609_60003677')) {function content_51ee665fd2c609_60003677($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/tools/smarty/plugins/modifier.escape.php'; ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value->id)){?> <input type="hidden" name="submitted_tabs[]" value="Features" /> <h4><?php echo smartyTranslate(array('s'=>'Assign features to this product:'),$_smarty_tpl);?> </h4> <div class="separation"></div> <ul> <li><?php echo smartyTranslate(array('s'=>'You can specify a value for each relevant feature regarding this product. Empty fields will not be displayed.'),$_smarty_tpl);?> </li> <li><?php echo smartyTranslate(array('s'=>'You can either create a specific value, or select among the existing pre-defined values you\'ve previously added.'),$_smarty_tpl);?> </li> </ul> </td> </tr> </table> <br /> <table border="0" cellpadding="0" cellspacing="0" class="table" style="width:100%;"> <colgroup> <col width="300"> <col width=""> <col width="300"> </colgroup> <tr> <th height="39px"><?php echo smartyTranslate(array('s'=>'Feature'),$_smarty_tpl);?> </th> <th><?php echo smartyTranslate(array('s'=>'Pre-defined value'),$_smarty_tpl);?> </th> <th><u><?php echo smartyTranslate(array('s'=>'or'),$_smarty_tpl);?> </u> <?php echo smartyTranslate(array('s'=>'Customized value'),$_smarty_tpl);?> </th> </tr> </table> <?php $_smarty_tpl->tpl_vars['available_feature'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['available_feature']->_loop = false; $_from = $_smarty_tpl->tpl_vars['available_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['available_feature']->key => $_smarty_tpl->tpl_vars['available_feature']->value){ $_smarty_tpl->tpl_vars['available_feature']->_loop = true; ?> <table cellpadding="5" style="background-color:#fff; width: 100%;border:1px solid #ccc; border-top:none; padding:4px 6px;"> <colgroup> <col width="300"> <col width=""> <col width="300"> </colgroup> <tr> <td><?php echo $_smarty_tpl->tpl_vars['available_feature']->value['name'];?> </td> <td> <?php if (sizeof($_smarty_tpl->tpl_vars['available_feature']->value['featureValues'])){?> <select id="feature_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> _value" name="feature_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> _value" onchange="$('.custom_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> _').val('');"> <option value="0">--- </option> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false; $_from = $_smarty_tpl->tpl_vars['available_feature']->value['featureValues']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){ $_smarty_tpl->tpl_vars['value']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['value']->value['id_feature_value'];?> "<?php if ($_smarty_tpl->tpl_vars['available_feature']->value['current_item']==$_smarty_tpl->tpl_vars['value']->value['id_feature_value']){?>selected="selected"<?php }?> > <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['value']->value['value'],40);?> </option> <?php } ?> </select> <?php }else{ ?> <input type="hidden" name="feature_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> _value" value="0" /> <span><?php echo smartyTranslate(array('s'=>'N/A'),$_smarty_tpl);?> - <a href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminFeatures'), 'htmlall', 'UTF-8');?> &addfeature_value&id_feature=<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> " class="confirm_leave button"><img src="../img/admin/add.gif" alt="values_first" title="<?php echo smartyTranslate(array('s'=>'Add pre-defined values first'),$_smarty_tpl);?> " /> <?php echo smartyTranslate(array('s'=>'Add pre-defined values first'),$_smarty_tpl);?> </a> </span> <?php }?> </td> <td class="translatable"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value){ $_smarty_tpl->tpl_vars['language']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <div class="lang_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?> " style="<?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang']!=$_smarty_tpl->tpl_vars['default_form_language']->value){?>display:none;<?php }?>float: left;"> <textarea class="custom_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> _" name="custom_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> _<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?> " cols="40" rows="1" onkeyup="if (isArrowKey(event)) return ;$('#feature_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?> _value').val(0);" ><?php echo (($tmp = @smarty_modifier_escape($_smarty_tpl->tpl_vars['available_feature']->value['val'][$_smarty_tpl->tpl_vars['k']->value]['value'], 'htmlall', 'UTF-8'))===null||$tmp==='' ? '' : $tmp);?> </textarea> </div> <?php } ?> </td> </tr> <?php } if (!$_smarty_tpl->tpl_vars['available_feature']->_loop) { ?> <tr><td colspan="3" style="text-align:center;"><?php echo smartyTranslate(array('s'=>'No features have been defined'),$_smarty_tpl);?> </td></tr> <?php } ?> </table> <div class="separation"></div> <div> <a href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminFeatures'), 'htmlall', 'UTF-8');?> &addfeature" class="confirm_leave button"> <img src="../img/admin/add.gif" alt="new_features" title="<?php echo smartyTranslate(array('s'=>'Add a new feature'),$_smarty_tpl);?> " /> <?php echo smartyTranslate(array('s'=>'Add a new feature'),$_smarty_tpl);?> </a> </div> <?php }?> <?php }} ?>
©
2018. | Recode by D7net