source: trunk/data/Smarty/templates/default/admin/contents/inquiry.tpl @ 18758

Revision 18758, 13.5 KB checked in by kajiwara, 14 years ago (diff)

EC-CUBE Ver2.4.4 分コミット。詳細はこちら( http://www.ec-cube.net/release/detail.php?release_id=223

  • 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-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    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">稼働・非稼働<span class="red">*</span></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">アンケート内容<span class="red">*</span></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              <!--{assign var=index value=$smarty.section.question.index}-->
148                            <tr class="fs12n">
149                                <td width="140" bgcolor="#f2f1ec">質問<!--{$smarty.section.question.iteration}--><!--{if $smarty.section.question.iteration eq 1}--><span class="red">*</span><!--{/if}--></td>
150                                <td width="637" bgcolor="#ffffff">
151                                <input type="text" name="question[<!--{$index}-->][name]" size="70" class="box70" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$index].name|escape}-->" <!--{if $ERROR.question[$index].name}--><!--{sfSetErrorStyle}--><!--{/if}-->>
152                                <!--{if $ERROR.question[$index].name}--><br><span class="red"><!--{$ERROR.question[$index].name}--></span><!--{/if}-->
153                                </td>
154                            </tr>
155                            <tr class="fs12n" bgcolor="#ffffff">
156                                <td colspan="2">
157                                <span style=background-color:"<!--{$ERROR_COLOR.question[$index].kind}-->">
158                                <!--{html_radios_ex onClick="func_disp(`$index`)" name="question[`$index`][kind]" options="$arrQuestion" selected="`$smarty.post.question[$index].kind`"}-->
159                                </span>
160                                <!--{if $ERROR.question[$index].kind}--><br><span class="red"><!--{$ERROR.question[$index].kind}--></span><!--{/if}-->
161                                </td>
162                            </tr>
163              <!--{** 回答 **}-->
164                            <tr class="fs12n" bgcolor="#ffffff"><td colspan="2">
165                                <table id="TD<!--{$index}-->">
166                              <!--{section name=option loop=4 start=0 max=7}-->
167                                  <tr class="fs12n" bgcolor="#ffffff">
168                                    <td colspan="2">
169                      <!--{assign var=option_index1 value=$smarty.section.option.index*2}-->
170                      <!--{assign var=option_index2 value=$option_index1+1}-->
171                      <!--{assign var=num1 value=$option_index1+1}-->
172                      <!--{assign var=num2 value=$option_index2+1}-->
173                      <!--{** 回答エラー **}-->
174                      <!--{assign var=error1 value=$ERROR.question[$index].option[$option_index1]}-->
175                                      <!--{if $error1}--><span class="red"><!--{$error1}--></span><br /><!--{/if}-->
176                      <!--{assign var=error2 value=$ERROR.question[$index].option[$option_index2]}-->
177                                      <!--{if $error2}--><span class="red"><!--{$error2}--></span><br /><!--{/if}-->
178                      <!--{** 回答フォーム **}-->
179                      <!--{$num1}--> <input type="text" name="question[<!--{$index}-->][option][<!--{$option_index1}-->]" size="40" class="box40" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$index].option[$option_index1]|escape}-->" <!--{if $error1}--><!--{sfSetErrorStyle}--><!--{/if}-->> 
180                      <!--{$num2}--> <input type="text" name="question[<!--{$index}-->][option][<!--{$option_index2}-->]" size="40" class="box40" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$smarty.post.question[$index].option[$option_index2]|escape}-->" <!--{if $error2}--><!--{sfSetErrorStyle}--><!--{/if}-->>
181                    </td>
182                                  </tr>
183                <!--{/section}-->
184                                </table>
185                            </td></tr>
186                            <!--{/section}-->
187                        </table>
188                        <!--▲FORM-->
189                       
190                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
191                            <tr>
192                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
193                                <td><img src="<!--{$TPL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
194                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
195                            </tr>
196                            <tr>
197                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
198                                <td bgcolor="#e9e7de" align="center">
199                                <table border="0" cellspacing="0" cellpadding="0" summary=" ">
200                                    <tr>
201                                        <td>
202                                            <input type="submit" name="subm1" value="アンケートを<!--{if $QUESTION_ID}-->修正<!--{else}-->作成<!--{/if}-->" />&nbsp;&nbsp;<input type="reset" value="内容をクリア" />
203                                        </td>
204                                    </tr>
205                                </table>
206                                </td>
207                                <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
208                            </tr>
209                            <tr>
210                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
211                            </tr>
212                        </table>
213                       
214                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
215                            <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
216                        </table>
217                       
218                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
219                            <tr>
220                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
221                            </tr>
222                            <tr>
223                                <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>
224                                <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->登録済みアンケート</span></td>
225                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
226                            </tr>
227                            <tr>
228                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
229                            </tr>
230                            <tr>
231                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
232                            </tr>
233                        </table>
234
235                        <!--▼FORM-->
236                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
237                        <form name="form2" method="post" action="<!--{$smaryt.server.PHP_SELF|escape}-->">
238                            <tr class="fs12n" bgcolor="#f2f1ec" align="center">
239                                <td width="42">編集</td>
240                                <td width="80">登録日</td>
241                                <td width="280">アンケートタイトル</td>
242                                <td width="80">ページ参照</td>
243                                <td width="80">結果取得</td>
244                                <td width="42">削除</td>
245                            </tr>
246                            <!--{section name=data loop=$list_data}-->
247                            <tr bgcolor="#FFFFFF" class="fs12" <!--{if $list_data[data].question_id eq $smarty.request.question_id}--><!--{sfSetErrorStyle}--><!--{/if}-->>
248                                <td align="center" class="main"><a href="<!--{$smarty.server.PHP_SELF|escape}-->?question_id=<!--{$list_data[data].question_id}-->">編集</a></td>
249                                <td align="center"><!--{$list_data[data].disp_date}--></td>
250                                <td><!--{$list_data[data].question_name|escape}--></td>
251                                <td align="center"><a href="<!--{$smarty.const.SITE_URL}-->inquiry/index.php?question_id=<!--{$list_data[data].question_id}-->" target="_blank">参照</a></td>
252                                <td align="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->?mode=csv&question_id=<!--{$list_data[data].question_id}-->">download</a></td>
253                                <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>
254                            </tr>
255                            <!--{/section}-->
256                        </form>
257                        </table>
258                        <!--▲FORM-->
259                       
260                        <!--登録テーブルここまで-->
261                        </td>
262                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
263                    </tr>
264                    <tr>
265                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
266                    </tr>
267                    <tr><td height="30"></td></tr>
268
269                </table>
270                </td>
271            </tr>
272            <!--メインエリア-->
273        </table>
274        </td>
275    </tr>
276</form>
277</table>
278<!--★★メインコンテンツ★★-->     
279               
280<script type="text/javascript">
281<!--
282    <!--{section name=question loop=$cnt_question}-->
283        func_disp(<!--{$smarty.section.question.index}-->);
284    <!--{/section}-->   
285//-->
286</script>
287
Note: See TracBrowser for help on using the repository browser.