From 538c77f5fd0f1fed9ab64d37e97f703f034d8b9b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 8 Feb 2005 06:18:45 +0000 Subject: [PATCH] r49: Added search screen, need to do results. Checkin for code storage only. --- search.php | 103 +++++++++++++++++++++++++++++++++++ templates/default/search.tpl | 57 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 search.php create mode 100644 templates/default/search.tpl diff --git a/search.php b/search.php new file mode 100644 index 0000000..557483c --- /dev/null +++ b/search.php @@ -0,0 +1,103 @@ +- Choose -'; + + $select['severity'] = $blankselect; + foreach ($bugsys->datastore['severity'] AS $severity) + { + $value = $severity['severityid']; + $label = $severity['severity']; + eval('$select[severity] .= "' . $tpl->fetch('selectoption') . '";'); + } + + $select['priority'] = $blankselect; + foreach ($bugsys->datastore['priority'] AS $priority) + { + $value = $priority['priorityid']; + $label = $priority['priority']; + eval('$select[priority] .= "' . $tpl->fetch('selectoption') . '";'); + } + + $select['status'] = $blankselect; + foreach ($bugsys->datastore['status'] AS $status) + { + $value = $status['statusid']; + $label = $status['status']; + eval('$select[status] .= "' . $tpl->fetch('selectoption') . '";'); + } + + $select['resolution'] = $blankselect; + foreach ($bugsys->datastore['resolution'] AS $resolution) + { + $value = $resolution['resolutionid']; + $label = $resolution['resolution']; + eval('$select[resolution] .= "' . $tpl->fetch('selectoption') . '";'); + } + + $select['dev'] = $blankselect; + foreach ($bugsys->datastore['assignto'] AS $dev) + { + $value = $dev['userid']; + $label = construct_user_display($dev, false); + eval('$select[dev] .= "' . $tpl->fetch('selectoption') . '";'); + } + + eval('$tpl->flush("' . $tpl->fetch('search') . '");'); +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file diff --git a/templates/default/search.tpl b/templates/default/search.tpl new file mode 100644 index 0000000..da59f59 --- /dev/null +++ b/templates/default/search.tpl @@ -0,0 +1,57 @@ +
Any fields left blank or unselected will be excluded from the search query
+ +
+ + +
+ Key Words: + + Any Words + All Words + Raw Boolean Search +
+
Reporter:
+ +
Severity:
+
Priority:
+
Status:
+
Resolution:
+
Assigned To:
+ +
+ Date (submitted since): + +
+ +
Products/Components/Versions:
+
+$pcv_select +
+ +
+ Sort By: + +
+ +
+ + +
+ +
\ No newline at end of file -- 2.43.5