[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 include ("../inc/inc.Settings.php"); 3 include ("../inc/inc.AccessUtils.php"); 4 include ("../inc/inc.ClassAccess.php"); 5 include ("../inc/inc.ClassDocument.php"); 6 include ("../inc/inc.ClassFolder.php"); 7 include ("../inc/inc.ClassGroup.php"); 8 include ("../inc/inc.ClassUser.php"); 9 include ("../inc/inc.DBAccess.php"); 10 include ("../inc/inc.Language.php"); 11 include ("../inc/inc.OutUtils.php"); 12 include ("../inc/inc.Authentication.php"); 13 14 $folderid = (isset($_GET['folderid'])) ? (int) $_GET['folderid'] : NULL; 15 $currentFolder = getFolder($folderid); 16 17 printHTMLHead( getMLText("search") ); 18 ?> 19 20 <script language="JavaScript"> 21 22 function checkForm() 23 { 24 msg = ""; 25 if (document.form1.query.value == "") 26 { 27 if (document.form1.creationdate.checked || document.form1.lastupdate.checked) 28 document.form1.query.value = "%" 29 else 30 msg += "<?php printMLText("js_no_query");?>\n"; 31 } 32 33 if (msg != "") 34 { 35 alert(msg); 36 return false; 37 } 38 else 39 return true; 40 } 41 </script> 42 43 <?php 44 printTitleBar($currentFolder); 45 printCenterStart(); 46 47 printStartBox(getMLText("search")); 48 ?> 49 50 <form action="../op/op.Search.php" name="form1" onsubmit="return checkForm();"> 51 52 <table cellpadding="3"> 53 <tr> 54 <td class="inputDescription"><?php printMLText("search_query");?>:</td> 55 <td> 56 <input name="query"> 57 <select name="mode"> 58 <option value="and" selected><?php printMLText("search_mode_and");?><br> 59 <option value="or"><?php printMLText("search_mode_or");?> 60 </select> 61 </td> 62 </tr> 63 <tr> 64 <td valign="top" class="inputDescription"><?php printMLText("search_in");?>:</td> 65 <td class="standardText"> 66 <input type="Checkbox" name="searchin[]" value="keywords" checked><?php printMLText("keywords");?><br> 67 <input type="Checkbox" name="searchin[]" value="name"><?php printMLText("name");?><br> 68 <input type="Checkbox" name="searchin[]" value="comment"><?php printMLText("comment");?> 69 </td> 70 </tr> 71 <tr> 72 <td valign="top" class="inputDescription"><?php printMLText("owner");?>:</td> 73 <td class="standardText"> 74 <select name="ownerid"> 75 <option value="-1"><?php printMLText("all_users");?> 76 <?php 77 $allUsers = getAllUsers(); 78 foreach ($allUsers as $userObj) 79 { 80 if ($userObj->getID() == $settings->_guestID) 81 continue; 82 print "<option value=\"".$userObj->getID()."\">" . $userObj->getFullName() . "\n"; 83 } 84 ?> 85 </select> 86 </td> 87 </tr> 88 <tr> 89 <td valign="top" class="inputDescription"><?php printMLText("under_folder")?>:</td> 90 <td class="standardText"><?php printFolderChooser("form1", M_READ, -1, $currentFolder);?></td> 91 </tr> 92 <tr> 93 <td valign="top" class="inputDescription"><?php printMLText("creation_date");?>:</td> 94 <td class="standardText"> 95 <input type="Checkbox" name="creationdate" value="true"> 96 <?php 97 printMLText("between"); 98 print " "; 99 printDateChooser(-1, "createstart"); 100 print " "; 101 printMLText("and"); 102 print " "; 103 printDateChooser(-1, "createend"); 104 ?> 105 </td> 106 </tr> 107 <tr> 108 <td valign="top" class="inputDescription"><?php printMLText("last_update");?>:</td> 109 <td class="standardText"> 110 <input type="Checkbox" name="lastupdate" value="true"> 111 <?php 112 printMLText("between"); 113 print " "; 114 printDateChooser(-1, "updatestart"); 115 print " "; 116 printMLText("and"); 117 print " "; 118 printDateChooser(-1, "updateend"); 119 ?> 120 </td> 121 </tr> 122 <tr> 123 <td colspan="2"><br><input type="Submit"></td> 124 </tr> 125 126 </table> 127 128 </form> 129 130 <?php 131 printEndBox(); 132 printCenterEnd(); 133 printHTMLFoot(); 134 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |