Commit:    672d62c52d1b02c2b7e5b0d7e26590d9eb6642e4
Author:    Hannes Magnusson <[email protected]>         Thu, 12 Dec 2013 
15:15:59 -0800
Parents:   4b277e91ec494305cdfa58556a8f205e580352af
Branches:  master

Link:       
http://git.php.net/?p=web/master.git;a=commitdiff;h=672d62c52d1b02c2b7e5b0d7e26590d9eb6642e4

Log:
Move searchbox from the page itself, into the header

Changed paths:
  M  manage/event.php
  M  manage/users.php


Diff:
diff --git a/manage/event.php b/manage/event.php
index 6639a11..390c340 100644
--- a/manage/event.php
+++ b/manage/event.php
@@ -224,11 +224,6 @@ if ($id) {
    <a href="<?php echo PHP_SELF?>">see upcoming events</a>
    | <a href="<?php echo PHP_SELF . "?unapproved=1"?>">see unapproved 
events</a>
   </td>
-  <td align="right">
-   <form method="GET" action="<?php echo PHP_SELF;?>">
-    <input type="text" name="search" value="<?php echo clean($search);?>" />
-    <input type="submit" value="search">
-   </form>
  </tr>
 </table>
 <?php
diff --git a/manage/users.php b/manage/users.php
index 6dbb6ea..9841e73 100644
--- a/manage/users.php
+++ b/manage/users.php
@@ -371,13 +371,6 @@ table.useredit tr {
 }
 ?>
 <div>
-<div style="float:right">
-   <form method="GET" action="<?php echo PHP_SELF;?>">
-    <input type="text" name="search" value="<?php echo clean($search);?>" />
-    <input type="submit" value="search"><br>
-    <input type="checkbox" name="searchnotes" value="1" <?php echo 
isset($_GET['searchnotes']) ? 'checked="checked"' : ''?>> Search notes
-   </form>
-</div>
 <div>
     <a href="<?php echo PHP_SELF . 
"?username={$_SESSION["username"]}";?>">edit your entry</a>
   | <a href="<?php echo PHP_SELF . "?unapproved=1";?>">see outstanding 
requests</a>
@@ -388,7 +381,7 @@ table.useredit tr {
 $begin = $begin ? (int)$begin : 0;
 $full = $full ? 1 : (!$full && ($search || $unapproved) ? 1 : 0);
 $max = $max ? (int)$max : 20;
-$searchnotes = !empty($_GET['searchnotes']);
+$searchnotes = !empty($_GET['searchnotes']); /* FIXME: There is no such option 
in the search box.. */
 
 $query = "SELECT DISTINCT SQL_CALC_FOUND_ROWS 
users.userid,cvsaccess,username,name,email FROM users ";
 if  ($search) {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to