<?php include VIEW_DIR.'mobile/common/menu/profile.tpl'; ?>


<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php if ($this->_vars['profile']['name_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Name'); ?>:<br></td></tr>
	<tr><td><?php e(RKT_Crypt::getDecrypted($this->_vars['profile']['last_name'])); ?><?php e(RKT_Crypt::getDecrypted($this->_vars['profile']['first_name'])); ?><br></td></tr>
<?php endif; ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Nickname'); ?>:<br></td></tr>
	<tr><td><?php e($this->_vars['profile']['nickname']); ?><br></td></tr>
<?php if ($this->_vars['profile']['region_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Present address'); ?>:<br></td></tr>
	<tr><td><?php HTML::reference('ara_region', $this->_vars['profile']['ref_region']); ?><?php HTML::reference('ara_city', $this->_vars['profile']['ref_city']); ?><br></td></tr>
<?php endif; ?>
<?php if ($this->_vars['profile']['gender_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Gender'); ?>:<br></td></tr>
	<tr><td><?php HTML::reference('act_gender', $this->_vars['profile']['ref_gender']); ?><br></td></tr>
<?php endif; ?>
<?php if ($this->_vars['profile']['blood_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Blood Type'); ?>:<br></td></tr>
	<tr><td><?php HTML::reference('act_blood', $this->_vars['profile']['ref_blood']); ?><br></td></tr>
<?php endif; ?>
<?php if ($this->_vars['profile']['age_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Age'); ?>:<br></td></tr>
	<tr><td><?php printf(_('%s years old'), fAge($this->_vars['profile']['birthday'])); ?><br></td></tr>
<?php endif; ?>
<?php if ($this->_vars['profile']['birthday_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Birthday'); ?>:<br></td></tr>
	<tr><td><?php eDate($this->_vars['profile']['birthday'], _('m-d')); ?><br></td></tr>
<?php endif; ?>
<?php if ($this->_vars['profile']['married_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Marital Status'); ?>:<br></td></tr>
	<tr><td><?php HTML::reference('act_married', $this->_vars['profile']['ref_married']); ?><br></td></tr>
<?php endif; ?>
<?php if ($this->_vars['profile']['hometown_flag'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Hometown'); ?>:<br></td></tr>
	<tr><td><?php HTML::reference('ara_region', $this->_vars['profile']['ref_hometown']); ?><?php HTML::reference('ara_city', $this->_vars['profile']['ref_homecity']); ?><br></td></tr>
<?php endif; ?>
<?php /* プロフィール追加項目 */
if (!empty($this->_vars['items'])):
foreach ($this->_vars['items'] as $_row): 
?>
<?php if ($_row['visibility'] & $this->_vars['base']['visible']): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php e($_row['item']); ?>:<br></td></tr>
	<tr><td>
<?php if ($_row['type'] == FORM_TYPE_TEXT): ?>
		<?php e($_row['personal']); ?>
<?php elseif ($_row['type'] == FORM_TYPE_TEXTAREA): ?>
		<?php nl2br($_row['personal']); ?>
<?php elseif ($_row['type'] == FORM_TYPE_SELECT || $_row['type'] == FORM_TYPE_RADIO): ?>
		<?php e($_row['answers'][$_row['personal']]); ?>
<?php elseif ($_row['type'] == FORM_TYPE_CHECKBOX): ?>
		<?php HTML::mobileCheckedList($_row['answers'], $_row['personal'], 2); ?>
<?php elseif ($_row['type'] == FORM_TYPE_DATE): ?>
		<?php eDate($_row['personal'], _('Y-m-d')); ?>
<?php endif; ?>
	<br></td></tr>
<?php endif; ?>
<?php endforeach; endif; ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Comment'); ?>:<br></td></tr>
	<tr><td><?php HTML::htmlBody($this->_vars['profile']['comment']); ?><br></td></tr>
</table>

<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">
<?php loadPlugin::callFunc('hitsuji_mobileSummary', $this->_vars['base']['member']['id'], 'blg_entry'); ?>
<?php loadPlugin::callFunc('hitsuji_mobileTiles', $this->_vars['base']['member']['id'], 'friends'); ?>
<?php loadPlugin::callFunc('hitsuji_mobileTiles', $this->_vars['base']['member']['id'], 'community'); ?>
