Login   Register  
PHP Classes
elePHPant
Icontem

File: poll.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jure Merhar  >  Poll Engine  >  poll.tpl  >  Download  
File: poll.tpl
Role: Auxiliary data
Content type: text/plain
Description: poll blocks template (put in './templates/')
Class: Poll Engine
Build and process polls stored in a database
Author: By
Last change:
Date: 2004-04-26 12:31
Size: 1,264 bytes
 

Contents

Class file image Download
<tpl block="poll_results">
<!-- START poll_results-->
<table width="100%" border="0" cellpadding="3" cellspacing="0">
	<tr><th>{poll_results.question}</th></tr>
	<tpl loop="results_answer">
	<tr><td align="left">{results_answer.value}</td></tr>
	<tr><td align="left"><img src="images/vote_lcap.gif" width="4" height="12" alt=""><img src="images/voting_bar.gif" width="{results_answer.width}" height="12" alt="{results_answer.percent}%"><img src="images/vote_rcap.gif" width="4" height="12" alt=""> {results_answer.percent}% ({results_answer.count})</td></tr>
	</tpl loop="results_answer">
</table>
<!-- END poll_results-->
</tpl block="poll_results">

<tpl block="poll_vote">
<!-- START poll_vote-->
<form name="{poll_vote.form_name}" action="{poll_vote.form_action}" method="{poll_vote.form_method}">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
	<tr><th>{poll_vote.question}</th></tr>
	<tpl loop="vote_answer">
	<tr><td align="left"><input name="answer" type="radio" value="{vote_answer.id}">{vote_answer.value}</td></tr>
	</tpl loop="vote_answer">
	<tr><td><input name="{poll_vote.button_name}" type="submit" value="{poll_vote.button_value}"></td></tr>
</table>
</form>
<!-- END poll_vote-->
</tpl block="poll_vote">