source: branches/version-2_5-dev/data/Smarty/templates/admin/contents/csv_sql.tpl @ 20318

Revision 20318, 4.7 KB checked in by AMUAMU, 13 years ago (diff)

#476 (CSV出力項目設定(高度な設定)で、一部テーブルの項目一覧が表示されない) に伴う改修
#657 (CSVダウンロードの改善) の改修
#938 (CSV出力 高度な設定 SQL登録できない) の不具合修正
#939 (CSV出力 高度な設定 出力操作で「sfGetCSVData()に移行してね。」と表示) の不具合修正
#971 (リファクタリング [管理画面]コンテンツ管理(CSV出力項目設定)) の改修

  • 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-2010 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<script type="text/javascript">
25<!--
26// SQL確認画面起動
27function doPreview(){
28  document.form1.mode.value="preview"
29  document.form1.target = "_blank";
30  document.form1.submit();
31}
32
33// formのターゲットを自分に戻す
34function fnTargetSelf(){
35  document.form1.target = "_self";
36}
37
38//-->
39</script>
40
41
42<form name="form1" id="form1" method="post" action="?">
43<input type="hidden" name="mode" value="confirm" />
44<input type="hidden" name="sql_id" value="<!--{$arrForm.sql_id|h}-->" />
45<input type="hidden" name="csv_output_id" value="" />
46<input type="hidden" name="select_table" value="" />
47<div id="admin-contents" class="contents-main">
48  <h2>SQL一覧</h2>
49
50  <!--{if $arrSqlList}-->
51  <table id="contents-csv-sqllist" class="list center">
52    <!--{foreach key=key item=item from=$arrSqlList}-->
53    <tr style="background-color:<!--{if $item.sql_id == $arrForm.sql_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;">
54      <td>
55        <a href="?sql_id=<!--{$item.sql_id}-->" ><!--{$item.sql_name|h}--></a>
56      </td>
57      <td>
58        <div class="btn">
59          <a class="btn-normal" href="javascript:;" name='csv' onclick="fnTargetSelf(); fnFormModeSubmit('form1','csv_output','csv_output_id',<!--{$item.sql_id}-->); return false;"><span>CSV出力</span></a>
60          <a class="btn-normal" href="javascript:;" name='del' onclick="fnTargetSelf(); fnFormModeSubmit('form1','delete','sql_id',<!--{$item.sql_id}-->); return false;"><span>削除</span></a>
61        </div>
62      </td>
63    </tr>
64    <!--{/foreach}-->
65  </table>
66  <!--{/if}-->
67
68  <div class="btn addnew">
69    <a class="btn-normal" href="javascript:;" name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_page','',''); return false;"><span>SQLを新規入力</span></a>
70  </div>
71
72
73  <h2>SQL設定</h2>
74  <table id="contents-csv-sqlset" class="form">
75    <tr>
76      <th>名称<span class="attention"> *</span></th>
77      <td>
78        <span class="attention"><!--{$arrErr.sql_name}--></span>
79        <input type="text" name="sql_name" value="<!--{$arrForm.sql_name|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" size="60" class="box60" />
80        <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
81      </td>
82    </tr>
83    <tr>
84      <th align="center">SQL文<span class="attention"> *</span><br /> (最初のSELECTは記述しないでください。)</td>
85      <td align="left">
86        <span class="attention"><!--{$arrErr.csv_sql}--></span>
87        <div>
88          <textarea name="csv_sql" cols=50 rows=20 align="left" wrap=off style="<!--{if $arrErr.csv_sql != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"><!--{$arrForm.csv_sql|h}--></textarea>
89        </div>
90      </td>
91    </tr>
92  </table>
93
94  <div class="btn">
95    <a class="btn-normal" href="javascript:;" name="subm" onclick="doPreview(); return false;"><span>構文エラーを確認する</span></a>
96  </div>
97  <div class="btn-area">
98    <ul>
99      <li><a class="btn-action" href="javascript:;" name="subm" onclick="fnFormModeSubmit('form1', 'confirm', '', '')"><span class="btn-next">この内容で登録する</span></a></li>
100    </ul>
101  </div>
102
103
104
105  <div id="contents-csv-sqltbl">
106    <h3>テーブル一覧</h3>
107    <select name="arrTableList[]" size="20" style="width:325px; height:300px;" onChange="mode.value=''; select_table.value=this.value; submit();" onDblClick="csv_sql.value = csv_sql.value +' , ' + this.value;">
108      <!--{html_options options=$arrTableList selected=$arrForm.select_table}-->
109    </select>
110  </div>
111  <div id="contents-csv-sqlcol">
112    <h3>項目一覧</h3>
113    <select name="arrColList[]" size="20" style="width:325px; height:300px;" onDblClick="csv_sql.value = csv_sql.value +' , ' + this.value;">
114      <!--{html_options options=$arrColList}-->
115    </select>
116  </div>
117
118</div>
119</form>
120
121
122</script>
Note: See TracBrowser for help on using the repository browser.