<?php
    $_avails = array(
        STATUS_ENABLE=>  _('Enable'),
        STATUS_DISABLE=> _('Disable'),
        ''=> _('No Select'),
    );

    $_id        = empty($this->_vars['r_viw_community']['id'])? '':$this->_vars['r_viw_community']['id'];
    $_community = empty($this->_vars['r_viw_community']['community'])? '':$this->_vars['r_viw_community']['community'];
    $_keyword   = empty($this->_vars['r_viw_community']['keyword'])? '':$this->_vars['r_viw_community']['keyword'];
    $_category  = empty($this->_vars['r_viw_community']['ref_category'])? '':$this->_vars['r_viw_community']['ref_category'];
    $_region    = empty($this->_vars['r_viw_community']['ref_region'])? '':$this->_vars['r_viw_community']['ref_region'];
    $_avail     = empty($this->_vars['r_viw_community']['avail'])? '':$this->_vars['r_viw_community']['avail'];
?>

					<form name="search" method="post" action="<?php e(HTTP_ACTION); ?>admin/community/list/">
					<img src="<?php Theme::Path(); ?>menuTop.png" width="188" height="10" alt="+--+" align="absbottom" />
					<ul class="sideList">
						<li><label><?php _e('Community ID');?>:</label></li>
						<li><input type="text" name="id" value="<?php e($_id); ?>" /></li>
						<li><label><?php _e('Community Name');?>:</label></li>
						<li><input type="text" name="community" value="<?php e($_community); ?>" /></li>
						<li><label><?php _e('Keyword');?>:</label></li>
						<li><input type="text" name="keyword" value="<?php e($_keyword); ?>" /></li>
<?php if (!empty($this->_vars['reference']['com_category'])): ?>
						<li><label><?php _e('Category');?>:</label></li>
						<li><select name="ref_category"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['com_category'], $_category); ?></select></li>
<?php endif; ?>
<?php if (!empty($this->_vars['reference']['ara_region'])): ?>
						<li><label><?php _e('Region');?>:</label></li>
						<li><select name="ref_region"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['ara_region'], $_region); ?></select></li>
<?php endif; ?>
						<li><label><?php _e('Avail');?>:</label></li>
						<li><?php HTML::radio('avail', $_avails, $_avail, '<br />'); ?></li>
<?php if (!empty($this->_vars['order_label'])): ?>
						<li><label><?php _e('Sort by');?>:</label></li>
						<li><?php HTML::radio('order', $this->_vars['order_label'], $this->_vars['r_viw_community']['order'], '<br />'); ?></li>
<?php endif; ?>
						<li class="submit"><input type="submit" name="search" value="<?php _e('Search');?>" /></li>
					</ul><img src="<?php Theme::Path(); ?>menuBottom.png" width="188" height="10" alt="+__+" align="top" />
					</form>
