source: branches/feature-module-update/data/Smarty/templates/default/admin/contents/inquiry.tpl @ 16582

Revision 16582, 14.3 KB checked in by nanasess, 16 years ago (diff)

ライセンス表記変更

  • 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-2007 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    function func_check() {
27        res = confirm('登録します。宜しいですか?');
28        if( res == true ) {
29            return true;
30        }
31        return false;
32    }
33       
34       
35    function func_disp( no ){
36
37        ml = document.form1.elements['question[' + no + '][kind]'];
38        len = ml.length;
39
40        var flag = 0;
41       
42        for( i = 0; i < len ; i++) {
43           
44            td = document.getElementById("TD" + no);
45                   
46            if ( ml[i].checked ){
47                if ( (ml[i].value == 3) || (ml[i].value == 4) ) {
48                    td.style.display = 'block';
49                } else {
50                    td.style.display = 'none';
51                }
52                flag = 1;
53            }
54       
55        }
56
57        if ( flag == 0 ){
58            td.style.display = 'none';
59        }
60       
61    }
62   
63    function delete_check() {
64        res = confirm('アンケートを削除しても宜しいですか?');
65        if(res == true) {
66            return true;
67        }
68        return false;
69    }
70// -->
71</script>
72
73<!--★★メインコンテンツ★★-->
74<table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
75    <tr valign="top">
76        <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402">
77            <!--▼SUB NAVI-->
78            <!--{include file=$tpl_subnavi}-->
79            <!--▲SUB NAVI-->
80        </td>
81        <td class="mainbg" >
82        <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
83            <!--メインエリア-->
84            <tr>
85                <td align="center">
86                <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
87
88                    <tr><td height="14"></td></tr>
89                    <tr>
90                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
91                    </tr>
92                    <tr>
93                        <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
94                        <td bgcolor="#cccccc">
95                       
96                        <!--登録テーブルここから-->
97                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
98                            <tr>
99                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
100                            </tr>
101                            <tr>
102                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
103                                <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル--><!--{if $QUESTION_ID}-->修正<!--{else}-->新規<!--{/if}-->登録</span></td>
104                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
105                            </tr>
106                            <tr>
107                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
108                            </tr>
109                            <tr>
110                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
111                            </tr>
112                        </table>
113                       
114                        <!--▼FORM-->
115                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
116                        <form name="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->?mode=regist" onSubmit="return func_check(); false;">
117                        <input type="hidden" name="question_id" value="<!--{$QUESTION_ID}-->">
118                           
119                            <!--{if $MESSAGE != ""}-->
120                            <tr>
121                                <td height="20" class="fs14n">
122                                    <span class="red"><!--{$MESSAGE}--></span>
123                                </td>
124                            </tr>
125                            <!--{/if}-->
126                            <tr class="fs12n">
127                                <td width="140" bgcolor="#f2f1ec">稼働・非稼働</td>
128                                <td width="637" bgcolor="#ffffff">
129                                <span <!--{if $ERROR.active}--><!--{sfSetErrorStyle}--><!--{/if}-->>
130                                <!--{html_radios name="active" options=$arrActive selected=$smarty.post.active}-->
131                                </span>
132                                <!--{if $ERROR.active}--><br><span class="red"><!--{$ERROR.active}--></span><!--{/if}-->
133                                </td>
134                            </tr>
135                            <tr class="fs12n">
136                                <td width="140" bgcolor="#f2f1ec">アンケートタイトル<span class="red">*</span></td>
137                                <td width="637" bgcolor="#ffffff"><input type="text" name="title" size="70" class="box70"  maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.title|escape}-->" <!--{if $ERROR.title}--><!--{sfSetErrorStyle}--><!--{/if}-->>
138                                    <!--{if $ERROR.title}--><br><span class="red"><!--{$ERROR.title}--></span><!--{/if}-->
139                                </td>
140                            </tr>
141                                <tr class="fs12n">
142                                <td width="140" bgcolor="#f2f1ec">アンケート内容</td>
143                                <td width="637" bgcolor="#ffffff"><textarea name="contents" cols="60" rows="4" class="area60" wrap="physical" <!--{if $ERROR.contents}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{$smarty.post.contents}--></textarea>
144                                <!--{if $ERROR.contents}--><br><span class="red"><!--{$ERROR.contents}--></span><!--{/if}--></td>
145                            </tr>       
146                            <!--{section name=question loop=$cnt_question}-->
147                            <tr class="fs12n">
148                                <td width="140" bgcolor="#f2f1ec">質問<!--{if $smarty.section.question.iteration eq 1}--><span class="red">*</span><!--{/if}--><!--{$smarty.section.question.iteration}--></td>
149                                <td width="637" bgcolor="#ffffff">
150                                <input type="text" name="question[<!--{$smarty.section.question.index}-->][name]" size="70" class="box70" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$smarty.section.question.index].name|escape}-->" <!--{if $ERROR.question[$smarty.section.question.index].name}--><!--{sfSetErrorStyle}--><!--{/if}-->>
151                                <!--{if $ERROR.question[$smarty.section.question.index].name}--><br><span class="red"><!--{$ERROR.question[$smarty.section.question.index].name}--></span><!--{/if}-->
152                                </td>
153                            </tr>
154                            <tr class="fs12n" bgcolor="#ffffff">
155                                <td colspan="2">
156                                <span style=background-color:"<!--{$ERROR_COLOR.question[$smarty.section.question.index].kind}-->">
157                                <!--{html_radios_ex onClick="func_disp(`$smarty.section.question.index`)" name="question[`$smarty.section.question.index`][kind]" options="$arrQuestion" selected="`$smarty.post.question[$smarty.section.question.index].kind`"}-->
158                                </span>
159                                <!--{if $ERROR.question[$smarty.section.question.index].kind}--><br><span class="red"><!--{$ERROR.question[$smarty.section.question.index].kind}--></span><!--{/if}-->
160                                </td>
161                            </tr>
162                            <tr class="fs12n" bgcolor="#ffffff"><td colspan="2">
163                                <table id="TD<!--{$smarty.section.question.index}-->">
164                                <tr class="fs12n" bgcolor="#ffffff">
165                                    <td colspan="2">1 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][0]" size="40" class="box40" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$smarty.section.question.index].option.0|escape}-->" <!--{if $ERROR.question[$smarty.section.question.index].kind}--><!--{sfSetErrorStyle}--><!--{/if}-->> 2 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][1]" size="40" class="box40" value="<!--{$smarty.post.question[$smarty.section.question.index].option.1|escape}-->" <!--{if $ERROR.question[$smarty.section.question.index].kind}--><!--{sfSetErrorStyle}--><!--{/if}-->></td>
166                                </tr>
167                                <tr class="fs12n" bgcolor="#ffffff">
168                                    <td colspan="2">3 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][2]" size="40" class="box40" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$smarty.section.question.index].option.2|escape}-->"> 4 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][3]" size="40" class="box40" value="<!--{$smarty.post.question[$smarty.section.question.index].option.3|escape}-->"></td>
169                                </tr>
170                                <tr class="fs12n" bgcolor="#ffffff">
171                                    <td colspan="2">5 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][4]" size="40" class="box40" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$smarty.section.question.index].option.4|escape}-->"> 6 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][5]" size="40" class="box40" value="<!--{$smarty.post.question[$smarty.section.question.index].option.5|escape}-->"></td>
172                                </tr>
173                                <tr class="fs12n" bgcolor="#ffffff">
174                                    <td colspan="2">7 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][6]" size="40" class="box40" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$smarty.section.question.index].option.6|escape}-->"> 8 <input type="text" name="question[<!--{$smarty.section.question.index}-->][option][7]" size="40" class="box40" value="<!--{$smarty.post.question[$smarty.section.question.index].option.7|escape}-->"></td>
175                                </tr>
176                                </table>
177                            </td></tr>
178                            <!--{/section}-->
179                        </table>
180                        <!--▲FORM-->
181                       
182                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
183                            <tr>
184                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
185                                <td><img src="<!--{$TPL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
186                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
187                            </tr>
188                            <tr>
189                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
190                                <td bgcolor="#e9e7de" align="center">
191                                <table border="0" cellspacing="0" cellpadding="0" summary=" ">
192                                    <tr>
193                                        <td>
194                                            <input type="submit" name="subm1" value="アンケートを<!--{if $QUESTION_ID}-->修正<!--{else}-->作成<!--{/if}-->" />&nbsp;&nbsp;<input type="reset" value="内容をクリア" />
195                                        </td>
196                                    </tr>
197                                </table>
198                                </td>
199                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
200                            </tr>
201                            <tr>
202                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
203                            </tr>
204                        </table>
205                       
206                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
207                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
208                        </table>
209                       
210                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
211                            <tr>
212                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
213                            </tr>
214                            <tr>
215                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
216                                <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->登録済みアンケート</span></td>
217                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
218                            </tr>
219                            <tr>
220                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
221                            </tr>
222                            <tr>
223                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
224                            </tr>
225                        </table>
226
227                        <!--▼FORM-->
228                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
229                        <form name="form2" method="post" action="<!--{$smaryt.server.PHP_SELF|escape}-->">
230                            <tr class="fs12n" bgcolor="#f2f1ec" align="center">
231                                <td width="42">編集</td>
232                                <td width="80">登録日</td>
233                                <td width="280">アンケートタイトル</td>
234                                <td width="80">ページ参照</td>
235                                <td width="80">結果取得</td>
236                                <td width="42">削除</td>
237                            </tr>
238                            <!--{section name=data loop=$list_data}-->
239                            <tr bgcolor="#FFFFFF" class="fs12" <!--{if $list_data[data].question_id eq $smarty.request.question_id}--><!--{sfSetErrorStyle}--><!--{/if}-->>
240                                <td align="center" class="main"><a href="<!--{$smarty.server.PHP_SELF|escape}-->?question_id=<!--{$list_data[data].question_id}-->">編集</a></td>
241                                <td align="center"><!--{$list_data[data].disp_date}--></td>
242                                <td><!--{$list_data[data].question_name|escape}--></td>
243                                <td align="center"><a href="<!--{$smarty.const.SITE_URL}-->inquiry/index.php?question_id=<!--{$list_data[data].question_id}-->" target="_blank">参照</a></td>
244                                <td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->?mode=csv&question_id=<!--{$list_data[data].question_id}-->">download</a></td>
245                                <td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->?mode=delete&question_id=<!--{$list_data[data].question_id}-->" onClick="return delete_check()">削除</a></td>
246                            </tr>
247                            <!--{/section}-->
248                        </form>
249                        </table>
250                        <!--▲FORM-->
251                       
252                        <!--登録テーブルここまで-->
253                        </td>
254                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
255                    </tr>
256                    <tr>
257                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
258                    </tr>
259                    <tr><td height="30"></td></tr>
260
261                </table>
262                </td>
263            </tr>
264            <!--メインエリア-->
265        </table>
266        </td>
267    </tr>
268</form>
269</table>
270<!--★★メインコンテンツ★★-->     
271               
272<script type="text/javascript">
273<!--
274    <!--{section name=question loop=$cnt_question}-->
275        func_disp(<!--{$smarty.section.question.index}-->);
276    <!--{/section}-->   
277//-->
278</script>
279
Note: See TracBrowser for help on using the repository browser.