{action->getNewmember assign=newmember}
{action->getSecQuestionData assign=questions}
{action->getBa              assign=BA}
{action->getYearLoopCount assign=loopcnt}
{action->getGenreList assign=genrelist}
{errorList->getMessages assign=errmsg}
{include file="header.html"}

<!--↓コンテンツ-->
<div id="contents">

<div id="pankuzu">
  <ul>
    <li><a href="{$dirName}/index.php">トップ</a></li>
    <li>&nbsp;&gt;&nbsp;<a href="{$smarty.const.URL_ROOT}{$dirName}/?action=customer_mypage">マイページ</a></li>
    <li class="last">&nbsp;&gt;&nbsp;{if $newmember->memberCd}会員情報変更{else}会員新規登録{/if}</li>
  </ul>
</div>
<!--End of pankuzu-->

<div id="etc">
  <h3>{if $newmember->memberCd}会員情報変更{else}会員新規登録{/if}</h3>
  
  {if $newmember->memberCd}
  　&nbsp;
  {else}
  <p>
  <h4>登録無料！ 維持費無料！</h4><br />
  タグ、お気に入り、レビュー、返品、キャンセルシステム　など、便利な機能が使えるようになります。<br />
  退会も、ワンクリックで手軽にできます。  お気軽にご登録ください。
  </P>
  <p>&nbsp;</p>
  {/if}

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

{if $errmsg}
  <p>
{foreach from=$errmsg item=msg}
    {$msg|escape}<br />
{/foreach}
  </p>
{/if}


<form action="{$scriptName}" method="post">
  <input type="hidden" name="action"   value="customer_mypage_member_insert_check" />
  <input type="hidden" name="ba"       value="{action->getBa}" />
  <input type="hidden" name="memberCd" value="{$newmember->memberCd}" />
  <input type="hidden" name="updCnt"   value="{action->getUpdCnt}" />
  
  <table border="0" cellspacing="0" cellpadding="0" class="entryform">
    <tr>
      <th class="must">会員区分</th>
      <td><label><input name="member_div" type="radio" value="1" {if $newmember->member_div == 1 || $newmember->member_div == ""}checked{/if}/>PC会員</label><br />
          <label><input name="member_div" type="radio" value="2" {if $newmember->member_div == 2}checked{/if}/>携帯会員</label></td>
      <td class="caution">配信されるメールマガジンの形式が最適化されます</td>
    </tr>
    <tr>
      <th class="must">メールアドレス</th>
      <td><input name="mailaddress_user" type="text" size="15" value="{$newmember->mailaddress_user|escape}" />&nbsp;@&nbsp;<input type="text" name="mailaddress_domain" value="{$newmember->mailaddress_domain|escape}" /></td>
      <td class="caution">半角英数字</td>
    </tr>
    <tr>
      <th class="must">お名前</th>
      <td><input name="lastname" type="text" value="{$newmember->lastname|escape}" size="15" />
      &nbsp;：姓　　
      <input name="frontname" type="text" value="{$newmember->frontname|escape}" size="15" />&nbsp;：名</td>
      <td class="caution">全角</td>
    </tr>
    <tr>
      <th class="must">ふりがな</th>
      <td><input name="lastname_kana" type="text" value="{$newmember->lastname_kana|escape}" size="15" />
      &nbsp;：せい　
      <input name="frontname_kana" type="text" value="{$newmember->frontname_kana|escape}" size="15" />&nbsp;：めい</td>
      <td class="caution">ひらがな</td>
    </tr>
    <tr>
      <th class="must">ニックネーム</th>
      <td><input name="nickname" type="text" value="{$newmember->nickname|escape}" size="40" /></td>
      <td class="caution">全角20文字以内</td>
    </tr>
    <tr>
      <th class="must">生年月日</th>
      <td>
        <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> 日</td>
      <td class="caution">&nbsp;</td>
    </tr>
    <tr>
      <th class="must">性別</th>
      <td>
        <label><input name="sex" type="radio" value="1" {if $newmember->sex==1||$newmember->sex==""}checked{/if} />男性</label>
        <label><input name="sex" type="radio" value="2" {if $newmember->sex==2}checked{/if} />女性</label>
      </td>
      <td class="caution">&nbsp;</td>
    </tr>
    <tr>
      <th class="must">パスワード</th>
      <td><input name="password" type="password" value="{$newmember->password}" /></td>
      <td class="caution">（半角4文字以上20文字以内）</td>
    </tr>
    <tr>
      <th class="must">パスワード確認</th>
      <td><input name="pass_confirm" type="password" value="{$newmember->pass_confirm}" /></td>
      <td class="caution">入力間違い防止のため再度ご入力ください</td>
    </tr>
    <tr>
      <th class="must">秘密の質問</th>
      <td>
        <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></td>
      <td class="caution">&nbsp;</td>
    </tr>
    <tr>
      <th class="must">質問の答え</th>
      <td><input name="answer" type="text" value="{$newmember->answer|escape}" /></td>
      <td class="caution">半角40文字・全角20文字以内</td>
    </tr>
    <tr>
      <th class="must">メールマガジン配信</th>
      <td><label><input name="mail_accept" type="radio" value="1" {if $newmember->mail_accept == 1}checked{/if}/>希望する</label><br />
          <label><input name="mail_accept" type="radio" value="0" {if $newmember->mail_accept == 0}checked{/if}/>希望しない</label></td>
      <td class="caution">&nbsp;</td>
    </tr>
    
    <tr>
      <td colspan="2" rowspan="2" class="non">
        <p class="indent">※当サイト では、SSL暗号化通信を実現しています。</p>
        <p class="indent">※第三者に「会員情報・決済情報」を盗み見られる心配はありません。</p>
      <td class="constatation">
        <p>入力後「入力内容のご確認」<br />
            へお進みください。</p>
        <input name="constatation_button" type="image" onclick="#" src="img/constatation_btn.gif" alt="入力内容のご確認" /></td>
    </tr>
    <tr>
      <td class="constatation2"><p>前ページへ戻る</p>
{if $BA != null}
  {if $BA == "customer_mypage_seller_insert_form"}
      <a href="{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action={$BA}"><img src="img/back_btn.gif" alt="戻る" width="116" height="24" border="0" /></a>
  {else}
      <a href="{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action={$BA}"><img src="img/back_btn.gif" alt="戻る" width="116" height="24" border="0" /></a>
  {/if}
{else}
      <a href="{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action=customer_mypage"><img src="img/back_btn.gif" alt="戻る" width="116" height="24" border="0" /></a>
{/if}
      </td>
    </tr>

  </table>
</form>

</div>
<!--End of etc-->

</div>
<!--↑コンテンツ-->

{include file="footer.html"}

