4 include('menulist.html');
5 include('configuration');
6 include('searchengine.php');
9 if(isset($_POST['search'])) {
10 $searchtext = $_REQUEST['searchtext'];
11 $in = $_REQUEST['searchmenu'];
12 if(trim($searchtext) == '') {
13 echo '<div align="center"><font color="RED">Please enter some keyword to search</font></div>';
17 else if($_GET['author'] != '') {
18 $searchtext = $_GET['author'];
21 else if ($_GET['disp'] == 'all') {
28 $result = searchdb($searchtext, $in, $db);
29 echo '<table align="left" border="0" cellpadding="8" cellspacing="1">';
30 if($row = sqlite3_fetch_array($result))
31 echo "<tr><td><a href=\"dispmoduleinfo.php?module=".$row['module']."\">".$row["module"]."</a></br>".
32 "<a href=\"search.php?author=".$row["author"]."\">".$row["author"]."</a> : ". $row["title"]." </br> </br></td></tr>";
34 echo '<div align="center"><font color="RED"> No results found</font></div>';
35 while($row = sqlite3_fetch_array($result)) {
36 echo "<tr><td><a href=\"dispmoduleinfo.php?module=".$row['module']."\">".$row["module"]."</a></br>".
37 "<a href=\"search.php?author=".$row["author"]."\">".$row["author"]."</a> : ". $row["title"]." </br> </br></td></tr>";