| 1 | <?php /* Smarty version 2.6.13, created on 2007-01-19 12:55:32 |
|---|
| 2 | compiled from inquiry/inquiry.tpl */ ?> |
|---|
| 3 | <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); |
|---|
| 4 | smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'inquiry/inquiry.tpl', 9, false),array('modifier', 'default', 'inquiry/inquiry.tpl', 50, false),array('function', 'sfSetErrorStyle', 'inquiry/inquiry.tpl', 14, false),array('function', 'html_checkboxes', 'inquiry/inquiry.tpl', 32, false),)), $this); ?> |
|---|
| 5 | <?php unset($this->_sections['question']); |
|---|
| 6 | $this->_sections['question']['name'] = 'question'; |
|---|
| 7 | $this->_sections['question']['loop'] = is_array($_loop=$this->_tpl_vars['QUESTION']['question']) ? count($_loop) : max(0, (int)$_loop); unset($_loop); |
|---|
| 8 | $this->_sections['question']['show'] = true; |
|---|
| 9 | $this->_sections['question']['max'] = $this->_sections['question']['loop']; |
|---|
| 10 | $this->_sections['question']['step'] = 1; |
|---|
| 11 | $this->_sections['question']['start'] = $this->_sections['question']['step'] > 0 ? 0 : $this->_sections['question']['loop']-1; |
|---|
| 12 | if ($this->_sections['question']['show']) { |
|---|
| 13 | $this->_sections['question']['total'] = $this->_sections['question']['loop']; |
|---|
| 14 | if ($this->_sections['question']['total'] == 0) |
|---|
| 15 | $this->_sections['question']['show'] = false; |
|---|
| 16 | } else |
|---|
| 17 | $this->_sections['question']['total'] = 0; |
|---|
| 18 | if ($this->_sections['question']['show']): |
|---|
| 19 | |
|---|
| 20 | for ($this->_sections['question']['index'] = $this->_sections['question']['start'], $this->_sections['question']['iteration'] = 1; |
|---|
| 21 | $this->_sections['question']['iteration'] <= $this->_sections['question']['total']; |
|---|
| 22 | $this->_sections['question']['index'] += $this->_sections['question']['step'], $this->_sections['question']['iteration']++): |
|---|
| 23 | $this->_sections['question']['rownum'] = $this->_sections['question']['iteration']; |
|---|
| 24 | $this->_sections['question']['index_prev'] = $this->_sections['question']['index'] - $this->_sections['question']['step']; |
|---|
| 25 | $this->_sections['question']['index_next'] = $this->_sections['question']['index'] + $this->_sections['question']['step']; |
|---|
| 26 | $this->_sections['question']['first'] = ($this->_sections['question']['iteration'] == 1); |
|---|
| 27 | $this->_sections['question']['last'] = ($this->_sections['question']['iteration'] == $this->_sections['question']['total']); |
|---|
| 28 | ?>
|
|---|
| 29 | <?php if ($this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['kind']): ?>
|
|---|
| 30 | <tr>
|
|---|
| 31 | <td colspan="2" bgcolor="#edf6ff" class="fs12n">¼ÁÌä<?php echo $this->_sections['question']['iteration']; ?> |
|---|
| 32 | ¡§<?php echo ((is_array($_tmp=$this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> |
|---|
| 33 | </td>
|
|---|
| 34 | </tr>
|
|---|
| 35 | <?php if ($this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['kind'] == 1): ?>
|
|---|
| 36 | <tr>
|
|---|
| 37 | <td colspan="2" bgcolor="ffffff" class="fs12n">
|
|---|
| 38 | <textarea name="option[<?php echo $this->_sections['question']['index']; ?> |
|---|
| 39 | ]" cols="55" rows="8" class="area55" wrap="physical" <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): echo sfSetErrorStyle(array(), $this); endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['arrForm']['option'][$this->_sections['question']['index']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> |
|---|
| 40 | </textarea>
|
|---|
| 41 | <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): ?><br><span class="red">¼ÁÌä<?php echo $this->_sections['question']['iteration']; ?> |
|---|
| 42 | ¤òÆþÎϤ·¤Æ²¼¤µ¤¤</sapn><?php endif; ?>
|
|---|
| 43 | </td>
|
|---|
| 44 | </tr>
|
|---|
| 45 | <?php elseif ($this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['kind'] == 2): ?>
|
|---|
| 46 | <tr>
|
|---|
| 47 | <td colspan="2" bgcolor="ffffff" class="fs12n">
|
|---|
| 48 | <input type="text" name="option[<?php echo $this->_sections['question']['index']; ?> |
|---|
| 49 | ]" size="55" class="box50" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['arrForm']['option'][$this->_sections['question']['index']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> |
|---|
| 50 | " <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): echo sfSetErrorStyle(array(), $this); endif; ?>>
|
|---|
| 51 | <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): ?><br><span class="red">¼ÁÌä<?php echo $this->_sections['question']['iteration']; ?> |
|---|
| 52 | ¤òÆþÎϤ·¤Æ²¼¤µ¤¤</sapn><?php endif; ?>
|
|---|
| 53 | </td>
|
|---|
| 54 | </tr>
|
|---|
| 55 | <?php elseif ($this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['kind'] == 3): ?>
|
|---|
| 56 | <tr>
|
|---|
| 57 | <td colspan="2" bgcolor="ffffff">
|
|---|
| 58 | <table width="540" border="0" cellspacing="0" cellpadding="3" summary=" ">
|
|---|
| 59 | <input type="hidden" name="option[<?php echo $this->_sections['question']['index']; ?> |
|---|
| 60 | ][0]" value="">
|
|---|
| 61 | <tr><td class="fs12n">
|
|---|
| 62 | <span <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): echo sfSetErrorStyle(array(), $this); endif; ?>>
|
|---|
| 63 | <?php echo smarty_function_html_checkboxes(array('name' => "option[".($this->_sections['question']['index'])."]",'options' => $this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['option'],'selected' => $this->_tpl_vars['arrForm']['option'][$this->_sections['question']['index']],'separator' => "<br>"), $this);?> |
|---|
| 64 |
|
|---|
| 65 | </span>
|
|---|
| 66 | </td>
|
|---|
| 67 | </tr>
|
|---|
| 68 | <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): ?><tr><td class="fs12n"><span class="red">¼ÁÌä<?php echo $this->_sections['question']['iteration']; ?> |
|---|
| 69 | ¤òÆþÎϤ·¤Æ²¼¤µ¤¤</sapn></td></tr><?php endif; ?>
|
|---|
| 70 | </table>
|
|---|
| 71 | </td>
|
|---|
| 72 | </tr>
|
|---|
| 73 | <?php elseif ($this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['kind'] == 4): ?>
|
|---|
| 74 | <tr>
|
|---|
| 75 | <td colspan="2" bgcolor="ffffff">
|
|---|
| 76 | <input type="hidden" name="option[<?php echo $this->_sections['question']['index']; ?> |
|---|
| 77 | ][0]" value="">
|
|---|
| 78 | <table width="540" border="0" cellspacing="0" cellpadding="3" summary=" ">
|
|---|
| 79 | <?php unset($this->_sections['sub']); |
|---|
| 80 | $this->_sections['sub']['name'] = 'sub'; |
|---|
| 81 | $this->_sections['sub']['loop'] = is_array($_loop=$this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['option']) ? count($_loop) : max(0, (int)$_loop); unset($_loop); |
|---|
| 82 | $this->_sections['sub']['show'] = true; |
|---|
| 83 | $this->_sections['sub']['max'] = $this->_sections['sub']['loop']; |
|---|
| 84 | $this->_sections['sub']['step'] = 1; |
|---|
| 85 | $this->_sections['sub']['start'] = $this->_sections['sub']['step'] > 0 ? 0 : $this->_sections['sub']['loop']-1; |
|---|
| 86 | if ($this->_sections['sub']['show']) { |
|---|
| 87 | $this->_sections['sub']['total'] = $this->_sections['sub']['loop']; |
|---|
| 88 | if ($this->_sections['sub']['total'] == 0) |
|---|
| 89 | $this->_sections['sub']['show'] = false; |
|---|
| 90 | } else |
|---|
| 91 | $this->_sections['sub']['total'] = 0; |
|---|
| 92 | if ($this->_sections['sub']['show']): |
|---|
| 93 | |
|---|
| 94 | for ($this->_sections['sub']['index'] = $this->_sections['sub']['start'], $this->_sections['sub']['iteration'] = 1; |
|---|
| 95 | $this->_sections['sub']['iteration'] <= $this->_sections['sub']['total']; |
|---|
| 96 | $this->_sections['sub']['index'] += $this->_sections['sub']['step'], $this->_sections['sub']['iteration']++): |
|---|
| 97 | $this->_sections['sub']['rownum'] = $this->_sections['sub']['iteration']; |
|---|
| 98 | $this->_sections['sub']['index_prev'] = $this->_sections['sub']['index'] - $this->_sections['sub']['step']; |
|---|
| 99 | $this->_sections['sub']['index_next'] = $this->_sections['sub']['index'] + $this->_sections['sub']['step']; |
|---|
| 100 | $this->_sections['sub']['first'] = ($this->_sections['sub']['iteration'] == 1); |
|---|
| 101 | $this->_sections['sub']['last'] = ($this->_sections['sub']['iteration'] == $this->_sections['sub']['total']); |
|---|
| 102 | ?>
|
|---|
| 103 | <?php if (!(1 & $this->_sections['sub']['index'])): ?><tr><?php endif; ?>
|
|---|
| 104 | <td width="270" class="fs12n">
|
|---|
| 105 | <span <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): echo sfSetErrorStyle(array(), $this); endif; ?>>
|
|---|
| 106 | <?php if ($this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['option'][$this->_sections['sub']['index']]): ?>
|
|---|
| 107 | <input type="radio" name="option[<?php echo $this->_sections['question']['index']; ?> |
|---|
| 108 | ]" value="<?php echo ((is_array($_tmp=$this->_sections['sub']['index'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> |
|---|
| 109 | " <?php if ($this->_sections['sub']['index'] == ((is_array($_tmp=@$this->_tpl_vars['arrForm']['option'][$this->_sections['question']['index']])) ? $this->_run_mod_handler('default', true, $_tmp, "-1") : smarty_modifier_default($_tmp, "-1"))): ?>checked<?php endif; ?>>
|
|---|
| 110 | <?php echo ((is_array($_tmp=$this->_tpl_vars['QUESTION']['question'][$this->_sections['question']['index']]['option'][$this->_sections['sub']['index']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> |
|---|
| 111 |
|
|---|
| 112 | <?php endif; ?>
|
|---|
| 113 | </span>
|
|---|
| 114 | </td>
|
|---|
| 115 | <?php if ((1 & $this->_sections['sub']['index'])): ?></tr><?php endif; ?>
|
|---|
| 116 | <?php endfor; endif; ?>
|
|---|
| 117 | <?php if ($this->_tpl_vars['arrErr']['option'][$this->_sections['question']['index']]): ?><tr><td class="fs12n"><span class="red">¼ÁÌä<?php echo $this->_sections['question']['iteration']; ?> |
|---|
| 118 | ¤òÆþÎϤ·¤Æ²¼¤µ¤¤</sapn></tr><?php endif; ?>
|
|---|
| 119 | </table>
|
|---|
| 120 | </td>
|
|---|
| 121 | </tr>
|
|---|
| 122 | <?php endif; ?>
|
|---|
| 123 | <?php endif; ?>
|
|---|
| 124 |
|
|---|
| 125 | <?php endfor; endif; ?>
|
|---|