source: branches/comu-ver2/data/Smarty/templates/default/admin/products/review_edit.tpl @ 18031

Revision 18031, 4.4 KB checked in by Seasoft, 12 years ago (diff)

・不適切な更新値のセットを修正 (フォーラムにて kaorinstar 様のご指摘。 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=4022&forum=9)
・入力誤りの再入力画面で入力内容が破棄されるバグを修正
・更新後に、DBの実値を再取得するように改善
・コメントを PHPDoc 形式に変換
・無駄な処理を削減

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2008 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<form name="form1" id="form1" method="post" action="?" >
25<input type="hidden" name="mode" value="complete" />
26<input type="hidden" name="review_id" value="<!--{$arrReview.review_id|escape}-->" />
27<!--{foreach key=key item=item from=$arrSearchHidden}-->
28<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
29<!--{/foreach}-->
30<div id="products" class="contents-main">
31
32<!--▼編集テーブルここから-->
33<table>
34  <tr>
35    <th>商品名</th>
36    <td><!--{$arrReview.name|escape}--></td>
37  </tr>
38  <tr>
39    <th>レビュー表示</th>
40    <td>
41      <!--{if $arrErr.status}--><span class="attention"><!--{$arrErr.status}--></span><!--{/if}-->
42      <input type="radio" name="status" value="2" <!--{if $arrReview.status eq 2}-->checked<!--{/if}-->>非表示<!--{if $arrReview.status eq 2 && !$tpl_status_change}--><!--{else}--><input type="radio" name="status" value="1" <!--{if $arrReview.status eq 1}-->checked<!--{/if}-->>表示<!--{/if}-->
43    </td>
44  </tr>
45  <tr>
46    <th>投稿日</th>
47    <td><!--{$arrReview.create_date|sfDispDBDate}--></td>
48  </tr>
49  <tr>
50    <th>投稿者名 <span class="attention">*</span></th>
51    <td>
52      <!--{if $arrErr.reviewer_name}--><span class="attention"><!--{$arrErr.reviewer_name}--></span><!--{/if}-->
53      <input type="text" class="box60" name="reviewer_name" value="<!--{$arrReview.reviewer_name|escape}-->" style="<!--{$arrErr.reviewer_name|sfGetErrorColor}-->" size=30>
54    </td>
55  </tr>
56  <tr>
57    <th>ホームページアドレス</th>
58    <td>
59      <!--{if $arrErr.reviewer_url}--><span class="attention"><!--{$arrErr.reviewer_url}--></span><!--{/if}-->
60      <input type="text" class="box60" name="reviewer_url" maxlength="<!--{$smarty.const.URL_LEN}-->" value="<!--{$arrReview.reviewer_url|escape}-->" style="<!--{$arrErr.reviewer_url|sfGetErrorColor}-->" size=30>
61    </td>
62  </tr>
63  <tr>
64    <th>性別</th>
65    <td><!--{html_radios_ex name="sex" options=$arrSex selected=$arrReview.sex}--></td>
66  </tr>
67  <tr>
68    <th>おすすめレベル <span class="attention">*</span></th>
69    <td>
70      <!--{assign var=key value="recommend_level"}-->
71      <!--{if $arrErr[$key]}-->
72      <span class="attention"><!--{$arrErr[$key]}--></span>
73      <!--{/if}-->
74      <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" >
75      <option value="" selected="selected">選択してください</option>
76      <!--{html_options options=$arrRECOMMEND selected=$arrReview[$key]}-->
77      </select>
78    </td>
79  </tr>
80  <tr>
81    <th>タイトル <span class="attention">*</span></th>
82    <td>
83      <!--{if $arrErr.title}--><span class="attention"><!--{$arrErr.title}--></span><!--{/if}-->
84      <input type="text" class="box60" name="title" value="<!--{$arrReview.title|escape}-->" style="<!--{$arrErr.title|sfGetErrorColor}-->" size=30><span class="attention">
85    </td>
86  </tr>
87  <tr>
88    <th>コメント <span class="attention">*</span></th>
89    <td>
90      <!--{if $arrErr.comment}--><span class="attention"><!--{$arrErr.comment}--></span><!--{/if}-->
91      <textarea name="comment" rows="20" cols="60" class="area60" wrap="soft" style="<!--{$arrErr.comment|sfGetErrorColor}-->" ><!--{$arrReview.comment|escape}--></textarea>
92    </td>
93  </tr>
94</table>
95<!--▲編集テーブルここまで-->
96
97<div class="btn">
98  <button type="button" onclick="document.form1.action='./review.php'; fnModeSubmit('search','','');" ><span>検索画面に戻る</span></button>
99  <button type="button" onclick="fnModeSubmit('complete','','');"><span>この内容で登録する</span></button>
100</div>
101</div>
102</form>
Note: See TracBrowser for help on using the repository browser.