					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
					<form id="feditor" name="edit" method="post" action="<?php e($this->_vars['action']['url']); ?>">
						<?php HTML::requires(); ?>
<?php if ($this->_vars['action']['complete']): ?>
						<div class="listplain">
							<?php _e('Updated'); ?><br /><br /><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?>
						</div>
<?php elseif ($this->_vars['action']['confirm']): ?>
						<div class="listrow">
							<label class="column"><?php _e('Profile Viewable'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['visibility']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Name'); ?>:</label>
							<div class="target"> 
								<?php e($this->_vars['act_profile']['last_name']); ?>&nbsp;
								<?php e($this->_vars['act_profile']['first_name']); ?>
							</div>
							<div class="flag"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['name_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Nickname'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['act_profile']['nickname']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Present address'); ?>:</label>
							<div class="target">
								<?php e($this->_vars['reference']['ara_region'][$this->_vars['act_profile']['ref_region']]); ?>
								<?php HTML::reference('ara_city', $this->_vars['act_profile']['ref_city']); ?>
							</div>
							<div class="flag"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['region_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Gender'); ?>:</label>
							<div class="target"><?php e($this->_vars['reference']['act_gender'][$this->_vars['act_profile']['ref_gender']]); ?></div>
							<div class="flag"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['gender_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Blood Type'); ?>:</label>
							<div class="target"><?php e($this->_vars['reference']['act_blood'][$this->_vars['act_profile']['ref_blood']]); ?></div>
							<div class="flag"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['blood_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Birthday'); ?>:</label>
							<div class="target">
								<?php eDate($this->_vars['act_profile']['birthday'], _('Y-m-d')); ?>
							</div>
							<div class="flag"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['birthday_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Age Viewable'); ?>:</label>
							<div class="target"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['age_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Marital Status'); ?>:</label>
							<div class="target"><?php e($this->_vars['reference']['act_married'][$this->_vars['act_profile']['ref_married']]); ?></div>
							<div class="flag"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['married_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Hometown'); ?>:</label>
							<div class="target">
								<?php e($this->_vars['reference']['ara_region'][$this->_vars['act_profile']['ref_hometown']]); ?>
								<?php HTML::reference('ara_city', $this->_vars['act_profile']['ref_homecity']); ?>
							</div>
							<div class="flag"><?php e($this->_vars['visibility'][$this->_vars['act_profile']['hometown_flag']]); ?></div>
						</div>
<?php /* プロフィール追加項目 */
    if (!empty($this->_vars['items'])): ?>
<?php foreach ($this->_vars['items'] as $_row): ?>
						<div class="listrow">
							<label class="column"><?php e($_row['item']); ?>:</label>
							<div class="target">
								<input name="personals[<?php e($_row['ref_item']); ?>][ref_item]" type="hidden" value="<?php e($_row['ref_item']); ?>" />
								<input name="personals[<?php e($_row['ref_item']); ?>][personal]" type="hidden" value="<?php e($_row['personal']); ?>" />
								<input name="personals[<?php e($_row['ref_item']); ?>][visibility]" type="hidden" value="<?php e($_row['visibility']); ?>" />
<?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::checkedList($_row['answers'], $_row['personal'], 2); ?>
<?php elseif ($_row['type'] == FORM_TYPE_DATE): ?>
								<?php eDate($_row['personal'], _('Y-m-d')); ?>
<?php endif; ?>
							</div>
<?php if ($_row['visible'] == VISIBLE_SELECT): ?>
							<div class="flag"><?php e($this->_vars['visibility'][$_row['visibility']]); ?></div>
<?php endif; ?>
						</div>
<?php endforeach; ?>
<?php endif; ?>
						<div class="listrow">
							<label class="column"><?php _e('Taste'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['taste'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<?php HTML::checkedList($this->_vars['reference']['act_taste'], $this->_vars['act_profile']['taste']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Comment'); ?>:</label>
							<div class="fdata"><?php HTML::htmlBody($this->_vars['act_profile']['comment']); ?></div>
						</div>
						<div class="listplain">
							<input type="submit" name="manip" value="<?php _e('Submit'); ?>" style="width:120px;" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="submit" name="<?php e($this->_vars['action']['goback']); ?>" value="<?php _e('Go back'); ?>" style="width:100px;" />
						</div>
<?php else: ?>
						<div class="listrow">
							<label class="column"><?php _e('Profile Viewable'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['visibility'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="visibility"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['visibility']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Name'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['first_name']) || !empty($this->_vars['alert']['last_name'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<input type="text" name="last_name" value="<?php e($this->_vars['act_profile']['last_name']); ?>" size="18" />&nbsp;
								<input type="text" name="first_name" value="<?php e($this->_vars['act_profile']['first_name']); ?>" size="18" />
							</div>
							<div class="flag">
								<?php if (!empty($this->_vars['alert']['name_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="name_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['name_flag']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Nickname'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['nickname'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<input type="text" name="nickname" value="<?php e($this->_vars['act_profile']['nickname']); ?>" size="32" />
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Present address'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['ref_region'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="ref_region" onchange="setCity('<?php e(HTTP_ACTION); ?>public/json/city/', this, 'city');"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['ara_region'], $this->_vars['act_profile']['ref_region']); ?></select>
								<?php if (!empty($this->_vars['alert']['ref_city'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select id="city" name="ref_city"><?php HTML::options($this->_vars['cities'], $this->_vars['act_profile']['ref_city']); ?></select>
							</div>
							<div class="flag">
								<?php if (!empty($this->_vars['alert']['region_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="region_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['region_flag']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Gender'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['ref_gender'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="ref_gender"><?php HTML::options($this->_vars['reference']['act_gender'], $this->_vars['act_profile']['ref_gender']); ?></select>
							</div>
							<div class="flag">
								<?php if (!empty($this->_vars['alert']['gender_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="gender_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['gender_flag']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Blood Type'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['ref_blood'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="ref_blood"><?php HTML::options($this->_vars['reference']['act_blood'], $this->_vars['act_profile']['ref_blood']); ?></select>
							</div>
							<div class="flag">
								<?php if (!empty($this->_vars['alert']['blood_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="blood_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['blood_flag']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Birthday'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['birthday'])): ?><span class="alert"><?php _e('Please select date.'); ?></span><br /><?php endif; ?>
								<?php HTML::dateSelect('birthday', $this->_vars['act_profile']['birthday'], DATE_START_AGE); ?>
							</div>
							<div class="flag">
								<?php if (!empty($this->_vars['alert']['birthday_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="birthday_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['birthday_flag']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Age Viewable'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['age_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="age_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['age_flag']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Marital Status'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['ref_married'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="ref_married"><?php HTML::options($this->_vars['reference']['act_married'], $this->_vars['act_profile']['ref_married']); ?></select>
							</div>
							<div class="flag">
								<?php if (!empty($this->_vars['alert']['married_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="married_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['married_flag']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Hometown'); ?>:</label>
							<div class="target">
								<?php if (!empty($this->_vars['alert']['ref_hometown'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="ref_hometown" onchange="setCity('<?php e(HTTP_ACTION); ?>public/json/city/', this, 'homecity');"><?php HTML::options($this->_vars['reference']['ara_region'], $this->_vars['act_profile']['ref_hometown']); ?></select>
								<?php if (!empty($this->_vars['alert']['ref_homecity'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select id="homecity" name="ref_homecity"><?php HTML::options($this->_vars['homecities'], $this->_vars['act_profile']['ref_homecity']); ?></select>
							</div>
							<div class="flag">
								<?php if (!empty($this->_vars['alert']['hometown_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="hometown_flag"><?php HTML::options($this->_vars['visibility'], $this->_vars['act_profile']['hometown_flag']); ?></select>
							</div>
						</div>
<?php /* プロフィール追加項目 */
    if (!empty($this->_vars['items'])): ?>
<?php foreach ($this->_vars['items'] as $_row): ?>
						<div class="listrow">
							<label class="column"><?php e($_row['item']); ?><?php if($_row['required']): ?><span class="attention">*</span><?php endif; ?>:</label>
							<div class="target">
								<?php if (!empty($_row['alert'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<input name="personals[<?php e($_row['ref_item']); ?>][ref_item]" type="hidden" value="<?php e($_row['ref_item']); ?>" />
<?php if ($_row['type'] == FORM_TYPE_TEXT): ?>
								<input type="text" name="personals[<?php e($_row['ref_item']); ?>][personal]" value="<?php e($_row['personal']); ?>" size="32" />
<?php elseif ($_row['type'] == FORM_TYPE_TEXTAREA): ?>
								<textarea name="personals[<?php e($_row['ref_item']); ?>][personal]" cols="40" rows="10"><?php e($_row['personal']); ?></textarea>
<?php elseif ($_row['type'] == FORM_TYPE_SELECT): ?>
								<select name="personals[<?php e($_row['ref_item']); ?>][personal]"><?php HTML::options($_row['answers'], $_row['personal']); ?></select>
<?php elseif ($_row['type'] == FORM_TYPE_CHECKBOX): ?>
								<?php HTML::checkbox('personals['.$_row['ref_item'].'][personal]', $_row['answers'], $_row['personal'], 2); ?>
<?php elseif ($_row['type'] == FORM_TYPE_RADIO): ?>
								<?php HTML::radio('personals['.$_row['ref_item'].'][personal]', $_row['answers'], $_row['personal']); ?>
<?php elseif ($_row['type'] == FORM_TYPE_DATE): ?>
								<?php HTML::dateSelect('personals['.$_row['ref_item'].'][personal]', $_row['personal'], DATE_START_AGE); ?>
<?php endif; ?>
							</div>
<?php if ($_row['visible'] == VISIBLE_SELECT): ?>
							<div class="flag">
								<select name="personals[<?php e($_row['ref_item']); ?>][visibility]"><?php HTML::options($this->_vars['visibility'], $_row['visibility']); ?></select>
							</div>
<?php endif; ?>
						</div>
<?php endforeach; ?>
<?php endif; ?>
						<div class="listrow">
							<label class="column"><?php _e('Taste'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['taste'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<?php HTML::checkbox('taste', $this->_vars['reference']['act_taste'], $this->_vars['act_profile']['taste']); ?>
							</div>
						</div>
						<div class="listrow">
						    <div class="mdata">
    							<?php if (!empty($this->_vars['alert']['comment'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<?php HTML::richEditor('comment', $this->_vars['act_profile']['comment'], _('Comment'), 'small'); ?>
							</div>
						</div>
						<div class="listplain"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:120px;" /></div>
<?php endif; ?>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />
