Subversion Repositories computer_asset_manager_v2

Rev

Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 22
Line 31... Line 31...
31
<?php 
31
<?php 
32
   include_once('menu.php'); 
32
   include_once('menu.php'); 
33
?>
33
?>
34
<div id="content">
34
<div id="content">
35
   
35
   
-
 
36
   <form method="POST" enctype="multipart/form-data" name='search'>
-
 
37
      <table border="1" cellpadding="2" align="center">
-
 
38
         <tbody>
-
 
39
            <tr>
-
 
40
               <td align = 'center' colspan='2'>
-
 
41
                  Enter search phrase to find device<br />
-
 
42
                  Precede search phrase with <b>site:</b> or <b>client:</b><br />
-
 
43
                  to search for site or client<br />
-
 
44
                  This is a substring search!
-
 
45
               </td>
-
 
46
            </tr>
-
 
47
            <tr>
-
 
48
               <td>
-
 
49
                  Search
-
 
50
               </td>
-
 
51
               <td title='Enter substring to search for'>
-
 
52
                  <input type='text' name='searchfor' value=''>
-
 
53
               </td>
-
 
54
            </tr>
-
 
55
            <tr>
-
 
56
               <td colspan="2" align="center">
-
 
57
                  <input type="submit" name="search" value="Search">
-
 
58
               </td>
-
 
59
            </tr>
-
 
60
         </tbody>
-
 
61
      </table>
-
 
62
   </form>
36
<?php
63
<?php
-
 
64
   if ( isset( $_REQUEST['searchfor'] ) ) {
-
 
65
      print_r( doSearch( $_REQUEST['searchfor'] ) );
-
 
66
   }
37
   print '<pre>' . print_r( $_SESSION, true ) . print '</pre>';
67
   print '<pre>' . print_r( $_SESSION, true ) . print '</pre>';
38
   
68
   
39
   
69
   
40
   /*global $DATABASE_DEFINITION;
70
   /*global $DATABASE_DEFINITION;
41
   $camp = new DBDatabase( 'camp', $DATABASE_DEFINITION );
71
   $camp = new DBDatabase( 'camp', $DATABASE_DEFINITION );