{action->getOtherinfo assign=otherinfo}
{action->getBasicinfo assign=basicinfo}
{action->getGenreList assign=genrelist}
{action->getYearLoopCount assign=loopcnt}
{errorList->getMessages assign=errmsg}
{include file="header.html"}

<!-- ↓ラッパー -->
<div id="wrapper" class="clearfix">

<!-- ↓新規登録 -->
<div id="registry">

<div id="title"><h2>その他情報変更</h2></div>

<div class="segment">

<form action="{$scriptName}" method="POST">
<input type="hidden" name="action" value="customer_mypage_moremember_update_check">
<p>お客様の情報を入力してください。</p>

{if $errmsg}
<ul class="alert">
  {foreach from=$errmsg item=msg}
  <li>{$msg|escape}</li>
  {/foreach}
</ul>
{/if}

<table border="0" cellspacing="5" cellpadding="0">
  <tr>
    <th class="account" >姓</th>
    <td align="left" valign="top">{$basicinfo.lastnm|escape}</td>
  </tr>
  <tr>
    <th class="account">名</th>
    <td align="left" valign="top">{$basicinfo.firstnm|escape}</td>
  </tr>
  <tr>
    <th class="account">メールアドレス</th>
    <td align="left" valign="top">{$basicinfo.mailaddr|escape}</td>
  </tr>
  <tr>
    <th class="account">ニックネーム</th>
    <td align="left" valign="top"><input name="nickname" type="text" size="30" value="{$otherinfo->nickname|escape}"></td>
  </tr>
  <tr>
    <th class="account">生年月日</th>
  <td align="left" valign="top">
      <select name="select_year">
        {section name=year loop=$loopcnt}
        <option value="{$smarty.section.year.index+1900}" {if $otherinfo->select_year == $smarty.section.year.index+1900 || $smarty.section.year.index == 87 && $otherinfo->select_year == ""}selected{/if}>{$smarty.section.year.index+1900}
        {/section}
      </select>
      年
      <select name="select_month">
        {section name=month loop=12}
        <option value="{$smarty.section.month.index+1}" {if $otherinfo->select_month == $smarty.section.month.index+1}selected{/if}>{$smarty.section.month.index+1}  
        {/section}
      </select>
      月
      <select name="select_day">
        {section name=day loop=31}
        <option value="{$smarty.section.day.index+1}" {if $otherinfo->select_day == $smarty.section.day.index+1}selected{/if}>{$smarty.section.day.index+1}  
        {/section}
      </select>
      日</td>
  </tr>
  <tr>
    <th class="account">自己紹介</th>
  <td align="left" valign="top"><textarea name="introduce_myself" cols="30" rows="5">{$otherinfo->introduce_myself|escape}</textarea></td>
  </tr>
  <tr>
    <th class="account">ジャンル</th>
    <td align="left" valign="top">
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#7F9DB9">
        <tr>
          <td><table border="0" align="center" cellpadding="0" cellspacing="3" bordercolor="#0099FF">
            {foreach from=$genrelist item=genre name=genres}
              {assign var="count" value=`$smarty.foreach.genres.iteration-1`} 
              {action->getGenreExists genrecd=$genre.genrecd assign=genreExists}
              {if $smarty.foreach.genres.first}
              <tr>{/if}
                <td><input type="checkbox" name="category[{$count}]" value={$genre.genrecd} {if $genreExists}checked{/if}></td>
                <td class="style1">{$genre.genrenm}</td>
              {if $smarty.foreach.genres.iteration % 2 == 0 && $smarty.foreach.genres.last == false}</tr><tr>{/if}
              {if $smarty.foreach.genres.last}</tr>{/if}
            {/foreach}
          </table></td>
        </tr>
      </table>	</td>
  </tr>
  <tr>
    <th height="30">&nbsp;</th>
    <td align="left" valign="top"><input name="Submit" type="image" src="img/btn_submit.gif" alt="確認">      <a href="JavaScript:location.href='{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action=customer_mypage'"><img src="img/btn_return.gif" alt="戻る" border="0"></a></td>
  </tr>
</table>

</div>

</div>
<!-- ↑新規登録 -->

</div>
<!-- ↑ラッパー -->


{include file="footer.html"}


