source:
branches/version-2_12-multilang/data/Smarty/templates/admin/contents/csv_sql.tpl
@
22230
Revision 22230, 5.5 KB checked in by Seasoft, 11 years ago (diff) | |
---|---|
|
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 | <!-- |
27 | // SQL確認画面起動 |
28 | function doPreview(){ |
29 | document.form1.mode.value="preview" |
30 | document.form1.target = "_blank"; |
31 | document.form1.submit(); |
32 | } |
33 | |
34 | // formのターゲットを自分に戻す |
35 | function fnTargetSelf(){ |
36 | document.form1.target = "_self"; |
37 | } |
38 | |
39 | //--> |
40 | </script> |
41 | |
42 | |
43 | <form name="form1" id="form1" method="post" action="?"> |
44 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
45 | <input type="hidden" name="mode" value="confirm" /> |
46 | <input type="hidden" name="sql_id" value="<!--{$arrForm.sql_id|h}-->" /> |
47 | <input type="hidden" name="csv_output_id" value="" /> |
48 | <input type="hidden" name="select_table" value="" /> |
49 | <div id="admin-contents" class="contents-main"> |
50 | <h2><!--{t string="tpl_152"}--></h2> |
51 | |
52 | <!--{if $arrSqlList}--> |
53 | <table id="contents-csv-sqllist" class="list center"> |
54 | <!--{foreach key=key item=item from=$arrSqlList}--> |
55 | <tr style="background-color:<!--{if $item.sql_id == $arrForm.sql_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->;"> |
56 | <td> |
57 | <a href="?sql_id=<!--{$item.sql_id}-->" ><!--{$item.sql_name|h}--></a> |
58 | </td> |
59 | <td> |
60 | <div class="btn"> |
61 | <a class="btn-normal" href="javascript:;" name='csv' onclick="fnTargetSelf(); fnFormModeSubmit('form1','csv_output','csv_output_id',<!--{$item.sql_id}-->); return false;"><span><!--{t string="tpl_153"}--></span></a> |
62 | <a class="btn-normal" href="javascript:;" name='del' onclick="fnTargetSelf(); fnFormModeSubmit('form1','delete','sql_id',<!--{$item.sql_id}-->); return false;"><span><!--{t string="tpl_004"}--></span></a> |
63 | </div> |
64 | </td> |
65 | </tr> |
66 | <!--{/foreach}--> |
67 | </table> |
68 | <!--{/if}--> |
69 | |
70 | <div class="btn addnew"> |
71 | <a class="btn-normal" href="javascript:;" name='subm' onclick="fnTargetSelf(); fnFormModeSubmit('form1','new_page','',''); return false;"><span><!--{t string="tpl_156"}--></span></a> |
72 | </div> |
73 | <h2> |
74 | <!--{if $arrForm.sql_id != ""}--> |
75 | <!--{t string="tpl_703" T_FIELD=$arrForm.sql_name|h}--> |
76 | <!--{else}--> |
77 | <!--{t string="tpl_704"}--> |
78 | <!--{/if}--> |
79 | </h2> |
80 | |
81 | <table id="contents-csv-sqlset" class="form"> |
82 | <tr> |
83 | <th><!--{t string="tpl_002_1" escape="none"}--></th> |
84 | <td> |
85 | <span class="attention"><!--{$arrErr.sql_name}--></span> |
86 | <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" /> |
87 | <span class="attention"> <!--{t string="tpl_023" T_FIELD=$smarty.const.STEXT_LEN}--></span> |
88 | </td> |
89 | </tr> |
90 | <tr> |
91 | <th align="center"><!--{t string="tpl_158_1" escape="none"}--></td> |
92 | <td align="left"> |
93 | <span class="attention"><!--{$arrErr.csv_sql}--></span> |
94 | <div> |
95 | <textarea name="csv_sql" cols=50 rows=20 align="left" wrap=off style="<!--{if $arrErr.csv_sql != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"><!--{"\n"}--><!--{$arrForm.csv_sql|h}--></textarea> |
96 | </div> |
97 | </td> |
98 | </tr> |
99 | </table> |
100 | |
101 | <div class="btn"> |
102 | <a class="btn-normal" href="javascript:;" name="subm" onclick="doPreview(); return false;"><span><!--{t string="tpl_159"}--></span></a> |
103 | </div> |
104 | <div class="btn-area"> |
105 | <ul> |
106 | <li><a class="btn-action" href="javascript:;" name="subm" onclick="fnTargetSelf(); fnFormModeSubmit('form1', 'confirm', '', '')"><span class="btn-next"><!--{t string="tpl_021"}--></span></a></li> |
107 | </ul> |
108 | </div> |
109 | |
110 | |
111 | |
112 | <div id="contents-csv-sqltbl"> |
113 | <h3><!--{t string="tpl_160"}--></h3> |
114 | <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;"> |
115 | <!--{html_options options=$arrTableList selected=$arrForm.select_table}--> |
116 | </select> |
117 | </div> |
118 | <div id="contents-csv-sqlcol"> |
119 | <h3><!--{t string="tpl_161"}--></h3> |
120 | <select name="arrColList[]" size="20" style="width:325px; height:300px;" onDblClick="csv_sql.value = csv_sql.value +' , ' + this.value;"> |
121 | <!--{html_options options=$arrColList}--> |
122 | </select> |
123 | </div> |
124 | |
125 | </div> |
126 | </form> |
127 | |
128 | |
129 | </script> |
Note: See TracBrowser
for help on using the repository browser.