|
1 | 1 | <div style="background-color:white" class="span8 well well-small">
|
2 | 2 | <h3 style="text-align:center;">Scripts</h3>
|
| 3 | + {*{include file="pagination.tpl"}*} |
3 | 4 | <table class="table table-hover">
|
4 | 5 | {foreach $resultArray as $result}{$pubID = $result.pubID}
|
5 | 6 | {if $result}<tr style="cursor:pointer" onclick='document.location.href="{buildURL page='view/'}{$result.pubID}"'><td>
|
6 | 7 | <span class="pull-left"><a href="{buildURL page='view/'}{$result.pubID}">{$result.name}</a></span> <span class="pull-right" data-placement="right" rel="tooltip" title="Views"><i class="icon-eye-open"></i> {$result.views}</span>
|
7 |
| - <br><small>Author: {$result.author}</small><span class="pull-right" data-placement="right" rel="tooltip" title="Likes"><i class="icon-thumbs-up"></i> {if $result.author=="AgentKid"} ∞{else}{$result.likes}{/if}</span> |
| 8 | + <br><small><b>Author:</b> {$result.author} <b style="padding-left:5em;">Created:</b> {$result.timestamp|date_format:"%D"}{if $result.timestamp!=$result.edited} <b style="padding-left:5em;">Edited:</b> {$result.edited|date_format:"%D"} {/if}</small><span class="pull-right" data-placement="right" rel="tooltip" title="Likes"><i class="icon-thumbs-up"></i> {if $result.author=="AgentKid"} ∞{else}{$result.likes}{/if}</span> |
8 | 9 | <br><small><span class="muted">Tags: {$result.tags}</span></small><span class="pull-right" data-placement="right" rel="tooltip" title="Downloads"><i class="icon-download"></i> {$result.downloads}</span>
|
9 | 10 | </td></tr>{/if}
|
10 | 11 | {/foreach}
|
|
29 | 30 | {if $sortType!="mostViewed"}<li><a href="{buildURL page='browse/'}{$listingType}/mostViewed/{$resultPageNumber}/{$resultsPerPage}/">Sort by number of views</a></li>{/if}
|
30 | 31 | {if $sortType!="mostDownloads"}<li><a href="{buildURL page='browse/'}{$listingType}/mostDownloads/{$resultPageNumber}/{$resultsPerPage}/">Sort by number of downloads</a></li>{/if}
|
31 | 32 | </ul>
|
| 33 | + </div><br> |
| 34 | + <div class="btn-group"> |
| 35 | + <a class="btn dropdown-toggle" data-toggle="dropdown">{if $resultsPerPage==20}20 results per page.{elseif $resultsPerPage==50}50 results per page.{elseif $resultsPerPage==100}100 results per page.{elseif $resultsPerPage==200}200 results per page.{/if} <span class="caret"></span></a> |
| 36 | + <ul class="dropdown-menu"> |
| 37 | + {if $resultsPerPage!=20}<li><a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/20/">Show 20 results per page</a></li>{/if} |
| 38 | + {if $resultsPerPage!=50}<li><a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/50/">Show 50 results per page</a></li>{/if} |
| 39 | + {if $resultsPerPage!=100}<li><a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/100/">Show 100 results per page</a></li>{/if} |
| 40 | + {if $resultsPerPage!=200}<li><a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/200/">Show 200 results per page</a></li>{/if} |
| 41 | + </ul> |
32 | 42 | </div>
|
33 | 43 | </div>
|
34 | 44 | <div style="background-color:white" class="span3 well well-small">
|
|
40 | 50 | </table>
|
41 | 51 | </div>
|
42 | 52 | <!-- Navigation -->
|
43 |
| -<div id="navigation" style="text-align:center;"> |
44 |
| - Results per page: {if $resultsPerPage!=20}<a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/20">{/if}20{if $resultsPerPage!=20}</a>{/if}, {if $resultsPerPage!=50}<a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/50">{/if}50{if $resultsPerPage!=50}</a>{/if}, {if $resultsPerPage!=100}<a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/100">{/if}100{if $resultsPerPage!=100}</a>{/if}, {if $resultsPerPage!=200}<a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$resultPageNumber}/200">{/if}200{if $resultsPerPage!=200}</a>{/if} |
| 53 | +<div class="span11" id="navigation" style="text-align:center;padding-bottom:12px"> |
45 | 54 | <div class="pagination pagination-centered">
|
46 | 55 | <ul>
|
47 | 56 | {if $resultPageNumber==1}<li class="disabled"><a>Prev</a></li>
|
48 |
| - {else}<li><a href="{buildURL page='browse/'}{$listingType}/{math equation="x-1" x=$resultPageNumber}/{$resultsPerPage}/">Prev</a></li> |
| 57 | + {else}<li><a href="{buildURL page='browse/'}{$listingType}/{$sortType}/{math equation="x-1" x=$resultPageNumber}/{$resultsPerPage}/">Prev</a></li> |
49 | 58 | {/if}{foreach $resultPages as $pageItem}{$maxPage = $pageItem}
|
50 | 59 | <li{if $pageItem==$resultPageNumber} class="disabled"{/if}><a{if $pageItem!=$resultPageNumber} href="{buildURL page='browse/'}{$listingType}/{$sortType}/{$pageItem}/{$resultsPerPage}/"{/if}>{$pageItem}</a></li>{/foreach}
|
51 | 60 | {if $resultPageNumber==$maxPage}<li class="disabled"><a>Next</a></li>
|
|
0 commit comments