88 lines
2.7 KiB
XML
88 lines
2.7 KiB
XML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
|
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
|
xmlns:metal="http://xml.zope.org/namespaces/metal"
|
|
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
lang="en"
|
|
metal:use-macro="context/main_template/macros/master"
|
|
i18n:domain="themis.search">
|
|
<body>
|
|
|
|
<metal:main fill-slot="main">
|
|
<tal:main-macro metal:define-macro="main">
|
|
<tal:block tal:define="Batch python:modules['Products.CMFPlone'].Batch;
|
|
mq python:modules['ZTUtils'].make_query;
|
|
url batch_base_url | request/ACTUAL_URL;
|
|
batchformkeys batchformkeys|nothing;
|
|
b_size python:50; b_size request/b_size | b_size;
|
|
b_start python:0;b_start request/b_start | b_start;
|
|
results view/search_results;
|
|
batch python:Batch(list(results), b_size, int(b_start), orphan=1);
|
|
">
|
|
|
|
<h1 class="documentFirstHeading">Recherche de courrier</h1>
|
|
|
|
<form method="post" action="mailsearch#results">
|
|
<div tal:replace="structure view/form"/>
|
|
</form>
|
|
|
|
<div id="results">
|
|
<div class="resultsinfobox">
|
|
<span>Nombre de résultats : <span tal:replace="python:len(results)"/></span>
|
|
</div>
|
|
|
|
<div class="results-var">
|
|
<div class="results">
|
|
<table>
|
|
<tal:entry tal:repeat="item batch">
|
|
<tr tal:define="oddrow repeat/item/odd;" tal:attributes="class python: oddrow and 'odd' or 'even'">
|
|
<td class="date" tal:content="string: ${item/dateCourrier/day}/${item/dateCourrier/month}/${item/dateCourrier/year}"></td>
|
|
<td><a tal:attributes="href item/getURL" tal:content="item/Title"></a></td>
|
|
</tr>
|
|
</tal:entry>
|
|
</table>
|
|
</div>
|
|
<style>
|
|
.results table tr {
|
|
line-height: 250%;
|
|
}
|
|
|
|
.results table tr.even {
|
|
background: #eee;
|
|
}
|
|
|
|
td.date {
|
|
text-align: right;
|
|
width: 7em;
|
|
padding-right: 1em;
|
|
}
|
|
</style>
|
|
|
|
<div tal:condition="python: len(results)">
|
|
<div metal:use-macro="view/batch_macros/macros/navigation" />
|
|
</div>
|
|
|
|
<script>
|
|
if(typeof(String.prototype.trim) === "undefined") {
|
|
String.prototype.trim = function()
|
|
{
|
|
return String(this).replace(/^\s+|\s+$/g, '');
|
|
};
|
|
}
|
|
|
|
(function($) {
|
|
$().ready(function() {
|
|
$('input.contact-field').prevAll('select').change(function() {
|
|
selected_option = $(this).val();
|
|
$(this).nextAll('input.contact-field').val(selected_option.split('(')[0].trim());
|
|
});
|
|
});
|
|
})(jQuery);
|
|
</script>
|
|
|
|
</tal:block>
|
|
</tal:main-macro>
|
|
</metal:main>
|
|
|
|
</body>
|
|
</html>
|