[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/modules/mod_poll/tmpl/ -> default.php (source)

   1  <?php // no direct access
   2  defined('_JEXEC') or die('Restricted access'); ?>
   3  <form action="index.php" method="post" name="form2">
   4  
   5  <table width="95%" border="0" cellspacing="0" cellpadding="1" align="center" class="poll<?php echo $params->get('moduleclass_sfx'); ?>">
   6  <thead>
   7      <tr>
   8          <td style="font-weight: bold;">
   9              <?php echo $poll->title; ?>
  10          </td>
  11      </tr>
  12  </thead>
  13      <tr>
  14          <td align="center">
  15              <table class="pollstableborder<?php echo $params->get('moduleclass_sfx'); ?>" cellspacing="0" cellpadding="0" border="0">
  16              <?php for ($i = 0, $n = count($options); $i < $n; $i ++) : ?>
  17                  <tr>
  18                      <td class="<?php echo $tabclass_arr[$tabcnt]; ?><?php echo $params->get('moduleclass_sfx'); ?>" valign="top">
  19                          <input type="radio" name="voteid" id="voteid<?php echo $options[$i]->id;?>" value="<?php echo $options[$i]->id;?>" alt="<?php echo $options[$i]->id;?>" />
  20                      </td>
  21                      <td class="<?php echo $tabclass_arr[$tabcnt]; ?><?php echo $params->get('moduleclass_sfx'); ?>" valign="top">
  22                          <label for="voteid<?php echo $options[$i]->id;?>">
  23                              <?php echo $options[$i]->text; ?>
  24                          </label>
  25                      </td>
  26                  </tr>
  27                  <?php
  28                      $tabcnt = 1 - $tabcnt;
  29                  ?>
  30              <?php endfor; ?>
  31              </table>
  32          </td>
  33      </tr>
  34      <tr>
  35          <td>
  36              <div align="center">
  37                  <input type="submit" name="task_button" class="button" value="<?php echo JText::_('Vote'); ?>" />
  38                  &nbsp;
  39                  <input type="button" name="option" class="button" value="<?php echo JText::_('Results'); ?>" onclick="document.location.href='<?php echo JRoute::_("index.php?option=com_poll&id=$poll->slug".$itemid); ?>'" />
  40              </div>
  41          </td>
  42      </tr>
  43  </table>
  44  
  45      <input type="hidden" name="option" value="com_poll" />
  46      <input type="hidden" name="task" value="vote" />
  47      <input type="hidden" name="id" value="<?php echo $poll->id;?>" />
  48      <?php echo JHTML::_( 'form.token' ); ?>
  49  </form>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1