<dtml-var standard_html_header>

<h2><dtml-var title_or_id> <dtml-var document_title></h2>

<p><dtml-var "_.getitem('search-form', 0)(_.None, _, show_button=1)"></p>

<dtml-let catalog="_.getitem('search-catalog', 0)">
<dtml-if text_search>
<dtml-call "REQUEST.set('search1', catalog(PrincipiaSearchSource=text_search))">
<dtml-call "REQUEST.set('search2', catalog(title=text_search))">
<dtml-call "REQUEST.set('results', search1 + search2)">
<dtml-else>
<dtml-call "REQUEST.set('results', catalog(REQUEST=REQUEST))">
</dtml-if>
</dtml-let>

<dtml-if results>
<dtml-with results>
<p>Найдено <dtml-var "_.len(results)"> документов.</p>
<dtml-in results previous size=20 start=query_start>
<p class="small"><a href="<dtml-var URL><dtml-var sequence-query>query_start=<dtml-var previous-sequence-start-number>">(Предыдущие <dtml-var previous-sequence-size>)</a></p>
</dtml-in>

<table>
<tr valign=top>
   <th>Заголовок</th>
   <th>Время модификации</th>
</tr>

<dtml-in results sort="bobobase_modification_time/cmp/desc,title/locale" size=20 start=query_start>
<tr valign=top>
   <td class="listitem"><a href="<dtml-var VirtualRoot>/<dtml-var "getURL()[_.len(RealPARENT)+1:]" url_quote>"><dtml-var "getObject().title_or_id()" size=30></a></td>
   <td class="listitem"><dtml-with "getObject().bobobase_modification_time()"><dtml-var "'%04d-%02d-%02d %02d:%02d' % (year(), month(), day(), hour(), minute())"></dtml-with></td>
</tr>
</dtml-in>
</table>

<dtml-in results next size=20 start=query_start>
<p class="small"><a href="<dtml-var URL><dtml-var sequence-query>query_start=<dtml-var next-sequence-start-number>">(Следующие <dtml-var next-sequence-size>)</a></p>
</dtml-in>
</dtml-with results>

<dtml-else>
   <p>Не найдено ни одного документа.</p>
</dtml-if results>

<dtml-var standard_html_footer>