Commit 8f0ff34a authored by Jyhem's avatar Jyhem

[REF] Clean templates formatting so they are legible and maintainable again

parent c058138d
This diff is collapsed.
{assign var=thispageName value=$pageName|escape:"url"}
{if $type eq 'd'}
<iframe width='0' height='0' frameborder="0" src="tiki-page_loader.php?refresh={$refresh}&amp;pageName={$thispageName}">{tr}Browser not supported{/tr}</iframe>
<iframe width='0' height='0' frameborder="0" src="tiki-page_loader.php?refresh={$refresh}&amp;pageName={$thispageName}">{tr}Browser not supported{/tr}</iframe>
{/if}
{$parsed}
......
This diff is collapsed.
......@@ -4,67 +4,67 @@
{payment id=$invoice}
{/if}
{if $user}
{tabset}
{permission name=payment_view}
{tab name="{tr}Outstanding{/tr}"}
<h2>{tr}Outstanding{/tr}</h2>
{if $overdue.data}
<p>{tr}Overdue{/tr}</p>
{include file='tiki-payment-list.tpl' payments=$overdue cancel=1}
{/if}
{tabset}
{permission name=payment_view}
{tab name="{tr}Outstanding{/tr}"}
<h2>{tr}Outstanding{/tr}</h2>
{if $overdue.data}
<p>{tr}Overdue{/tr}</p>
{include file='tiki-payment-list.tpl' payments=$overdue cancel=1}
{/if}
<p>{tr}Outstanding{/tr}</p>
{include file='tiki-payment-list.tpl' payments=$outstanding cancel=1}
<p>{tr}Outstanding{/tr}</p>
{include file='tiki-payment-list.tpl' payments=$outstanding cancel=1}
{if $authorized.data}
<p>{tr}Authorized{/tr}</p>
{include file='tiki-payment-list.tpl' payments=$authorized cancel=1}
{/if}
{/tab}
{tab name="{tr}Past{/tr}"}
<h2>{tr}Past{/tr}</h2>
{include file='tiki-payment-list-past.tpl' payments=$past}
{/tab}
{tab name="{tr}Cancelled{/tr}"}
<h2>{tr}Cancelled{/tr}</h2>
{include file='tiki-payment-list.tpl' payments=$canceled}
{/tab}
{/permission}
{permission name=payment_request}
{tab name="{tr}Request{/tr}"}
<h2>{tr}Request{/tr}</h2>
<form method="post" action="">
{if $prefs.feature_categories eq 'y'}
{if $authorized.data}
<p>{tr}Authorized{/tr}</p>
{include file='tiki-payment-list.tpl' payments=$authorized cancel=1}
{/if}
{/tab}
{tab name="{tr}Past{/tr}"}
<h2>{tr}Past{/tr}</h2>
{include file='tiki-payment-list-past.tpl' payments=$past}
{/tab}
{tab name="{tr}Cancelled{/tr}"}
<h2>{tr}Cancelled{/tr}</h2>
{include file='tiki-payment-list.tpl' payments=$canceled}
{/tab}
{/permission}
{permission name=payment_request}
{tab name="{tr}Request{/tr}"}
<h2>{tr}Request{/tr}</h2>
<form method="post" action="">
{if $prefs.feature_categories eq 'y'}
<fieldset>
<legend>{tr}Categories{/tr}</legend>
{include file="categorize.tpl" notable=y}
</fieldset>
{/if}
<fieldset>
<legend>{tr}Categories{/tr}</legend>
{include file="categorize.tpl" notable=y}
<label for="description">{tr}Description:{/tr}</label>
<input type="text" id="description" name="description">
</fieldset>
{/if}
<fieldset>
<label for="description">{tr}Description:{/tr}</label>
<input type="text" id="description" name="description">
</fieldset>
<fieldset>
<label for="detail">{tr}Detail:{/tr}</label>
<textarea id="detail" name="detail" style="width: 100%;" rows="10"></textarea>
</fieldset>
<fieldset>
<label for="detail">{tr}Detail:{/tr}</label>
<textarea id="detail" name="detail" style="width: 100%;" rows="10"></textarea>
</fieldset>
<fieldset>
<label for="amount">{tr}Amount:{/tr}</label>
<input type="text" id="amount" name="amount" class="text-right">
{$prefs.payment_currency|escape}
</fieldset>
<fieldset>
<label for="amount">{tr}Amount:{/tr}</label>
<input type="text" id="amount" name="amount" class="text-right">
{$prefs.payment_currency|escape}
</fieldset>
<fieldset>
<label for="payable">{tr}Payable within:{/tr}</label>
<input type="text" id="payable" class="text-right" name="payable" value="{$prefs.payment_default_delay|escape}">
{tr}days{/tr}
</fieldset>
<fieldset>
<label for="payable">{tr}Payable within:{/tr}</label>
<input type="text" id="payable" class="text-right" name="payable" value="{$prefs.payment_default_delay|escape}">
{tr}days{/tr}
</fieldset>
<p><input type="submit" class="btn btn-default btn-sm" name="request" value="{tr}Request{/tr}"></p>
</form>
{/tab}
{/permission}
{/tabset}
<p><input type="submit" class="btn btn-default btn-sm" name="request" value="{tr}Request{/tr}"></p>
</form>
{/tab}
{/permission}
{/tabset}
{/if}
{* $Id$ *}
{title}
{if $user ne $userwatch}
{tr}Avatar:{/tr} {$userwatch}
{else}
{tr}Pick your avatar{/tr}
{/if}
{if $user ne $userwatch}
{tr}Avatar:{/tr} {$userwatch}
{else}
{tr}Pick your avatar{/tr}
{/if}
{/title}
......@@ -17,99 +17,103 @@
{button href="tiki-user_preferences.php?view_user=$thisuserwatch" class="btn btn-default" _text="{tr}User Preferences{/tr}"}
</div>
{/if}
<h2>{if $user eq $userwatch}{tr}Your current avatar{/tr}{else}{tr}Avatar{/tr}{/if}</h2>
{if $avatar}
<div>
{if isset($user_picture_id)}{tr}Thumbnail{/tr}<br>{/if}
{$avatar}
</div>
{if isset($user_picture_id)}
<div>{tr}Full size{/tr}<br>
<img src="tiki-download_file.php?fileId={$user_picture_id|escape}&amp;display=y">
</div>
<div>
{if isset($user_picture_id)}{tr}Thumbnail{/tr}<br>{/if}
{$avatar}
</div>
{if isset($user_picture_id)}
<div>{tr}Full size{/tr}<br>
<img src="tiki-download_file.php?fileId={$user_picture_id|escape}&amp;display=y">
</div>
{/if}
{else}
{tr}no avatar{/tr}
{/if}
{else}{tr}no avatar{/tr}{/if}
{if sizeof($avatars) eq 0 and $avatar}
<a class="link" href="tiki-pick_avatar.php?reset=y&amp;view_user{$userwatch|escape}" title="{tr}reset{/tr}">{icon _id='cross' alt="{tr}reset{/tr}"}</a>
<a class="link" href="tiki-pick_avatar.php?reset=y&amp;view_user{$userwatch|escape}" title="{tr}reset{/tr}">{icon _id='cross' alt="{tr}reset{/tr}"}</a>
{/if}
{if sizeof($avatars) > 0}
{if $showall eq 'y'}
<h2>{if $user eq $userwatch}{tr}Pick avatar from the library{/tr}{else}{tr}Pick user Avatar{/tr}{/if} <a href="tiki-pick_avatar.php?showall=n">{tr}Hide all{/tr}</a> {$numav} {tr}icons{/tr}</h2>
<div class="table normal">
{section name=im loop=$avatars}
<a href="tiki-pick_avatar.php?showall=n&amp;avatar={$avatars[im]|escape:"url"}&amp;uselib=use"><img src="{$avatars[im]}" alt=''></a>
{/section}
</div>
{else}
{if $showall eq 'y'}
<h2>{if $user eq $userwatch}{tr}Pick avatar from the library{/tr}{else}{tr}Pick user Avatar{/tr}{/if} <a href="tiki-pick_avatar.php?showall=n">{tr}Hide all{/tr}</a> {$numav} {tr}icons{/tr}</h2>
<div class="table normal">
{section name=im loop=$avatars}
<a href="tiki-pick_avatar.php?showall=n&amp;avatar={$avatars[im]|escape:"url"}&amp;uselib=use"><img src="{$avatars[im]}" alt=''></a>
{/section}
</div>
{else}
{jq}
var avatars = new Array();
{{section name=ix loop=$avatars}
avatars[{$smarty.section.ix.index}] = '{$avatars[ix]}';
{if $smarty.section.ix.index eq $yours}
{assign var="yours" value=$avatars[ix]}
{/if}
{/section}}
var pepe=1;
function addavt() {
pepe++;
if(pepe > avatars.length-1) {
pepe =0;
}
document.getElementById('avtimg').src=avatars[pepe];
document.getElementById('avatar').value=avatars[pepe];
}
{jq}
var avatars = new Array();
{{section name=ix loop=$avatars}
avatars[{$smarty.section.ix.index}] = '{$avatars[ix]}';
{if $smarty.section.ix.index eq $yours}
{assign var="yours" value=$avatars[ix]}
{/if}
{/section}}
var pepe=1;
function addavt() {
pepe++;
if(pepe > avatars.length-1) {
pepe =0;
}
document.getElementById('avtimg').src=avatars[pepe];
document.getElementById('avatar').value=avatars[pepe];
}
function subavt() {
pepe--;
if(pepe < 0 ) {
pepe=avatars.length-1
}
document.getElementById('avtimg').src=avatars[pepe];
document.getElementById('avatar').value=avatars[pepe];
}
{/jq}
function subavt() {
pepe--;
if(pepe < 0 ) {
pepe=avatars.length-1
}
document.getElementById('avtimg').src=avatars[pepe];
document.getElementById('avatar').value=avatars[pepe];
}
{/jq}
<h2>{tr}Pick avatar from the library{/tr} <a href="tiki-pick_avatar.php?showall=y">{tr}Show all{/tr}</a> {$numav} {tr}Items{/tr}</h2>
<form action="tiki-pick_avatar.php" method="post">
<input id="avatar" type="hidden" name="avatar" value="{$yours|escape}">
{if $user ne $userwatch}<input type="hidden" name="view_user" value="{$userwatch|escape}">{/if}
<table class="formcolor">
<tr>
<td>
<div align="center">
<a class="link" href="javascript:subavt();">{tr}Prev{/tr}</a>
<img id='avtimg' src="{$yours}" alt="{tr}Avatar Image{/tr}">
<a class="link" href="javascript:addavt();">{tr}Next{/tr}</a>
</div>
</td>
</tr>
<tr>
<td>
<div align="center">
<input type="submit" class="btn btn-default btn-sm" name="rand" value="{tr}random{/tr}">
<input type="submit" class="btn btn-default btn-sm" name="uselib" value="{tr}Use{/tr}">
<input type="submit" class="btn btn-default btn-sm" name="reset" value="{tr}no avatar{/tr}">
</div>
</td>
</tr>
</table>
</form>
{/if}
<h2>{tr}Pick avatar from the library{/tr} <a href="tiki-pick_avatar.php?showall=y">{tr}Show all{/tr}</a> {$numav} {tr}Items{/tr}</h2>
<form action="tiki-pick_avatar.php" method="post">
<input id="avatar" type="hidden" name="avatar" value="{$yours|escape}">
{if $user ne $userwatch}<input type="hidden" name="view_user" value="{$userwatch|escape}">{/if}
<table class="formcolor">
<tr>
<td>
<div align="center">
<a class="link" href="javascript:subavt();">{tr}Prev{/tr}</a>
<img id='avtimg' src="{$yours}" alt="{tr}Avatar Image{/tr}">
<a class="link" href="javascript:addavt();">{tr}Next{/tr}</a>
</div>
</td>
</tr>
<tr>
<td>
<div align="center">
<input type="submit" class="btn btn-default btn-sm" name="rand" value="{tr}random{/tr}">
<input type="submit" class="btn btn-default btn-sm" name="uselib" value="{tr}Use{/tr}">
<input type="submit" class="btn btn-default btn-sm" name="reset" value="{tr}no avatar{/tr}">
</div>
</td>
</tr>
</table>
</form>
{/if}
{/if}
<div class="table normal">
<form enctype="multipart/form-data" action="tiki-pick_avatar.php" method="post">
<fieldset>
<legend><strong>{tr}Upload your own avatar{/tr}</strong></legend>
{if $user ne $userwatch}<input type="hidden" name="view_user" value="{$userwatch|escape}">{/if}
<label for="userfile1">{if $prefs.user_store_file_gallery_picture neq 'y'}{tr}File (only .gif, .jpg and .png images approximately 45px × 45px){/tr}{else}{tr}File (only .gif, .jpg and .png images){/tr}{/if}:</label>
<input type="hidden" name="MAX_FILE_SIZE" value="10000000">
<input id="userfile1" name="userfile1" type="file">
<input type="submit" class="btn btn-primary btn-sm" name="upload" value="{tr}Upload{/tr}">
</fieldset>
</form>
<form enctype="multipart/form-data" action="tiki-pick_avatar.php" method="post">
<fieldset>
<legend><strong>{tr}Upload your own avatar{/tr}</strong></legend>
{if $user ne $userwatch}<input type="hidden" name="view_user" value="{$userwatch|escape}">{/if}
<label for="userfile1">{if $prefs.user_store_file_gallery_picture neq 'y'}{tr}File (only .gif, .jpg and .png images approximately 45px × 45px){/tr}{else}{tr}File (only .gif, .jpg and .png images){/tr}{/if}:</label>
<input type="hidden" name="MAX_FILE_SIZE" value="10000000">
<input id="userfile1" name="userfile1" type="file">
<input type="submit" class="btn btn-primary btn-sm" name="upload" value="{tr}Upload{/tr}">
</fieldset>
</form>
</div>
<div class="poll">
<div class="poll-title">
<strong>{$poll_title|escape}</strong>
</div>
<div class="poll-data">
{$menu_info.name|escape}
{include file='tiki-poll.tpl'}
</div>
<div class="poll-title">
<strong>{$poll_title|escape}</strong>
</div>
<div class="poll-data">
{$menu_info.name|escape}
{include file='tiki-poll.tpl'}
</div>
</div>
{title url="tiki-plugins.php" help="Wiki+Plugins"}{tr}Plugin Approval{/tr}{/title}
{remarksbox type="tip" title="{tr}Tip{/tr}"}
{tr}For security, grant the <strong>tiki_p_plugin_approve</strong> permission only to trusted user groups.{/tr} {tr}Use the <a href="tiki-admin.php?page=textarea">Admin: Text Area page</a> to deactivate potentially risky plugins.{/tr}
{tr}For security, grant the <strong>tiki_p_plugin_approve</strong> permission only to trusted user groups.{/tr} {tr}Use the <a href="tiki-admin.php?page=textarea">Admin: Text Area page</a> to deactivate potentially risky plugins.{/tr}
{/remarksbox}
<p>
{tr}This page lists the plugins that require validation, the first time they are encountered.{/tr} {tr}Each plugin contains a unique <em>signature</em> that is preserved.{/tr}</p>
<p>
{tr}This page lists the plugins that require validation, the first time they are encountered.{/tr} {tr}Each plugin contains a unique <em>signature</em> that is preserved.{/tr}</p>
<p>{tr}When you upgrade from an old version, you may need to reparse all the pages.{/tr} {button href="tiki-plugins.php?refresh=y" _text="{tr}Refresh{/tr}"}</p>
{if $plugin_list}
<p>{tr}If a plugin is no longer in use (for example, it has been removed from the wiki page), use <strong>Clear</strong> to remove it from this list.{/tr} {tr}The plugin will automatically be added if it is encountered.{/tr}
</p>
<p>{tr}Plugins can be individually previewed, approved, or rejected from the particular location that contains the plugin.{/tr} {tr}For security, you should review each plugin to ensure it is safe to approve.{/tr}</p>
<form method="post" action="#">
<p>{tr}If a plugin is no longer in use (for example, it has been removed from the wiki page), use <strong>Clear</strong> to remove it from this list.{/tr} {tr}The plugin will automatically be added if it is encountered.{/tr}</p>
<p>{tr}Plugins can be individually previewed, approved, or rejected from the particular location that contains the plugin.{/tr} {tr}For security, you should review each plugin to ensure it is safe to approve.{/tr}</p>
<form method="post" action="#">
{listfilter selectors='#plugins_list tr.odd,#plugins_list tr.even'}
<div class="table-responsive">
<table class="table normal" id="plugins_list">
<tr>
<th>{select_all checkbox_names='clear[]'}</th>
<th>{tr}Plugin{/tr} </th>
<th>{tr}Location{/tr} </th>
<th>{tr}Added By{/tr} </th>
<th>{tr}Actions{/tr} </th>
</tr>
{foreach name=foo from=$plugin_list item=plugin}
<tr>
<td class="checkbox-cell"><input type="checkbox" name="clear[]" value="{$plugin.fingerprint|escape}" id="{$plugin.fingerprint|escape}"></td>
<td class="text"><label for="{$plugin.fingerprint|escape}"><strong>{$plugin.fingerprint|substring:0:20|escape|replace:"-":"</strong> <br>{tr}Signature:{/tr} "}...</label></td>
<td class="text">{if $plugin.last_objectType eq 'wiki page'}
{tr _0=$plugin.last_objectId|sefurl:'wiki page' _1=$plugin.last_objectId|escape _2=$plugin.fingerprint}Wiki page: <a href="%0#%2" title="View this page.">%1</a>{/tr}
{else}
{tr}Unknown{/tr}
{/if}
</td>
<td class="text">{if $plugin.added_by}{$plugin.added_by|userlink}{else}{tr}Unknown{/tr}{/if}
</td>
<td class="action">
<a href="tiki-plugins.php?approveone={$plugin.fingerprint}">{icon _id='accept' alt="{tr}Approve{/tr}"}</a>
<a href="tiki-plugins.php?clearone={$plugin.fingerprint}">{icon _id='delete' alt="{tr}Clear{/tr}"}</a>
{if $plugin.last_objectType eq 'wiki page'}
{tr _0=$plugin.last_objectId|sefurl:'wiki page' _1=$plugin.last_objectId|escape _2=$plugin.fingerprint}<a href="%0#%2" title="View this page.">{icon _id='page'}</a>{/tr}
{/if}
</td>
</tr>
{/foreach}
</table>
</div>
<div class="table-responsive">
<table class="table normal" id="plugins_list">
<tr>
<th>{select_all checkbox_names='clear[]'}</th>
<th>{tr}Plugin{/tr} </th>
<th>{tr}Location{/tr} </th>
<th>{tr}Added By{/tr} </th>
<th>{tr}Actions{/tr} </th>
</tr>
{foreach name=foo from=$plugin_list item=plugin}
<tr>
<td class="checkbox-cell"><input type="checkbox" name="clear[]" value="{$plugin.fingerprint|escape}" id="{$plugin.fingerprint|escape}"></td>
<td class="text"><label for="{$plugin.fingerprint|escape}"><strong>{$plugin.fingerprint|substring:0:20|escape|replace:"-":"</strong> <br>{tr}Signature:{/tr} "}...</label></td>
<td class="text">
{if $plugin.last_objectType eq 'wiki page'}
{tr _0=$plugin.last_objectId|sefurl:'wiki page' _1=$plugin.last_objectId|escape _2=$plugin.fingerprint}Wiki page: <a href="%0#%2" title="View this page.">%1</a>{/tr}
{else}
{tr}Unknown{/tr}
{/if}
</td>
<td class="text">{if $plugin.added_by}{$plugin.added_by|userlink}{else}{tr}Unknown{/tr}{/if}</td>
<td class="action">
<a href="tiki-plugins.php?approveone={$plugin.fingerprint}">{icon _id='accept' alt="{tr}Approve{/tr}"}</a>
<a href="tiki-plugins.php?clearone={$plugin.fingerprint}">{icon _id='delete' alt="{tr}Clear{/tr}"}</a>
{if $plugin.last_objectType eq 'wiki page'}
{tr _0=$plugin.last_objectId|sefurl:'wiki page' _1=$plugin.last_objectId|escape _2=$plugin.fingerprint}<a href="%0#%2" title="View this page.">{icon _id='page'}</a>{/tr}
{/if}
</td>
</tr>
{/foreach}
</table>
</div>
<p>
<label for="submit_mult">{tr}Perform action with checked:{/tr}</label>
<select name="submit_mult" id="submit_mult" onchange="this.form.submit();">
<option value="" selected="selected">...</option>
<option value="clear" >Clear</option>
<option value="approve">Approve</option>
</select> {tr}or{/tr}
<input type="submit" class="btn btn-default btn-sm" name="approveall" value="{tr}Approve all pending plugins{/tr}">
<label for="submit_mult">{tr}Perform action with checked:{/tr}</label>
<select name="submit_mult" id="submit_mult" onchange="this.form.submit();">
<option value="" selected="selected">...</option>
<option value="clear" >Clear</option>
<option value="approve">Approve</option>
</select>
{tr}or{/tr}
<input type="submit" class="btn btn-default btn-sm" name="approveall" value="{tr}Approve all pending plugins{/tr}">
</p>
{remarksbox type="warning" title="{tr}Warning{/tr}"}
{tr}Using <strong>Approve</strong> or <strong>Approve All</strong> will approve and activate the pending plugins.{/tr} {tr}Use this feature <strong>only</strong> if you have verified that all the pending plugins are safe.{/tr}
{/remarksbox}
{remarksbox type="warning" title="{tr}Warning{/tr}"}
{tr}Using <strong>Approve</strong> or <strong>Approve All</strong> will approve and activate the pending plugins.{/tr} {tr}Use this feature <strong>only</strong> if you have verified that all the pending plugins are safe.{/tr}
{/remarksbox}
<script type='text/javascript'>
<!--
// Fake js to allow the use of the <noscript> tag (so non-js-users can still submit)
//-->
</script>
<noscript>
<input type="submit" class="btn btn-default btn-sm" value="{tr}OK{/tr}">
</noscript>
</form>
<script type='text/javascript'>
<!--
// Fake js to allow the use of the <noscript> tag (so non-js-users can still submit)
//-->
</script>
<noscript>
<input type="submit" class="btn btn-default btn-sm" value="{tr}OK{/tr}">
</noscript>
</form>
{else}
<p>{tr}No plugins pending approval.{/tr}</p>
{/if}
......@@ -8,7 +8,7 @@
<form method="post" action="{$ownurl}">
<input type="hidden" name="polls_pollId" value="{$menu_info.pollId|escape}">
{if !empty($showresult) && $showresult ne 'link'}<input type="hidden" name="showresult" value="{$showresult|escape}">{/if}
{if $tiki_p_vote_poll ne 'n' && ($user || $prefs.feature_poll_anonymous == 'y' || $prefs.feature_antibot eq 'y')}
{if $tiki_p_vote_poll ne 'n' && ($user || $prefs.feature_poll_anonymous == 'y' || $prefs.feature_antibot eq 'y')}
{section name=ix loop=$channels}
<label><input type="radio" name="polls_optionId" value="{$channels[ix].optionId|escape}"{if $polls_optionId == $channels[ix].optionId} checked="checked"{/if}>{tr}{$channels[ix].title|escape}{/tr}</label><br>
{/section}
......@@ -16,24 +16,23 @@
<ul>
{section name=ix loop=$channels}
<li>{tr}{$channels[ix].title|escape}{/tr}</li>
{/section}
</ul>
{/section}
</ul>
{/if}
<div align="center">
{if $prefs.feature_antibot eq 'y' && $user eq ''}
{include file='antibot.tpl' antibot_table='n'}
{/if}
{if $tiki_p_vote_poll ne 'n' && ($user || $prefs.feature_poll_anonymous == 'y' || $prefs.feature_antibot eq 'y')}
<input type="submit" class="btn btn-default btn-sm" name="pollVote" value="{tr}vote{/tr}"><br>
{/if}
{if $tiki_p_view_poll_results == 'y' and $showresult ne 'always' and $showresult ne 'voted'}
<a class="linkmodule" href="tiki-poll_results.php?pollId={$menu_info.pollId}">{tr}View Results{/tr}</a><br>
({tr}Votes:{/tr} {$menu_info.votes})
{/if}
</div>
{if $prefs.feature_poll_comments and $comments_cant and !isset($module_params)}
<br>
{include file='comments_button.tpl'}
{/if}
<div align="center">
{if $prefs.feature_antibot eq 'y' && $user eq ''}
{include file='antibot.tpl' antibot_table='n'}
{/if}
{if $tiki_p_vote_poll ne 'n' && ($user || $prefs.feature_poll_anonymous == 'y' || $prefs.feature_antibot eq 'y')}
<input type="submit" class="btn btn-default btn-sm" name="pollVote" value="{tr}vote{/tr}"><br>
{/if}
{if $tiki_p_view_poll_results == 'y' and $showresult ne 'always' and $showresult ne 'voted'}
<a class="linkmodule" href="tiki-poll_results.php?pollId={$menu_info.pollId}">{tr}View Results{/tr}</a><br>
({tr}Votes:{/tr} {$menu_info.votes})
{/if}
</div>
{if $prefs.feature_poll_comments and $comments_cant and !isset($module_params)}
<br>
{include file='comments_button.tpl'}
</div>
{/if}
</form>
This diff is collapsed.
{* $Id$ *}
{if $showtitle eq 'y'}
<div class="poll-title">
<strong>{$poll_info.title|escape}</strong>
</div>
<div class="poll-title">
<strong>{$poll_info.title|escape}</strong>
</div>
{/if}
<div class="pollresults">
<table class="pollresults">
{section name=ix loop=$poll_info.options}
<tr>
<td class="pollr">
{if $smarty.section.x.total > 1}<a href="tiki-poll_results.php?{if !empty($scoresort_desc)}scoresort_asc{else}scoresort_desc{/if}={$smarty.section.ix.index}">{/if}
{$poll_info.options[ix].title|escape}
{if $smarty.section.x.total > 1}</a>{/if}
</td>
<td class="pollr">
{quotabar length=$poll_info.options[ix].width} {$poll_info.options[ix].percent}%{if $showtotal ne 'n'} ({$poll_info.options[ix].votes}){/if}
</td>
</tr>
{/section}
</table>
<br>
{if $showtotal ne 'n'}
{tr}Number of votes:{/tr} {$poll_info.votes} {tr}votes{/tr}<br><br>
{/if}
{if is_numeric($poll_info.total)}
{tr}Total:{/tr} {$poll_info.total}<br>
{tr}Average:{/tr} {math equation="x/y" x=$poll_info.total y=$poll_info.votes format="%.2f"}
{/if}
<table class="pollresults">
{section name=ix loop=$poll_info.options}
<tr>
<td class="pollr">
{if $smarty.section.x.total > 1}<a href="tiki-poll_results.php?{if !empty($scoresort_desc)}scoresort_asc{else}scoresort_desc{/if}={$smarty.section.ix.index}">{/if}
{$poll_info.options[ix].title|escape}
{if $smarty.section.x.total > 1}</a>{/if}
</td>
<td class="pollr">
{quotabar length=$poll_info.options[ix].width} {$poll_info.options[ix].percent}%{if $showtotal ne 'n'} ({$poll_info.options[ix].votes}){/if}
</td>
</tr>
{/section}
</table>
<br>
{if $showtotal ne 'n'}
{tr}Number of votes:{/tr} {$poll_info.votes} {tr}votes{/tr}<br><br>
{/if}
{if is_numeric($poll_info.total)}
{tr}Total:{/tr} {$poll_info.total}<br>
{tr}Average:{/tr} {math equation="x/y" x=$poll_info.total y=$poll_info.votes format="%.2f"}
{/if}
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment