Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
433 ddelon 1
<?php echo  $this->FormOpen("", "", "get") ?>
2
<table border="0" cellspacing="0" cellpadding="0">
3
	<tr>
4
		<td>Ce que vous souhaitez chercher :&nbsp;</td>
5
		<td><input name="phrase" size="40" value="<?php echo  htmlentities($_REQUEST["phrase"]) ?>" /> <input type="submit" value="Chercher" /></td>
6
	</tr>
7
</table>
8
<?php echo  $this->FormClose(); ?>
9
 
10
<?php
11
if ($phrase = $_REQUEST["phrase"])
12
{
13
	print("<br />");
14
	if ($results = $this->FullTextSearch($phrase))
15
	{
16
		print("<b>Résultat(s) de la recherche de \"$phrase\":</b><br /><br />\n");
17
		foreach ($results as $i => $page)
18
		{
19
			print(($i+1).". ".$this->ComposeLinkToPage($page["tag"])."<br />\n");
20
		}
21
	}
22
	else
23
	{
24
		print("Aucun résultat pour \"$phrase\". :-(");
25
	}
26
}
27
 
28
?>