[Svn-src-all:1376] [version-2_5-dev 20266] refs #985

shutta admin @ mail.ec-cube.net
2011年 2月 20日 (日) 20:28:19 JST


Subversion committed to /home/svn/open 20266
http://svn.ec-cube.net/open_trac/changeset/20266
┌────────────────────────────┐
│更新者 :  shutta                                       │
│更新日時:  2011-02-20 20:28:18 +0900 (日, 20  2月 2011)│
└────────────────────────────┘

Log:
--------------------------------------------------------
refs #985
登録完了画面の「検索へ戻る」「続けて登録を行う」ボタンが動作するように修正。


Changed:                      [U:修正,A:追加,D:削除]
--------------------------------------------------------
U   branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_complete.tpl
U   branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_confirm.tpl

変更: branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_complete.tpl
===================================================================
--- branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_complete.tpl	2011-02-20 11:25:16 UTC (rev 20265)
+++ branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_complete.tpl	2011-02-20 11:28:18 UTC (rev 20266)
@@ -21,6 +21,33 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 *}-->
+
+<script type="text/javascript">
+<!--
+
+    function fnReturn() {
+        document.search_form.action = './<!--{$smarty.const.DIR_INDEX_PATH}-->';
+        document.search_form.submit();
+        return false;
+    }
+//-->
+</script>
+
+<form name="search_form" method="post" action="">
+    <input type="hidden" name="mode" value="search" />
+    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
+    <!--{foreach from=$arrSearchData key="key" item="item"}-->
+        <!--{if $key ne "customer_id" && $key ne "mode" && $key ne "del_mode" && $key ne "edit_customer_id" && $key ne "del_customer_id" && $key ne "csv_mode" && $key ne "job" && $key ne "sex"}--><input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->"><!--{/if}-->
+    <!--{/foreach}-->
+
+    <!--{foreach from=$arrSearchData.job key="key" item="item"}-->
+        <input type="hidden" name="job[]" value="<!--{$item}-->" />
+    <!--{/foreach}-->
+    <!--{foreach from=$arrSearchData.sex key="key" item="item"}-->
+        <input type="hidden" name="sex[]" value="<!--{$item}-->" />
+    <!--{/foreach}-->
+</form>
+
 <form name="form1" id="form1" method="post" action="?">
 <input type="hidden" name="mode" value="complete" />
 <!--{foreach from=$arrForm key=key item=item}-->
@@ -39,7 +66,7 @@
 		<div class="btn-area">
 			<ul>
 				<li><!--{* TODO *}--><a class="btn-action" href="javascript:;" onclick="return fnReturn();"><span class="btn-prev">検索結果へ戻る</span></a></li>
-				<li><a class="btn-action" href="./customer.php"><span class="btn-next">続けて登録を行う</span></a></li>
+				<li><a class="btn-action" href="./edit.php"><span class="btn-next">続けて登録を行う</span></a></li>
 			</ul>
 		</div>
 		<div class="btn-area-bottom"></div>

変更: branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_confirm.tpl
===================================================================
--- branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_confirm.tpl	2011-02-20 11:25:16 UTC (rev 20265)
+++ branches/version-2_5-dev/data/Smarty/templates/admin/customer/edit_confirm.tpl	2011-02-20 11:28:18 UTC (rev 20266)
@@ -46,10 +46,10 @@
         <!--{if $key ne "job" && $key ne "sex"}--><input type="hidden" name="search_data[<!--{$key|h}-->]" value="<!--{$item|h}-->"><!--{/if}-->
     <!--{/foreach}-->
     <!--{foreach from=$arrSearchData.job key="key" item="item"}-->
-        <input type="hidden" name="search_data[job][]" value=<!--{$item}--> />
+        <input type="hidden" name="search_data[job][]" value="<!--{$item}-->" />
     <!--{/foreach}-->
     <!--{foreach from=$arrSearchData.sex key="key" item="item"}-->
-        <input type="hidden" name="search_data[sex][]" value=<!--{$item}--> />
+        <input type="hidden" name="search_data[sex][]" value="<!--{$item}-->" />
     <!--{/foreach}-->
     <div id="customer" class="contents-main">
         <h2>顧客編集</h2>




Svn-src-all メーリングリストの案内