PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/poll/root/templates/s_templates_c/%%140^%%1406124233^result.tpl.php

http://flaimo-php.googlecode.com/
PHP | 220 lines | 210 code | 9 blank | 1 comment | 58 complexity | 7e5940659e5ac455c953e3f9f0992ba8 MD5 | raw file
  1. <?php /* Smarty version 2.6.2, created on 2004-09-24 12:57:23
  2. compiled from networld_leute_single_fuer_eberharter/result.tpl */ ?>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
  6. <head>
  7. <title>Umfrage - <?php echo $this->_tpl_vars['poll_title']; ?>
  8. </title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <style type="text/css">
  11. <!--
  12. @import url("generalstyles.css");
  13. @import url("<?php echo $this->_tpl_vars['path']; ?>
  14. eberharter.css");
  15. -->
  16. </style>
  17. </head>
  18. <body>
  19. <h6><span>Networld Umfrage</span></h6>
  20. <h2><span>Österreich jagt den Superstar</span></h2>
  21. <div id="participants">
  22. <div id="pollcontent">
  23. <h1><?php echo $this->_tpl_vars['poll_title']; ?>
  24. </h1>
  25. <p><?php echo $this->_tpl_vars['poll_description']; ?>
  26. </p>
  27. <table><tr valign="top"><td>
  28. <?php if (isset($this->_sections['id'])) unset($this->_sections['id']);
  29. $this->_sections['id']['name'] = 'id';
  30. $this->_sections['id']['loop'] = is_array($_loop=$this->_tpl_vars['option_ids']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  31. $this->_sections['id']['max'] = (int)$this->_tpl_vars['sum_polloptions_half'];
  32. $this->_sections['id']['show'] = true;
  33. if ($this->_sections['id']['max'] < 0)
  34. $this->_sections['id']['max'] = $this->_sections['id']['loop'];
  35. $this->_sections['id']['step'] = 1;
  36. $this->_sections['id']['start'] = $this->_sections['id']['step'] > 0 ? 0 : $this->_sections['id']['loop']-1;
  37. if ($this->_sections['id']['show']) {
  38. $this->_sections['id']['total'] = min(ceil(($this->_sections['id']['step'] > 0 ? $this->_sections['id']['loop'] - $this->_sections['id']['start'] : $this->_sections['id']['start']+1)/abs($this->_sections['id']['step'])), $this->_sections['id']['max']);
  39. if ($this->_sections['id']['total'] == 0)
  40. $this->_sections['id']['show'] = false;
  41. } else
  42. $this->_sections['id']['total'] = 0;
  43. if ($this->_sections['id']['show']):
  44. for ($this->_sections['id']['index'] = $this->_sections['id']['start'], $this->_sections['id']['iteration'] = 1;
  45. $this->_sections['id']['iteration'] <= $this->_sections['id']['total'];
  46. $this->_sections['id']['index'] += $this->_sections['id']['step'], $this->_sections['id']['iteration']++):
  47. $this->_sections['id']['rownum'] = $this->_sections['id']['iteration'];
  48. $this->_sections['id']['index_prev'] = $this->_sections['id']['index'] - $this->_sections['id']['step'];
  49. $this->_sections['id']['index_next'] = $this->_sections['id']['index'] + $this->_sections['id']['step'];
  50. $this->_sections['id']['first'] = ($this->_sections['id']['iteration'] == 1);
  51. $this->_sections['id']['last'] = ($this->_sections['id']['iteration'] == $this->_sections['id']['total']);
  52. ?>
  53. <?php if ($this->_tpl_vars['display_active_only'] == FALSE || ( $this->_tpl_vars['option_active'][$this->_sections['id']['index']] == TRUE && $this->_tpl_vars['display_active_only'] == TRUE )): ?>
  54. <div class="participant">
  55. <?php if ($this->_tpl_vars['option_active'][$this->_sections['id']['index']] == TRUE): ?>
  56. <img src="<?php echo $this->_tpl_vars['option_image'][$this->_sections['id']['index']]; ?>
  57. " alt="<?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  58. " class="portrait" />
  59. <h3><?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  60. <?php if ($this->_tpl_vars['show_percent'] == TRUE): ?>
  61. <small><?php echo $this->_tpl_vars['option_percent_exact'][$this->_sections['id']['index']]; ?>
  62.  %
  63. <?php if ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  64. (<?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  65.  Stimmen)
  66. <?php endif; ?>
  67. </small>
  68. <?php elseif ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  69. <small><?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  70.  Stimmen</small>
  71. <?php endif; ?>
  72. </h3>
  73. <img src="<?php echo $this->_tpl_vars['path']; ?>
  74. pix.gif" alt="Balken" height="23" class="block" width="<?php echo $this->_tpl_vars['option_percent'][$this->_sections['id']['index']]*2+1; ?>
  75. " />
  76. <?php else: ?>
  77. <img src="<?php echo $this->_tpl_vars['option_inactive_image'][$this->_sections['id']['index']]; ?>
  78. " alt="<?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  79. " class="portrait" />
  80. <h3 class="inactive"><?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  81. <?php if ($this->_tpl_vars['show_percent'] == TRUE): ?>
  82. <small><?php echo $this->_tpl_vars['option_percent_exact'][$this->_sections['id']['index']]; ?>
  83.  %
  84. <?php if ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  85. (<?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  86.  Stimmen)
  87. <?php endif; ?>
  88. </small>
  89. <?php elseif ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  90. <small><?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  91.  Stimmen</small>
  92. <?php endif; ?>
  93. </h3>
  94. <img src="<?php echo $this->_tpl_vars['path']; ?>
  95. pix_inactive.gif" alt="Balken" height="23" class="block" width="<?php echo $this->_tpl_vars['option_percent'][$this->_sections['id']['index']]*2+1; ?>
  96. " />
  97. <?php endif; ?>
  98. </div>
  99. <?php endif; ?>
  100. <?php endfor; else: ?>
  101. <p>Es stehen keine Antwortmöglichkeiten für diese Umfrage zur Verfügung</p>
  102. <?php endif; ?>
  103. </td><td>
  104. <?php if (isset($this->_sections['id'])) unset($this->_sections['id']);
  105. $this->_sections['id']['name'] = 'id';
  106. $this->_sections['id']['loop'] = is_array($_loop=$this->_tpl_vars['option_ids']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  107. $this->_sections['id']['start'] = (int)$this->_tpl_vars['sum_polloptions_half'];
  108. $this->_sections['id']['show'] = true;
  109. $this->_sections['id']['max'] = $this->_sections['id']['loop'];
  110. $this->_sections['id']['step'] = 1;
  111. if ($this->_sections['id']['start'] < 0)
  112. $this->_sections['id']['start'] = max($this->_sections['id']['step'] > 0 ? 0 : -1, $this->_sections['id']['loop'] + $this->_sections['id']['start']);
  113. else
  114. $this->_sections['id']['start'] = min($this->_sections['id']['start'], $this->_sections['id']['step'] > 0 ? $this->_sections['id']['loop'] : $this->_sections['id']['loop']-1);
  115. if ($this->_sections['id']['show']) {
  116. $this->_sections['id']['total'] = min(ceil(($this->_sections['id']['step'] > 0 ? $this->_sections['id']['loop'] - $this->_sections['id']['start'] : $this->_sections['id']['start']+1)/abs($this->_sections['id']['step'])), $this->_sections['id']['max']);
  117. if ($this->_sections['id']['total'] == 0)
  118. $this->_sections['id']['show'] = false;
  119. } else
  120. $this->_sections['id']['total'] = 0;
  121. if ($this->_sections['id']['show']):
  122. for ($this->_sections['id']['index'] = $this->_sections['id']['start'], $this->_sections['id']['iteration'] = 1;
  123. $this->_sections['id']['iteration'] <= $this->_sections['id']['total'];
  124. $this->_sections['id']['index'] += $this->_sections['id']['step'], $this->_sections['id']['iteration']++):
  125. $this->_sections['id']['rownum'] = $this->_sections['id']['iteration'];
  126. $this->_sections['id']['index_prev'] = $this->_sections['id']['index'] - $this->_sections['id']['step'];
  127. $this->_sections['id']['index_next'] = $this->_sections['id']['index'] + $this->_sections['id']['step'];
  128. $this->_sections['id']['first'] = ($this->_sections['id']['iteration'] == 1);
  129. $this->_sections['id']['last'] = ($this->_sections['id']['iteration'] == $this->_sections['id']['total']);
  130. ?>
  131. <?php if ($this->_tpl_vars['display_active_only'] == FALSE || ( $this->_tpl_vars['option_active'][$this->_sections['id']['index']] == TRUE && $this->_tpl_vars['display_active_only'] == TRUE )): ?>
  132. <div class="participant" title="<?php echo $this->_tpl_vars['option_description'][$this->_sections['id']['index']]; ?>
  133. ">
  134. <?php if ($this->_tpl_vars['option_active'][$this->_sections['id']['index']] == TRUE): ?>
  135. <img src="<?php echo $this->_tpl_vars['option_image'][$this->_sections['id']['index']]; ?>
  136. " alt="<?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  137. " class="portrait" />
  138. <h3><?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  139. <?php if ($this->_tpl_vars['show_percent'] == TRUE): ?>
  140. <small><?php echo $this->_tpl_vars['option_percent_exact'][$this->_sections['id']['index']]; ?>
  141.  %
  142. <?php if ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  143. (<?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  144.  Stimmen)
  145. <?php endif; ?>
  146. </small>
  147. <?php elseif ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  148. <small><?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  149.  Stimmen</small>
  150. <?php endif; ?>
  151. </h3>
  152. <img src="<?php echo $this->_tpl_vars['path']; ?>
  153. pix.gif" alt="Balken" height="23" class="block" width="<?php echo $this->_tpl_vars['option_percent'][$this->_sections['id']['index']]*2+1; ?>
  154. " />
  155. <?php else: ?>
  156. <img src="<?php echo $this->_tpl_vars['option_inactive_image'][$this->_sections['id']['index']]; ?>
  157. " alt="<?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  158. " class="portrait" />
  159. <h3 class="inactive"><?php echo $this->_tpl_vars['option_titles'][$this->_sections['id']['index']]; ?>
  160. <?php if ($this->_tpl_vars['show_percent'] == TRUE): ?>
  161. <small><?php echo $this->_tpl_vars['option_percent_exact'][$this->_sections['id']['index']]; ?>
  162.  %
  163. <?php if ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  164. (<?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  165.  Stimmen)
  166. <?php endif; ?>
  167. </small>
  168. <?php elseif ($this->_tpl_vars['show_absolute'] == TRUE): ?>
  169. <small><?php echo $this->_tpl_vars['option_votes'][$this->_sections['id']['index']]; ?>
  170.  Stimmen</small>
  171. <?php endif; ?>
  172. </h3>
  173. <img src="<?php echo $this->_tpl_vars['path']; ?>
  174. pix_inactive.gif" alt="Balken" height="23" class="block" width="<?php echo $this->_tpl_vars['option_percent'][$this->_sections['id']['index']]*2+1; ?>
  175. " />
  176. <?php endif; ?>
  177. </div>
  178. <?php endif; ?>
  179. <?php endfor; endif; ?>
  180. </td></tr></table>
  181. </div>
  182. </div>
  183. <div id="submit">
  184. <?php if ($this->_tpl_vars['show_revote_link'] == TRUE): ?>
  185. <a href="<?php echo $this->_tpl_vars['php_self']; ?>
  186. ?poll=<?php echo $this->_tpl_vars['poll_id']; ?>
  187. "><img src="<?php echo $this->_tpl_vars['path']; ?>
  188. revote" width="163" height="25" alt="Nochmal abstimmen" /></a>
  189. <?php endif; ?>
  190. <?php if ($this->_tpl_vars['show_next_revote'] == TRUE): ?>
  191. <b id="nextvote">Nächste Abstimmung in <span><?php echo $this->_tpl_vars['next_revote_min']; ?>
  192. </span> Minuten</b>
  193. <?php endif; ?>
  194. </div>
  195. <script type="text/javascript">
  196. <!--
  197. var ts=new Date(); ts=ts.getTime();
  198. document.write('<img src="/cgi-bin/ivw/CP/<?php echo $this->_tpl_vars['cp_type']; echo $this->_tpl_vars['L1_cat']; ?>
  199. /umfrage<?php echo $this->_tpl_vars['L2_cat']; ?>
  200. /<?php echo $this->_tpl_vars['cp']; ?>
  201. ?' + ts + '" width="1" height="1" alt="Zählpixel" />');
  202. //-->
  203. </script>
  204. <noscript>
  205. <img src="/cgi-bin/ivw/CP/<?php echo $this->_tpl_vars['cp_type']; echo $this->_tpl_vars['L1_cat']; ?>
  206. /umfrage<?php echo $this->_tpl_vars['L2_cat']; ?>
  207. /<?php echo $this->_tpl_vars['cp']; ?>
  208. " width="1" height="1" alt="Zählpixel" />
  209. </noscript>
  210. </body>
  211. </html>