/[gnuheter]/gnuheter/search.php
ViewVC logotype

Diff of /gnuheter/search.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by pawal, Sun Aug 4 13:46:47 2002 UTC revision 1.6 by metaur, Thu Oct 3 22:05:55 2002 UTC
# Line 42  echo "<div align=\"center\"><font size=\ Line 42  echo "<div align=\"center\"><font size=\
42  <tr><td>  <tr><td>
43  <img src="<?= "$tipath$topicimage"; ?>" align="right" border="0" alt="<?= "$topictext"; ?>">  <img src="<?= "$tipath$topicimage"; ?>" align="right" border="0" alt="<?= "$topictext"; ?>">
44  <form method="GET">  <form method="GET">
45  <input size="25" type="name" name="query" value="<?= $query; ?>">  <input size="25" type="name" name="query" value="<?= htmlspecialchars($query); ?>">
46  <input type="submit" value="Sök" class="button"><br>  <input type="submit" value="Sök" class="button"><br>
47  <!-- Topic Selection -->  <!-- Topic Selection -->
48  <?  <?
# Line 111  if ($type == "stories" or !$type) { Line 111  if ($type == "stories" or !$type) {
111          }          }
112          $prev = $min - $offset;          $prev = $min - $offset;
113          if ($prev >= 0) {          if ($prev >= 0) {
114                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=$query&type=$type\">";                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=".urlencode($query)."&type=$type\">";
115                  print "<br><br><div align\"center\"><b>$min tidigare</b></div></a>";                  print "<br><br><div align\"center\"><b>$min tidigare</b></div></a>";
116          }          }
117          $next = $min + $offset;          $next = $min + $offset;
118          if ($x>=29) {          if ($x>=29) {
119                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=$query&type=$type";                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=".urlencode($query)."&type=$type";
120                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>";                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>";
121          }          }
122  } elseif ($type == "comments") {  } elseif ($type == "comments") {
# Line 142  if ($type == "stories" or !$type) { Line 142  if ($type == "stories" or !$type) {
142          }          }
143          $prev = $min - $offset;          $prev = $min - $offset;
144          if ($prev >= 0) {          if ($prev >= 0) {
145                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=$query&type=$type\">";                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=".urlencode($query)."&type=$type\">";
146                  print "<br><br><div align=\"center\"><b>$min tidigare</b></div></a>";                  print "<br><br><div align=\"center\"><b>$min tidigare</b></div></a>";
147          }          }
148          $next = $min + $offset;          $next = $min + $offset;
149          if ($x >= 29) {          if ($x >= 29) {
150                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=$query&type=$type";                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=".urlencode($query)."&type=$type";
151                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>";                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>";
152          }          }
153  } elseif ($type == "sections") {  } elseif ($type == "sections") {
# Line 171  if ($type == "stories" or !$type) { Line 171  if ($type == "stories" or !$type) {
171          }          }
172          $prev = $min - $offset;          $prev = $min - $offset;
173          if ($prev >= 0) {          if ($prev >= 0) {
174                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=$query&type=$type\">";                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=".urlencode($query)."&type=$type\">";
175                  print "<br><br><div align=\"center\"><b>$min tidigare</b></div></a>";                  print "<br><br><div align=\"center\"><b>$min tidigare</b></div></a>";
176          }          }
177          $next = $min + $offset;          $next = $min + $offset;
178          if ($x >= 29) {          if ($x >= 29) {
179                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=$query&type=$type";                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=".urlencode($query)."&type=$type";
180                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>";                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>";
181          }          }
182  } elseif ($type == "users") {  } elseif ($type == "users") {
# Line 200  if ($type == "stories" or !$type) { Line 200  if ($type == "stories" or !$type) {
200          }          }
201          $prev = $min - $offset;          $prev = $min - $offset;
202          if ($prev >= 0) {          if ($prev >= 0) {
203                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=$query&type=$type\">";                  print "<a href=\"search.php?author=$author&topic=$t&min=$prev&query=".urlencode($query)."&type=$type\">";
204                  print "<br><br><div align=\"center\"><b>$min tidigare</b></div></a>";                  print "<br><br><div align=\"center\"><b>$min tidigare</b></div></a>";
205          }          }
206          $next = $min + $offset;          $next = $min + $offset;
207          if ($x >= 29) {          if ($x >= 29) {
208                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=$query&type=$type";                  print "<a href=\"search.php?author=$author&topic=$t&min=$max&query=".urlencode($query)."&type=$type";
209                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sidan</b></div></a>";                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sidan</b></div></a>";
210          }          }
211  }  }
212  html_page_foot();  html_page_foot();
213  include('footer.php');  include('footer.php');
214  break;  exit; # break;
215    
216  ?>  ?>

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26