{include file="mobile/header.html"}

{action->getNewmember assign=newmember}
{action->getSecQuestionData assign=questions}
{action->getBa              assign=BA}
{action->getYearLoopCount assign=loopcnt}
{action->getGenreList assign=genrelist}
{errorList->getMessages assign=errmsg}

  <hr color="#559fe8">
  <h4>{if $newmember->memberCd}会員情報変更{else}会員新規登録{/if}</h4>

  <font size="2">
    <a href="{$dirName}?action=help&pageid=kiyaku">利用規約</a>に同意される方は、お客様の情報を入力して下さい。<br />
        ■マークが付いている項目は、必須項目です。</font>
  <hr color="#559fe8">

{if $errmsg}
{foreach from=$errmsg item=msg}
    <h6>{$msg|escape}</h6>
{/foreach}
  <hr color="#559fe8">
{/if}

  <form action="{$dirName}/" method="POST">
  {$hiddenSID}
  <input type="hidden" name="action"   value="customer_mypage_member_insert_check" />
  <input type="hidden" name="memberCd" value="{$newmember->memberCd}" />
  <input type="hidden" name="updCnt"   value="{action->getUpdCnt}" />

  <h5>■会員区分（配信されるメールマガジンの形式が最適化されます）<br />
      <input name="member_div" type="radio" value="2" {if $newmember->member_div == 2 || $newmember->member_div == ""}checked{/if}/>携帯会員
      <input name="member_div" type="radio" value="1" {if $newmember->member_div == 1}checked{/if}/>PC会員</h5>
  <h5>■メールアドレス（半角英数字）<br />
      <input name="mailaddress_user" type="text" size="15" value="{$newmember->mailaddress_user|escape}" />&nbsp;@&nbsp;<input type="text" name="mailaddress_domain" size="15" value="{$newmember->mailaddress_domain|escape}" /></h5>
  <h5>■お名前（全角）<br />
      姓：<input name="lastname" type="text" value="{$newmember->lastname|escape}" size="15" /><br />
      名：<input name="frontname" type="text" value="{$newmember->frontname|escape}" size="15" /></h5>
  <h5>■ふりがな（ひらがな）<br />
      せい：<input name="lastname_kana" type="text" value="{$newmember->lastname_kana|escape}" size="15" /><br />
      めい：<input name="frontname_kana" type="text" value="{$newmember->frontname_kana|escape}" size="15" /></h5>
  <h5>●ニックネーム（全角20文字以内）<br />
      <input name="nickname" type="text" value="{$newmember->nickname|escape}" size="20" /></h5>
  <h5>■生年月日<br />
      <select name="select_year">
{section name=year loop=$loopcnt}
        <option value="{$smarty.section.year.index+1900}" {if $newmember->select_year == $smarty.section.year.index+1900 || $smarty.section.year.index == 87 && $newmember->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 $newmember->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 $newmember->select_day == $smarty.section.day.index+1}selected{/if}>{$smarty.section.day.index+1}  
{/section}
      </select> 日</h5>
  <h5>■性別<br />
      <input name="sex" type="radio" value="1" {if $newmember->sex==1||$newmember->sex==""}checked{/if} />男性
      <input name="sex" type="radio" value="2" {if $newmember->sex==2}checked{/if} />女性</h5>
  <h5>■パスワード（半角4文字以上20文字以内）<br />
      <input name="password" type="password" value="{$newmember->password}" /></h5>
  <h5>■パスワード確認（入力間違い防止のため再度ご入力ください）<br />
      <input name="pass_confirm" type="password" value="{$newmember->pass_confirm}" /></h5>
  <h5>■秘密の質問<br />
      <select name="question">
        <option value="">選択
{foreach from=$questions item=question name=secquestion}
        <option value="{$question.secquestioncd}" {if $newmember->question == $question.secquestioncd}selected{/if}>{$question.secquestionnm}
{/foreach}
      </select></h5>
  <h5>■質問の答え（半角40文字・全角20文字以内）<br />
      <input name="answer" type="text" value="{$newmember->answer|escape}" /></h5>
  <h5>■メールマガジン配信<br />
      <input name="mail_accept" type="radio" value="1" {if $newmember->mail_accept == 1}checked{/if}/>希望する
      <input name="mail_accept" type="radio" value="0" {if $newmember->mail_accept == 0}checked{/if}/>希望しない</h5>

  <hr color="#559fe8">

  <h5>入力後「入力内容のご確認」へお進みください。<br />
      <input name="constatation_button" type="submit"  value="入力内容のご確認" /></h5>

  </form>

{include file="mobile/footer.html"}
