Index: /branches/version-2_4/data/Smarty/templates/default/admin/order/disp.tpl
===================================================================
--- /branches/version-2_4/data/Smarty/templates/default/admin/order/disp.tpl	(revision 17049)
+++ /branches/version-2_4/data/Smarty/templates/default/admin/order/disp.tpl	(revision 17773)
@@ -53,319 +53,319 @@
 <!--▼CONTENTS-->
 <table width="780" border="0" cellspacing="0" cellpadding="0" summary=" ">
-	<tr valign="top">
-		<td class="mainbg" >
-		<table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
-			<!--メインエリア-->
-			<tr>
-				<td align="center">
-				<table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
-
-					<tr><td height="14"></td></tr>
-					<tr>
-						<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
-					</tr>
-					<tr>
-						<td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
-						<td bgcolor="#cccccc">
-						
-						<!--登録テーブルここから-->
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr>
-								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
-							</tr>
-							<tr>
-								<td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
-								<td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->受注詳細</span></td>
-								<td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
-							</tr>
-							<tr>
-								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
-							</tr>
-							<tr>
-								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
-							</tr>
-						</table>
-						
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" width="110">対応状況</td>
-								<td bgcolor="#ffffff">
-									<!--{if $arrDisp.delete == 1}-->削除済み
-									<!--{else}-->
-									<!--{assign var=status value=`$arrForm.status.value`}-->
-									<!--{$arrORDERSTATUS[$status]}-->
-									<!--{/if}-->
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" width="110">発送日</td>
-								<td bgcolor="#ffffff"><!--{$arrDisp.commit_date|sfDispDBDate|default:"未発送"}--></td>
-							</tr>
-						</table>
-
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
-						</table>
-						
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" colspan="4">▼お客様情報</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" width="110">受注番号</td>
-								<td bgcolor="#ffffff" width="248"><!--{$arrDisp.order_id}--></td>
-								<td bgcolor="#f0f0f0" width="110">顧客ID</td>
-								<td bgcolor="#ffffff" width="249">
-								<!--{if $arrDisp.customer_id > 0}-->
-									<!--{$arrDisp.customer_id}-->
-								<!--{else}-->
-									（非会員）
-								<!--{/if}-->
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0">受注日</td>
-								<td bgcolor="#ffffff" colspan="3"><!--{$arrDisp.create_date|sfDispDBDate}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" >顧客名</td>
-								<td bgcolor="#ffffff" ><!--{$arrDisp.order_name01|escape}--> <!--{$arrDisp.order_name02|escape}--></td>
-								<td bgcolor="#f0f0f0" >顧客名（カナ）</td>
-								<td bgcolor="#ffffff" ><!--{$arrDisp.order_kana01|escape}--> <!--{$arrDisp.order_kana02|escape}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" >メールアドレス</td>
-								<td bgcolor="#ffffff" ><a href="mailto:<!--{$arrDisp.order_email|escape}-->"><!--{$arrDisp.order_email|escape}--></a></td>
-								<td bgcolor="#f0f0f0" >TEL</td>
-								<td bgcolor="#ffffff" ><!--{$arrDisp.order_tel01}-->-<!--{$arrDisp.order_tel02}-->-<!--{$arrDisp.order_tel03}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" >住所</td>
-								<td bgcolor="#ffffff" colspan="3">〒<!--{$arrDisp.order_zip01}-->-<!--{$arrDisp.order_zip02}--><br>
-								<!--{assign var=key value=$arrDisp.order_pref}-->
-								<!--{$arrPref[$key]}--><!--{$arrDisp.order_addr01}--><!--{$arrDisp.order_addr02}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" >備考</td>
-								<td bgcolor="#ffffff" colspan="3"><!--{$arrDisp.message|escape|nl2br}--></td>
-							</tr>
-						</table>
-						
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
-						</table>
-						
-						<!--▼配送先情報ここから-->
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="717" colspan="4">▼配送先情報</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">お名前</td>
-								<td bgcolor="#ffffff" width="248">
-								<!--{assign var=key1 value="deliv_name01"}-->
-								<!--{assign var=key2 value="deliv_name02"}-->
-								<!--{$arrForm[$key1].value|escape}-->
-								<!--{$arrForm[$key2].value|escape}-->
-								</td>
-								<td bgcolor="#f2f1ec" width="110">お名前（カナ）</td>
-								<td bgcolor="#ffffff" width="249">
-								<!--{assign var=key1 value="deliv_kana01"}-->
-								<!--{assign var=key2 value="deliv_kana02"}-->
-								<!--{$arrForm[$key1].value|escape}-->
-								<!--{$arrForm[$key2].value|escape}-->
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">郵便番号</td>
-								<td bgcolor="#ffffff" width="248">
-								<!--{assign var=key1 value="deliv_zip01"}-->
-								<!--{assign var=key2 value="deliv_zip02"}-->
-								〒<!--{$arrForm[$key1].value|escape}-->-<!--{$arrForm[$key2].value|escape}-->
-								</td>
-								<td bgcolor="#f2f1ec" width="110">TEL</td>
-								<td bgcolor="#ffffff" width="249">
-								<!--{assign var=key1 value="deliv_tel01"}-->
-								<!--{assign var=key2 value="deliv_tel02"}-->
-								<!--{assign var=key3 value="deliv_tel03"}-->
-								<!--{$arrForm[$key1].value|escape}-->-<!--{$arrForm[$key2].value|escape}-->-<!--{$arrForm[$key3].value|escape}-->
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">住所</td>
-								<td bgcolor="#ffffff" width="607" colspan="3">
-									<!--{assign var=pref value=`$arrForm.deliv_pref.value`}-->
-									<!--{$arrPref[$pref]}-->
-									<!--{assign var=key value="deliv_addr01"}-->
-									<!--{$arrForm[$key].value|escape}-->
-									<!--{assign var=key value="deliv_addr02"}-->
-									<!--{$arrForm[$key].value|escape}-->
-								</td>
-							</tr>
-						</table>
-						<!--▲配送先情報ここまで-->	
-
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
-						</table>
-						
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" width="717" colspan="7">▼受注商品情報</td>
-							</tr>
-							<tr bgcolor="#f0f0f0" align="center" class="fs12n">
-								<td width="140">商品コード</td>
-								<td width="215">商品名/規格1/規格2</td>
-								<td width="84">単価</td>
-								<td width="45">数量</td>
-								<td width="94">小計</td>
-							</tr>
-							<!--{section name=cnt loop=$arrForm.quantity.value}-->
-							<!--{assign var=key value="`$smarty.section.cnt.index`"}-->
-							<tr bgcolor="#ffffff" class="fs12">
-								<td width="140"><!--{$arrDisp.product_code[$key]|escape}--></td>
-								<td width="215"><!--{$arrDisp.product_name[$key]|escape}-->/<!--{$arrDisp.classcategory_name1[$key]|escape|default:"(なし)"}-->/<!--{$arrDisp.classcategory_name2[$key]|escape|default:"(なし)"}--></td>
-								<td width="84" align="center"><!--{if $arrForm.price.value[$key] != 0}--><!--{$arrForm.price.value[$key]|escape}-->円<!--{else}-->無料<!--{/if}--></td>
-								<td width="45" align="center"><!--{$arrForm.quantity.value[$key]|escape}--></td>
-								<!--{assign var=price value=`$arrForm.price.value[$key]`}-->
-								<!--{assign var=quantity value=`$arrForm.quantity.value[$key]`}-->
-								<td width="94" align="right"><!--{if $price != 0}--><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|sfMultiply:$quantity|number_format}-->円<!--{else}-->無料<!--{/if}--></td>
-							</tr>
-							<!--{/section}-->
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">小計</td>
-								<td align="right"><!--{$arrForm.subtotal.value|number_format}-->円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">ポイント値引き</td>
-								<td align="right"><!--{assign var=point_discount value="`$arrForm.use_point.value*$smarty.const.POINT_VALUE`"}--><!--{$point_discount}-->円</td>
-							</tr>
-							<!--{assign var=discount value="`$arrForm.discount.value`"}-->
-							<!--{if $discount != "" && $discount > 0}-->
-				 			<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">値引き</td>
-								<td align="right"><!--{$discount}-->円</td>
-							</tr>
-							<!--{/if}-->
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">送料</td>
-								<td align="right"><!--{assign var=key value="deliv_fee"}--><!--{$arrForm[$key].value|escape|number_format}--> 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">手数料</td>
-								<td align="right"><!--{assign var=key value="charge"}-->
-							<span class="red12"><!--{$arrErr[$key]}--></span><!--{$arrForm[$key].value|escape|number_format}--> 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">合計</td>
-								<td align="right"><!--{$arrForm.total.value|number_format}--> 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">お支払い合計</td>
-								<td align="right"><!--{$arrForm.payment_total.value|number_format}--> 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">使用ポイント</td>
-								<td align="right"><!--{assign var=key value="use_point"}--><!--{if $arrForm[$key].value != ""}--><!--{$arrForm[$key].value}--><!--{else}-->0<!--{/if}--> pt</td>
-							</tr>
-							<!--{if $arrForm.birth_point.value > 0}-->
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">お誕生日ポイント</td>
-								<td align="right">
-								<!--{$arrForm.birth_point.value}-->
-								 pt</td>
-							</tr>
-							<!--{/if}-->
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="4" align="right">加算ポイント</td>
-								<td align="right">
-								<!--{$arrForm.add_point.value|default:0}-->
-								 pt</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<!--{if $arrDisp.customer_id > 0}-->
-								<td colspan="4" align="right">現在ポイント</td>
-								<td align="right">
-								<!--{$arrForm.point.value}-->
-								 pt</td>
-								<!--{else}-->
-								<td colspan="4" align="right">現在ポイント</td><td align="center">（なし）</td>
-								<!--{/if}-->
-							</tr>
-							<!--{*
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">反映後ポイント（ポイントの変更は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrDisp.customer_id}-->');">顧客編集</a>から手動にてお願い致します。）</td>
-								<td align="right">
-								<span class="red12"><!--{$arrErr.total_point}--></span>
-								<!--{$arrForm.total_point.value}-->
-								 pt</td>
-							</tr>
-							*}-->
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" colspan="5">▼お支払方法</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="5" height="24">
-								<!--{assign var=payment_id value="`$arrForm.payment_id.value`"}-->
-								<!--{$arrPayment[$payment_id]|escape}--></td>
-							</tr>
-							<!--{if $arrDisp.payment_info|@count > 0}-->
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" colspan="6">▼<!--{$arrDisp.payment_type}-->情報</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-									<!--{foreach key=key item=item from=$arrDisp.payment_info}-->
-									<!--{if $key != "title"}--><!--{if $item.name != ""}--><!--{$item.name}-->：<!--{/if}--><!--{$item.value}--><br/><!--{/if}-->
-									<!--{/foreach}-->
-								</td>
-							</tr>
-							<!--{/if}-->
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" colspan="5">▼時間指定</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="5" height="24">
-								<!--{assign var=deliv_time_id value="`$arrForm.deliv_time_id.value`"}-->
-								<!--{$arrDelivTime[$deliv_time_id]|default:"指定なし"}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f0f0f0" colspan="6">▼配達日指定</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-								<!--{assign var=key value="deliv_date"}-->
-								<span class="red12"><!--{$arrErr[$key]}--></span>
-								<!--{$arrForm[$key].value|default:"指定なし"}-->
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" colspan="6">▼メモ</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-								<!--{assign var=key value="note"}-->
-								<!--{$arrForm[$key].value|escape|nl2br}-->
-								</td>
-							</tr>							
-						</table>					
-						
-						
-						<td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
-					</tr>
-					<tr>
-						<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
-					</tr>
-					<tr><td height="30"></td></tr>
-				</table>
-				</td>
-			</tr>
-			<!--メインエリア-->
-		</table>
-		</td>
-	</tr>
+    <tr valign="top">
+        <td class="mainbg" >
+        <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
+            <!--メインエリア-->
+            <tr>
+                <td align="center">
+                <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
+
+                    <tr><td height="14"></td></tr>
+                    <tr>
+                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
+                    </tr>
+                    <tr>
+                        <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+                        <td bgcolor="#cccccc">
+
+                        <!--登録テーブルここから-->
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr>
+                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
+                                <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->受注詳細</span></td>
+                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
+                            </tr>
+                        </table>
+
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" width="110">対応状況</td>
+                                <td bgcolor="#ffffff">
+                                    <!--{if $arrForm.delete.value == 1}-->削除済み
+                                    <!--{else}-->
+                                    <!--{assign var=status value=`$arrForm.status.value`}-->
+                                    <!--{$arrORDERSTATUS[$status]}-->
+                                    <!--{/if}-->
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" width="110">発送日</td>
+                                <td bgcolor="#ffffff"><!--{$arrForm.commit_date|sfDispDBDate|default:"未発送"}--></td>
+                            </tr>
+                        </table>
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+                        </table>
+
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" colspan="4">▼お客様情報</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" width="110">受注番号</td>
+                                <td bgcolor="#ffffff" width="248"><!--{$arrForm.order_id.value}--></td>
+                                <td bgcolor="#f0f0f0" width="110">顧客ID</td>
+                                <td bgcolor="#ffffff" width="249">
+                                <!--{if $arrForm.customer_id.value > 0}-->
+                                    <!--{$arrForm.customer_id.value}-->
+                                <!--{else}-->
+                                    （非会員）
+                                <!--{/if}-->
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0">受注日</td>
+                                <td bgcolor="#ffffff" colspan="3"><!--{$arrForm.create_date.value|sfDispDBDate}--></td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" >顧客名</td>
+                                <td bgcolor="#ffffff" ><!--{$arrForm.order_name01.value|escape}--> <!--{$arrForm.order_name02.value|escape}--></td>
+                                <td bgcolor="#f0f0f0" >顧客名（カナ）</td>
+                                <td bgcolor="#ffffff" ><!--{$arrForm.order_kana01.value|escape}--> <!--{$arrForm.order_kana02.value|escape}--></td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" >メールアドレス</td>
+                                <td bgcolor="#ffffff" ><a href="mailto:<!--{$arrForm.order_email.value|escape}-->"><!--{$arrForm.order_email.value|escape}--></a></td>
+                                <td bgcolor="#f0f0f0" >TEL</td>
+                                <td bgcolor="#ffffff" ><!--{$arrForm.order_tel01.value}-->-<!--{$arrForm.order_tel02.value}-->-<!--{$arrForm.order_tel03.value}--></td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" >住所</td>
+                                <td bgcolor="#ffffff" colspan="3">〒<!--{$arrForm.order_zip01.value}-->-<!--{$arrForm.order_zip02.value}--><br>
+                                <!--{assign var=key value=$arrForm.order_pref.value}-->
+                                <!--{$arrPref[$key]}--><!--{$arrForm.order_addr01.value}--><!--{$arrForm.order_addr02.value}--></td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" >備考</td>
+                                <td bgcolor="#ffffff" colspan="3"><!--{$arrForm.message.value|escape|nl2br}--></td>
+                            </tr>
+                        </table>
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+                        </table>
+
+                        <!--▼配送先情報ここから-->
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="717" colspan="4">▼配送先情報</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">お名前</td>
+                                <td bgcolor="#ffffff" width="248">
+                                <!--{assign var=key1 value="deliv_name01"}-->
+                                <!--{assign var=key2 value="deliv_name02"}-->
+                                <!--{$arrForm[$key1].value|escape}-->
+                                <!--{$arrForm[$key2].value|escape}-->
+                                </td>
+                                <td bgcolor="#f2f1ec" width="110">お名前（カナ）</td>
+                                <td bgcolor="#ffffff" width="249">
+                                <!--{assign var=key1 value="deliv_kana01"}-->
+                                <!--{assign var=key2 value="deliv_kana02"}-->
+                                <!--{$arrForm[$key1].value|escape}-->
+                                <!--{$arrForm[$key2].value|escape}-->
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">郵便番号</td>
+                                <td bgcolor="#ffffff" width="248">
+                                <!--{assign var=key1 value="deliv_zip01"}-->
+                                <!--{assign var=key2 value="deliv_zip02"}-->
+                                〒<!--{$arrForm[$key1].value|escape}-->-<!--{$arrForm[$key2].value|escape}-->
+                                </td>
+                                <td bgcolor="#f2f1ec" width="110">TEL</td>
+                                <td bgcolor="#ffffff" width="249">
+                                <!--{assign var=key1 value="deliv_tel01"}-->
+                                <!--{assign var=key2 value="deliv_tel02"}-->
+                                <!--{assign var=key3 value="deliv_tel03"}-->
+                                <!--{$arrForm[$key1].value|escape}-->-<!--{$arrForm[$key2].value|escape}-->-<!--{$arrForm[$key3].value|escape}-->
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">住所</td>
+                                <td bgcolor="#ffffff" width="607" colspan="3">
+                                    <!--{assign var=pref value=`$arrForm.deliv_pref.value`}-->
+                                    <!--{$arrPref[$pref]}-->
+                                    <!--{assign var=key value="deliv_addr01"}-->
+                                    <!--{$arrForm[$key].value|escape}-->
+                                    <!--{assign var=key value="deliv_addr02"}-->
+                                    <!--{$arrForm[$key].value|escape}-->
+                                </td>
+                            </tr>
+                        </table>
+                        <!--▲配送先情報ここまで-->
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+                        </table>
+
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" width="717" colspan="7">▼受注商品情報</td>
+                            </tr>
+                            <tr bgcolor="#f0f0f0" align="center" class="fs12n">
+                                <td width="140">商品コード</td>
+                                <td width="215">商品名/規格1/規格2</td>
+                                <td width="84">単価</td>
+                                <td width="45">数量</td>
+                                <td width="94">小計</td>
+                            </tr>
+                            <!--{section name=cnt loop=$arrForm.quantity.value}-->
+                            <!--{assign var=key value="`$smarty.section.cnt.index`"}-->
+                            <tr bgcolor="#ffffff" class="fs12">
+                                <td width="140"><!--{$arrForm.product_code.value[$key]|escape}--></td>
+                                <td width="215"><!--{$arrForm.product_name.value[$key]|escape}-->/<!--{$arrForm.classcategory_name1.value[$key]|escape|default:" (なし)"}-->/<!--{$arrForm.classcategory_name2.value[$key]|escape|default:"(なし)"}--></td>
+                                <td width="84" align="center"><!--{if $arrForm.price.value[$key] != 0}--><!--{$arrForm.price.value[$key]|number_format}-->円<!--{else}-->無料<!--{/if}--></td>
+                                <td width="45" align="center"><!--{$arrForm.quantity.value[$key]|escape}--></td>
+                                <!--{assign var=price value=`$arrForm.price.value[$key]`}-->
+                                <!--{assign var=quantity value=`$arrForm.quantity.value[$key]`}-->
+                                <td width="94" align="right"><!--{if $price != 0}--><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|sfMultiply:$quantity|number_format}-->円<!--{else}-->無料<!--{/if}--></td>
+                            </tr>
+                            <!--{/section}-->
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">小計</td>
+                                <td align="right"><!--{$arrForm.subtotal.value|number_format}-->円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">ポイント値引き</td>
+                                <td align="right"><!--{assign var=point_discount value="`$arrForm.use_point.value*$smarty.const.POINT_VALUE`"}--><!--{$point_discount|number_format}-->円</td>
+                            </tr>
+                            <!--{assign var=discount value="`$arrForm.discount.value`"}-->
+                            <!--{if $discount != "" && $discount > 0}-->
+                             <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">値引き</td>
+                                <td align="right"><!--{$discount|number_format}-->円</td>
+                            </tr>
+                            <!--{/if}-->
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">送料</td>
+                                <td align="right"><!--{assign var=key value="deliv_fee"}--><!--{$arrForm[$key].value|escape|number_format}--> 円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">手数料</td>
+                                <td align="right"><!--{assign var=key value="charge"}-->
+                            <span class="red12"><!--{$arrErr[$key]}--></span><!--{$arrForm[$key].value|escape|number_format}--> 円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">合計</td>
+                                <td align="right"><!--{$arrForm.total.value|number_format}--> 円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">お支払い合計</td>
+                                <td align="right"><!--{$arrForm.payment_total.value|number_format}--> 円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">使用ポイント</td>
+                                <td align="right"><!--{assign var=key value="use_point"}--><!--{if $arrForm[$key].value != ""}--><!--{$arrForm[$key].value|number_format}--><!--{else}-->0<!--{/if}--> pt</td>
+                            </tr>
+                            <!--{if $arrForm.birth_point.value > 0}-->
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">お誕生日ポイント</td>
+                                <td align="right">
+                                <!--{$arrForm.birth_point.value|number_format}-->
+                                 pt</td>
+                            </tr>
+                            <!--{/if}-->
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="4" align="right">加算ポイント</td>
+                                <td align="right">
+                                <!--{$arrForm.add_point.value|default:0|number_format}-->
+                                 pt</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <!--{if $arrForm.customer_id.value > 0}-->
+                                <td colspan="4" align="right">現在ポイント</td>
+                                <td align="right">
+                                <!--{$arrForm.point.value|number_format}-->
+                                 pt</td>
+                                <!--{else}-->
+                                <td colspan="4" align="right">現在ポイント</td><td align="center">（なし）</td>
+                                <!--{/if}-->
+                            </tr>
+                            <!--{*
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">反映後ポイント（ポイントの変更は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrForm.customer_id.value}-->');">顧客編集</a>から手動にてお願い致します。）</td>
+                                <td align="right">
+                                <span class="red12"><!--{$arrErr.total_point}--></span>
+                                <!--{$arrForm.total_point.value}-->
+                                 pt</td>
+                            </tr>
+                            *}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" colspan="5">▼お支払方法</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="5" height="24">
+                                <!--{assign var=payment_id value="`$arrForm.payment_id.value`"}-->
+                                <!--{$arrPayment[$payment_id]|escape}--></td>
+                            </tr>
+                            <!--{if $arrForm.payment_info.value|@count > 0}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" colspan="6">▼<!--{$arrForm.payment_info.value}-->情報</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                    <!--{foreach key=key item=item from=$arrForm.payment_info.value}-->
+                                    <!--{if $key != "title"}--><!--{if $item.name != ""}--><!--{$item.name}-->：<!--{/if}--><!--{$item.value}--><br/><!--{/if}-->
+                                    <!--{/foreach}-->
+                                </td>
+                            </tr>
+                            <!--{/if}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" colspan="5">▼時間指定</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="5" height="24">
+                                <!--{assign var=deliv_time_id value="`$arrForm.deliv_time_id.value`"}-->
+                                <!--{$arrDelivTime[$deliv_time_id]|default:"指定なし"}--></td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f0f0f0" colspan="6">▼配達日指定</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                <!--{assign var=key value="deliv_date"}-->
+                                <span class="red12"><!--{$arrErr[$key]}--></span>
+                                <!--{$arrForm[$key].value|default:"指定なし"}-->
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" colspan="6">▼メモ</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                <!--{assign var=key value="note"}-->
+                                <!--{$arrForm[$key].value|escape|nl2br}-->
+                                </td>
+                            </tr>
+                        </table>
+
+
+                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+                    </tr>
+                    <tr>
+                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
+                    </tr>
+                    <tr><td height="30"></td></tr>
+                </table>
+                </td>
+            </tr>
+            <!--メインエリア-->
+        </table>
+        </td>
+    </tr>
 </form>
 </table>
-<!--★★メインコンテンツ★★-->		
+<!--★★メインコンテンツ★★-->
 </div>
 
Index: /branches/version-2_4/data/Smarty/templates/default/admin/order/edit.tpl
===================================================================
--- /branches/version-2_4/data/Smarty/templates/default/admin/order/edit.tpl	(revision 17472)
+++ /branches/version-2_4/data/Smarty/templates/default/admin/order/edit.tpl	(revision 17773)
@@ -24,11 +24,28 @@
 <script type="text/javascript">
 <!--
-	function fnEdit(customer_id) {
-		document.form1.action = '<!--{$smarty.const.URL_DIR}-->admin/customer/edit.php';
-		document.form1.mode.value = "edit"
-		document.form1['edit_customer_id'].value = customer_id;
-		document.form1.submit();
-		return false;
-	}
+    function fnEdit(customer_id) {
+        document.form1.action = '<!--{$smarty.const.URL_DIR}-->admin/customer/edit.php';
+        document.form1.mode.value = "edit"
+        document.form1['edit_customer_id'].value = customer_id;
+        document.form1.submit();
+        return false;
+    }
+
+    function fnCopyFromOrderData() {
+        df = document.form1;
+
+        df.deliv_name01.value = df.order_name01.value;
+        df.deliv_name02.value = df.order_name02.value;
+        df.deliv_kana01.value = df.order_kana01.value;
+        df.deliv_kana02.value = df.order_kana02.value;
+        df.deliv_zip01.value = df.order_zip01.value;
+        df.deliv_zip02.value = df.order_zip02.value;
+        df.deliv_tel01.value = df.order_tel01.value;
+        df.deliv_tel02.value = df.order_tel02.value;
+        df.deliv_tel03.value = df.order_tel03.value;
+        df.deliv_pref.value = df.order_pref.value;
+        df.deliv_addr01.value = df.order_addr01.value;
+        df.deliv_addr02.value = df.order_addr02.value;
+    }
 //-->
 </script>
@@ -36,473 +53,565 @@
 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
-<input type="hidden" name="mode" value="edit">
+<input type="hidden" name="mode" value="<!--{$tpl_mode|default:"edit"}-->">
 <input type="hidden" name="order_id" value="<!--{$tpl_order_id}-->">
 <input type="hidden" name="edit_customer_id" value="<!--{$tpl_order_id}-->">
-	<tr valign="top">
-		<td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402">
-			<!--▼SUB NAVI-->
-			<!--{include file=$tpl_subnavi}-->
-			<!--▲SUB NAVI-->
-		</td>
-		<td class="mainbg" >
-		<table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
-			<!--メインエリア-->
-			<tr>
-				<td align="center">
-				<table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
-
-					<tr><td height="14"></td></tr>
-					<tr>
-						<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
-					</tr>
-					<tr>
-						<td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
-						<td bgcolor="#cccccc">
-
-						<!--登録テーブルここから-->
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr>
-								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
-							</tr>
-							<tr>
-								<td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
-								<td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->受注履歴編集</span></td>
-								<td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
-							</tr>
-							<tr>
-								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
-							</tr>
-							<tr>
-								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
-							</tr>
-						</table>
-
-						<!--{* GMOPG連携用 *}-->
-						<!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_gmopg/templates/order_edit.tpl}-->
-						<!--{if file_exists($path)}-->
-							<!--{include file=$path}-->
-						<!--{/if}-->
-
-						<!--{* SPS連携用 *}-->
-						<!--{assign var=sps_path value=`$smarty.const.MODULE_PATH`mdl_sps/templates/sps_request.tpl}-->
-						<!--{if file_exists($sps_path) && $paymentType[0].module_code == $smarty.const.MDL_SPS_CODE && $paymentType[0].memo03 == $smarty.const.SPS_CREDIT}-->
-							<!--{include file=$sps_path}-->
-						<!--{/if}-->
-
-						<!--{* ペイジェントモジュール連携用 *}-->
-						<!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order.tpl}-->
-						<!--{if file_exists($path)}-->
-							<!--{include file=$path}-->
-						<!--{/if}-->
-
-						<!--▼お客様情報ここから-->
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-							<td bgcolor="#f2f1ec" width="110">帳票</td>
-							<td bgcolor="#ffffff">
-							  <input type="button" name="address_input" value="帳票の作成" onclick="win02('pdf.php?order_id=<!--{$arrDisp.order_id}-->','pdf_input','500','650'); return false;" />
-							</td>
-							</tr>
-						</table>
-
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
-						</table>
-
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">対応状況</td>
-								<td bgcolor="#ffffff">
-									<!--{assign var=key value="status"}-->
-									<span class="red12"><!--{$arrErr[$key]}--></span>
-									<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
-									<option value="">選択してください</option>
-									<!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
-									</select>
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">発送日</td>
-								<td bgcolor="#ffffff"><!--{$arrDisp.commit_date|sfDispDBDate|default:"未発送"}--></td>
-							</tr>
-						</table>
-
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
-						</table>
-
-						<!--{* F-REGI決済モジュール用 *}-->
-						<!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_fregi/fregi_order.tpl}-->
-						<!--{if file_exists($path)}-->
-							<!--{include file=$path}-->
-						<!--{/if}-->
-
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<!--{foreach key=key item=item from=$arrSearchHidden}-->
-								<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
-							<!--{/foreach}-->
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="717" colspan="4">▼お客様情報</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">受注番号</td>
-								<td bgcolor="#ffffff" width="248"><!--{$arrDisp.order_id}--></td>
-								<td bgcolor="#f2f1ec" width="110">顧客ID</td>
-								<td bgcolor="#ffffff" width="249">
-								<!--{if $arrDisp.customer_id > 0}-->
-									<!--{$arrDisp.customer_id}-->
-								<!--{else}-->
-									（非会員）
-								<!--{/if}-->
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">受注日</td>
-								<td bgcolor="#ffffff" width="607" colspan="3"><!--{$arrDisp.create_date|sfDispDBDate}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">顧客名</td>
-								<td bgcolor="#ffffff" width="248"><!--{$arrDisp.order_name01|escape}--> <!--{$arrDisp.order_name02|escape}--></td>
-								<td bgcolor="#f2f1ec" width="110">顧客名（カナ）</td>
-								<td bgcolor="#ffffff" width="249"><!--{$arrDisp.order_kana01|escape}--> <!--{$arrDisp.order_kana02|escape}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">メールアドレス</td>
-								<td bgcolor="#ffffff" width="248"><a href="mailto:<!--{$arrDisp.order_email|escape}-->"><!--{$arrDisp.order_email|escape}--></a></td>
-								<td bgcolor="#f2f1ec" width="110">TEL</td>
-								<td bgcolor="#ffffff" width="249"><!--{$arrDisp.order_tel01}-->-<!--{$arrDisp.order_tel02}-->-<!--{$arrDisp.order_tel03}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">住所</td>
-								<td bgcolor="#ffffff" width="607" colspan="3">〒<!--{$arrDisp.order_zip01}-->-<!--{$arrDisp.order_zip02}--><br>
-								<!--{assign var=key value=$arrDisp.order_pref}-->
-								<!--{$arrPref[$key]}--><!--{$arrDisp.order_addr01|escape}--><!--{$arrDisp.order_addr02|escape}--></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">備考</td>
-								<td bgcolor="#ffffff" width="607" colspan="3"><!--{$arrDisp.message|escape|nl2br}--></td>
-							</tr>
-						</table>
-						<!--▲お客様情報ここまで-->
-
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
-						</table>
-
-						<!--▼配送先情報ここから-->
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="717" colspan="4">▼配送先情報</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">お名前</td>
-								<td bgcolor="#ffffff" width="248">
-								<!--{assign var=key1 value="deliv_name01"}-->
-								<!--{assign var=key2 value="deliv_name02"}-->
-								<span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
-								<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
-								<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
-								</td>
-								<td bgcolor="#f2f1ec" width="110">お名前（カナ）</td>
-								<td bgcolor="#ffffff" width="249">
-								<!--{assign var=key1 value="deliv_kana01"}-->
-								<!--{assign var=key2 value="deliv_kana02"}-->
-								<span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
-								<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
-								<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="110">郵便番号</td>
-								<td bgcolor="#ffffff" width="248">
-								<!--{assign var=key1 value="deliv_zip01"}-->
-								<!--{assign var=key2 value="deliv_zip02"}-->
-								<span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
-								〒
-								<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
-								 -
-								<input type="text"  name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
-								<input type="button" name="address_input" value="住所入力" onclick="fnCallAddress('<!--{$smarty.const.URL_INPUT_ZIP}-->', 'deliv_zip01', 'deliv_zip02', 'deliv_pref', 'deliv_addr01');" />
-								</td>
-								<td bgcolor="#f2f1ec" width="110">TEL</td>
-								<td bgcolor="#ffffff" width="249">
-								<!--{assign var=key1 value="deliv_tel01"}-->
-								<!--{assign var=key2 value="deliv_tel02"}-->
-								<!--{assign var=key3 value="deliv_tel03"}-->
-								<span class="red12"><!--{$arrErr[$key1]}--></span>
-								<span class="red12"><!--{$arrErr[$key2]}--></span>
-								<span class="red12"><!--{$arrErr[$key3]}--></span>
-								<input type="text" name="<!--{$arrForm[$key1].keyname}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" /> -
-								<input type="text" name="<!--{$arrForm[$key2].keyname}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" /> -
-								<input type="text" name="<!--{$arrForm[$key3].keyname}-->" value="<!--{$arrForm[$key3].value|escape}-->" maxlength="<!--{$arrForm[$key3].length}-->" style="<!--{$arrErr[$key3]|sfGetErrorColor}-->" size="6" class="box6" />
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec">住所</td>
-								<td bgcolor="#ffffff" colspan="3">
-								<table border="0" cellspacing="0" cellpadding="0" summary=" ">
-									<tr>
-									<td>
-										<!--{assign var=key value="deliv_pref"}-->
-										<span class="red12"><!--{$arrErr[$key]}--></span>
-										<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
-										<option value="" selected="">都道府県を選択</option>
-										<!--{html_options options=$arrPref selected=$arrForm[$key].value}-->
-										</select>
-									</td>
-									</tr>
-									<tr><td height="5"></td></tr>
-									<tr class="fs10n">
-										<td>
-										<!--{assign var=key value="deliv_addr01"}-->
-										<span class="red12"><!--{$arrErr[$key]}--></span>
-										<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
-										</td>
-										</tr>
-										<tr><td height="5"></td></tr>
-										<tr class="fs10n">
-											<td>
-											<!--{assign var=key value="deliv_addr02"}-->
-											<span class="red12"><!--{$arrErr[$key]}--></span>
-											<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
-											</td>
-										</tr>
-								</table>
-								</td>
-							</tr>
-						</table>
-						<!--▲配送先情報ここまで-->
-
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
-						</table>
-
-						<!--▼受注商品情報ここから-->
-						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" width="717" colspan="7">▼受注商品情報
-								<input type="button" name="cheek" value="計算結果の確認" onclick="fnModeSubmit('cheek','','');" />
-								<br />
-								<span class="red12"><!--{$arrErr.quantity}--></span>
-								<span class="red12"><!--{$arrErr.price}--></span>
-								</td>
-							</tr>
-							<tr bgcolor="#f2f1ec" align="center" class="fs12n">
-								<td width="140">商品コード</td>
-								<td width="215">商品名/規格1/規格2</td>
-								<td width="84">単価</td>
-								<td width="45">数量</td>
-								<td width="84">税込み価格</td>
-								<td width="94">小計</td>
-							</tr>
-							<!--{section name=cnt loop=$arrForm.quantity.value}-->
-							<!--{assign var=key value="`$smarty.section.cnt.index`"}-->
-							<tr bgcolor="#ffffff" class="fs12">
-								<td width="140"><!--{$arrDisp.product_code[$key]|escape}--></td>
-								<td width="215"><!--{$arrDisp.product_name[$key]|escape}-->/<!--{$arrDisp.classcategory_name1[$key]|escape|default:"(なし)"}-->/<!--{$arrDisp.classcategory_name2[$key]|escape|default:"(なし)"}--></td>
-								<input type="hidden" name="product_id[]" value="<!--{$arrDisp.product_id[$key]}-->">
-								<input type="hidden" name="product_code[]" value="<!--{$arrDisp.product_code[$key]}-->">
-								<input type="hidden" name="product_name[]" value="<!--{$arrDisp.product_name[$key]}-->">
-								<input type="hidden" name="point_rate[]" value="<!--{$arrDisp.point_rate[$key]}-->">
-								<input type="hidden" name="classcategory_id1[]" value="<!--{$arrDisp.classcategory_id1[$key]}-->">
-								<input type="hidden" name="classcategory_id2[]" value="<!--{$arrDisp.classcategory_id2[$key]}-->">
-								<input type="hidden" name="classcategory_name1[]" value="<!--{$arrDisp.classcategory_name1[$key]}-->">
-								<input type="hidden" name="classcategory_name2[]" value="<!--{$arrDisp.classcategory_name2[$key]}-->">
-								<td width="84" align="center"><input type="text" name="price[]" value="<!--{$arrForm.price.value[$key]|escape}-->" size="6" class="box6" maxlength="<!--{$arrForm.price.length}-->"/> 円</td>
-								<td width="45" align="center"><input type="text" name="quantity[]" value="<!--{$arrForm.quantity.value[$key]|escape}-->" size="3" class="box3" maxlength="<!--{$arrForm.quantity.length}-->"/></td>
-								<!--{assign var=price value=`$arrForm.price.value[$key]`}-->
-								<!--{assign var=quantity value=`$arrForm.quantity.value[$key]`}-->
-								<td width="84" align="right"><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</td>
-								<td width="94" align="right"><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|sfMultiply:$quantity|number_format}-->円</td>
-							</tr>
-							<!--{/section}-->
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">小計</td>
-								<td align="right"><!--{$arrForm.subtotal.value|number_format}-->円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">値引</td>
-								<td align="right">
-							<!--{assign var=key value="discount"}-->
-							<span class="red12"><!--{$arrErr[$key]}--></span>
-							<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
-							 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">送料</td>
-								<td align="right">
-							<!--{assign var=key value="deliv_fee"}-->
-							<span class="red12"><!--{$arrErr[$key]}--></span>
-							<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
-							 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">手数料</td>
-								<td align="right">
-							<!--{assign var=key value="charge"}-->
-							<span class="red12"><!--{$arrErr[$key]}--></span>
-							<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
-							 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">合計</td>
-								<td align="right">
-								<span class="red12"><!--{$arrErr.total}--></span>
-								<!--{$arrForm.total.value|number_format}--> 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">お支払い合計</td>
-								<td align="right">
-								<span class="red12"><!--{$arrErr.payment_total}--></span>
-								<!--{$arrForm.payment_total.value|number_format}-->
-								 円</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">使用ポイント</td>
-								<td align="right">
-								<!--{assign var=key value="use_point"}-->
-								<span class="red12"><!--{$arrErr[$key]}--></span>
-								<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape|default:0}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
-								 pt</td>
-							</tr>
-							<!--{if $arrForm.birth_point.value > 0}-->
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">お誕生日ポイント</td>
-								<td align="right">
-								<!--{$arrForm.birth_point.value|number_format}-->
-								 pt</td>
-							</tr>
-							<!--{/if}-->
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">加算ポイント</td>
-								<td align="right">
-								<!--{$arrForm.add_point.value|number_format|default:0}-->
-								 pt</td>
-							</tr>
-							<tr bgcolor="#ffffff" class="fs12n">
-								<!--{if $arrDisp.customer_id > 0}-->
-								<td colspan="5" align="right">現在ポイント（ポイントの修正は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrDisp.customer_id}-->');">顧客編集</a>から手動にてお願い致します。）</td>
-								<td align="right">
-								<!--{$arrForm.point.value|number_format}-->
-								 pt</td>
-								<!--{else}-->
-								<td colspan="5" align="right">現在ポイント</td><td align="center">（なし）</td>
-								<!--{/if}-->
-							</tr>
-							<!--{*
-							<tr bgcolor="#ffffff" class="fs12n">
-								<td colspan="5" align="right">反映後ポイント（ポイントの変更は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrDisp.customer_id}-->');">顧客編集</a>から手動にてお願い致します。）</td>
-								<td align="right">
-								<span class="red12"><!--{$arrErr.total_point}--></span>
-								<!--{$arrForm.total_point.value}-->
-								 pt</td>
-							</tr>
-							*}-->
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" colspan="6">▼お支払方法<span class="red">（お支払方法の変更に伴う手数料の変更は手動にてお願いします。)</span></td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-								<!--{assign var=key value="payment_id"}-->
-								<span class="red12"><!--{$arrErr[$key]}--></span>
-								<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
-								<option value="" selected="">選択してください</option>
-								<!--{html_options options=$arrPayment selected=$arrForm[$key].value}-->
-								</select></td>
-							</tr>
-
-							<!--{if $arrDisp.payment_info|@count > 0}-->
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" colspan="6">▼<!--{$arrDisp.payment_type}-->情報</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-									<!--{foreach key=key item=item from=$arrDisp.payment_info}-->
-									<!--{if $key != "title"}--><!--{if $item.name != ""}--><!--{$item.name}-->：<!--{/if}--><!--{$item.value}--><br/><!--{/if}-->
-									<!--{/foreach}-->
-								</td>
-							</tr>
-							<!--{/if}-->
-
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" colspan="6">▼時間指定</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-								<!--{assign var=key value="deliv_time_id"}-->
-								<span class="red12"><!--{$arrErr[$key]}--></span>
-								<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
-								<option value="" selected="0">指定無し</option>
-								<!--{html_options options=$arrDelivTime selected=$arrForm[$key].value}-->
-								</select>
-								</td>
-							</tr>
-							<!--{assign var=key value="deliv_date"}-->
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" colspan="6">▼配達日指定</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-								<!--{assign var=key value="deliv_date"}-->
-								<span class="red12"><!--{$arrErr[$key]}--></span>
-								<!--{$arrForm[$key].value|default:"指定なし"}-->
-								</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#f2f1ec" colspan="6">▼メモ</td>
-							</tr>
-							<tr class="fs12n">
-								<td bgcolor="#ffffff" colspan="6">
-								<!--{assign var=key value="note"}-->
-								<span class="red12"><!--{$arrErr[$key]}--></span>
-								<textarea name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" cols="80" rows="6" class="area80" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{$arrForm[$key].value|escape}--></textarea></td>
-								</td>
-							</tr>
-						</table>
-						<!--▲受注商品情報ここまで-->
-
-						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-							<tr>
-								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-								<td><img src="<!--{$TPL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
-								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-							</tr>
-							<tr>
-								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
-								<td bgcolor="#e9e7de" align="center">
-								<table border="0" cellspacing="0" cellpadding="0" summary=" ">
-									<tr>
-										<td>
-											<!--{if count($arrSearchHidden) > 0}-->
-											<a href="#" onmouseover="chgImg('<!--{$TPL_DIR}-->img/contents/btn_search_back_on.jpg','back');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/contents/btn_search_back.jpg','back');" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_ORDER}-->'); fnModeSubmit('search','',''); return false;"><img src="<!--{$TPL_DIR}-->img/contents/btn_search_back.jpg" width="123" height="24" alt="検索画面に戻る" border="0" name="back"></a>
-											<!--{/if}-->
-											<input type="image" onMouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$TPL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="この内容で登録する" border="0" name="subm" onclick="return fnConfirm();">
-										</td>
-									</tr>
-								</table>
-								</td>
-								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
-							</tr>
-							<tr>
-								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
-							</tr>
-						</table>
-
-						<!--登録テーブルここまで-->
-						</td>
-						<td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
-					</tr>
-					<tr>
-						<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
-					</tr>
-					<tr><td height="30"></td></tr>
-
-				</table>
-				</td>
-			</tr>
-			<!--メインエリア-->
-		</table>
-		</td>
-	</tr>
+<input type="hidden" name="anchor_key" value="">
+<input type="hidden" id="add_product_id" name="add_product_id" value="">
+<input type="hidden" id="add_classcategory_id1" name="add_classcategory_id1" value="">
+<input type="hidden" id="add_classcategory_id2" name="add_classcategory_id2" value="">
+<input type="hidden" id="edit_product_id" name="edit_product_id" value="">
+<input type="hidden" id="edit_classcategory_id1" name="edit_classcategory_id1" value="">
+<input type="hidden" id="edit_classcategory_id2" name="edit_classcategory_id2" value="">
+<input type="hidden" id="no" name="no" value="">
+<input type="hidden" id="delete_no" name="delete_no" value="">
+
+    <tr valign="top">
+        <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402">
+            <!--▼SUB NAVI-->
+            <!--{include file=$tpl_subnavi}-->
+            <!--▲SUB NAVI-->
+        </td>
+        <td class="mainbg" >
+        <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
+            <!--メインエリア-->
+            <tr>
+                <td align="center">
+                <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
+
+                    <tr><td height="14"></td></tr>
+                    <tr>
+                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
+                    </tr>
+                    <tr>
+                        <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+                        <td bgcolor="#cccccc">
+
+                        <!--登録テーブルここから-->
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr>
+                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
+                                <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->受注履歴編集</span></td>
+                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
+                            </tr>
+                        </table>
+
+                        <!--{* GMOPG連携用 *}-->
+                        <!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_gmopg/templates/order_edit.tpl}-->
+                        <!--{if file_exists($path)}-->
+                            <!--{include file=$path}-->
+                        <!--{/if}-->
+
+                        <!--{* SPS連携用 *}-->
+                        <!--{assign var=sps_path value=`$smarty.const.MODULE_PATH`mdl_sps/templates/sps_request.tpl}-->
+                        <!--{if file_exists($sps_path) && $paymentType[0].module_code == $smarty.const.MDL_SPS_CODE && $paymentType[0].memo03 == $smarty.const.SPS_CREDIT}-->
+                            <!--{include file=$sps_path}-->
+                        <!--{/if}-->
+
+                        <!--{* ペイジェントモジュール連携用 *}-->
+                        <!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order.tpl}-->
+                        <!--{if file_exists($path)}-->
+                            <!--{include file=$path}-->
+                        <!--{/if}-->
+
+                        <!--▼お客様情報ここから-->
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                          <!--{if $tpl_mode != 'add'}-->
+                            <tr class="fs12n">
+                            <td bgcolor="#f2f1ec" width="110">帳票</td>
+                            <td bgcolor="#ffffff">
+                              <input type="button" name="address_input" value="帳票の作成" onclick="win02('pdf.php?order_id=<!--{$arrForm.order_id.value}-->','pdf_input','500','650'); return false;" />
+                            </td>
+                            </tr>
+                          <!--{/if}-->
+                        </table>
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+                        </table>
+
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">対応状況</td>
+                                <td bgcolor="#ffffff">
+                                    <!--{assign var=key value="status"}-->
+                                    <span class="red12"><!--{$arrErr[$key]}--></span>
+                                    <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+                                    <option value="">選択してください</option>
+                                    <!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
+                                    </select>
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">発送日</td>
+                                <td bgcolor="#ffffff"><!--{$arrForm.commit_date|sfDispDBDate|default:"未発送"}--></td>
+                            </tr>
+                        </table>
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+                        </table>
+
+                        <!--{* F-REGI決済モジュール用 *}-->
+                        <!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_fregi/fregi_order.tpl}-->
+                        <!--{if file_exists($path)}-->
+                            <!--{include file=$path}-->
+                        <!--{/if}-->
+
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <!--{foreach key=key item=item from=$arrSearchHidden}-->
+                                <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
+                            <!--{/foreach}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="717" colspan="4">▼お客様情報</td>
+                            </tr>
+                            <!--{if $tpl_mode != 'add'}-->
+                                <tr class="fs12n">
+                                    <td bgcolor="#f2f1ec" width="110">受注番号</td>
+                                    <td bgcolor="#ffffff" width="248"><!--{$arrForm.order_id.value}--></td>
+                                    <td bgcolor="#f2f1ec" width="110">顧客ID</td>
+                                    <td bgcolor="#ffffff" width="249">
+                                    <!--{if $arrForm.customer_id.value > 0}-->
+                                        <!--{$arrForm.customer_id.value}-->
+                                    <!--{else}-->
+                                        （非会員）
+                                    <!--{/if}-->
+                                    </td>
+                                </tr>
+                                <tr class="fs12n">
+                                    <td bgcolor="#f2f1ec" width="110">受注日</td>
+                                    <td bgcolor="#ffffff" width="607" colspan="3"><!--{$arrForm.create_date.value|sfDispDBDate}--></td>
+                                </tr>
+                            <!--{/if}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">顧客名</td>
+                                <td bgcolor="#ffffff" width="248">
+                                  <!--{assign var=key1 value="order_name01"}-->
+                                  <!--{assign var=key2 value="order_name02"}-->
+                                  <span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
+                                  <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
+                                  <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
+                                </td>
+                                <td bgcolor="#f2f1ec" width="110">顧客名（カナ）</td>
+                                <td bgcolor="#ffffff" width="249">
+                                  <!--{assign var=key1 value="order_kana01"}-->
+                                  <!--{assign var=key2 value="order_kana02"}-->
+                                  <span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
+                                  <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
+                                  <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">メールアドレス</td>
+                                <td bgcolor="#ffffff" width="248">
+                                  <!--{assign var=key1 value="order_email"}-->
+                                  <span class="red12"><!--{$arrErr[$key1]}--></span>
+                                  <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="30" class="box30" />
+                                </td>
+                                <td bgcolor="#f2f1ec" width="110">TEL</td>
+                                <td bgcolor="#ffffff" width="249">
+                                  <!--{assign var=key1 value="order_tel01"}-->
+                                  <!--{assign var=key2 value="order_tel02"}-->
+                                  <!--{assign var=key3 value="order_tel03"}-->
+                                  <span class="red12"><!--{$arrErr[$key1]}--></span>
+                                  <span class="red12"><!--{$arrErr[$key2]}--></span>
+                                  <span class="red12"><!--{$arrErr[$key3]}--></span>
+                                  <input type="text" name="<!--{$arrForm[$key1].keyname}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" /> -
+                                  <input type="text" name="<!--{$arrForm[$key2].keyname}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" /> -
+                                  <input type="text" name="<!--{$arrForm[$key3].keyname}-->" value="<!--{$arrForm[$key3].value|escape}-->" maxlength="<!--{$arrForm[$key3].length}-->" style="<!--{$arrErr[$key3]|sfGetErrorColor}-->" size="6" class="box6" />
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">住所</td>
+                                <td bgcolor="#ffffff" width="607" colspan="3">
+                                  <table border="0" cellspacing="0" cellpadding="0" summary=" ">
+                                  <tr>
+                                    <!--{assign var=key1 value="order_zip01"}-->
+                                    <!--{assign var=key2 value="order_zip02"}-->
+                                    <span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
+                                    〒
+                                    <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
+                                    -
+                                    <input type="text"  name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
+                                    <input type="button" name="address_input" value="住所入力" onclick="fnCallAddress('<!--{$smarty.const.URL_INPUT_ZIP}-->', 'order_zip01', 'order_zip02', 'order_pref', 'order_addr01');" />
+                                    <td>
+                                    </td>
+                                    <tr>
+                                      <td>
+                                        <!--{assign var=key value="order_pref"}-->
+                                        <span class="red12"><!--{$arrErr[$key]}--></span>
+                                        <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+                                        <option value="" selected="">都道府県を選択</option>
+                                        <!--{html_options options=$arrPref selected=$arrForm[$key].value}-->
+                                        </select>
+                                      </td>
+                                    </tr>
+                                    <tr><td height="5"></td></tr>
+                                    <tr class="fs10n">
+                                      <td>
+                                        <!--{assign var=key value="order_addr01"}-->
+                                        <span class="red12"><!--{$arrErr[$key]}--></span>
+                                        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
+                                      </td>
+                                    </tr>
+                                    <tr><td height="5"></td></tr>
+                                    <tr class="fs10n">
+                                      <td>
+                                        <!--{assign var=key value="order_addr02"}-->
+                                        <span class="red12"><!--{$arrErr[$key]}--></span>
+                                        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
+                                      </td>
+                                    </tr>
+                                  </table>
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">備考</td>
+                                <td bgcolor="#ffffff" width="607" colspan="3"><!--{$arrForm.message|escape|nl2br}--></td>
+                            </tr>
+                        </table>
+                        <!--▲お客様情報ここまで-->
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+                        </table>
+
+                        <!--▼配送先情報ここから-->
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="717" colspan="4">▼配送先情報<input type="button" name="input_from_order_data" value="上記お客様情報をコピー" onclick="fnCopyFromOrderData();" /></td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">お名前</td>
+                                <td bgcolor="#ffffff" width="248">
+                                <!--{assign var=key1 value="deliv_name01"}-->
+                                <!--{assign var=key2 value="deliv_name02"}-->
+                                <span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
+                                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
+                                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
+                                </td>
+                                <td bgcolor="#f2f1ec" width="110">お名前（カナ）</td>
+                                <td bgcolor="#ffffff" width="249">
+                                <!--{assign var=key1 value="deliv_kana01"}-->
+                                <!--{assign var=key2 value="deliv_kana02"}-->
+                                <span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
+                                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box15" />
+                                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box15" />
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="110">郵便番号</td>
+                                <td bgcolor="#ffffff" width="248">
+                                <!--{assign var=key1 value="deliv_zip01"}-->
+                                <!--{assign var=key2 value="deliv_zip02"}-->
+                                <span class="red12"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
+                                〒
+                                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
+                                 -
+                                <input type="text"  name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
+                                <input type="button" name="address_input" value="住所入力" onclick="fnCallAddress('<!--{$smarty.const.URL_INPUT_ZIP}-->', 'deliv_zip01', 'deliv_zip02', 'deliv_pref', 'deliv_addr01');" />
+                                </td>
+                                <td bgcolor="#f2f1ec" width="110">TEL</td>
+                                <td bgcolor="#ffffff" width="249">
+                                <!--{assign var=key1 value="deliv_tel01"}-->
+                                <!--{assign var=key2 value="deliv_tel02"}-->
+                                <!--{assign var=key3 value="deliv_tel03"}-->
+                                <span class="red12"><!--{$arrErr[$key1]}--></span>
+                                <span class="red12"><!--{$arrErr[$key2]}--></span>
+                                <span class="red12"><!--{$arrErr[$key3]}--></span>
+                                <input type="text" name="<!--{$arrForm[$key1].keyname}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" /> -
+                                <input type="text" name="<!--{$arrForm[$key2].keyname}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" /> -
+                                <input type="text" name="<!--{$arrForm[$key3].keyname}-->" value="<!--{$arrForm[$key3].value|escape}-->" maxlength="<!--{$arrForm[$key3].length}-->" style="<!--{$arrErr[$key3]|sfGetErrorColor}-->" size="6" class="box6" />
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec">住所</td>
+                                <td bgcolor="#ffffff" colspan="3">
+                                <table border="0" cellspacing="0" cellpadding="0" summary=" ">
+                                    <tr>
+                                    <td>
+                                        <!--{assign var=key value="deliv_pref"}-->
+                                        <span class="red12"><!--{$arrErr[$key]}--></span>
+                                        <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+                                        <option value="" selected="">都道府県を選択</option>
+                                        <!--{html_options options=$arrPref selected=$arrForm[$key].value}-->
+                                        </select>
+                                    </td>
+                                    </tr>
+                                    <tr><td height="5"></td></tr>
+                                    <tr class="fs10n">
+                                        <td>
+                                        <!--{assign var=key value="deliv_addr01"}-->
+                                        <span class="red12"><!--{$arrErr[$key]}--></span>
+                                        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
+                                        </td>
+                                        </tr>
+                                        <tr><td height="5"></td></tr>
+                                        <tr class="fs10n">
+                                            <td>
+                                            <!--{assign var=key value="deliv_addr02"}-->
+                                            <span class="red12"><!--{$arrErr[$key]}--></span>
+                                            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" size="60" class="box60" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
+                                            </td>
+                                        </tr>
+                                </table>
+                                </td>
+                            </tr>
+                        </table>
+                        <!--▲配送先情報ここまで-->
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+                        </table>
+
+                        <!--▼受注商品情報ここから-->
+                        <a name="order_products"></a>
+                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" width="717" colspan="7">▼受注商品情報
+                                <input type="button" name="cheek" value="計算結果の確認" onclick="fnModeSubmit('cheek','anchor_key','order_products');" />
+                                <input type="button" name="add_product" value="商品の追加" onclick="win03('<!--{$smarty.const.SITE_URL}-->admin/products/product_select.php<!--{if $tpl_order_id}-->?order_id=<!--{$tpl_order_id}--><!--{/if}-->', 'search', '500', '500'); " />
+                                <br />
+                                <span class="red12"><!--{$arrErr.product_id}--></span>
+                                <span class="red12"><!--{$arrErr.quantity}--></span>
+                                <span class="red12"><!--{$arrErr.price}--></span>
+                                </td>
+                            </tr>
+                            <tr bgcolor="#f2f1ec" align="center" class="fs12n">
+                                <td width="140">商品コード</td>
+                                <td width="215">商品名/規格1/規格2</td>
+                                <td width="84">単価</td>
+                                <td width="45">数量</td>
+                                <td width="84">税込み価格</td>
+                                <td width="94">小計</td>
+                            </tr>
+                            <!--{section name=cnt loop=$arrForm.quantity.value}-->
+                            <!--{assign var=key value="`$smarty.section.cnt.index`"}-->
+                            <tr bgcolor="#ffffff" class="fs12">
+                                <td width="140">
+                                    <!--{$arrForm.product_code.value[$key]|escape}-->
+                                    <input type="hidden" name="product_code[<!--{$key}-->]" value="<!--{$arrForm.product_code.value[$key]}-->" id="product_code_<!--{$key}-->">
+                                </td>
+                                <td width="215">
+                                    <!--{$arrForm.product_name.value[$key]|escape}-->/<!--{$arrForm.classcategory_name1.value[$key]|escape|default:" (なし)"}-->/<!--{$arrForm.classcategory_name2.value[$key]|escape|default:" (なし)"}-->
+                                    <input type="hidden" name="product_name[<!--{$key}-->]" value="<!--{$arrForm.product_name.value[$key]}-->" id="product_name_<!--{$key}-->">
+                                    <input type="hidden" name="classcategory_name1[<!--{$key}-->]" value="<!--{$arrForm.classcategory_name1.value[$key]}-->" id="classcategory_name1_<!--{$key}-->">
+                                    <input type="hidden" name="classcategory_name2[<!--{$key}-->]" value="<!--{$arrForm.classcategory_name2.value[$key]}-->" id="classcategory_name2_<!--{$key}-->">
+                                    <br />
+                                    <input type="button" name="change" value="変更" onclick="win03('./product_select.php?no=<!--{$key}--><!--{if $tpl_order_id}-->&order_id=<!--{$tpl_order_id}--><!--{/if}-->', 'search', '500', '500'); " >
+                                    <!--{if $product_count > 1}-->
+                                        <input type="button" name="delete" value="削除" onclick="fnSetFormVal('form1', 'delete_no', <!--{$key}-->); fnModeSubmit('delete_product','anchor_key','order_products');" />
+                                    <!--{/if}-->
+                                </td>
+                                <input type="hidden" name="product_id[<!--{$key}-->]" value="<!--{$arrForm.product_id.value[$key]}-->" id="product_id_<!--{$key}-->">
+                                <input type="hidden" name="point_rate[<!--{$key}-->]" value="<!--{$arrForm.point_rate.value[$key]}-->" id="point_rate_<!--{$key}-->">
+                                <input type="hidden" name="classcategory_id1[<!--{$key}-->]" value="<!--{$arrForm.classcategory_id1.value[$key]}-->" id="classcategory_id1_<!--{$key}-->">
+                                <input type="hidden" name="classcategory_id2[<!--{$key}-->]" value="<!--{$arrForm.classcategory_id2.value[$key]}-->" id="classcategory_id2_<!--{$key}-->">
+                                <td width="84" align="center"><input type="text" name="price[<!--{$key}-->]" value="<!--{$arrForm.price.value[$key]|escape}-->" size="6" class="box6" maxlength="<!--{$arrForm.price.length}-->" id="price_<!--{$key}-->"/> 円</td>
+                                <td width="45" align="center"><input type="text" name="quantity[<!--{$key}-->]" value="<!--{$arrForm.quantity.value[$key]|escape}-->" size="3" class="box3" maxlength="<!--{$arrForm.quantity.length}-->"/></td>
+
+
+                                <!--{assign var=price value=`$arrForm.price.value[$key]`}-->
+                                <!--{assign var=quantity value=`$arrForm.quantity.value[$key]`}-->
+                                <td width="84" align="right"><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</td>
+                                <td width="94" align="right"><!--{$price|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|sfMultiply:$quantity|number_format}-->円</td>
+                            </tr>
+                            <!--{/section}-->
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">小計</td>
+                                <td align="right"><!--{$arrForm.subtotal.value|number_format}-->円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">値引</td>
+                                <td align="right">
+                            <!--{assign var=key value="discount"}-->
+                            <span class="red12"><!--{$arrErr[$key]}--></span>
+                            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
+                             円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">送料</td>
+                                <td align="right">
+                            <!--{assign var=key value="deliv_fee"}-->
+                            <span class="red12"><!--{$arrErr[$key]}--></span>
+                            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
+                             円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">手数料</td>
+                                <td align="right">
+                            <!--{assign var=key value="charge"}-->
+                            <span class="red12"><!--{$arrErr[$key]}--></span>
+                            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
+                             円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">合計</td>
+                                <td align="right">
+                                <span class="red12"><!--{$arrErr.total}--></span>
+                                <!--{$arrForm.total.value|number_format}--> 円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">お支払い合計</td>
+                                <td align="right">
+                                <span class="red12"><!--{$arrErr.payment_total}--></span>
+                                <!--{$arrForm.payment_total.value|number_format}-->
+                                 円</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">使用ポイント</td>
+                                <td align="right">
+                                <!--{assign var=key value="use_point"}-->
+                                <span class="red12"><!--{$arrErr[$key]}--></span>
+                                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape|default:0}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="5" class="box6" />
+                                 pt</td>
+                            </tr>
+                            <!--{if $arrForm.birth_point.value > 0}-->
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">お誕生日ポイント</td>
+                                <td align="right">
+                                <!--{$arrForm.birth_point.value|number_format}-->
+                                 pt</td>
+                            </tr>
+                            <!--{/if}-->
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">加算ポイント</td>
+                                <td align="right">
+                                <!--{$arrForm.add_point.value|number_format|default:0}-->
+                                 pt</td>
+                            </tr>
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <!--{if $arrForm.customer_id > 0}-->
+                                <td colspan="5" align="right">現在ポイント（ポイントの修正は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrForm.customer_id}-->');">顧客編集</a>から手動にてお願い致します。）</td>
+                                <td align="right">
+                                <!--{$arrForm.point.value|number_format}-->
+                                 pt</td>
+                                <!--{else}-->
+                                <td colspan="5" align="right">現在ポイント</td><td align="center">（なし）</td>
+                                <!--{/if}-->
+                            </tr>
+                            <!--{*
+                            <tr bgcolor="#ffffff" class="fs12n">
+                                <td colspan="5" align="right">反映後ポイント（ポイントの変更は<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="return fnEdit('<!--{$arrForm.customer_id}-->');">顧客編集</a>から手動にてお願い致します。）</td>
+                                <td align="right">
+                                <span class="red12"><!--{$arrErr.total_point}--></span>
+                                <!--{$arrForm.total_point.value}-->
+                                 pt</td>
+                            </tr>
+                            *}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" colspan="6">▼お支払方法<span class="red">（お支払方法の変更に伴う手数料の変更は手動にてお願いします。)</span></td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                <!--{assign var=key value="payment_id"}-->
+                                <span class="red12"><!--{$arrErr[$key]}--></span>
+                                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+                                <option value="" selected="">選択してください</option>
+                                <!--{html_options options=$arrPayment selected=$arrForm[$key].value}-->
+                                </select></td>
+                            </tr>
+
+                            <!--{if $arrForm.payment_info|@count > 0}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" colspan="6">▼<!--{$arrForm.payment_type}-->情報</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                    <!--{foreach key=key item=item from=$arrForm.payment_info}-->
+                                    <!--{if $key != "title"}--><!--{if $item.name != ""}--><!--{$item.name}-->：<!--{/if}--><!--{$item.value}--><br/><!--{/if}-->
+                                    <!--{/foreach}-->
+                                </td>
+                            </tr>
+                            <!--{/if}-->
+
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" colspan="6">▼時間指定</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                <!--{assign var=key value="deliv_time_id"}-->
+                                <span class="red12"><!--{$arrErr[$key]}--></span>
+                                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+                                <option value="" selected="0">指定無し</option>
+                                <!--{html_options options=$arrDelivTime selected=$arrForm[$key].value}-->
+                                </select>
+                                </td>
+                            </tr>
+                            <!--{assign var=key value="deliv_date"}-->
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" colspan="6">▼配達日指定</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                <!--{assign var=key value="deliv_date"}-->
+                                <span class="red12"><!--{$arrErr[$key]}--></span>
+                                <!--{$arrForm[$key].value|default:"指定なし"}-->
+                                </td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#f2f1ec" colspan="6">▼メモ</td>
+                            </tr>
+                            <tr class="fs12n">
+                                <td bgcolor="#ffffff" colspan="6">
+                                <!--{assign var=key value="note"}-->
+                                <span class="red12"><!--{$arrErr[$key]}--></span>
+                                <textarea name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" cols="80" rows="6" class="area80" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{$arrForm[$key].value|escape}--></textarea></td>
+                                </td>
+                            </tr>
+                        </table>
+                        <!--▲受注商品情報ここまで-->
+
+                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+                            <tr>
+                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+                                <td><img src="<!--{$TPL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
+                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+                                <td bgcolor="#e9e7de" align="center">
+                                <table border="0" cellspacing="0" cellpadding="0" summary=" ">
+                                    <tr>
+                                        <td>
+                                            <!--{if count($arrSearchHidden) > 0}-->
+                                            <a href="#" onmouseover="chgImg('<!--{$TPL_DIR}-->img/contents/btn_search_back_on.jpg','back');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/contents/btn_search_back.jpg','back');" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_ORDER}-->'); fnModeSubmit('search','',''); return false;"><img src="<!--{$TPL_DIR}-->img/contents/btn_search_back.jpg" width="123" height="24" alt="検索画面に戻る" border="0" name="back"></a>
+                                            <!--{/if}-->
+                                            <input type="image" onMouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$TPL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="この内容で登録する" border="0" name="subm" onclick="return fnConfirm();">
+                                        </td>
+                                    </tr>
+                                </table>
+                                </td>
+                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+                            </tr>
+                            <tr>
+                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
+                            </tr>
+                        </table>
+
+                        <!--登録テーブルここまで-->
+                        </td>
+                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+                    </tr>
+                    <tr>
+                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
+                    </tr>
+                    <tr><td height="30"></td></tr>
+
+                </table>
+                </td>
+            </tr>
+            <!--メインエリア-->
+        </table>
+        </td>
+    </tr>
 </form>
 </table>
Index: /branches/version-2_4/data/Smarty/templates/default/admin/order/index.tpl
===================================================================
--- /branches/version-2_4/data/Smarty/templates/default/admin/order/index.tpl	(revision 17738)
+++ /branches/version-2_4/data/Smarty/templates/default/admin/order/index.tpl	(revision 17773)
@@ -14,10 +14,10 @@
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA    02111-1307, USA.
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 *}-->
@@ -26,260 +26,260 @@
 <form name="search_form" id="search_form" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
 <input type="hidden" name="mode" value="search">
-    <tr valign="top">
-        <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402">
-            <!-- サブナビ -->
-            <!--{include file=$tpl_subnavi}-->
-        </td>
-        <td class="mainbg">
-        <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
-            <!--メインエリア-->
-            <tr>
-                <td align="center">
-                <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
-                    <tr><td height="14"></td></tr>
-                    <tr>
-                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
-                    </tr>
-                    <tr>
-                        <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
-                        <td bgcolor="#cccccc">
-                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-                            <tr>
-                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
-                            </tr>
-                            <tr>
-                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
-                                <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->検索条件設定</span></td>
-                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
-                            </tr>
-                            <tr>
-                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
-                            </tr>
-                            <tr>
-                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
-                            </tr>
-                        </table>
-                        <!--検索条件設定テーブルここから-->
-                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">受注番号</td>
-                                <td bgcolor="#ffffff" width="194">
-                                    <!--{assign var=key1 value="search_order_id1"}-->
-                                    <!--{assign var=key2 value="search_order_id2"}-->
-                                    <span class="red12"><!--{$arrErr[$key1]}--></span>
-                                    <span class="red12"><!--{$arrErr[$key2]}--></span>
-                                    <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"    size="6" class="box6" />
-                                     〜
-                                    <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"    size="6" class="box6" />
-                                </td>
-                                <td bgcolor="#f2f1ec" width="110">対応状況</td>
-                                <td bgcolor="#ffffff" width="195">
-                                    <!--{assign var=key value="search_order_status"}-->
-                                    <span class="red12"><!--{$arrErr[$key]}--></span>
-                                    <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
-                                    <option value="">選択してください</option>
-                                    <!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
-                                    </select>
-                                </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">顧客名</td>
-                                <td bgcolor="#ffffff" width="194">
-                                <!--{assign var=key value="search_order_name"}-->
-                                <span class="red12"><!--{$arrErr[$key]}--></span>
-                                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
-                                </td>
-                                <td bgcolor="#f2f1ec" width="110">顧客名（カナ）</td>
-                                <td bgcolor="#ffffff" width="195">
-                                <!--{assign var=key value="search_order_kana"}-->
-                                <span class="red12"><!--{$arrErr[$key]}--></span>
-                                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
-                                </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">メールアドレス</td>
-                                <td bgcolor="#ffffff" width="194">
-                                    <!--{assign var=key value="search_order_email"}-->
-                                    <span class="red12"><!--{$arrErr[$key]}--></span>
-                                    <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
-                                </td>
-                                <td bgcolor="#f2f1ec" width="110">TEL</td>
-                                <td bgcolor="#ffffff" width="195">
-                                    <!--{assign var=key value="search_order_tel"}-->
-                                    <span class="red12"><!--{$arrErr[$key]}--></span>
-                                    <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
-                                </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">生年月日</td>
-                                <td bgcolor="#ffffff" width="499" colspan="3">
-                                    <span class="red"><!--{$arrErr.search_sbirthyear}--></span>
-                                    <span class="red"><!--{$arrErr.search_ebirthyear}--></span>
-                                    <select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
-                                    <option value="">----</option>
-                                    <!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
-                                    </select>年
-                                    <select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
-                                    </select>月
-                                    <select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
-                                    </select>日〜
-                                    <select name="search_ebirthyear" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
-                                    <option value="">----</option>
-                                    <!--{html_options options=$arrBirthYear selected=$arrForm.search_ebirthyear.value}-->
-                                    </select>年
-                                    <select name="search_ebirthmonth" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrMonth selected=$arrForm.search_ebirthmonth.value}-->
-                                    </select>月
-                                    <select name="search_ebirthday" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrDay selected=$arrForm.search_ebirthday.value}-->
-                                    </select>日
-                                </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">性別</td>
-                                <td bgcolor="#ffffff" width="499" colspan="3">
-                                <!--{assign var=key value="search_order_sex"}-->
-                                <span class="red12"><!--{$arrErr[$key]}--></span>
-                                <!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key].value}-->
-                            </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">支払方法</td>
-                                <td bgcolor="#ffffff" width="499" colspan="3">
-                                <!--{assign var=key value="search_payment_id"}-->
-                                <span class="red12"><!--{$arrErr[$key]|escape}--></span>
-                                <!--{html_checkboxes name="$key" options=$arrPayment|escape selected=$arrForm[$key].value}-->
-                                </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">受注日</td>
-                                <td bgcolor="#ffffff" width="499" colspan="3">
-                                    <span class="red"><!--{$arrErr.search_sorderyear}--></span>
-                                    <span class="red"><!--{$arrErr.search_eorderyear}--></span>
-                                    <select name="search_sorderyear"    style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
-                                    <option value="">----</option>
-                                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_sorderyear.value}-->
-                                    </select>年
-                                    <select name="search_sordermonth" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrMonth selected=$arrForm.search_sordermonth.value}-->
-                                    </select>月
-                                    <select name="search_sorderday" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrDay selected=$arrForm.search_sorderday.value}-->
-                                    </select>日〜
-                                    <select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
-                                    <option value="">----</option>
-                                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
-                                    </select>年
-                                    <select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
-                                    </select>月
-                                    <select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
-                                    </select>日
-                                </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">更新日</td>
-                                <td bgcolor="#ffffff" width="499" colspan="3">
-                                    <span class="red"><!--{$arrErr.search_supdateyear}--></span>
-                                    <span class="red"><!--{$arrErr.search_eupdateyear}--></span>
-                                    <select name="search_supdateyear"    style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
-                                    <option value="">----</option>
-                                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
-                                    </select>年
-                                    <select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
-                                    </select>月
-                                    <select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
-                                    </select>日〜
-                                    <select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
-                                    <option value="">----</option>
-                                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
-                                    </select>年
-                                    <select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
-                                    </select>月
-                                    <select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
-                                    <option value="">--</option>
-                                    <!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
-                                    </select>日
-                                </td>
-                            </tr>
-                            <tr class="fs12n">
-                                <td bgcolor="#f2f1ec" width="110">購入金額</td>
-                                <td bgcolor="#ffffff" width="499" colspan="3">
-                                    <!--{assign var=key1 value="search_total1"}-->
-                                    <!--{assign var=key2 value="search_total2"}-->
-                                    <span class="red12"><!--{$arrErr[$key1]}--></span>
-                                    <span class="red12"><!--{$arrErr[$key2]}--></span>
-                                    <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"    size="6" class="box6" />
-
-                                    円 〜
-                                    <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"    size="6" class="box6" />
-                                    円
-                                </td>
-                            </tr>
-                        </table>
-                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
-                            <tr>
-                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-                                <td><img src="<!--{$TPL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
-                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-                            </tr>
-                            <tr>
-                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
-                                <td bgcolor="#e9e7de" align="center">
-                                <table border="0" cellspacing="0" cellpadding="0" summary=" ">
-                                    <tr>
-                                        <td class="fs12n">検索結果表示件数
-                                            <!--{assign var=key value="search_page_max"}-->
-                                            <span class="red12"><!--{$arrErr[$key]}--></span>
-                                            <select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
-                                            <!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
-                                            </select> 件
-                                        </td>
-                                        <td><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="10" height="1" alt=""></td>
-                                        <td><input type="image" name="subm" onMouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_search_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_search.jpg',this)" src="<!--{$TPL_DIR}-->img/contents/btn_search.jpg" width="123" height="24" alt="この条件で検索する" border="0" ></td>
-                                    </tr>
-                                </table>
-                                </td>
-                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
-                            </tr>
-                            <tr>
-                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
-                            </tr>
-                        </table>
-                        <!--検索条件設定テーブルここまで-->
-                        </td>
-                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
-                    </tr>
-                    <tr>
-                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
-                    </tr>
-                    <tr><td height="30"></td></tr>
-                </table>
-                </td>
-            </tr>
-            <!--メインエリア-->
-        </table>
-        </td>
-    </tr>
-</form>
+	<tr valign="top">
+		<td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402">
+			<!-- サブナビ -->
+			<!--{include file=$tpl_subnavi}-->
+		</td>
+		<td class="mainbg">
+		<table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
+			<!--メインエリア-->
+			<tr>
+				<td align="center">
+				<table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
+					<tr><td height="14"></td></tr>
+					<tr>
+						<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
+					</tr>
+					<tr>
+						<td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+						<td bgcolor="#cccccc">
+						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+							<tr>
+								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
+							</tr>
+							<tr>
+								<td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
+								<td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->検索条件設定</span></td>
+								<td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
+							</tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
+							</tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
+							</tr>
+						</table>
+						<!--検索条件設定テーブルここから-->
+						<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">受注番号</td>
+								<td bgcolor="#ffffff" width="194">
+									<!--{assign var=key1 value="search_order_id1"}-->
+									<!--{assign var=key2 value="search_order_id2"}-->
+									<span class="red12"><!--{$arrErr[$key1]}--></span>
+									<span class="red12"><!--{$arrErr[$key2]}--></span>
+									<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
+									 〜 
+									<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
+								</td>
+								<td bgcolor="#f2f1ec" width="110">対応状況</td>
+								<td bgcolor="#ffffff" width="195">
+									<!--{assign var=key value="search_order_status"}-->
+									<span class="red12"><!--{$arrErr[$key]}--></span>
+									<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+									<option value="">選択してください</option>
+									<!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
+									</select>
+								</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">顧客名</td>
+								<td bgcolor="#ffffff" width="194">
+								<!--{assign var=key value="search_order_name"}-->
+								<span class="red12"><!--{$arrErr[$key]}--></span>
+								<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />				
+								</td>
+								<td bgcolor="#f2f1ec" width="110">顧客名（カナ）</td>
+								<td bgcolor="#ffffff" width="195">
+								<!--{assign var=key value="search_order_kana"}-->
+								<span class="red12"><!--{$arrErr[$key]}--></span>
+								<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />				
+								</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">メールアドレス</td>
+								<td bgcolor="#ffffff" width="194">
+									<!--{assign var=key value="search_order_email"}-->
+									<span class="red12"><!--{$arrErr[$key]}--></span>
+									<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />				
+								</td>
+								<td bgcolor="#f2f1ec" width="110">TEL</td>
+								<td bgcolor="#ffffff" width="195">
+									<!--{assign var=key value="search_order_tel"}-->
+									<span class="red12"><!--{$arrErr[$key]}--></span>
+									<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />				
+								</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">生年月日</td>
+								<td bgcolor="#ffffff" width="499" colspan="3">
+									<span class="red"><!--{$arrErr.search_sbirthyear}--></span>
+									<span class="red"><!--{$arrErr.search_ebirthyear}--></span>		
+									<select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
+									<option value="">----</option>
+									<!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
+									</select>年
+									<select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
+									</select>月
+									<select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
+									</select>日〜
+									<select name="search_ebirthyear" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
+									<option value="">----</option>
+									<!--{html_options options=$arrBirthYear selected=$arrForm.search_ebirthyear.value}-->
+									</select>年
+									<select name="search_ebirthmonth" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrMonth selected=$arrForm.search_ebirthmonth.value}-->
+									</select>月
+									<select name="search_ebirthday" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrDay selected=$arrForm.search_ebirthday.value}-->
+									</select>日
+								</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">性別</td>
+								<td bgcolor="#ffffff" width="499" colspan="3">
+								<!--{assign var=key value="search_order_sex"}-->
+								<span class="red12"><!--{$arrErr[$key]}--></span>
+								<!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key].value}-->
+							</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">支払方法</td>
+								<td bgcolor="#ffffff" width="499" colspan="3">
+								<!--{assign var=key value="search_payment_id"}-->
+								<span class="red12"><!--{$arrErr[$key]|escape}--></span>
+								<!--{html_checkboxes name="$key" options=$arrPayment|escape selected=$arrForm[$key].value}-->
+								</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">受注日</td>
+								<td bgcolor="#ffffff" width="499" colspan="3">
+									<span class="red"><!--{$arrErr.search_startyear}--></span>
+									<span class="red"><!--{$arrErr.search_endyear}--></span>		
+									<select name="search_sorderyear"  style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
+									<option value="">----</option>
+									<!--{html_options options=$arrRegistYear selected=$arrForm.search_sorderyear.value}-->
+									</select>年
+									<select name="search_sordermonth" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrMonth selected=$arrForm.search_sordermonth.value}-->
+									</select>月
+									<select name="search_sorderday" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrDay selected=$arrForm.search_sorderday.value}-->
+									</select>日〜
+									<select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
+									<option value="">----</option>
+									<!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
+									</select>年
+									<select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
+									</select>月
+									<select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
+									</select>日
+								</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">更新日</td>
+								<td bgcolor="#ffffff" width="499" colspan="3">
+									<span class="red"><!--{$arrErr.search_startyear}--></span>
+									<span class="red"><!--{$arrErr.search_endyear}--></span>		
+									<select name="search_supdateyear"  style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
+									<option value="">----</option>
+									<!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
+									</select>年
+									<select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
+									</select>月
+									<select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
+									</select>日〜
+									<select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
+									<option value="">----</option>
+									<!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
+									</select>年
+									<select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
+									</select>月
+									<select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
+									<option value="">--</option>
+									<!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
+									</select>日
+								</td>
+							</tr>
+							<tr class="fs12n">
+								<td bgcolor="#f2f1ec" width="110">購入金額</td>
+								<td bgcolor="#ffffff" width="499" colspan="3">
+									<!--{assign var=key1 value="search_total1"}-->
+									<!--{assign var=key2 value="search_total2"}-->
+									<span class="red12"><!--{$arrErr[$key1]}--></span>
+									<span class="red12"><!--{$arrErr[$key2]}--></span>
+									<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
+									
+									円 〜 
+									<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
+									円
+								</td>
+							</tr>
+						</table>
+						<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+							<tr>
+								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+								<td><img src="<!--{$TPL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
+								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+							</tr>
+							<tr>
+								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+								<td bgcolor="#e9e7de" align="center">
+								<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+									<tr>
+										<td class="fs12n">検索結果表示件数
+											<!--{assign var=key value="search_page_max"}-->
+											<span class="red12"><!--{$arrErr[$key]}--></span>
+											<select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
+											<!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
+											</select> 件
+										</td>
+										<td><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="10" height="1" alt=""></td>
+										<td><input type="image" name="subm" onMouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_search_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_search.jpg',this)" src="<!--{$TPL_DIR}-->img/contents/btn_search.jpg" width="123" height="24" alt="この条件で検索する" border="0" ></td>
+									</tr>
+								</table>
+								</td>
+								<td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+							</tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
+							</tr>
+						</table>
+						<!--検索条件設定テーブルここまで-->
+						</td>
+						<td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+					</tr>
+					<tr>
+						<td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
+					</tr>
+					<tr><td height="30"></td></tr>
+				</table>
+				</td>
+			</tr>
+			<!--メインエリア-->
+		</table>
+		</td>
+	</tr>
+</form>	
 </table>
-<!--★★メインコンテンツ★★-->
+<!--★★メインコンテンツ★★-->						
 
 <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete') }-->
@@ -289,114 +289,114 @@
 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
 <input type="hidden" name="mode" value="search">
-<input type="hidden" name="order_id" value="">
+<input type="hidden" name="order_id" value="">		
 <!--{foreach key=key item=item from=$arrHidden}-->
 <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
 <!--{/foreach}-->
-    <tr><td colspan="2"><img src="<!--{$TPL_DIR}-->img/contents/search_line.jpg" width="878" height="12" alt=""></td></tr>
-    <tr bgcolor="cbcbcb">
-        <td>
-        <table border="0" cellspacing="0" cellpadding="0" summary=" ">
-            <tr>
-                <td><img src="<!--{$TPL_DIR}-->img/contents/search_left.gif" width="19" height="22" alt=""></td>
-                <td>
-                <!--検索結果-->
-                <table border="0" cellspacing="0" cellpadding="0" summary=" ">
-                    <tr>
-                        <td><img src="<!--{$TPL_DIR}-->img/contents/reselt_left_top.gif" width="22" height="5" alt=""></td>
-                        <td background="<!--{$TPL_DIR}-->img/contents/reselt_top_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-                        <td><img src="<!--{$TPL_DIR}-->img/contents/reselt_right_top.gif" width="22" height="5" alt=""></td>
-                    </tr>
-                    <tr>
-                        <td background="<!--{$TPL_DIR}-->img/contents/reselt_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/reselt_left_middle.gif" width="22" height="12" alt=""></td>
-                        <td bgcolor="#393a48" class="white10">検索結果一覧　<span class="reselt"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。</td>
-                        <td background="<!--{$TPL_DIR}-->img/contents/reselt_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="22" height="8" alt=""></td>
-                    </tr>
-                    <tr>
-                        <td><img src="<!--{$TPL_DIR}-->img/contents/reselt_left_bottom.gif" width="22" height="5" alt=""></td>
-                        <td background="<!--{$TPL_DIR}-->img/contents/reselt_bottom_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
-                        <td><img src="<!--{$TPL_DIR}-->img/contents/reselt_right_bottom.gif" width="22" height="5" alt=""></td>
-                    </tr>
-                </table>
-                <!--検索結果-->
-                <!--{if $smarty.const.ADMIN_MODE == '1'}-->
-                <input type="button" name="subm" value="検索結果をすべて削除" onclick="fnModeSubmit('delete_all','','');" />
-                <!--{/if}-->
-                </td>
-                <td><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="8" height="1" alt=""></td>
-                <td><a href="#" onmouseover="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv_on.jpg','btn_csv');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv.jpg','btn_csv');"    onclick="fnModeSubmit('csv','','');" ><img src="<!--{$TPL_DIR}-->img/contents/btn_csv.jpg" width="99" height="22" alt="CSV DOWNLOAD" border="0" name="btn_csv" id="btn_csv"></a></td>
-                <td><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="8" height="1" alt=""></td>
-                <td><a href="../contents/csv.php?tpl_subno_csv=order"><span class="fs12n"> >> CSV出力項目設定 </span></a></td>
-            </tr>
-        </table>
-        </td>
-        <td align="right">
-            <!--{include file=$tpl_pager}-->
-        </td>
-    </tr>
-    <tr><td bgcolor="cbcbcb" colspan="2"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td></tr>
+	<tr><td colspan="2"><img src="<!--{$TPL_DIR}-->img/contents/search_line.jpg" width="878" height="12" alt=""></td></tr>
+	<tr bgcolor="cbcbcb">
+		<td>
+		<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+			<tr>
+				<td><img src="<!--{$TPL_DIR}-->img/contents/search_left.gif" width="19" height="22" alt=""></td>
+				<td>
+				<!--検索結果-->
+				<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+					<tr>
+						<td><img src="<!--{$TPL_DIR}-->img/contents/reselt_left_top.gif" width="22" height="5" alt=""></td>
+						<td background="<!--{$TPL_DIR}-->img/contents/reselt_top_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+						<td><img src="<!--{$TPL_DIR}-->img/contents/reselt_right_top.gif" width="22" height="5" alt=""></td>
+					</tr>
+					<tr>
+						<td background="<!--{$TPL_DIR}-->img/contents/reselt_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/reselt_left_middle.gif" width="22" height="12" alt=""></td>
+						<td bgcolor="#393a48" class="white10">検索結果一覧　<span class="reselt"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。</td>
+						<td background="<!--{$TPL_DIR}-->img/contents/reselt_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="22" height="8" alt=""></td>
+					</tr>
+					<tr>
+						<td><img src="<!--{$TPL_DIR}-->img/contents/reselt_left_bottom.gif" width="22" height="5" alt=""></td>
+						<td background="<!--{$TPL_DIR}-->img/contents/reselt_bottom_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+						<td><img src="<!--{$TPL_DIR}-->img/contents/reselt_right_bottom.gif" width="22" height="5" alt=""></td>
+					</tr>
+				</table>
+				<!--検索結果-->
+				<!--{if $smarty.const.ADMIN_MODE == '1'}-->
+				<input type="button" name="subm" value="検索結果をすべて削除" onclick="fnModeSubmit('delete_all','','');" />
+				<!--{/if}-->
+				</td>
+				<td><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="8" height="1" alt=""></td>
+				<td><a href="#" onmouseover="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv_on.jpg','btn_csv');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv.jpg','btn_csv');"  onclick="fnModeSubmit('csv','','');" ><img src="<!--{$TPL_DIR}-->img/contents/btn_csv.jpg" width="99" height="22" alt="CSV DOWNLOAD" border="0" name="btn_csv" id="btn_csv"></a></td>
+				<td><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="8" height="1" alt=""></td>
+				<td><a href="../contents/csv.php?tpl_subno_csv=order"><span class="fs12n"> >> CSV出力項目設定 </span></a></td>
+			</tr>
+		</table>
+		</td>
+		<td align="right">
+			<!--{include file=$tpl_pager}-->
+		</td>
+	</tr>
+	<tr><td bgcolor="cbcbcb" colspan="2"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td></tr>
 </table>
 
 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
-    <tr>
-        <td bgcolor="#f0f0f0" align="center">
-
-        <!--{if count($arrResults) > 0}-->
-
-            <table width="840" border="0" cellspacing="0" cellpadding="0" summary=" ">
-                <tr><td height="12"></td></tr>
-                <tr>
-                    <td bgcolor="#cccccc">
-                    <!--検索結果表示テーブル-->
-                    <table width="840" border="0" cellspacing="1" cellpadding="5" summary=" ">
-                        <!--{* ペイジェントモジュール連携用 *}-->
-                        <!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order_index.tpl}-->
-                        <!--{if file_exists($path)}-->
-                            <!--{include file=$path}-->
-                        <!--{else}-->
-                        <tr bgcolor="#636469" align="center" class="fs12n">
-                            <td width="100"><span class="white">受注日</span></td>
-                            <td width="65"><span class="white">受注番号</span></td>
-                            <td width="110"><span class="white">顧客名</span></td>
-                            <td width="90"><span class="white">支払方法</span></td>
-                            <td width="70"><span class="white">購入金額(円)</span></td>
-                            <td width="100"><span class="white">全商品発送日</span></td>
-                            <td width="75"><span class="white">対応状況</span></td>
-                            <td width="45"><span class="white">帳票</span></td>
-                            <td width="45"><span class="white">編集</span></td>
-                            <td width="45"><span class="white">メール</span></td>
-                            <td width="45"><span class="white">削除</span></td>
-                        </tr>
-
-                        <!--{section name=cnt loop=$arrResults}-->
-                        <!--{assign var=status value="`$arrResults[cnt].status`"}-->
-                        <tr bgcolor="<!--{$arrORDERSTATUS_COLOR[$status]}-->" class="fs12n">
-                            <td align="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
-                            <td align="center"><!--{$arrResults[cnt].order_id}--></td>
-                            <td><!--{$arrResults[cnt].order_name01|escape}--> <!--{$arrResults[cnt].order_name02|escape}--></td>
-                            <!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
-                            <td align="center"><!--{$arrPayment[$payment_id]}--></td>
-                            <td align="right"><!--{$arrResults[cnt].total|number_format}--></td>
-                            <td align="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default:"未発送"}--></td>
-                            <td align="center"><!--{$arrORDERSTATUS[$status]}--></td>
-                            <td align="center"><a href="./" onClick="win02('pdf.php?order_id=<!--{$arrResults[cnt].order_id}-->','pdf_input','500','650'); return false;"><span class="icon_class">帳票</span></a><br /></td>
-                            <td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_EDIT}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_edit">編集</span></a></td>
-                            <td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_MAIL}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_mail">通知</span></a></td>
-                            <td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('delete', 'order_id', <!--{$arrResults[cnt].order_id}-->); return false;"><span class="icon_delete">削除</span></a></td>
-                        </tr>
-                        <!--{/section}-->
-                        <!--{/if}-->
-                    </table>
-                    <!--検索結果表示テーブル-->
-                    </td>
-                </tr>
-            </table>
-
-        <!--{/if}-->
-
-        </td>
-    </tr>
+	<tr>
+		<td bgcolor="#f0f0f0" align="center">
+
+		<!--{if count($arrResults) > 0}-->		
+
+			<table width="840" border="0" cellspacing="0" cellpadding="0" summary=" ">
+				<tr><td height="12"></td></tr>
+				<tr>
+					<td bgcolor="#cccccc">
+					<!--検索結果表示テーブル-->
+					<table width="840" border="0" cellspacing="1" cellpadding="5" summary=" ">
+						<!--{* ペイジェントモジュール連携用 *}-->
+						<!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order_index.tpl}-->
+						<!--{if file_exists($path)}-->
+							<!--{include file=$path}-->
+						<!--{else}-->
+						<tr bgcolor="#636469" align="center" class="fs12n">
+							<td width="100"><span class="white">受注日</span></td>
+							<td width="65"><span class="white">受注番号</span></td>
+							<td width="110"><span class="white">顧客名</span></td>
+							<td width="90"><span class="white">支払方法</span></td>
+							<td width="70"><span class="white">購入金額(円)</span></td>
+							<td width="100"><span class="white">全商品発送日</span></td>
+							<td width="75"><span class="white">対応状況</span></td>
+							<td width="45"><span class="white">帳票</span></td>
+							<td width="45"><span class="white">編集</span></td>
+							<td width="45"><span class="white">メール</span></td>
+							<td width="45"><span class="white">削除</span></td>
+						</tr>
+						
+						<!--{section name=cnt loop=$arrResults}-->
+						<!--{assign var=status value="`$arrResults[cnt].status`"}-->
+						<tr bgcolor="<!--{$arrORDERSTATUS_COLOR[$status]}-->" class="fs12n">
+							<td align="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
+							<td align="center"><!--{$arrResults[cnt].order_id}--></td>
+							<td><!--{$arrResults[cnt].order_name01|escape}--> <!--{$arrResults[cnt].order_name02|escape}--></td>
+							<!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
+							<td align="center"><!--{$arrPayment[$payment_id]}--></td>
+							<td align="right"><!--{$arrResults[cnt].total|number_format}--></td>
+							<td align="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default:"未発送"}--></td>
+							<td align="center"><!--{$arrORDERSTATUS[$status]}--></td>
+							<td align="center"><a href="./" onClick="win02('pdf.php?order_id=<!--{$arrResults[cnt].order_id}-->','pdf_input','500','650'); return false;"><span class="icon_class">帳票</span></a><br /></td>
+							<td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_EDIT}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_edit">編集</span></a></td>
+							<td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_MAIL}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_mail">通知</span></a></td>
+							<td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('delete', 'order_id', <!--{$arrResults[cnt].order_id}-->); return false;"><span class="icon_delete">削除</span></a></td>
+						</tr>
+						<!--{/section}-->
+						<!--{/if}-->
+					</table>
+					<!--検索結果表示テーブル-->
+					</td>
+				</tr>
+			</table>
+
+		<!--{/if}-->
+
+		</td>
+	</tr>
 </form>
-</table>
-<!--★★検索結果一覧★★-->
+</table>		
+<!--★★検索結果一覧★★-->		
 
 <!--{/if}-->
Index: /branches/version-2_4/data/Smarty/templates/default/admin/order/subnavi.tpl
===================================================================
--- /branches/version-2_4/data/Smarty/templates/default/admin/order/subnavi.tpl	(revision 16582)
+++ /branches/version-2_4/data/Smarty/templates/default/admin/order/subnavi.tpl	(revision 17773)
@@ -23,15 +23,17 @@
 *}-->
 <table width="141" border="0" cellspacing="0" cellpadding="0" summary=" " id="menu_navi">
-	<!--ナビ-->
-	<tr><td class=<!--{if $tpl_subno != 'index'}-->"navi"<!--{else}-->"navi-on"<!--{/if}-->><a href="./index.php" onMouseOver="naviStyleChange('index', '#a5a5a5')" <!--{if $tpl_subno != 'index'}-->onMouseOut="naviStyleChange('index', '#636469')"<!--{/if}--> id="index"><img src="<!--{$TPL_DIR}-->img/contents/icon.jpg" width="15" height="9" alt="" border="0"><span class="navi_text">受注管理</span></a></td></tr>
-	<tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_line.gif" width="140" height="2" alt=""></td></tr>
-	<tr><td class=<!--{if $tpl_subno != 'status'}-->"navi"<!--{else}-->"navi-on"<!--{/if}-->><a href="./status.php" onMouseOver="naviStyleChange('status', '#a5a5a5')" <!--{if $tpl_subno != 'status'}-->onMouseOut="naviStyleChange('status', '#636469')"<!--{/if}--> id="status"><img src="<!--{$TPL_DIR}-->img/contents/icon.jpg" width="15" height="9" alt="" border="0"><span class="navi_text">ステータス管理</span></a></td></tr>
-	<tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_line.gif" width="140" height="2" alt=""></td></tr>
-	<!--{if $tpl_subno == 'status'}-->
-		<!--{foreach key=key item=item from=$arrORDERSTATUS}-->
-			<tr><td class=<!--{if $key ne $SelectedStatus && $key ne $defaultstatus}-->"subnavi"<!--{else}-->"subnavi-on"<!--{/if}-->><a href="#" onclick="document.form1.search_pageno.value='1'; fnModeSubmit('search','status','<!--{$key}-->' );" onMouseOver="naviStyleChange('status_sub<!--{$key}-->', '#b7b7b7')" <!--{if $key ne $SelectedStatus && $key ne $defaultstatus}-->onMouseOut="naviStyleChange('status_sub<!--{$key}-->', '#818287')"<!--{/if}--> id="status_sub<!--{$key}-->"><span class="subnavi_text"><!--{$item}--></span></a></td></tr>
-			<tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_subline.gif" width="140" height="2" alt=""></td></tr>
-		<!--{/foreach}-->
-	<!--{/if}-->
-	<!--ナビ-->
+    <!--ナビ-->
+    <tr><td class=<!--{if $tpl_subno != 'index'}-->"navi"<!--{else}-->"navi-on"<!--{/if}-->><a href="./index.php" onMouseOver="naviStyleChange('index', '#a5a5a5')" <!--{if $tpl_subno != 'index'}-->onMouseOut="naviStyleChange('index', '#636469')"<!--{/if}--> id="index"><img src="<!--{$TPL_DIR}-->img/contents/icon.jpg" width="15" height="9" alt="" border="0"><span class="navi_text">受注管理</span></a></td></tr>
+    <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_line.gif" width="140" height="2" alt=""></td></tr>
+    <tr><td class=<!--{if $tpl_subno != 'add'}-->"navi"<!--{else}-->"navi-on"<!--{/if}-->><a href="./edit.php?mode=add" onMouseOver="naviStyleChange('add', '#a5a5a5')" <!--{if $tpl_subno !='add'}-->onMouseOut="naviStyleChange('add', '#636469')"<!--{/if}--> id="add"><img src="<!--{$TPL_DIR}-->img/contents/icon.jpg" width="15" height="9" alt="" border="0"><span class="navi_text">新規受注入力</span></a></td></tr>
+    <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_line.gif" width="140" height="2" alt=""></td></tr>
+    <tr><td class=<!--{if $tpl_subno != 'status'}-->"navi"<!--{else}-->"navi-on"<!--{/if}-->><a href="./status.php" onMouseOver="naviStyleChange('status', '#a5a5a5')" <!--{if $tpl_subno != 'status'}-->onMouseOut="naviStyleChange('status', '#636469')"<!--{/if}--> id="status"><img src="<!--{$TPL_DIR}-->img/contents/icon.jpg" width="15" height="9" alt="" border="0"><span class="navi_text">ステータス管理</span></a></td></tr>
+    <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_line.gif" width="140" height="2" alt=""></td></tr>
+    <!--{if $tpl_subno == 'status'}-->
+        <!--{foreach key=key item=item from=$arrORDERSTATUS}-->
+            <tr><td class=<!--{if $key ne $SelectedStatus && $key ne $defaultstatus}-->"subnavi"<!--{else}-->"subnavi-on"<!--{/if}-->><a href="#" onclick="document.form1.search_pageno.value='1'; fnModeSubmit('search','status','<!--{$key}-->' );" onMouseOver="naviStyleChange('status_sub<!--{$key}-->', '#b7b7b7')" <!--{if $key ne $SelectedStatus && $key ne $defaultstatus}-->onMouseOut="naviStyleChange('status_sub<!--{$key}-->', '#818287')"<!--{/if}--> id="status_sub<!--{$key}-->"><span class="subnavi_text"><!--{$item}--></span></a></td></tr>
+            <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_subline.gif" width="140" height="2" alt=""></td></tr>
+        <!--{/foreach}-->
+    <!--{/if}-->
+    <!--ナビ-->
 </table>
Index: /branches/version-2_4/data/Smarty/templates/default/admin/products/product_select.tpl
===================================================================
--- /branches/version-2_4/data/Smarty/templates/default/admin/products/product_select.tpl	(revision 16824)
+++ /branches/version-2_4/data/Smarty/templates/default/admin/products/product_select.tpl	(revision 17773)
@@ -40,15 +40,90 @@
 self.moveTo(20,20);self.focus();
 
-function func_submit( id ){
-	var fm = window.opener.document.form1;
-	fm.recommend_id<!--{$smarty.get.no}-->.value = id;
-	fm.mode.value = 'recommend_select';
-	fm.anchor_key.value = 'recommend_no<!--{$smarty.get.no}-->';
-	fm.submit();
-	window.close();
-	return false;
+function func_submit( product_id, class_name1, class_name2 ){
+    var err_text = '';
+    var fm = window.opener.document.form1;
+    var fm1 = window.opener.document;
+    var class1 = "classcategory_id" + product_id + "_1";
+    var class2 = "classcategory_id" + product_id + "_2";
+
+    var class1_id = document.getElementById(class1).value;
+    var class2_id = document.getElementById(class2).value;
+
+    <!--{if $tpl_no != ''}-->
+        var opner_product_id = 'edit_product_id';
+        var opner_classcategory_id1 = 'edit_classcategory_id1';
+        var opner_classcategory_id2 = 'edit_classcategory_id2';
+        fm1.getElementById("no").value = <!--{$tpl_no}-->;
+    <!--{else}-->
+        var opner_product_id = 'add_product_id';
+        var opner_classcategory_id1 = 'add_classcategory_id1';
+        var opner_classcategory_id2 = 'add_classcategory_id2';
+    <!--{/if}-->
+
+    if (document.getElementById(class1).type == 'select-one' && class1_id == '') {
+        err_text = class_name1 + "を選択してください。\n";
+    }
+    if (document.getElementById(class2).type == 'select-one' && class2_id == '') {
+        err_text = err_text + class_name2 + "を選択してください。\n";
+    }
+    if (err_text != '') {
+        alert(err_text);
+        return false;
+    }
+
+    fm1.getElementById(opner_product_id).value = product_id;
+    if (class1_id != '') {
+        fm1.getElementById(opner_classcategory_id1).value = class1_id;
+    }
+    if (class2_id != '') {
+        fm1.getElementById(opner_classcategory_id2).value = class2_id;
+    }
+
+    fm.mode.value = 'select_product_detail';
+    fm.anchor_key.value = 'order_products';
+    fm.submit();
+    window.close();
+
+    return true;
 }
 //-->
 </script>
+
+<script type="text/javascript">//<![CDATA[
+// セレクトボックスに項目を割り当てる。
+function lnSetSelect(name1, name2, id, val) {
+    sele1 = document.form1[name1];
+    sele2 = document.form1[name2];
+    lists = eval('lists' + id);
+    vals = eval('vals' + id);
+
+    if(sele1 && sele2) {
+        index = sele1.selectedIndex;
+
+        // セレクトボックスのクリア
+        count = sele2.options.length;
+        for(i = count; i >= 0; i--) {
+            sele2.options[i] = null;
+        }
+
+        // セレクトボックスに値を割り当てる
+        len = lists[index].length;
+        for(i = 0; i < len; i++) {
+            sele2.options[i] = new Option(lists[index][i], vals[index][i]);
+            if(val != "" && vals[index][i] == val) {
+                sele2.options[i].selected = true;
+            }
+        }
+    }
+}
+//]]>
+</script>
+
+
+<script type="text/javascript">//<![CDATA[
+    <!--{$tpl_javascript}-->
+//]]>
+</script>
+
 <title>ECサイト管理者ページ</title>
 </head>
@@ -69,16 +144,20 @@
 <input name="search_pageno" type="hidden" value="">
 <table bgcolor="#cccccc" width="420" border="0" cellspacing="1" cellpadding="5" summary=" ">
-	<tr class="fs12n">
-		<td bgcolor="#f0f0f0" width="100">カテゴリ</td>
-		<td bgcolor="#ffffff" width="287"><select name="search_category_id">
-		<option value="" selected="selected">選択してください</option>
-		<!--{html_options options=$arrCatList selected=$arrForm.search_category_id}-->
-		</select>
-		</td>
-	</tr>
-	<tr class="fs12n">
-		<td bgcolor="#f0f0f0">商品名</td>
-		<td bgcolor="#ffffff"><input type="text" name="search_name" value="<!--{$arrForm.search_name}-->" size="35" class="box35" /></td>
-	</tr>
+    <tr class="fs12n">
+        <td bgcolor="#f0f0f0" width="100">カテゴリ</td>
+        <td bgcolor="#ffffff" width="287"><select name="search_category_id">
+        <option value="" selected="selected">選択してください</option>
+        <!--{html_options options=$arrCatList selected=$arrForm.search_category_id}-->
+        </select>
+        </td>
+    </tr>
+    <tr class="fs12n">
+        <td bgcolor="#f0f0f0">商品名</td>
+        <td bgcolor="#ffffff"><input type="text" name="search_name" value="<!--{$arrForm.search_name}-->" size="35" class="box35" /></td>
+    </tr>
+    <tr class="fs12n">
+        <td bgcolor="#f0f0f0">商品番号</td>
+        <td bgcolor="#ffffff"><input type="text" name="search_product_code" value="<!--{$arrForm.search_product_code}-->" size="35" class="box35" /></td>
+    </tr>
 </table>
 <br />
@@ -87,54 +166,99 @@
 <br />
 
-	<!--▼検索結果表示-->
-	<!--{if $tpl_linemax}-->
-	<table width="420" border="0" cellspacing="0" cellpadding="0" summary=" " bgcolor="#FFFFFF">
-		<tr class="fs12">
-			<td align="left"><!--{$tpl_linemax}-->件が該当しました。	</td>
-		</tr>
-		<tr class="fs12">
-			<td align="center">
-			<!--▼ページナビ-->
-			<!--{$tpl_strnavi}-->
-			<!--▲ページナビ-->
-			</td>
-		</tr>
-		<tr><td height="10"></td></tr>
-	</table>
-		
-	<!--▼検索後表示部分-->
-	<table width="420" border="0" cellspacing="1" cellpadding="5" bgcolor="#cccccc">
-		<tr bgcolor="#f0f0f0" align="center" class="fs12">
-			<td>商品画像</td>
-			<td>商品番号</td>
-			<td>商品名</td>
-			<td>決定</td>
-		</tr>
-		<!--{section name=cnt loop=$arrProducts}-->
-		<!--▼商品<!--{$smarty.section.cnt.iteration}-->-->
-		<tr bgcolor="#FFFFFF" class="fs12n">
-			<td width="90" align="center">
-			<!--{if $arrProducts[cnt].main_list_image != ""}-->
-				<!--{assign var=image_path value="`$arrProducts[cnt].main_list_image`"}-->
-			<!--{else}-->
-				<!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
-			<!--{/if}-->
-			<img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path}-->&width=65&height=65" alt="<!--{$arrRecommend[$recommend_no].name|escape}-->">
-			</td>	
-			<td><!--{$arrProducts[cnt].product_code|escape|default:"-"}--></td>
-			<td><!--{$arrProducts[cnt].name|escape}--></td>
-			<td align="center"><a href="" onClick="return func_submit(<!--{$arrProducts[cnt].product_id}-->)">決定</a></td>
-		</tr>
-		<!--▲商品<!--{$smarty.section.cnt.iteration}-->-->
-		<!--{sectionelse}-->
-		<tr bgcolor="#FFFFFF" class="fs10n">
-			<td colspan="4">商品が登録されていません</td>
-		</tr>	
-		<!--{/section}-->
-	</table>
-	<br />
-	<br />
-	<!--{/if}-->
-	<!--▲検索結果表示-->
+    <!--▼検索結果表示-->
+    <!--{if $tpl_linemax}-->
+    <table width="420" border="0" cellspacing="0" cellpadding="0" summary=" " bgcolor="#FFFFFF">
+        <tr class="fs12">
+            <td align="left"><!--{$tpl_linemax}-->件が該当しました。	</td>
+        </tr>
+        <tr class="fs12">
+            <td align="center">
+            <!--▼ページナビ-->
+            <!--{$tpl_strnavi}-->
+            <!--▲ページナビ-->
+            </td>
+        </tr>
+        <tr><td height="10"></td></tr>
+    </table>
+
+    <!--▼検索後表示部分-->
+    <table width="420" border="0" cellspacing="1" cellpadding="5" bgcolor="#cccccc">
+        <tr bgcolor="#f0f0f0" align="center" class="fs12">
+            <td>商品画像</td>
+            <td>商品番号</td>
+            <td>商品名</td>
+            <td>決定</td>
+        </tr>
+        <!--{section name=cnt loop=$arrProducts}-->
+        <!--{assign var=id value=$arrProducts[cnt].product_id}-->
+        <!--▼商品<!--{$smarty.section.cnt.iteration}-->-->
+        <tr bgcolor="#FFFFFF" class="fs12n">
+            <td width="90" align="center">
+            <!--{if $arrProducts[cnt].main_list_image != ""}-->
+                <!--{assign var=image_path value="`$arrProducts[cnt].main_list_image`"}-->
+            <!--{else}-->
+                <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
+            <!--{/if}-->
+            <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path}-->&width=65&height=65" alt="<!--{$arrRecommend[$recommend_no].name|escape}-->">
+            </td>
+            <td>
+            <!--{$arrProducts[cnt].name|escape}-->
+
+            <!--{assign var=codemin value=`$arrProducts[cnt].product_code_min`}-->
+            <!--{assign var=codemax value=`$arrProducts[cnt].product_code_max`}-->
+            <!--{* 商品コード *}-->
+                <!--{if $codemin != $codemax}-->
+                    <!--{$codemin|escape}-->〜<!--{$codemax|escape}-->
+                <!--{else}-->
+                    <!--{$codemin|escape}-->
+                <!--{/if}-->
+            </td>
+            <td>
+                <!--{$arrProducts[cnt].name|escape}-->
+
+                <!--{assign var=class1 value=classcategory_id`$id`_1}-->
+                <!--{assign var=class2 value=classcategory_id`$id`_2}-->
+                <!--{if $tpl_classcat_find1[$id]}-->
+                <dt><!--{$tpl_class_name1[$id]|escape}-->：</dt>
+                <dd>
+                    <select name="<!--{$class1}-->" id="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');">
+                    <option value="">選択してください</option>
+                    <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}-->
+                    </select>
+                    <!--{if $arrErr[$class1] != ""}-->
+                    <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span>
+                    <!--{/if}-->
+                </dd>
+                <!--{else}-->
+                <input type="hidden" name="<!--{$class1}-->" id="<!--{$class1}-->" value="">
+                <!--{/if}-->
+                <!--{if $tpl_classcat_find2[$id]}-->
+                    <dt><!--{$tpl_class_name2[$id]|escape}-->：</dt>
+                    <dd>
+                        <select name="<!--{$class2}-->" id="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->">
+                        <option value="">選択してください</option>
+                        </select>
+                        <!--{if $arrErr[$class2] != ""}-->
+                        <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span>
+                        <!--{/if}-->
+                    </dd>
+                <!--{else}-->
+                    <input type="hidden" name="<!--{$class2}-->" id="<!--{$class2}-->" value="">
+                <!--{/if}-->
+            </td>
+
+            <td align="center"><a href="" onclick="return func_submit('<!--{$arrProducts[cnt].product_id}-->', '<!--{$tpl_class_name1[$id]}-->', '<!--{$tpl_class_name2[$id]}-->')">決定</a></td>
+        </tr>
+        <!--▲商品<!--{$smarty.section.cnt.iteration}-->-->
+        <!--{sectionelse}-->
+        <tr bgcolor="#FFFFFF" class="fs10n">
+            <td colspan="4">商品が登録されていません</td>
+        </tr>
+        <!--{/section}-->
+    </table>
+    <br />
+    <br />
+    <!--{/if}-->
+    <!--▲検索結果表示-->
 
 </form>
Index: /branches/version-2_4/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
===================================================================
--- /branches/version-2_4/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php	(revision 17395)
+++ /branches/version-2_4/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php	(revision 17773)
@@ -27,10 +27,10 @@
 /* GMO決済モジュール連携用 */
 if (file_exists(MODULE_PATH . 'mdl_gmopg/inc/include.php') === TRUE) {
-    require_once(MODULE_PATH . 'mdl_gmopg/inc/include.php');
+  require_once(MODULE_PATH . 'mdl_gmopg/inc/include.php');
 }
 
 /* ペイジェント決済モジュール連携用 */
 if (file_exists(MODULE_PATH . 'mdl_paygent/include.php') === TRUE) {
-	require_once(MODULE_PATH . 'mdl_paygent/include.php');
+    require_once(MODULE_PATH . 'mdl_paygent/include.php');
 }
 
@@ -71,17 +71,22 @@
         parent::init();
         $this->tpl_mainpage = 'order/edit.tpl';
-		$this->tpl_subnavi = 'order/subnavi.tpl';
-		$this->tpl_mainno = 'order';
-		$this->tpl_subno = 'index';
-		$this->tpl_subtitle = '受注管理';
+        $this->tpl_subnavi = 'order/subnavi.tpl';
+        $this->tpl_mainno = 'order';
+        $this->tpl_subno = 'index';
+        $this->tpl_subtitle = '受注管理';
+        if (empty($_GET['order_id']) && empty($_POST['order_id'])) {
+            $this->tpl_subno = 'add';
+            $this->tpl_mode = 'add';
+            $this->tpl_subtitle = '新規受注入力';
+        }
 
         $masterData = new SC_DB_MasterData_Ex();
-		$this->arrPref = $masterData->getMasterData("mtb_pref",
+        $this->arrPref = $masterData->getMasterData("mtb_pref",
                                  array("pref_id", "pref_name", "rank"));
-		$this->arrORDERSTATUS = $masterData->getMasterData("mtb_order_status");
+        $this->arrORDERSTATUS = $masterData->getMasterData("mtb_order_status");
 
         /* ペイジェント決済モジュール連携用 */
         if(function_exists("sfPaygentOrderPage")) {
-            $this->arrDispKind = sfPaygentOrderPage();
+            $this->arrFormKind = sfPaygentOrderPage();
         }
 
@@ -141,4 +146,5 @@
             break;
         case 'edit':
+        case 'add':
             // POST情報で上書き
             $this->objFormParam->setParam($_POST);
@@ -146,13 +152,19 @@
             // 入力値の変換
             $this->objFormParam->convParam();
+            $this->arrErr = $this->lfCheek($arrInfo);
             $this->arrErr = $this->lfCheckError();
             if(count($this->arrErr) == 0) {
-                $this->arrErr = $this->lfCheek($arrInfo);
-                if(count($this->arrErr) == 0) {
-                    $this->lfRegistData($_POST['order_id']);
+                #if(count($this->arrErr) == 0) {
+                    if ($_POST['mode'] == 'add') {
+                        $this->lfRegistNewData();
+                        $text = "'新規受注を登録しました。'";
+                    } else {
+                        $this->lfRegistData($_POST['order_id']);
+                        $text = "'受注履歴を編集しました。'";
+                    }
                     // DBから受注情報を再読込
                     $this->lfGetOrderData($order_id);
-                    $this->tpl_onload = "window.alert('受注履歴を編集しました。');";
-                }
+                    $this->tpl_onload = "window.alert(".$text.");";
+                #}
             }
             break;
@@ -171,4 +183,39 @@
         case 'paygent_order':
             $this->paygent_return = sfPaygentOrder($_POST['paygent_type'], $order_id);
+            break;
+        /* 商品削除*/
+        case 'delete_product':
+            $delete_no = $_POST['delete_no'];
+            foreach ($_POST AS $key=>$val) {
+                if (is_array($val)) {
+                    foreach ($val AS $k=>$v) {
+                        if ($k != $delete_no) {
+                            $arrData[$key][] = $v;
+                        }
+                    }
+                } else {
+                    $arrData[$key] = $val;
+                }
+            }
+            $this->lfReCheek($arrData, $arrInfo);
+            break;
+        /* 商品追加ポップアップより商品選択後、商品情報取得*/
+        case 'select_product_detail':
+            // POST情報で上書き
+            $this->objFormParam->setParam($_POST);
+            if (!empty($_POST['add_product_id'])) {
+                $this->lfInsertProduct($_POST['add_product_id'], $_POST['add_classcategory_id1'], $_POST['add_classcategory_id2']);
+            } elseif (!empty($_POST['edit_product_id'])) {
+                $this->lfUpdateProduct($_POST['edit_product_id'], $_POST['edit_classcategory_id1'], $_POST['edit_classcategory_id2'], $_POST['no']);
+            }
+            $arrData = $_POST;
+            foreach ($this->arrForm AS $key=>$val) {
+                if (is_array($val)) {
+                    $arrData[$key] = $this->arrForm[$key]['value'];
+                } else {
+                    $arrData[$key] = $val;
+                }
+            }
+            $this->lfReCheek($arrData, $arrInfo);
             break;
         /* F-REGI決済モジュール連携用 */
@@ -218,4 +265,13 @@
 
         $this->arrForm = $this->objFormParam->getFormParamList();
+        $this->product_count = count($this->arrForm['quantity']['value']);
+
+        // アンカーを設定
+        if (isset($_POST['anchor_key']) && !empty($_POST['anchor_key'])) {
+            $anchor_hash = "location.hash='#" . $_POST['anchor_key'] . "'";
+        } else {
+            $anchor_hash = "";
+        }
+        $this->tpl_onload .= $anchor_hash;
 
         $this->arrInfo = $arrInfo;
@@ -254,4 +310,20 @@
     /* パラメータ情報の初期化 */
     function lfInitParam() {
+
+        // お客様情報
+        $this->objFormParam->addParam("顧客名1", "order_name01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+        $this->objFormParam->addParam("顧客名2", "order_name02", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+        $this->objFormParam->addParam("顧客名カナ1", "order_kana01", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+        $this->objFormParam->addParam("顧客名カナ2", "order_kana02", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+        $this->objFormParam->addParam("メールアドレス", "order_email", MTEXT_LEN, "KVCa", array("EXIST_CHECK", "NO_SPTAB", "EMAIL_CHECK", "EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
+        $this->objFormParam->addParam("郵便番号1", "order_zip01", ZIP01_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+        $this->objFormParam->addParam("郵便番号2", "order_zip02", ZIP02_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK"));
+        $this->objFormParam->addParam("都道府県", "order_pref", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
+        $this->objFormParam->addParam("住所1", "order_addr01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+        $this->objFormParam->addParam("住所2", "order_addr02", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
+        $this->objFormParam->addParam("電話番号1", "order_tel01", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+        $this->objFormParam->addParam("電話番号2", "order_tel02", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+        $this->objFormParam->addParam("電話番号3", "order_tel03", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+
         // 配送先情報
         $this->objFormParam->addParam("お名前1", "deliv_name01", STEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
@@ -267,7 +339,9 @@
         $this->objFormParam->addParam("電話番号2", "deliv_tel02", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
         $this->objFormParam->addParam("電話番号3", "deliv_tel03", TEL_ITEM_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK" ,"NUM_CHECK"));
+
+
         // 受注商品情報
         $this->objFormParam->addParam("値引き", "discount", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0');
-        $this->objFormParam->addParam("送料", "deliv_fee", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"), '0');
+        $this->objFormParam->addParam("送料", "deliv_fee", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
         $this->objFormParam->addParam("手数料", "charge", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
         $this->objFormParam->addParam("利用ポイント", "use_point", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
@@ -301,4 +375,6 @@
         $this->objFormParam->addParam("顧客ID", "customer_id");
         $this->objFormParam->addParam("現在のポイント", "point");
+        $this->objFormParam->addParam("受注番号", "order_id");
+        $this->objFormParam->addParam("受注日", "create_date");
     }
 
@@ -314,19 +390,19 @@
             $this->objFormParam->setValue('total_point', $total_point);
             $this->objFormParam->setValue('point', $point);
-            $this->arrDisp = $arrRet[0];
+            $this->arrForm = $arrRet[0];
             // 受注詳細データの取得
             $arrRet = $this->lfGetOrderDetail($order_id);
             $arrRet = SC_Utils_Ex::sfSwapArray($arrRet);
-            $this->arrDisp = array_merge($this->arrDisp, $arrRet);
+            $this->arrForm = array_merge($this->arrForm, $arrRet);
             $this->objFormParam->setParam($arrRet);
 
             // その他支払い情報を表示
-            if($this->arrDisp["memo02"] != "") $this->arrDisp["payment_info"] = unserialize($this->arrDisp["memo02"]);
-            if($this->arrDisp["memo01"] == PAYMENT_CREDIT_ID){
-                $this->arrDisp["payment_type"] = "クレジット決済";
-            }elseif($this->arrDisp["memo01"] == PAYMENT_CONVENIENCE_ID){
-                $this->arrDisp["payment_type"] = "コンビニ決済";
+            if($this->arrForm["memo02"] != "") $this->arrForm["payment_info"] = unserialize($this->arrForm["memo02"]);
+            if($this->arrForm["memo01"] == PAYMENT_CREDIT_ID){
+                $this->arrForm["payment_type"] = "クレジット決済";
+            }elseif($this->arrForm["memo01"] == PAYMENT_CONVENIENCE_ID){
+                $this->arrForm["payment_type"] = "コンビニ決済";
             }else{
-                $this->arrDisp["payment_type"] = "お支払い";
+                $this->arrForm["payment_type"] = "お支払い";
             }
         }
@@ -403,4 +479,14 @@
     }
 
+    function lfReCheek($arrData, $arrInfo) {
+        // 情報上書き
+        $this->objFormParam->setParam($arrData);
+        // 入力値の変換
+        $this->objFormParam->convParam();
+        #if(count($this->arrErr) == 0) {
+            $this->arrErr = $this->lfCheek($arrInfo);
+        #}
+        $this->arrErr = $this->lfCheckError();
+    }
     /* DB登録処理 */
     function lfRegistData($order_id) {
@@ -476,4 +562,129 @@
         $objQuery->commit();
     }
+
+    /* DB登録処理(追加) */
+    function lfRegistNewData() {
+        $objQuery = new SC_Query();
+
+        $objQuery->begin();
+
+        // 入力データを渡す。
+        $arrRet =  $this->objFormParam->getHashArray();
+        foreach($arrRet as $key => $val) {
+            // 配列は登録しない
+            if(!is_array($val)) {
+                $sqlval[$key] = $val;
+            }
+        }
+        $order_id = $objQuery->nextval('dtb_order', 'order_id');
+        $sqlval['order_id'] = $order_id;
+        $sqlval['create_date'] = "Now()";
+
+        // 注文ステータス:指定が無ければ新規受付に設定
+        if($sqlval["status"] == ""){
+            $sqlval['status'] = '1';
+        }
+
+        // customer_id
+        if($sqlval["customer_id"] == ""){
+            $sqlval['customer_id'] = '0';
+        }
+
+        unset($sqlval['total_point']);
+        unset($sqlval['point']);
+
+        $where = "order_id = ?";
+
+        // 受注ステータスの判定
+        if ($sqlval['status'] == ODERSTATUS_COMMIT) {
+            // 受注テーブルの発送済み日を更新する
+            $sqlval['commit_date'] = "Now()";
+        }
+
+        // 受注テーブルの登録
+        $objQuery->insert("dtb_order", $sqlval);
+
+        $sql = "";
+        $sql .= " UPDATE";
+        $sql .= "     dtb_order";
+        $sql .= " SET";
+        $sql .= "     payment_method = (SELECT payment_method FROM dtb_payment WHERE payment_id = ?)";
+        $sql .= "     ,deliv_time = (SELECT deliv_time FROM dtb_delivtime WHERE time_id = ? AND deliv_id = (SELECT deliv_id FROM dtb_payment WHERE payment_id = ? ))";
+        $sql .= " WHERE order_id = ?";
+
+        if ($arrRet['deliv_time_id'] == "") {
+            $deliv_time_id = 0;
+        } else {
+            $deliv_time_id = $arrRet['deliv_time_id'];
+        }
+        $arrUpdData = array($arrRet['payment_id'], $deliv_time_id, $arrRet['payment_id'], $order_id);
+        $objQuery->query($sql, $arrUpdData);
+
+        // 受注詳細データの更新
+        $arrDetail = $this->objFormParam->getSwapArray(array("product_id", "product_code", "product_name", "price", "quantity", "point_rate", "classcategory_id1", "classcategory_id2", "classcategory_name1", "classcategory_name2"));
+        $objQuery->delete("dtb_order_detail", $where, array($order_id));
+
+        $max = count($arrDetail);
+        for($i = 0; $i < $max; $i++) {
+            $sqlval = array();
+            $sqlval['order_id'] = $order_id;
+            $sqlval['product_id']  = $arrDetail[$i]['product_id'];
+            $sqlval['product_code']  = $arrDetail[$i]['product_code'];
+            $sqlval['product_name']  = $arrDetail[$i]['product_name'];
+            $sqlval['price']  = $arrDetail[$i]['price'];
+            $sqlval['quantity']  = $arrDetail[$i]['quantity'];
+            $sqlval['point_rate']  = $arrDetail[$i]['point_rate'];
+            $sqlval['classcategory_id1'] = $arrDetail[$i]['classcategory_id1'];
+            $sqlval['classcategory_id2'] = $arrDetail[$i]['classcategory_id2'];
+            $sqlval['classcategory_name1'] = $arrDetail[$i]['classcategory_name1'];
+            $sqlval['classcategory_name2'] = $arrDetail[$i]['classcategory_name2'];
+            $objQuery->insert("dtb_order_detail", $sqlval);
+        }
+        $objQuery->commit();
+    }
+
+    function lfInsertProduct($product_id, $classcategory_id1, $classcategory_id2) {
+        $arrProduct = $this->lfGetProductsClass($product_id, $classcategory_id1, $classcategory_id2);
+        $this->arrForm = $this->objFormParam->getFormParamList();
+        $this->lfSetProductData($arrProduct);
+    }
+
+    function lfUpdateProduct($product_id, $classcategory_id1, $classcategory_id2, $no) {
+        $arrProduct = $this->lfGetProductsClass($product_id, $classcategory_id1, $classcategory_id2);
+        $this->arrForm = $this->objFormParam->getFormParamList();
+        $this->lfSetProductData($arrProduct, $no);
+    }
+
+    function lfSetProductData($arrProduct, $no = null) {
+        foreach ($arrProduct AS $key=>$val) {
+            if (!is_array($this->arrForm[$key]['value'])) {
+                unset($this->arrForm[$key]['value']);
+            }
+            if ($no === null) {
+                $this->arrForm[$key]['value'][] = $arrProduct[$key];
+            } else {
+                $this->arrForm[$key]['value'][$no] = $arrProduct[$key];
+            }
+        }
+    }
+
+    function lfGetProductsClass($product_id, $classcategory_id1, $classcategory_id2) {
+        $objDb = new SC_Helper_DB_Ex();
+        $arrClassCatName = $objDb->sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
+        $arrRet = $objDb->sfGetProductsClass(array($product_id, $classcategory_id1, $classcategory_id2));
+
+        $arrProduct['price'] = $arrRet['price02'];
+        $arrProduct['quantity'] = 1;
+        $arrProduct['product_id'] = $arrRet['product_id'];
+        $arrProduct['point_rate'] = $arrRet['point_rate'];
+        $arrProduct['product_code'] = $arrRet['product_code'];
+        $arrProduct['product_name'] = $arrRet['name'];
+        $arrProduct['classcategory_id1'] = $arrRet['classcategory_id1'];
+        $arrProduct['classcategory_id2'] = $arrRet['classcategory_id2'];
+        $arrProduct['classcategory_name1'] = $arrClassCatName[$arrRet['classcategory_id1']];
+        $arrProduct['classcategory_name2'] = $arrClassCatName[$arrRet['classcategory_id2']];
+
+        return $arrProduct;
+    }
 }
 ?>
