source: branches/version-2_12-multilang/data/Smarty/templates/admin/products/review.tpl @ 22291

Revision 22291, 11.1 KB checked in by h_yoshimoto, 8 years ago (diff)

#1991 テキスト切り出し時の誤りを修正

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24
25<script type="text/javascript">
26$(function(){
27   
28    $( "#datepickersearch_start" ).datepicker({
29    beforeShowDay: function(date) {
30        if(date.getDay() == 0) {
31            return [true,"date-sunday"];
32        } else if(date.getDay() == 6){
33            return [true,"date-saturday"];
34        } else {
35            return [true];
36        }
37    },changeMonth: 'true'
38    ,changeYear: 'true'
39    ,onSelect: function(dateText, inst){
40        setDatesearch_start(dateText);
41    },
42    showButtonPanel: true,
43    beforeShow: showAdditionalButtonsearch_start,       
44    onChangeMonthYear: showAdditionalButtonsearch_start
45    });
46   
47    $("#datepickersearch_start").blur( function() {
48        var dateText = $(this).val();
49        setDatesearch_start(dateText);
50    });
51   
52    $( "#datepickersearch_end" ).datepicker({
53    beforeShowDay: function(date) {
54        if(date.getDay() == 0) {
55            return [true,"date-sunday"];
56        } else if(date.getDay() == 6){
57            return [true,"date-saturday"];
58        } else {
59            return [true];
60        }
61    },changeMonth: 'true'
62    ,changeYear: 'true'
63    ,onSelect: function(dateText, inst){
64        setDatesearch_end(dateText);
65    },
66    showButtonPanel: true,
67    beforeShow: showAdditionalButtonsearch_end,       
68    onChangeMonthYear: showAdditionalButtonsearch_end
69    });
70   
71    $("#datepickersearch_end").blur( function() {
72        var dateText = $(this).val();
73        setDatesearch_end(dateText);
74    });
75
76});
77
78var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>');
79
80var showAdditionalButtonsearch_start = function (input) {
81    setTimeout(function () {
82        var buttonPane = $(input)
83                 .datepicker("widget")
84                 .find(".ui-datepicker-buttonpane");
85        btn
86                .unbind("click")
87                .bind("click", function () {
88                    $.datepicker._clearDate(input);
89                    $("*[name=search_startyear]").val("");
90                    $("*[name=search_startmonth]").val("");
91                    $("*[name=search_startday]").val("");
92                });
93        btn.appendTo(buttonPane);
94    }, 1);
95};
96
97var showAdditionalButtonsearch_end = function (input) {
98    setTimeout(function () {
99        var buttonPane = $(input)
100                 .datepicker("widget")
101                 .find(".ui-datepicker-buttonpane");
102        btn
103                .unbind("click")
104                .bind("click", function () {
105                    $.datepicker._clearDate(input);
106                    $("*[name=search_endyear]").val("");
107                    $("*[name=search_endmonth]").val("");
108                    $("*[name=search_endday]").val("");
109                });
110        btn.appendTo(buttonPane);
111    }, 1);
112};
113
114function setDatesearch_start(dateText){
115var dates = dateText.split('/');
116$("*[name=search_startyear]").val(dates[0]);
117$("*[name=search_startmonth]").val(dates[1]);
118$("*[name=search_startday]").val(dates[2]);
119}
120
121function setDatesearch_end(dateText){
122var dates = dateText.split('/');
123$("*[name=search_endyear]").val(dates[0]);
124$("*[name=search_endmonth]").val(dates[1]);
125$("*[name=search_endday]").val(dates[2]);
126}
127</script>
128
129<div id="products" class="contents-main">
130<form name="search_form" method="post" action="?" >
131<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
132<input type="hidden" name="mode" value="search" />
133    <h2><!--{t string="tpl_250"}--></h2>
134
135    <!--検索条件設定テーブルここから-->
136    <table>
137        <tr>
138            <th><!--{t string="tpl_615"}--></th>
139            <td><input type="text" name="search_reviewer_name" value="<!--{$arrForm.search_reviewer_name|h}-->" size="30" class="box30" /></td>
140            <th><!--{t string="tpl_616"}--></th>
141            <td><input type="text" name="search_reviewer_url" value="<!--{$arrForm.search_reviewer_url|h}-->" size="30" class="box30" /></td>
142        </tr>
143        <tr>
144            <th><!--{t string="tpl_188"}--></th>
145            <td><input type="text" name="search_name" value="<!--{$arrForm.search_name|h}-->" size="30" class="box30" /></td>
146            <th><!--{t string="tpl_192"}--></th>
147            <td><input type="text" name="search_product_code" value="<!--{$arrForm.search_product_code|h}-->" size="30" class="box30" /></td>
148        </tr>
149        <tr>
150            <th><!--{t string="tpl_215"}--></th>
151            <!--{assign var=key value=search_sex}-->
152            <td><!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key]}--></td>
153            <th><!--{t string="tpl_617"}--></th>
154            <td>
155                <!--{assign var=key value=search_recommend_level}-->
156                <select name="<!--{$key}-->">
157                    <option value="" selected="selected"><!--{t string="tpl_068"}--></option>
158                    <!--{html_options options=$arrRECOMMEND selected=$arrForm[$key].value|h}-->
159                </select>
160            </td>
161        </tr>
162        <tr>
163            <th><!--{t string="tpl_618"}--></th>
164            <td colspan="3">
165                <!--{if $arrErr.search_startyear || $arrErr.search_endyear}-->
166                    <span class="attention"><!--{$arrErr.search_startyear}--></span>
167                    <span class="attention"><!--{$arrErr.search_endyear}--></span>
168                <!--{/if}-->
169                <input id="datepickersearch_start" type="text" value="<!--{if $arrForm.search_startyear != "" && $arrForm.search_startmonth != "" && $arrForm.search_startday != ""}--><!--{$arrForm.search_startyear|h}-->/<!--{$arrForm.search_startmonth|h|string_format:'%02d'}-->/<!--{$arrForm.search_startday|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_startyear != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
170                <input type="hidden" name="search_startyear" value="<!--{$arrForm.search_startyear}-->" />
171                <input type="hidden" name="search_startmonth" value="<!--{$arrForm.search_startmonth}-->" />
172                <input type="hidden" name="search_startday" value="<!--{$arrForm.search_startday}-->" />
173                <!--{t string="-"}-->
174                <input id="datepickersearch_end" type="text" value="<!--{if $arrForm.search_endyear != "" && $arrForm.search_endmonth != "" && $arrForm.search_endday != ""}--><!--{$arrForm.search_endyear|h}-->/<!--{$arrForm.search_endmonth|h|string_format:'%02d'}-->/<!--{$arrForm.search_endday|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.search_endyear != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
175                <input type="hidden" name="search_endyear" value="<!--{$arrForm.search_endyear}-->" />
176                <input type="hidden" name="search_endmonth" value="<!--{$arrForm.search_endmonth}-->" />
177                <input type="hidden" name="search_endday" value="<!--{$arrForm.search_endday}-->" />
178            </td>
179        </tr>
180    </table>
181
182    <div class="btn">
183        <p class="page_rows"><!--{t string="tpl_251"}-->
184            <!--{assign var=key value="search_page_max"}-->
185            <!--{if $arrErr[$key]}-->
186                <span class="attention"><!--{$arrErr[$key]}--></span>
187            <!--{/if}-->
188            <!--{t string="record_prefix"}-->
189            <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
190            <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max|h}-->
191            </select>
192            <!--{t string="record_suffix"}-->
193        </p>
194        <div class="btn-area">
195            <ul>
196                <li>
197                    <a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_252"}--></span></a></li>
198            </ul>
199        </div>
200    </div>
201</form>
202
203
204<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}-->
205
206<!--★★検索結果一覧★★-->
207<form name="form1" id="form1" method="post" action="?">
208    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
209    <input type="hidden" name="mode" value="search" />
210    <input type="hidden" name="review_id" value="" />
211    <input type="hidden" name="search_pageno" value="<!--{$tpl_pageno|h}-->" />
212    <!--{foreach key=key item=item from=$arrHidden}-->
213        <!--{if $key ne "search_pageno"}-->
214            <input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
215        <!--{/if}-->
216    <!--{/foreach}-->
217    <h2><!--{t string="tpl_253"}--></h2>
218    <div class="btn">
219        <!--検索結果数--><!--{t string="tpl_230" escape="none" T_FIELD=$tpl_linemax}-->
220        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
221            <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span><!--{t string="tpl_327"}--></span></a>
222        <!--{/if}-->
223        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><span><!--{t string="tpl_254"}--></span></a>
224    </div>
225    <!--{if $arrReview > 0 & $tpl_linemax > 0}-->
226
227        <!--{include file=$tpl_pager}-->
228
229        <!--検索結果表示テーブル-->
230        <table id="products-review-result" class="list">
231            <tr>
232                <th><!--{t string="tpl_618"}--></th>
233                <th><!--{t string="tpl_615"}--></th>
234                <th><!--{t string="tpl_188"}--></th>
235                <th><!--{t string="tpl_617"}--></th>
236                <th><!--{t string="tpl_619"}--></th>
237                <th class="edit"><!--{t string="tpl_003"}--></th>
238                <th class="delete"><!--{t string="tpl_004"}--></th>
239            </tr>
240
241            <!--{section name=cnt loop=$arrReview}-->
242                <tr>
243                    <td><!--{$arrReview[cnt].create_date|h|sfDispDBDate}--></td>
244                    <td><!--{$arrReview[cnt].reviewer_name|h}--></td>
245                    <td><!--{$arrReview[cnt].name|h}--></td>
246                    <!--{assign var=key value="`$arrReview[cnt].recommend_level`"}-->
247                    <td><!--{$arrRECOMMEND[$key]|h}--></td>
248                    <td class="menu"><!--{if $arrReview[cnt].status eq 1}--><!--{t string="tpl_170"}--><!--{elseif $arrReview[cnt].status eq 2}--><!--{t string="tpl_620"}--><!--{/if}--></td>
249                    <td class="menu"><a href="javascript:;" onclick="fnChangeAction('./review_edit.php'); fnModeSubmit('','review_id','<!--{$arrReview[cnt].review_id}-->'); return false;"><!--{t string="tpl_003"}--></a></td>
250                    <td class="menu"><a href="javascript:;" onclick="fnModeSubmit('delete','review_id','<!--{$arrReview[cnt].review_id}-->'); return false;"><!--{t string="tpl_004"}--></a></td>
251                </tr>
252            <!--{/section}-->
253        </table>
254        <!--検索結果表示テーブル-->
255    <!--{/if}-->
256</form>
257<!--{/if}-->
258<!--★★検索結果一覧★★-->
259</div>
Note: See TracBrowser for help on using the repository browser.