<?php if ($this->_vars['base']['account']['status'] != STATUS_GUEST): ?>
<?php include VIEW_DIR.'mobile/common/menu/private.tpl'; ?><?php else : ?>
<?php include VIEW_DIR.'mobile/common/menu/public.tpl'; ?><?php endif; ?>

<?php if (empty($this->_vars['v_act_profile'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<?php HTML::mobilePager($this->_vars['p_act_profile']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_act_profile'] as $_row): ?>
	<tr><td width="90" bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><font size="<?php Theme::exec()->fontSize(); ?>">
		<?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_account'], 'nickname,vSmall'); ?>
		<?php loadPlugin::callFunc('hitsuji_lastLogin', $_row['ref_account']); ?></font>
	<br></td><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
		<?php HTML::strimWidth($_row['comment']); ?>
		<br>&lt;<a href="<?php e(HTTP_ACTION); ?>member/personal/profile/<?php e($_row['ref_account']); ?>/"><?php _e('View'); ?></a>&gt;</font>
	<hr color="<?php Theme::exec()->bgColor(); ?>" noshade="noshade"></td></tr>
<?php endforeach; ?>
</table>
<?php HTML::mobilePager($this->_vars['p_act_profile']); ?>
<?php endif; ?>

<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">
<form method="post" action="<?php e(HTTP_ACTION); ?>member/personal/search/"><?php HTML::requires(); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Last Name');?>:<br></td></tr>
	<tr><td><input type="text" name="last_name" value="<?php e($this->_vars['r_act_profile']['last_name']); ?>"><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('First Name');?>:<br></td></tr>
	<tr><td><input type="text" name="first_name" value="<?php e($this->_vars['r_act_profile']['first_name']); ?>"><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Nickname');?>:<br></td></tr>
	<tr><td><input type="text" name="nickname" value="<?php e($this->_vars['r_act_profile']['nickname']); ?>"><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Gender');?>:<br></td></tr>
	<tr><td><select name="ref_gender"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['act_gender'], $this->_vars['r_act_profile']['ref_gender']); ?></select><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Age');?>:<br></td></tr>
	<tr><td><input type="text" name="age_left" value="<?php e(empty($this->_vars['r_act_profile']['age_left'])? null:fAge($this->_vars['r_act_profile']['age_left'])-1); ?>"> <?php _e('to'); ?> <input type="text" name="age_right" value="<?php eAge($this->_vars['r_act_profile']['age_right']); ?>"><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Blod Type');?>:<br></td></tr>
	<tr><td><select name="ref_blood"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['act_blood'], $this->_vars['r_act_profile']['ref_blood']); ?></select><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Present Address');?>:<br></td></tr>
	<tr><td><select name="ref_region"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['ara_region'], $this->_vars['r_act_profile']['ref_region']); ?></select><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Homecity');?>:<br></td></tr>
	<tr><td><select name="ref_hometown"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['ara_region'], $this->_vars['r_act_profile']['ref_hometown']); ?></select><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Taste');?>:<br></td></tr>
	<tr><td><select name="taste"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['act_taste'], $this->_vars['r_act_profile']['taste']); ?></select><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Keyword');?>:<br></td></tr>
	<tr><td><input type="text" name="keyword" value="<?php e($this->_vars['r_act_profile']['keyword']); ?>"><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Picture');?>:<br></td></tr>
	<tr><td><input type="checkbox" name="photo" value="1" <?php e(empty($this->_vars['r_act_profile']['photo'])? '':' checked="checked"'); ?>><?php _e('Have a picture');?><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><input type="submit" name="search" value="<?php _e('Search');?>"><br></td></tr>
</table>
</form>
