[Zope-CVS] CVS: Products/OSCOM/NOTSite/skins/NOTSite - site_search.pt:1.1 site_template_macros.pt:1.2
Tres Seaver
tseaver@zope.com
Mon, 26 May 2003 02:03:21 -0400
Update of /cvs-repository/Products/OSCOM/NOTSite/skins/NOTSite
In directory cvs.zope.org:/tmp/cvs-serv21746/skins/NOTSite
Modified Files:
site_template_macros.pt
Added Files:
site_search.pt
Log Message:
- Tweak date format, make search work.
=== Added File Products/OSCOM/NOTSite/skins/NOTSite/site_search.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="here/site_template/macros/master">
<body>
<div metal:fill-slot="main">
<h3> Search Results </h3>
<div tal:define="b_start python:0;b_start request/b_start | b_start;
results python:here.doFormSearch( REQUEST=request );
Batch python:modules['ZTUtils'].Batch;
global batch python:Batch(results, 25, b_start, orphan=1);
">
<p>Found <span tal:define="pss modules/Products.PythonScripts.standard"
tal:replace="python:pss.thousands_commas(len(results))">100</span> items
<span tal:condition="exists: request/SearchableText"
tal:replace="string:matching ${request/SearchableText}"></span>.
</p>
<table class="SearchResults">
<tr>
<td width="16"><br></td>
<th> Title
</th>
<th> Type
</th>
<th> Date
</th>
</tr>
<tbody tal:repeat="results batch"
tal:condition="results">
<tr>
<td tal:define="global objURL python: results.getURL() + '/view'">
<span tal:condition="results/getIcon|nothing">
<a href="" tal:attributes="href objURL"><img src="" border="0" alt="" title=""
tal:define="alt results/Type"
tal:attributes="src results/getIcon; alt alt; title alt">
</a>
</span>
</td>
<td>
<a href="" tal:attributes="href objURL"><span tal:condition="results/Title"
tal:content="results/Title">Title</span><span tal:condition="not:results/Title" tal:content="string:(No title)"></span></a>
</td>
<td><span tal:content="results/Type">Type</span></td>
<td tal:content="results/Date">Date</td>
</tr>
<tr>
<td> </td>
<td colspan="3">
<em><span tal:condition="results/Description"
tal:content="results/Description">Description</span>
<span tal:condition="not:results/Description"
tal:content="string:(No description)"></span></em>
</td>
</tr>
</tbody>
</table>
<div tal:condition="not:results"
tal:replace="string:There are no items matching your specified criteria"></div>
<p class="Desktop" tal:define="mq python:modules['ZTUtils'].make_query">
<span tal:define="p batch/previous" tal:condition="p">
<a href=""
tal:attributes="href python: '?' + mq( request.form, b_start=p.first )"
>Previous <span tal:replace="p/length">n</span> items</a>
</span>
<span tal:define="n batch/next" tal:condition="n">
<a href=""
tal:attributes="href python: '?' + mq( request.form, b_start=n.first )"
>Next <span tal:replace="n/length">n</span> items</a>
</span>
</p>
</div>
</div>
</body>
</html>
=== Products/OSCOM/NOTSite/skins/NOTSite/site_template_macros.pt 1.1 => 1.2 ===
--- Products/OSCOM/NOTSite/skins/NOTSite/site_template_macros.pt:1.1 Mon May 26 01:51:36 2003
+++ Products/OSCOM/NOTSite/skins/NOTSite/site_template_macros.pt Mon May 26 02:03:20 2003
@@ -21,7 +21,7 @@
<td> </td>
<td class="date_and_search">
- <span tal:replace="python:here.ZopeTime().ISO()">
+ <span tal:replace="python:here.ZopeTime().rfc822()">
Tue May 20 00:14:55 CEST 2003</span><br /><br />
<form method="get" action="site_search"
@@ -29,7 +29,7 @@
<table>
<tr>
<td>
- <input type="text" name="queryString" value="" size="10">
+ <input type="text" name="SearchableText" value="" size="10">
</td>
<td>
<input type="image" alt="Search" name="find" src="search.gif"