<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 21:54:50
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/products.reviews.php" */ ?>
<?php /*%%SmartyHeaderCode:338307470553e3faa659c77-13006278%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ada9dcbed55437bb63ca134d0bd38247743c1f0c' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/products.reviews.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '338307470553e3faa659c77-13006278',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'LIST_REVIEWS' => 0,
    'LANG' => 0,
    'REVIEWS' => 0,
    'FIELDS' => 0,
    'field' => 0,
    'SORTS' => 0,
    'sort' => 0,
    'review' => 0,
    'SKIN_VARS' => 0,
    'TOTAL_RESULTS' => 0,
    'PAGINATION' => 0,
    'STATUSES' => 0,
    'status' => 0,
    'DISPLAY_FORM' => 0,
    'REVIEW' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e3faa8431f6_58248994',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e3faa8431f6_58248994')) {function content_553e3faa8431f6_58248994($_smarty_tpl) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
   <?php if ($_smarty_tpl->tpl_vars['LIST_REVIEWS']->value) {?>
   <div id="reviews" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['reviews']['title_reviews'];?>
</h3>
      <?php if ($_smarty_tpl->tpl_vars['REVIEWS']->value) {?>
      <div class="tools">
         <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['sort_by'];?>

         <select name="field" class="textbox">
         <?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['FIELDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->_loop = true;
?>
         <option value="<?php echo $_smarty_tpl->tpl_vars['field']->value['value'];?>
" <?php echo $_smarty_tpl->tpl_vars['field']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
</option>
         <?php } ?>
         </select>
         <select name="sort" class="textbox">
         <?php  $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sort']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['SORTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sort']->key => $_smarty_tpl->tpl_vars['sort']->value) {
$_smarty_tpl->tpl_vars['sort']->_loop = true;
?>
         <option value="<?php echo $_smarty_tpl->tpl_vars['sort']->value['value'];?>
" <?php echo $_smarty_tpl->tpl_vars['sort']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['sort']->value['name'];?>
</option>
         <?php } ?>
         </select>
         <input type="submit" class="submit mini_button" name="filter" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['go'];?>
">
         <a href="?_g=products&amp;node=reviews"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['reset'];?>
</a>
      </div>
      <?php  $_smarty_tpl->tpl_vars['review'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['review']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['REVIEWS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['review']->key => $_smarty_tpl->tpl_vars['review']->value) {
$_smarty_tpl->tpl_vars['review']->_loop = true;
?>
      <div class="note">
         <span class="actions">
         <input type="hidden" class="toggle" name="approve[<?php echo $_smarty_tpl->tpl_vars['review']->value['id'];?>
]" id="approve_<?php echo $_smarty_tpl->tpl_vars['review']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['review']->value['approved'];?>
">
         <a href="<?php echo $_smarty_tpl->tpl_vars['review']->value['edit'];?>
" class="edit" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"><i class="fa fa-pencil-square-o" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"></i></a>
         <a href="<?php echo $_smarty_tpl->tpl_vars['review']->value['delete'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
"><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a>
         </span>
         <div>
            <input type="checkbox" class="all-reviews" id="multi_<?php echo $_smarty_tpl->tpl_vars['review']->value['id'];?>
" name="delete[individual][<?php echo $_smarty_tpl->tpl_vars['review']->value['id'];?>
]" value="" /><strong><?php echo $_smarty_tpl->tpl_vars['review']->value['title'];?>
</strong>
         </div>
         <p><?php echo $_smarty_tpl->tpl_vars['review']->value['review'];?>
</p>
         <div class="details">
            <span style="float: right;">
            <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = (int) 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = ((int) 1) == 0 ? 1 : (int) 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?><input type="radio" class="rating" name="rating_<?php echo $_smarty_tpl->tpl_vars['review']->value['id'];?>
" value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['i']['index'];?>
" disabled="disabled" <?php if ($_smarty_tpl->tpl_vars['review']->value['rating']==$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']) {?>checked="checked"<?php }?>><?php endfor; endif; ?>
            </span>
            <a href="index.php?_a=product&amp;product_id=<?php echo $_smarty_tpl->tpl_vars['review']->value['product_id'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['review']->value['product']['name'];?>
</a> &raquo;
            <?php echo $_smarty_tpl->tpl_vars['review']->value['date'];?>
 - <?php echo $_smarty_tpl->tpl_vars['review']->value['name'];?>
 &lt;<a href="mailto:<?php echo $_smarty_tpl->tpl_vars['review']->value['email'];?>
"><?php echo $_smarty_tpl->tpl_vars['review']->value['email'];?>
</a>&gt; <?php echo $_smarty_tpl->tpl_vars['review']->value['ip_address'];?>

         </div>
      </div>
      <?php } ?>
      <img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/select_all.gif" alt="">
      <a href="#" class="check-all" rel="all-reviews"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['check_uncheck'];?>
</a>
      <br>
      <?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['with_selected'];?>
:
      <select name="multi-status" class="textbox">
         <option value="delete"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
</option>
      </select>
      <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['go'];?>
" name="go" class="tiny submit_confirm" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
">
      <div class="pagination">
         <span><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['total'];?>
: <?php echo $_smarty_tpl->tpl_vars['TOTAL_RESULTS']->value;?>
</span><?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>

      </div>
      <?php } else { ?>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['reviews']['error_reviews_none'];?>
</p>
      <?php }?>
   </div>
   <div id="bulk_delete" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['reviews']['title_bulk_delete'];?>
</h3>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['reviews']['bulk_delete_desc'];?>
</p>
      <fieldset>
         <div><label for="email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
</label><span><input type="text" id="email" name="delete[email]" class="textbox"></span></div>
         <div><label for="ip_address"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['ip_address'];?>
</label><span><input type="text" id="ip_address" name="delete[ip_address]" class="textbox"></span></div>
      </fieldset>
   </div>
   <div id="search" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['reviews']['title_review_search'];?>
</h3>
      <fieldset>
         <div><label for="search-keywords"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['search']['keywords'];?>
</label><span><input type="text" id="search-keywords" name="filter[keywords]" class="textbox"></span></div>
         <div><label for="search-products"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['reviews']['filter_by_product'];?>
</label>
            <span>
            <input type="hidden" name="filter[product_id]" id="ajax_product_id">
            <input type="text" name="filter[product_string]" id="search-products" class="textbox ajax" rel="product">
            </span>
         </div>
         <div>
            <label for="search-status"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</label>
            <span>
            <select name="filter[approved]">
            <?php  $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['STATUSES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value) {
$_smarty_tpl->tpl_vars['status']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['status']->value['value'];?>
" <?php echo $_smarty_tpl->tpl_vars['status']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['status']->value['name'];?>
</option>
            <?php } ?>
            </select>
            </span>
         </div>
      </fieldset>
   </div>
   <?php }?>
   <?php if ($_smarty_tpl->tpl_vars['DISPLAY_FORM']->value) {?>
   <div id="review" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['reviews']['title_review_edit'];?>
</h3>
      <fieldset>
         <div><label for="review_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</label><span><input type="hidden" class="toggle" name="review[approved]" id="review_approved" value="<?php echo $_smarty_tpl->tpl_vars['REVIEW']->value['approved'];?>
"></span></div>
         <div><label for="review_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['name'];?>
</label><span><input type="text" name="review[name]" id="review_name" value="<?php echo $_smarty_tpl->tpl_vars['REVIEW']->value['name'];?>
" class="textbox"></span></div>
         <div><label for="review_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
</label><span><input type="text" name="review[email]" id="review_email" value="<?php echo $_smarty_tpl->tpl_vars['REVIEW']->value['email'];?>
" class="textbox"></span></div>
         <div><label for="review_title"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_title'];?>
</label><span><input type="text" name="review[title]" id="review_title" value="<?php echo $_smarty_tpl->tpl_vars['REVIEW']->value['title'];?>
" class="textbox"></span></div>
         <div><label for="review_content"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['document_content'];?>
</label><span><textarea name="review[review]" id="review_content" class="textbox"><?php echo $_smarty_tpl->tpl_vars['REVIEW']->value['review'];?>
</textarea></span></div>
         <div><label for=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['rating'];?>
</label><span>
            <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = (int) 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = ((int) 1) == 0 ? 1 : (int) 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?><input type="radio" name="rating" value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['i']['index'];?>
" class="rating" <?php if ($_smarty_tpl->tpl_vars['REVIEW']->value['rating']==$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']) {?>checked="checked"<?php }?>><?php endfor; endif; ?>
            &nbsp;</span>
         </div>
         <br>
         <input type="hidden" name="review[id]" value="<?php echo $_smarty_tpl->tpl_vars['REVIEW']->value['id'];?>
">
      </fieldset>
   </div>
   <?php }?>
   <?php echo $_smarty_tpl->getSubTemplate ('templates/element.hook_form_content.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

   <div class="form_control">
      <input type="hidden" name="previous-tab" id="previous-tab" value="">
      <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['submit'];?>
" class="submit">
   </div>
   <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
