Small fixes for pagination, convert some spaces to tabs, small style fix.

This commit is contained in:
robert%accettura.com 2006-09-14 22:34:44 +00:00
Родитель d0450153cb
Коммит 7c9800806f
2 изменённых файлов: 51 добавлений и 48 удалений

Просмотреть файл

@ -24,6 +24,7 @@ body {
/**************** Pagination Navigation */
#reporter-content .navigation {
text-align: center;
margin-top: 4em;
}
#reporter-content .navigation .currentPage {

Просмотреть файл

@ -18,7 +18,7 @@
<table id="reporterQuery" class="fixedTable" cellspacing="0" cellpadding="0" style="width:100%">
<tr class="header">
{section name=mysec loop=$column}
<th>{if $column[mysec].url != null}<a href="{$column[mysec].url}">{/if}{$column[mysec].text}{if $column[mysec].url != null}</a>{/if}</th>
<th>{if $column[mysec].url != null}<a href="{$column[mysec].url}">{/if}{$column[mysec].text}{if $column[mysec].url != null}</a>{/if}</th>
{/section}
</tr>
{if $method == 'html'}
@ -26,20 +26,20 @@
<tr class="data{cycle values=', alt'}">
{section name=col loop=$row[mysec2]}
<td>
{strip}
{if $row[mysec2][col].url != null}
<a href="{$base_url}/app{$row[mysec2][col].url}">
{/if}
{if $row[mysec2][col].col == 'report_url'}
{$row[mysec2][col].text|truncate:50}
{else}
{$row[mysec2][col].text|truncate:100}
{/if}
{if $row[mysec2][col].url != null}
</a>
{/if}
{/strip}
</td>
{strip}
{if $row[mysec2][col].url != null}
<a href="{$base_url}/app{$row[mysec2][col].url}">
{/if}
{if $row[mysec2][col].col == 'report_url'}
{$row[mysec2][col].text|truncate:50}
{else}
{$row[mysec2][col].text|truncate:100}
{/if}
{if $row[mysec2][col].url != null}
</a>
{/if}
{/strip}
</td>
{/section}
</tr>
{/section}
@ -48,37 +48,39 @@
{/if}
{if $method == 'html'}
{if $count > $show}
<div class="navigation">
{strip}
{if $page > 1}
<a href="?{$continuity_params}&amp;page={$page-1}">&lt;</a>
{/if}
{/strip}
{section name=pageLoop start=$start loop=$start+$amt step=$step}
{strip}&nbsp; <a href="{$base_url}/app/query/?{$continuity_params}&amp;page={$smarty.section.pageLoop.index}"
{if $smarty.section.pageLoop.index == $page}class="currentPage"{/if}
>{$smarty.section.pageLoop.index}</a>
{/strip}
{/section}
{strip}
{if $page < $pages}
&nbsp; <a href="{$base_url}/app/query/?{$continuity_params}&amp;page={$page+1}">&gt;</a>
{/if}
{/strip}
<hr />
{*
<pre>
Count: {$count}
Page: {$page}
Show: {$show}
Start: {$start}
Max: {$max}
TotPage: {$pages}
</pre>
*}
<br />
<p><small>Your query returned {$count} reports</small></p>
</div>
{/if}
{if $count > $show}
<div class="navigation">
{strip}
{if $page > 1}
<a href="?{$continuity_params}&amp;page={$page-1}" accesskey="p" >Previous</a>
{/if}
{/strip}
&nbsp;
{section name=pageLoop start=$start loop=$start+$amt step=$step}
{strip}&nbsp; <a href="{$base_url}/app/query/?{$continuity_params}&amp;page={$smarty.section.pageLoop.index}"
{if $smarty.section.pageLoop.index == $page}class="currentPage"{/if}
> {$smarty.section.pageLoop.index}</a>
{/strip}
{/section}
&nbsp;
{strip}
{if $page < $pages}
<a href="{$base_url}/app/query/?{$continuity_params}&amp;page={$smarty.section.pageLoop.index}" accesskey="n" >Next</a>
{/if}
{/strip}
{*
<pre>
Count: {$count}
Page: {$page}
Show: {$show}
Start: {$start}
Max: {$max}
TotPage: {$pages}
</pre>
*}
<br />
<p><small>Your query returned {$count} reports</small></p>
</div>
{/if}
{/if}