Commit c4dbec6e authored by sylvieg's avatar sylvieg

[MOD]print: display the find box as usual + find also on the structures as well as the pages

parent 5febf11a
......@@ -2,24 +2,23 @@
<div class="cbox">
<div class="cbox-title">
{tr}Filter{/tr}
{tr}Print Wiki Pages{/tr}
</div>
<div class="cbox-data">
<table class="findtable">
<tr><td class="findtable">{tr}Find{/tr}</td>
<td class="findtable">
</div>
<div class="cbox-data">
<form action="tiki-print_pages.php" method="post">
<input type="hidden" name="sendarticles" value="{$form_sendarticles|escape}" />
<input type="hidden" name="printpages" value="{$form_printpages|escape}" />
{tr}Filter{/tr}:<input type="text" name="find" value="{$find|escape}" /><input type="submit" name="filter" value="{tr}Filter{/tr}" /><br />
<input type="text" name="find" value="{$find|escape}" /><input type="submit" name="filter" value="{tr}Find{/tr}" /><br />
</form>
</div>
</div>
<br />
</td>
</tr>
</table>
<div class="cbox">
<div class="cbox-title">
{tr}Print Wiki Pages{/tr}
</div>
<div class="cbox-data">
<form action="tiki-print_pages.php" method="post">
<input type="hidden" name="printpages" value="{$form_printpages|escape}" />
<input type="hidden" name="find" value="{$find|escape}" />
......@@ -57,7 +56,7 @@
{/section}
</ul>
<br />
<input type="submit" name="clearpages" value="{tr}clear{/tr}" />
<input type="submit" name="clearpages" value="{tr}Clear{/tr}" />
{/if}
</form>
{if $printpages}{* only show print button if there is something to print *}
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-print_pages.php,v 1.18 2007-03-06 19:29:50 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-print_pages.php,v 1.19 2007-08-02 10:45:18 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -76,7 +76,7 @@ $smarty->assign('form_printpages', $form_printpages);
$pages = $tikilib->list_pageNames(0, -1, 'pageName_asc', $find);
$smarty->assign_by_ref('pages', $pages["data"]);
$structures = $structlib->list_structures(0,-1,'pageName_asc',0);
$structures = $structlib->list_structures(0,-1,'pageName_asc',$find);
$smarty->assign_by_ref('structures',$structures["data"]);
include_once ('tiki-section_options.php');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment