Menu

[r15]: / search / createsearch.php  Maximize  Restore  History

Download this file

106 lines (88 with data), 3.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
<?php
/*
** Application name: phpCollab
** Last Edit page: 2003-10-23
** Path by root: ../search/createsearch.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: createsearch.php
**
** DESC: Screen: CREATE SEARCH
**
** HISTORY:
** 12/04/2005 - added the subtask search http://www.php-collab.org/community/viewtopic.php?t=1938
** -----------------------------------------------------------------------------
** TO-DO:
**
**
** =============================================================================
*/
$checkSession = "true";
include_once('../includes/library.php');
//test required field searchfor
if ($action == "search") {
//if searchfor blank, $error set
if ($searchfor == "") {
$error = $strings["search_note"];
//if searchfor not blank, redirect to searchresults
} else {
$searchfor = urlencode($searchfor);
headerFunction("../search/resultssearch.php?searchfor=$searchfor&heading=$heading&".session_name()."=".session_id());
exit;
}
}
$setTitle .= " : Search";
$bodyCommand = "onLoad=\"document.searchForm.searchfor.focus()\"";
include('../themes/'.THEME.'/header.php');
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../search/createsearch.php?",$strings["search"],in));
$blockPage->itemBreadcrumbs($strings["search_options"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
include('../includes/messages.php');
$blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "search";
$block1->openForm("../search/createsearch.php?action=search&".session_name()."=".session_id());
if ($error != "") {
$block1->headingError($strings["errors"]);
$block1->contentError($error);
}
$block1->heading($strings["search"]);
$block1->openContent();
$block1->contentTitle($strings["enter_keywords"]);
echo "
<tr class='odd'>
<td valign='top' class='leftvalue'>* ".$strings["search_for"]." :</td>
<td>
<input value='' type='text' name='searchfor' style='width: 200px;' size='30' maxlength='64' />
<select name='heading'>
<option selected value='ALL'>".$strings["all_content"]."</option>
<option value='notes'>".$strings["notes"]."</option>
<option value='organizations'>".$strings["organizations"]."</option>
<option value='projects'>".$strings["projects"]."</option>
<option value='tasks'>".$strings["tasks"]."</option>
<option value='subtasks'>".$strings["subtasks"]."</option>
<option value='discussions'>".$strings["discussions"]."</option>
<option value='members'>".$strings["users"]."</option>
</select>
</td>
</tr>
<tr class='odd'>
<td valign='top' class='leftvalue'>&nbsp;</td>
<td><input type='submit' name='Save' value='".$strings["search"]."' /></td>
</tr>";
$block1->closeContent();
$block1->closeForm();
include('../themes/'.THEME.'/footer.php');
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.