<?php /* Smarty version 2.6.12, created on 2011-01-18 14:26:18
         compiled from reservation_main_switch_category.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'reservation_main_switch_category.html', 3, false),)), $this); ?>
<?php echo '<select id="reservation_switch_category';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" class="reservation_style_select" name="category_id" onchange=\'reservationCls["';  echo ((is_array($_tmp=$this->_tpl_vars['main_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"].changeReservation(null, null, this.value); return false;\'><option value="0"';  if (( ((is_array($_tmp=$this->_tpl_vars['view_category_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == '0' )):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['reservation_all_category'];  echo '</option>';  $_from = ((is_array($_tmp=$this->_tpl_vars['action']['category_list'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['category'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['category']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['category_id'] => $this->_tpl_vars['category_name']):
        $this->_foreach['category']['iteration']++;
 echo '';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['location_count_list'][$this->_tpl_vars['category_id']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 0 || ((is_array($_tmp=$_SESSION['_user_auth_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == _AUTH_ADMIN )):  echo '<option value="';  echo ((is_array($_tmp=$this->_tpl_vars['category_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"';  if (( ((is_array($_tmp=$this->_tpl_vars['category_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=$this->_tpl_vars['view_category_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) )):  echo ' selected="selected"';  endif;  echo '>';  if (( ((is_array($_tmp=$this->_tpl_vars['category_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == "" )):  echo '';  echo $this->_tpl_vars['lang']['reservation_no_category'];  echo '';  else:  echo '';  echo $this->_tpl_vars['category_name'];  echo '';  endif;  echo '</option>';  endif;  echo '';  endforeach; endif; unset($_from);  echo '</select>'; ?>