Revision: 765
http://sciret.svn.sourceforge.net/sciret/?rev=765&view=rev
Author: alpeb
Date: 2008-10-26 20:08:42 +0000 (Sun, 26 Oct 2008)
Log Message:
-----------
templetized search results
Modified Paths:
--------------
trunk/templates/SearchResults.tpl
Modified: trunk/templates/SearchResults.tpl
===================================================================
--- trunk/templates/SearchResults.tpl 2008-10-26 20:07:28 UTC (rev 764)
+++ trunk/templates/SearchResults.tpl 2008-10-26 20:08:42 UTC (rev 765)
@@ -9,47 +9,44 @@
*/
-->
-<table width=100% cellspacing=0 cellpadding=0>
- <tr class="th">
- <td style="padding:3px">
- <div style="position:relative; text-align:center; font-weight:bold;">
+<div>
+ <div class="title_view">
+ <div class="title_content" style="position:relative">
+ <span>
[l]Search Results[/l]
- <span style="position:absolute; right:0">
- <a href="javascript:void(0)" onclick="addFavorite('searchResults')"><img id="favoriteStarImg" src="images/star.png" alt="[l]Add results to favorites[/l]" title="[l]Add results to favorites[/l]" style="display:{favoriteSearchResultsStarImgDisplay}" /><img id="unFavoriteStarImg" src="images/star_crossed.png" alt="[l]Remove results from favorites[/l]" title="[l]Remove results from favorites[/l]" style="display:{unFavoriteSearchResultsStarImgDisplay}" /><img id="favoriteProgressImg" src="images/progress.gif" style="display:none" /></a>
- </span>
- </div>
- </td>
- </tr>
+ <a href="javascript:void(0);" onclick="addFavorite('searchResults');"><img id="favoriteStarImg" src="images/icon_favorite_16.png" alt="[l]Add results to favorites[/l]" title="[l]Add results to favorites[/l]" style="display:{favoriteSearchResultsStarImgDisplay}" /><img id="unFavoriteStarImg" src="images/star_crossed.png" alt="[l]Remove results from favorites[/l]" title="[l]Remove results from favorites[/l]" style="display:{unFavoriteSearchResultsStarImgDisplay}"/><img id="favoriteProgressImg" src="images/progress.gif" style="display:none" /></a>
+ </span>
+ </div>
+ </div><!--end title_view-->
+
<!-- BEGIN numResults_block -->
- <tr>
- <td style="text-align:right">
- <b>{numDocsFound}</b> [l]documents found[/l] (<b>{searchTime}</b> [l]seconds[/l])
- </td>
- </tr>
+ <div>
+ <b>{numDocsFound}</b> [l]documents found[/l] (<b>{searchTime}</b> [l]seconds[/l])
+ </div>
<!-- END numResults_block -->
- <tr>
- <td>
- <!-- BEGIN articles_block -->
- <i>({art_num}) </i>
- <img src="images/{articleImage}" />
- <a href="{art_link}" {target} style="font-weight:bold; font-size:17px">{art_title}</a> {bookmark_edit}<br />
- <div>{modifOrCreated} {art_date} - {img_stars} {attachment}</div>
- <div style='font-size:15px;color:green'>{art_category}</div>
- <div style="font-size:12px">{art_excerpt}<div><br />
- <!-- END articles_block -->
- <!-- BEGIN nothingFound_block -->
- <div style="font-weight; margin-top:20px">
- [l]Your search[/l] - <b>{query}</b> - [l]did not match any documents.[/l]<br /><br />
- [l]Suggestions[/l]:
- <ul>
- <li>[l]Make sure all words are spelled correctly.[/l]</li>
- <li>[l]Try different keywords.[/l]</li>
- <li>[l]Try with rare keywords, that would more likely appear in the kind of document you're looking for.[/l]</li>
- </ul>
- </div>
- <!-- END nothingFound_block -->
- {paginationLinks}
- </td>
- </tr>
-</table>
+
+ <!-- BEGIN articles_block -->
+ <h2>
+ <i>({art_num}) </i>
+ <img src="images/{articleImage}" />
+ <a href="{art_link}" {target}>{art_title}</a> {bookmark_edit}
+ </h2>
+ <div>
+ {modifOrCreated} {art_date} - {img_stars} {attachment}
+ </div>
+ <div class="art_category">{art_category}</div>
+ <p>{art_excerpt}</p>
+ <!-- END articles_block -->
+ <!-- BEGIN nothingFound_block -->
+ <div style="margin-top:15px">
+ [l]Your search[/l] - <b>{query}</b> - [l]did not match any documents.[/l]<br /><br />
+ [l]Suggestions[/l]:
+ <ul>
+ <li>[l]Make sure all words are spelled correctly.[/l]</li>
+ <li>[l]Try different keywords.[/l]</li>
+ <li>[l]Try with rare keywords, that would more likely appear in the kind of document you're looking for.[/l]</li>
+ </ul>
+ </div>
+ <!-- END nothingFound_block -->
+</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|