CoreFiles by mySites.guru
default.php26 lines, 1,070 bytes, from Joomla_1.5.21-Stable-Full_Package.zip
Raw History Compare with 1.5.20
md5
0a3f2c6080eaa48b3c7c58d20472b5d4
sha1
2d22260621fa550ed22269ac55539b9a8b3fa4e8
sha256
c7dfc3bb08cc810e543d240391dc15fe09a842ec02e40d7b6469349e5ac6855a
<?php
// @version $Id: default.php 10381 2008-06-01 03:35:53Z pasamio $
defined('_JEXEC') or die('Restricted access');
?>

<h4><?php echo $poll->title; ?></h4>
<form name="form2" method="post" action="index.php" class="poll">
	<fieldset>
		<?php for ($i = 0, $n = count($options); $i < $n; $i++) : ?>
		<input type="radio" name="voteid" id="voteid<?php echo $options[$i]->id; ?>" value="<?php echo $options[$i]->id; ?>" alt="<?php echo $options[$i]->id; ?>" />
		<label for="voteid<?php echo $options[$i]->id; ?>">
			<?php echo $options[$i]->text; ?>
		</label>
		<br />
		<?php endfor; ?>
	</fieldset>

	<input type="submit" name="task_button" class="button" value="<?php echo JText::_('Vote'); ?>" />
	<a href="<?php echo JRoute::_('index.php?option=com_poll&id='.$poll->slug.$itemid.'#content'); ?>">
		<?php echo JText::_('Results'); ?></a>

	<input type="hidden" name="option" value="com_poll" />
	<input type="hidden" name="id" value="<?php echo $poll->id; ?>" />
	<input type="hidden" name="task" value="vote" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>

The same content is in 23 releases, Joomla 1.5.4 to 1.5.26. See them all, or every version of this file.