searchbar.php

Go to the documentation of this file.
00001 <?php
00002 
00003 require_once("logging-xmlrpc.inc.php");
00004 require_once("includes/auditCodesManager.php");
00005 $auditManager = new AuditCodesManager();
00006 
00007 if($_GET["filtertype"] == "object" or $_GET["filtertype"] == "user"){
00008 ?>
00009     
00010     <img src="graph/search.gif" style="vertical-align: middle;" alt="search" /> <span class="searchfield"><input type="text" class="searchfieldreal" style="width : 100px;" name="param" id="param" onkeyup="pushSearch(); return false;" />
00011     <img src="graph/croix.gif" alt="suppression" style="position:relative; top : 3px;"
00012     onclick="document.getElementById('param').value =''; pushSearch(); return false;" />
00013     </span>
00014     
00015 <?
00016 }
00017 else {
00018     $lst=array();
00019     if($_GET["filtertype"]=="action") {   
00020         $lst=get_action_type(1,0); 
00021     }
00022     else if($_GET["filtertype"]=="type") {   
00023         $lst=get_action_type(0,1);
00024     }
00025 ?>      
00026     <select style="width:100px; vertical-align: middle;" name="param" id="param" onChange="pushSearch(); return false;">
00027 <?php
00028     foreach ($lst as $key => $item){
00029         print "\t<option value=\"".$lst[$key]."\" >".$auditManager->getCode($item)."</option>\n";
00030     }    
00031 ?>
00032     </select>
00033 <?
00034 }

Generated on Tue May 4 11:47:29 2010 for MMC web interface by  doxygen 1.5.8