source: branches/comu-ver2/data/Smarty/templates/default/inquiry/inquiry.tpl @ 17097

Revision 17097, 2.7 KB checked in by pineray, 16 years ago (diff)

アンケートのテンプレートをXHTMLに

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{section name=question loop=$QUESTION.question}-->
2  <!--{if $QUESTION.question[question].kind }-->
3    <tr>
4      <th>質問<!--{$smarty.section.question.iteration}-->:<!--{$QUESTION.question[question].name|escape}--></th>
5    </tr>
6    <!--{if $QUESTION.question[question].kind eq 1}-->
7    <tr>
8      <td>
9        <textarea name="option[<!--{$smarty.section.question.index}-->]" cols="55" rows="8" class="area55" <!--{if $arrErr.option[$smarty.section.question.index]}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{$arrForm.option[$smarty.section.question.index]|escape}--></textarea>
10        <!--{if $arrErr.option[$smarty.section.question.index]}--><br /><span class="attention">質問<!--{$smarty.section.question.iteration}-->を入力して下さい</sapn><!--{/if}-->
11      </td>
12    </tr>
13    <!--{elseif $QUESTION.question[question].kind eq 2}-->
14    <tr>
15      <td>
16        <input type="text" name="option[<!--{$smarty.section.question.index}-->]" size="55" class="box50" value="<!--{$arrForm.option[$smarty.section.question.index]|escape}-->" <!--{if $arrErr.option[$smarty.section.question.index]}--><!--{sfSetErrorStyle}--><!--{/if}--> />
17        <!--{if $arrErr.option[$smarty.section.question.index]}--><br /><span class="attention">質問<!--{$smarty.section.question.iteration}-->を入力して下さい</sapn><!--{/if}-->
18      </td>
19    </tr>
20    <!--{elseif $QUESTION.question[question].kind eq 3}-->
21    <tr>
22      <td>
23        <input type="hidden" name="option[<!--{$smarty.section.question.index}-->][0]" value="" />
24        <span <!--{if $arrErr.option[$smarty.section.question.index]}--><!--{sfSetErrorStyle}--><!--{/if}-->>
25          <!--{html_checkboxes name="option[`$smarty.section.question.index`]" options=$QUESTION.question[question].option selected=$arrForm.option[question] separator="<br />"}-->
26        </span>
27        <!--{if $arrErr.option[$smarty.section.question.index]}--><br /><span class="attention">質問<!--{$smarty.section.question.iteration}-->を入力して下さい</sapn><!--{/if}-->
28      </td>
29    </tr>
30    <!--{elseif $QUESTION.question[question].kind eq 4}-->
31    <tr>
32      <td>
33        <input type="hidden" name="option[<!--{$smarty.section.question.index}-->][0]" value="" />
34        <span <!--{if $arrErr.option[$smarty.section.question.index]}--><!--{sfSetErrorStyle}--><!--{/if}-->>
35          <!--{html_radios name="option[`$smarty.section.question.index`]" options=$QUESTION.question[question].option selected=$arrForm.option[question] separator="<br />"}-->
36        </span>
37        <!--{if $arrErr.option[$smarty.section.question.index]}--><br /><span class="attention">質問<!--{$smarty.section.question.iteration}-->を入力して下さい</sapn><!--{/if}-->
38      </td>
39    </tr>
40    <!--{/if}-->
41  <!--{/if}-->
42<!--{/section}-->
Note: See TracBrowser for help on using the repository browser.