Index: /branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
===================================================================
--- /branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php	(revision 17700)
+++ /branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php	(revision 17758)
@@ -91,16 +91,16 @@
         //別のお届け先ＤＢ登録用カラム配列
         $arrRegistColumn = array(
-                                 array(  "column" => "name01",		"convert" => "aKV" ),
-                                 array(  "column" => "name02",		"convert" => "aKV" ),
-                                 array(  "column" => "kana01",		"convert" => "CKV" ),
-                                 array(  "column" => "kana02",		"convert" => "CKV" ),
-                                 array(  "column" => "zip01",		"convert" => "n" ),
-                                 array(  "column" => "zip02",		"convert" => "n" ),
-                                 array(  "column" => "pref",		"convert" => "n" ),
-                                 array(  "column" => "addr01",		"convert" => "aKV" ),
-                                 array(  "column" => "addr02",		"convert" => "aKV" ),
-                                 array(  "column" => "tel01",		"convert" => "n" ),
-                                 array(  "column" => "tel02",		"convert" => "n" ),
-                                 array(  "column" => "tel03",		"convert" => "n" ),
+                                 array("column" => "name01",    "convert" => "aKV"),
+                                 array("column" => "name02",    "convert" => "aKV"),
+                                 array("column" => "kana01",    "convert" => "CKV"),
+                                 array("column" => "kana02",    "convert" => "CKV"),
+                                 array("column" => "zip01",     "convert" => "n"),
+                                 array("column" => "zip02",     "convert" => "n"),
+                                 array("column" => "pref",      "convert" => "n"),
+                                 array("column" => "addr01",    "convert" => "aKV"),
+                                 array("column" => "addr02",    "convert" => "aKV"),
+                                 array("column" => "tel01",     "convert" => "n"),
+                                 array("column" => "tel02",     "convert" => "n"),
+                                 array("column" => "tel03",     "convert" => "n"),
                                  );
 
@@ -121,23 +121,12 @@
                     }
                 } else {
-                    //別のお届け先登録数の取得
-                    $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id')));
-                    if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){
-                        if(strlen($_POST['other_deliv_id'] != 0)){
-                            $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id']));
-                            if ($deliv_count == 0) {
-                                SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
-                            }else{
-                                $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer);                                
-                            }
-                        }else{
-                            $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer);                            
-                        }
+                    
+                    if ($_POST['ParentPage'] == MYPAGE_DELIVADDR_URL || $_POST['ParentPage'] == URL_DELIV_TOP) {
+                        $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();";
+                    } else {
+                        SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR . 'E1');
                     }
-                        if( $_POST['ParentPage'] == MYPAGE_DELIVADDR_URL || $_POST['ParentPage'] == URL_DELIV_TOP ){
-                            $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();";
-                        }else{
-                            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
-                        }
+                    
+                    $this->lfRegistData($_POST, $arrRegistColumn, $objCustomer);
                 }
                 break;
@@ -169,10 +158,10 @@
         $objErr->doFunc(array("郵便番号", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
         $objErr->doFunc(array("都道府県", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
-        $objErr->doFunc(array("ご住所（1）", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
-        $objErr->doFunc(array("ご住所（2）", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
-        $objErr->doFunc(array("お電話番号1", 'tel01'), array("EXIST_CHECK","NUM_CHECK"));
-        $objErr->doFunc(array("お電話番号2", 'tel02'), array("EXIST_CHECK","NUM_CHECK"));
-        $objErr->doFunc(array("お電話番号3", 'tel03'), array("EXIST_CHECK","NUM_CHECK"));
-        $objErr->doFunc(array("お電話番号", "tel01", "tel02", "tel03", TEL_LEN) ,array("TEL_CHECK"));
+        $objErr->doFunc(array("住所（1）", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+        $objErr->doFunc(array("住所（2）", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","MAX_LENGTH_CHECK"));
+        $objErr->doFunc(array("電話番号1", 'tel01'), array("EXIST_CHECK","NUM_CHECK"));
+        $objErr->doFunc(array("電話番号2", 'tel02'), array("EXIST_CHECK","NUM_CHECK"));
+        $objErr->doFunc(array("電話番号3", 'tel03'), array("EXIST_CHECK","NUM_CHECK"));
+        $objErr->doFunc(array("電話番号", "tel01", "tel02", "tel03", TEL_LEN) ,array("TEL_CHECK"));
         return $objErr->arrErr;
 
@@ -182,4 +171,5 @@
     function lfRegistData($array, $arrRegistColumn, &$objCustomer) {
         $objConn = new SC_DBConn();
+        $objQuery = new SC_Query();
         foreach ($arrRegistColumn as $data) {
             if (strlen($array[ $data["column"] ]) > 0) {
@@ -190,14 +180,28 @@
         $arrRegist['customer_id'] = $objCustomer->getvalue('customer_id');
 
-        //-- 編集登録実行
-        $objConn->query("BEGIN");
-        if ($array['other_deliv_id'] != ""){
+        // 追加
+        if (strlen($_POST['other_deliv_id'] == 0)) {
+            // 別のお届け先登録数の取得
+            $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id')));
+            // 別のお届け先最大登録数に達している場合、エラー
+            if ($deliv_count >= DELIV_ADDR_MAX) {
+                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '別のお届け先最大登録数に達しています。');
+            }
+            
+            // 実行
+            $objConn->autoExecute("dtb_other_deliv", $arrRegist);
+            
+        // 変更
+        } else {
+            $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id']));
+            if ($deliv_count != 1) {
+                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '一致する別のお届け先がありません。');
+            }
+            
+            // 実行
             $objConn->autoExecute("dtb_other_deliv", $arrRegist,
                                   "other_deliv_id = "
                                   . SC_Utils_Ex::sfQuoteSmart($array["other_deliv_id"]));
-        }else{
-            $objConn->autoExecute("dtb_other_deliv", $arrRegist);
-        }
-        $objConn->query("COMMIT");
+        }
     }
 
@@ -205,9 +209,9 @@
     function lfConvertParam($array, $arrRegistColumn) {
         /*
-         *	文字列の変換
-         *	K :  「半角(ﾊﾝｶｸ)片仮名」を「全角片仮名」に変換
-         *	C :  「全角ひら仮名」を「全角かた仮名」に変換
-         *	V :  濁点付きの文字を一文字に変換。"K","H"と共に使用します
-         *	n :  「全角」数字を「半角(ﾊﾝｶｸ)」に変換
+         *  文字列の変換
+         *  K :  「半角(ﾊﾝｶｸ)片仮名」を「全角片仮名」に変換
+         *  C :  「全角ひら仮名」を「全角かた仮名」に変換
+         *  V :  濁点付きの文字を一文字に変換。"K","H"と共に使用します
+         *  n :  「全角」数字を「半角(ﾊﾝｶｸ)」に変換
          *  a :  全角英数字を半角英数字に変換する
          */
Index: /branches/comu-ver2/data/Smarty/templates/default/mypage/delivery_addr.tpl
===================================================================
--- /branches/comu-ver2/data/Smarty/templates/default/mypage/delivery_addr.tpl	(revision 17605)
+++ /branches/comu-ver2/data/Smarty/templates/default/mypage/delivery_addr.tpl	(revision 17758)
@@ -26,6 +26,6 @@
 <div id="windowarea">
     <h2 class="title"><!--{$tpl_title|escape}--></h2>
-    <p class="windowtext">下記項目にご入力ください。「<span class="attention">※</span>」印は入力必須項目です。<br />
-        入力後、一番下の「確認ページへ」ボタンをクリックしてください。</p>
+    <p>下記項目にご入力ください。「<span class="attention">※</span>」印は入力必須項目です。</p>
+    <p>入力後、一番下の「登録する」ボタンをクリックしてください。</p>
 
     <form name="form1" id="form1" method="post" action="?">
@@ -35,5 +35,5 @@
 
         <table summary="お届け先登録">
-        <!--{include file="`$smarty.const.TEMPLATE_DIR`frontparts/form_personal_input.tpl" flgFields=1 emailMobile=false prefix=""}-->
+            <!--{include file="`$smarty.const.TEMPLATE_DIR`frontparts/form_personal_input.tpl" flgFields=1 emailMobile=false prefix=""}-->
         </table>
 
Index: /branches/comu-ver2/data/Smarty/templates/default/mypage/delivery.tpl
===================================================================
--- /branches/comu-ver2/data/Smarty/templates/default/mypage/delivery.tpl	(revision 17605)
+++ /branches/comu-ver2/data/Smarty/templates/default/mypage/delivery.tpl	(revision 17758)
@@ -22,66 +22,53 @@
  */
 *}-->
-<script type="text/javascript">//<![CDATA[
-
-function fnCheckAfterOpenWin(){
-    if (<!--{$tpl_linemax}--> >= <!--{$smarty.const.DELIV_ADDR_MAX}-->){
-        alert('最大登録数を超えています');
-        return false;
-    }else{
-        win02('./delivery_addr.php','new_deiv','600','640');
-    }
-}
-//]]>
-</script>
-
 <!--▼CONTENTS-->
 <div id="mypagecolumn">
-  <h2 class="title"><!--{$tpl_title|escape}--></h2>
+    <h2 class="title"><!--{$tpl_title|escape}--></h2>
 <!--{include file=$tpl_navi}-->
-  <div id="mycontentsarea">
-    <h3><!--{$tpl_subtitle|escape}--></h3>
-    <p>登録住所以外へのご住所へ送付される場合等にご利用いただくことができます。<br />
-     ※最大<!--{$smarty.const.DELIV_ADDR_MAX}-->件まで登録できます。</p>
+    <div id="mycontentsarea">
+        <h3><!--{$tpl_subtitle|escape}--></h3>
+        <p>登録住所以外へのご住所へ送付される場合等にご利用いただくことができます。</p>
+        <p>※最大<!--{$smarty.const.DELIV_ADDR_MAX|escape}-->件まで登録できます。</p>
 
-    <p class="addbtn">
-    <!--{if $tpl_linemax < 20}-->
-      <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win03('./delivery_addr.php','delivadd','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/common/newadress_on.gif','newadress');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/common/newadress.gif','newadress');" target="_blank"><img src="<!--{$TPL_DIR}-->img/common/newadress.gif" width="160" height="22" alt="新しいお届け先を追加" border="0" name="newadress" /></a>
-    <!--{/if}-->
-    </p>
+        <!--{if $tpl_linemax < $smarty.const.DELIV_ADDR_MAX}-->
+            <p class="addbtn">
+                <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win03('./delivery_addr.php','delivadd','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/common/newadress_on.gif','newadress');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/common/newadress.gif','newadress');" target="_blank"><img src="<!--{$TPL_DIR}-->img/common/newadress.gif" width="160" height="22" alt="新しいお届け先を追加" border="0" name="newadress" /></a>
+            </p>
+        <!--{/if}-->
 
-    <!--{if $tpl_linemax > 0}-->
-    <form name="form1" method="post" action="?" >
-      <input type="hidden" name="mode" value="" />
-      <input type="hidden" name="other_deliv_id" value="" />
-      <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" />
+        <!--{if $tpl_linemax > 0}-->
+        <form name="form1" method="post" action="?" >
+            <input type="hidden" name="mode" value="" />
+            <input type="hidden" name="other_deliv_id" value="" />
+            <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" />
 
-      <table summary="お届け先">
-        <tr>
-          <th colspan="5">▼お届け先</th>
-        </tr>
-       <!--{section name=cnt loop=$arrOtherDeliv}-->
-       <!--{assign var=OtherPref value="`$arrOtherDeliv[cnt].pref`"}-->
-        <tr>
-          <td class="centertd"><!--{$smarty.section.cnt.iteration}--></td>
-          <td><label for="add<!--{$smarty.section.cnt.iteration}-->">お届け先住所</label></td>
-          <td>
-            〒<!--{$arrOtherDeliv[cnt].zip01}-->-<!--{$arrOtherDeliv[cnt].zip02}--><br />
-            <!--{$arrPref[$OtherPref]|escape}--><!--{$arrOtherDeliv[cnt].addr01|escape}--><!--{$arrOtherDeliv[cnt].addr02|escape}--><br />
-        <!--{$arrOtherDeliv[cnt].name01|escape}-->&nbsp;<!--{$arrOtherDeliv[cnt].name02|escape}-->
-          </td>
-          <td class="centertd">
-            <a href="./delivery_addr.php" onclick="win02('./delivery_addr.php?other_deliv_id=<!--{$arrOtherDeliv[cnt].other_deliv_id}-->','deliv_disp','600','640'); return false;">変更</a>
-          </td>
-          <td class="centertd">
-            <a href="<!--{$smarty.server.PHP_SELF}-->" onclick="fnModeSubmit('delete','other_deliv_id','<!--{$arrOtherDeliv[cnt].other_deliv_id}-->'); return false;">削除</a>
-          </td>
-        </tr>
-        <!--{/section}-->
-      </table>
-    </form>
-    <!--{else}-->
-    <p class="delivempty"><strong>新しいお届け先はありません。</strong></p>
-    <!--{/if}-->
-  </div>
+            <table summary="お届け先">
+                <tr>
+                    <th colspan="5">▼お届け先</th>
+                </tr>
+                <!--{section name=cnt loop=$arrOtherDeliv}-->
+                    <!--{assign var=OtherPref value="`$arrOtherDeliv[cnt].pref`"}-->
+                    <tr>
+                        <td class="centertd"><!--{$smarty.section.cnt.iteration}--></td>
+                        <td><label for="add<!--{$smarty.section.cnt.iteration}-->">お届け先住所</label></td>
+                        <td>
+                            〒<!--{$arrOtherDeliv[cnt].zip01}-->-<!--{$arrOtherDeliv[cnt].zip02}--><br />
+                            <!--{$arrPref[$OtherPref]|escape}--><!--{$arrOtherDeliv[cnt].addr01|escape}--><!--{$arrOtherDeliv[cnt].addr02|escape}--><br />
+                            <!--{$arrOtherDeliv[cnt].name01|escape}-->&nbsp;<!--{$arrOtherDeliv[cnt].name02|escape}-->
+                        </td>
+                        <td class="centertd">
+                            <a href="./delivery_addr.php" onclick="win02('./delivery_addr.php?other_deliv_id=<!--{$arrOtherDeliv[cnt].other_deliv_id}-->','deliv_disp','600','640'); return false;">変更</a>
+                        </td>
+                        <td class="centertd">
+                            <a href="<!--{$smarty.server.PHP_SELF}-->" onclick="fnModeSubmit('delete','other_deliv_id','<!--{$arrOtherDeliv[cnt].other_deliv_id}-->'); return false;">削除</a>
+                        </td>
+                    </tr>
+                <!--{/section}-->
+            </table>
+        </form>
+        <!--{else}-->
+        <p class="delivempty"><strong>新しいお届け先はありません。</strong></p>
+        <!--{/if}-->
+    </div>
 </div>
 <!--▲CONTENTS-->
Index: /branches/comu-ver2/data/Smarty/templates/default/shopping/deliv.tpl
===================================================================
--- /branches/comu-ver2/data/Smarty/templates/default/shopping/deliv.tpl	(revision 17612)
+++ /branches/comu-ver2/data/Smarty/templates/default/shopping/deliv.tpl	(revision 17758)
@@ -22,78 +22,81 @@
 <!--▼CONTENTS-->
 <div id="under02column">
-  <div id="under02column_shopping">
-    <p class="flowarea">
-      <img src="<!--{$TPL_DIR}-->img/shopping/flow01.gif" width="700" height="36" alt="購入手続きの流れ" />
-    </p>
-    <h2 class="title"><!--{$tpl_title|escape}--></h2>
+    <div id="under02column_shopping">
+        <p class="flowarea">
+            <img src="<!--{$TPL_DIR}-->img/shopping/flow01.gif" width="700" height="36" alt="購入手続きの流れ" />
+        </p>
+        <h2 class="title"><!--{$tpl_title|escape}--></h2>
 
-    <p>下記一覧よりお届け先住所を選択して、「選択したお届け先に送る」ボタンをクリックしてください。<br />
-      一覧にご希望の住所が無い場合は、「新しいお届け先を追加する」より追加登録してください。<br />
-      ※最大20件まで登録できます。</p>
-    <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}-->
-    <p class="addbtn">
-      <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|escape}-->','new_deiv','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/common/newadress_on.gif','addition');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/common/newadress.gif','addition');"><img src="<!--{$TPL_DIR}-->img/common/newadress.gif" width="160" height="22" alt="新しいお届け先を追加する" name="addition" id="addition" /></a>
-    </p>
-    <!--{/if}-->
-    <form name="form1" id="form1" method="post" action="?">
-      <input type="hidden" name="mode" value="customer_addr" />
-      <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" />
-      <input type="hidden" name="other_deliv_id" value="" />
-      <!--{if $arrErr.deli != ""}-->
-      <p class="attention"><!--{$arrErr.deli}--></p>
-      <!--{/if}-->
-      <table summary="お届け先の指定">
-        <tr>
-          <th>選択</th>
-          <th>住所種類</th>
-          <th>お届け先</th>
-          <th>変更</th>
-          <th>削除</th>
-        </tr>
-       <!--{section name=cnt loop=$arrAddr}-->
-       <tr>
-         <td class="centertd">
-           <!--{if $smarty.section.cnt.first}-->
-           <input type="radio" name="deliv_check" id="chk_id_<!--{$smarty.section.cnt.iteration}-->" value="-1" <!--{if $arrForm.deliv_check.value == "" || $arrForm.deliv_check.value == -1}--> checked="checked"<!--{/if}--> />
-           <!--{else}-->
-           <input type="radio" name="deliv_check" id="chk_id_<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrAddr[cnt].other_deliv_id}-->" <!--{if $arrForm.deliv_check.value == $arrAddr[cnt].other_deliv_id}--> checked="checked"<!--{/if}--> />
-           <!--{/if}-->
-        </td>
-        <td>
-          <label for="chk_id_<!--{$smarty.section.cnt.iteration}-->">
-            <!--{if $smarty.section.cnt.first}-->
-            会員登録住所
-            <!--{else}-->
-            追加登録住所
+        <p>下記一覧よりお届け先住所を選択して、「選択したお届け先に送る」ボタンをクリックしてください。</p>
+        <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}-->
+            <p>一覧にご希望の住所が無い場合は、「新しいお届け先を追加する」より追加登録してください。</p>
+        <!--{/if}-->
+        <p>※最大<!--{$smarty.const.DELIV_ADDR_MAX|escape}-->件まで登録できます。</p>
+
+        <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}-->
+            <p class="addbtn">
+                <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|escape}-->','new_deiv','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/common/newadress_on.gif','addition');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/common/newadress.gif','addition');"><img src="<!--{$TPL_DIR}-->img/common/newadress.gif" width="160" height="22" alt="新しいお届け先を追加する" name="addition" id="addition" /></a>
+            </p>
+        <!--{/if}-->
+        <form name="form1" id="form1" method="post" action="?">
+            <input type="hidden" name="mode" value="customer_addr" />
+            <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" />
+            <input type="hidden" name="other_deliv_id" value="" />
+            <!--{if $arrErr.deli != ""}-->
+                <p class="attention"><!--{$arrErr.deli}--></p>
             <!--{/if}-->
-          </label>
-        </td>
-        <td>
-          <!--{assign var=key value=$arrAddr[cnt].pref}-->
-          <!--{$arrPref[$key]}--><!--{$arrAddr[cnt].addr01|escape}--><!--{$arrAddr[cnt].addr02|escape}--><br />
-          <!--{$arrAddr[cnt].name01|escape}--> <!--{$arrAddr[cnt].name02|escape}-->
-        </td>
-        <td class="centertd">
-        <!--{if !$smarty.section.cnt.first}-->
-          <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|escape}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->','new_deiv','600','640'); return false;">変更</a>
-        <!--{/if}-->
-        </td>
-        <td class="centertd">
-        <!--{if !$smarty.section.cnt.first}-->
-          <a href="?" onclick="fnModeSubmit('delete', 'other_deliv_id', '<!--{$arrAddr[cnt].other_deliv_id}-->'); return false">削除</a>
-        <!--{/if}-->
-        </td>
-      </tr>
-      <!--{/section}-->
-    </table>
+            <table summary="お届け先の指定">
+                <tr>
+                    <th>選択</th>
+                    <th>住所種類</th>
+                    <th>お届け先</th>
+                    <th>変更</th>
+                    <th>削除</th>
+                </tr>
+                <!--{section name=cnt loop=$arrAddr}-->
+                <tr>
+                     <td class="centertd">
+                         <!--{if $smarty.section.cnt.first}-->
+                            <input type="radio" name="deliv_check" id="chk_id_<!--{$smarty.section.cnt.iteration}-->" value="-1" <!--{if $arrForm.deliv_check.value == "" || $arrForm.deliv_check.value == -1}--> checked="checked"<!--{/if}--> />
+                         <!--{else}-->
+                            <input type="radio" name="deliv_check" id="chk_id_<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrAddr[cnt].other_deliv_id}-->"<!--{if $arrForm.deliv_check.value == $arrAddr[cnt].other_deliv_id}--> checked="checked"<!--{/if}--> />
+                         <!--{/if}-->
+                    </td>
+                    <td>
+                        <label for="chk_id_<!--{$smarty.section.cnt.iteration}-->">
+                            <!--{if $smarty.section.cnt.first}-->
+                                会員登録住所
+                            <!--{else}-->
+                                追加登録住所
+                            <!--{/if}-->
+                        </label>
+                    </td>
+                    <td>
+                        <!--{assign var=key value=$arrAddr[cnt].pref}-->
+                        <!--{$arrPref[$key]}--><!--{$arrAddr[cnt].addr01|escape}--><!--{$arrAddr[cnt].addr02|escape}--><br />
+                        <!--{$arrAddr[cnt].name01|escape}--> <!--{$arrAddr[cnt].name02|escape}-->
+                    </td>
+                    <td class="centertd">
+                        <!--{if !$smarty.section.cnt.first}-->
+                            <a href="<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.URL_DIR}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|escape}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->','new_deiv','600','640'); return false;">変更</a>
+                        <!--{/if}-->
+                    </td>
+                    <td class="centertd">
+                        <!--{if !$smarty.section.cnt.first}-->
+                            <a href="?" onclick="fnModeSubmit('delete', 'other_deliv_id', '<!--{$arrAddr[cnt].other_deliv_id}-->'); return false">削除</a>
+                        <!--{/if}-->
+                    </td>
+                </tr>
+            <!--{/section}-->
+        </table>
 
-      <div class="tblareabtn">
-        <a href="<!--{$smarty.const.URL_CART_TOP}-->" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_back_on.gif',back03)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_back.gif',back03)">
-          <img src="<!--{$TPL_DIR}-->img/common/b_back.gif" width="150" height="30" alt="戻る" border="0" name="back03" id="back03" />
-        </a>
-        <input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/shopping/b_select_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/shopping/b_select.gif',this)" src="<!--{$TPL_DIR}-->img/shopping/b_select.gif" alt="選択したお届け先に送る" class="box190" name="send_button" id="send_button" />
-      </div>
-    </form>
-  </div>
+            <div class="tblareabtn">
+                <a href="<!--{$smarty.const.URL_CART_TOP}-->" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_back_on.gif',back03)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_back.gif',back03)">
+                    <img src="<!--{$TPL_DIR}-->img/common/b_back.gif" width="150" height="30" alt="戻る" border="0" name="back03" id="back03" />
+                </a>
+                <input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/shopping/b_select_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/shopping/b_select.gif',this)" src="<!--{$TPL_DIR}-->img/shopping/b_select.gif" alt="選択したお届け先に送る" class="box190" name="send_button" id="send_button" />
+            </div>
+        </form>
+    </div>
 </div>
 <!--▲CONTENTS-->
