search for documents/folders only

This commit is contained in:
Uwe Steinmann 2015-06-02 08:52:36 +02:00
parent d32df44f7b
commit 4814c5cefe
2 changed files with 13 additions and 0 deletions

View File

@ -193,6 +193,9 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
* are found
*/
$resultmode = 0x03;
if (isset($_GET["resultmode"]) && is_numeric($_GET["resultmode"])) {
$resultmode = $_GET['resultmode'];
}
$mode = "AND";
if (isset($_GET["mode"]) && is_numeric($_GET["mode"]) && $_GET["mode"]==0) {

View File

@ -142,6 +142,16 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
</td>
</tr>
<tr>
<td><?php printMLText("search_resultmode");?>:</td>
<td>
<select name="resultmode">
<option value="3" <?php echo ($resultmode=='3') ? "selected" : ""; ?>><?php printMLText("search_resultmode_both");?>
<option value="2"<?php echo ($resultmode=='2') ? "selected" : ""; ?>><?php printMLText("search_mode_folders");?>
<option value="1"<?php echo ($resultmode=='1') ? "selected" : ""; ?>><?php printMLText("search_mode_documents");?>
</select>
</td>
</tr>
<tr>
<td><?php printMLText("under_folder")?>:</td>
<td><?php $this->printFolderChooser("form1", M_READ, -1, $startfolder);?></td>
</tr>