From: <ri...@us...> - 2008-03-30 15:57:15
|
Revision: 12266 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=12266&view=rev Author: ricks99 Date: 2008-03-30 08:57:10 -0700 (Sun, 30 Mar 2008) Log Message: ----------- [UI] remove find table if no records in list Modified Paths: -------------- branches/1.10/templates/tiki-lastchanges.tpl Modified: branches/1.10/templates/tiki-lastchanges.tpl =================================================================== --- branches/1.10/templates/tiki-lastchanges.tpl 2008-03-30 15:52:26 UTC (rev 12265) +++ branches/1.10/templates/tiki-lastchanges.tpl 2008-03-30 15:57:10 UTC (rev 12266) @@ -1,77 +1,79 @@ -<h1><a href="tiki-lastchanges.php?days={$days}" class="pagetitle">{tr}Last Changes{/tr}</a></h1> -<div class="navbar"> -<a class="linkbut" {if $days eq '1'}id="highlight"{/if} href="tiki-lastchanges.php?days=1">{tr}Today{/tr}</a> -<a class="linkbut" {if $days eq '2'}id="highlight"{/if} href="tiki-lastchanges.php?days=2">{tr}Last{/tr} 2 {tr}days{/tr}</a> -<a class="linkbut" {if $days eq '3'}id="highlight"{/if} href="tiki-lastchanges.php?days=3">{tr}Last{/tr} 3 {tr}days{/tr}</a> -<a class="linkbut" {if $days eq '5'}id="highlight"{/if} href="tiki-lastchanges.php?days=5">{tr}Last{/tr} 5 {tr}days{/tr}</a> -<a class="linkbut" {if $days eq '7'}id="highlight"{/if} href="tiki-lastchanges.php?days=7">{tr}Last{/tr} {tr}week{/tr}</a> -<a class="linkbut" {if $days eq '14'}id="highlight"{/if} href="tiki-lastchanges.php?days=14">{tr}Last{/tr} 2 {tr}weeks{/tr}</a> -<a class="linkbut" {if $days eq '31'}id="highlight"{/if} href="tiki-lastchanges.php?days=31">{tr}Last{/tr} {tr}month{/tr}</a> -<a class="linkbut" {if $days eq '0'}id="highlight"{/if} href="tiki-lastchanges.php?days=0">{tr}All{/tr}</a> -</div> -<table class="findtable"> -<tr><td class="findtable">{tr}Find{/tr}</td> - <td class="findtable"> - <form method="get" action="tiki-lastchanges.php"> - <input type="text" name="find" value="{$find|escape}" /> - <input type="submit" value="{tr}Find{/tr}" name="search" /> - <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> - <input type="hidden" name="days" value="0" /> - </form> - </td> -{if $findwhat != ""} - <td> - <a href="tiki-lastchanges.php" class="wiki">{tr}Search by Date{/tr}</a> - </td> -{/if} -</tr> -</table> -<br /> -{if $findwhat!=""} -{tr}Found{/tr} "<b>{$findwhat}</b>" {tr}in{/tr} {$cant_records} {tr}LastChanges{/tr} -{/if} -<div align="left"> -<table class="normal"> -<tr> -<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'lastModif_desc'}lastModif_asc{else}lastModif_desc{/if}">{tr}Date{/tr}</a></td> -<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'object_desc'}object_asc{else}object_desc{/if}">{tr}Page{/tr}</a></td> -<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'action_desc'}action_asc{else}action_desc{/if}">{tr}Action{/tr}</a></td> -<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'user_desc'}user_asc{else}user_desc{/if}">{tr}User{/tr}</a></td> -<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'ip_desc'}ip_asc{else}ip_desc{/if}">{tr}Ip{/tr}</a></td> -<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'comment_desc'}comment_asc{else}comment_desc{/if}">{tr}Comment{/tr}</a></td> -</tr> -{cycle values="odd,even" print=false} -{section name=changes loop=$lastchanges} -<tr class="{cycle}"> -<td> {$lastchanges[changes].lastModif|tiki_short_datetime} </td> -<td> <a href='tiki-index.php?page={$lastchanges[changes].pageName|escape:"url"}' class="tablename" title="{$lastchanges[changes].pageName}">{$lastchanges[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true}</a> -{if $lastchanges[changes].version} -(<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}'>{tr}hist{/tr}</a> {tr}v{/tr}{$lastchanges[changes].version}) - <a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&preview={$lastchanges[changes].version}' title="{tr}View{/tr}">v</a> -{if $tiki_p_rollback eq 'y'} -<a class="link" href='tiki-rollback.php?page={$lastchanges[changes].pageName|escape:"url"}&version={$lastchanges[changes].version}' title="{tr}Rollback{/tr}">b</a> -{/if} -<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&diff={$lastchanges[changes].version}' title="{tr}Compare{/tr}">c</a> -<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&diff2={$lastchanges[changes].version}' title="{tr}Diff{/tr}">d</a> -<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&source={$lastchanges[changes].version}' title="{tr}Source{/tr}">s</a> -{elseif $lastchanges[changes].versionlast} -(<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}'>{tr}hist{/tr}</a>) -{/if} - -</td> - -<td>{tr}{$lastchanges[changes].action}{/tr}</td> -<td> {$lastchanges[changes].user|userlink} </td> -<td> {$lastchanges[changes].ip} </td> -<td> {$lastchanges[changes].comment} </td> - -</tr> -{sectionelse} -<tr><td class="even" colspan="6"> -<b>{tr}No records found{/tr}</b> -</td></tr> -{/section} -</table> -<br /> -{pagination_links cant=$cant_records step=$prefs.maxRecords offset=$offset}{/pagination_links} -</div> +<h1><a href="tiki-lastchanges.php?days={$days}" class="pagetitle">{tr}Last Changes{/tr}</a></h1> +<div class="navbar"> +<a class="linkbut" {if $days eq '1'}id="highlight"{/if} href="tiki-lastchanges.php?days=1">{tr}Today{/tr}</a> +<a class="linkbut" {if $days eq '2'}id="highlight"{/if} href="tiki-lastchanges.php?days=2">{tr}Last{/tr} 2 {tr}days{/tr}</a> +<a class="linkbut" {if $days eq '3'}id="highlight"{/if} href="tiki-lastchanges.php?days=3">{tr}Last{/tr} 3 {tr}days{/tr}</a> +<a class="linkbut" {if $days eq '5'}id="highlight"{/if} href="tiki-lastchanges.php?days=5">{tr}Last{/tr} 5 {tr}days{/tr}</a> +<a class="linkbut" {if $days eq '7'}id="highlight"{/if} href="tiki-lastchanges.php?days=7">{tr}Last{/tr} {tr}week{/tr}</a> +<a class="linkbut" {if $days eq '14'}id="highlight"{/if} href="tiki-lastchanges.php?days=14">{tr}Last{/tr} 2 {tr}weeks{/tr}</a> +<a class="linkbut" {if $days eq '31'}id="highlight"{/if} href="tiki-lastchanges.php?days=31">{tr}Last{/tr} {tr}month{/tr}</a> +<a class="linkbut" {if $days eq '0'}id="highlight"{/if} href="tiki-lastchanges.php?days=0">{tr}All{/tr}</a> +</div> +{if $lastchanges} +<table class="findtable"> +<tr><td class="findtable">{tr}Find{/tr}</td> + <td class="findtable"> + <form method="get" action="tiki-lastchanges.php"> + <input type="text" name="find" value="{$find|escape}" /> + <input type="submit" value="{tr}Find{/tr}" name="search" /> + <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> + <input type="hidden" name="days" value="0" /> + </form> + </td> +{if $findwhat != ""} + <td> + <a href="tiki-lastchanges.php" class="wiki">{tr}Search by Date{/tr}</a> + </td> +{/if} +</tr> +</table> +{/if} +<br /> +{if $findwhat!=""} +{tr}Found{/tr} "<b>{$findwhat}</b>" {tr}in{/tr} {$cant_records} {tr}LastChanges{/tr} +{/if} +<div align="left"> +<table class="normal"> +<tr> +<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'lastModif_desc'}lastModif_asc{else}lastModif_desc{/if}">{tr}Date{/tr}</a></td> +<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'object_desc'}object_asc{else}object_desc{/if}">{tr}Page{/tr}</a></td> +<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'action_desc'}action_asc{else}action_desc{/if}">{tr}Action{/tr}</a></td> +<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'user_desc'}user_asc{else}user_desc{/if}">{tr}User{/tr}</a></td> +<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'ip_desc'}ip_asc{else}ip_desc{/if}">{tr}Ip{/tr}</a></td> +<td class="heading" bgcolor="#bbbbbb"><a class="tableheading" href="tiki-lastchanges.php?days={$days}&offset={$offset}&sort_mode={if $sort_mode eq 'comment_desc'}comment_asc{else}comment_desc{/if}">{tr}Comment{/tr}</a></td> +</tr> +{cycle values="odd,even" print=false} +{section name=changes loop=$lastchanges} +<tr class="{cycle}"> +<td> {$lastchanges[changes].lastModif|tiki_short_datetime} </td> +<td> <a href='tiki-index.php?page={$lastchanges[changes].pageName|escape:"url"}' class="tablename" title="{$lastchanges[changes].pageName}">{$lastchanges[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true}</a> +{if $lastchanges[changes].version} +(<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}'>{tr}hist{/tr}</a> {tr}v{/tr}{$lastchanges[changes].version}) + <a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&preview={$lastchanges[changes].version}' title="{tr}View{/tr}">v</a> +{if $tiki_p_rollback eq 'y'} +<a class="link" href='tiki-rollback.php?page={$lastchanges[changes].pageName|escape:"url"}&version={$lastchanges[changes].version}' title="{tr}Rollback{/tr}">b</a> +{/if} +<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&diff={$lastchanges[changes].version}' title="{tr}Compare{/tr}">c</a> +<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&diff2={$lastchanges[changes].version}' title="{tr}Diff{/tr}">d</a> +<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}&source={$lastchanges[changes].version}' title="{tr}Source{/tr}">s</a> +{elseif $lastchanges[changes].versionlast} +(<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}'>{tr}hist{/tr}</a>) +{/if} + +</td> + +<td>{tr}{$lastchanges[changes].action}{/tr}</td> +<td> {$lastchanges[changes].user|userlink} </td> +<td> {$lastchanges[changes].ip} </td> +<td> {$lastchanges[changes].comment} </td> + +</tr> +{sectionelse} +<tr><td class="even" colspan="6"> +<b>{tr}No records found{/tr}</b> +</td></tr> +{/section} +</table> +<br /> +{pagination_links cant=$cant_records step=$prefs.maxRecords offset=$offset}{/pagination_links} +</div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |