|
From: Benjamin C. <bc...@us...> - 2002-06-08 20:13:07
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv16414
Modified Files:
query.php
Log Message:
Added saved queries to simple query page (Adi Sieker)
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- query.php 18 May 2002 16:21:12 -0000 1.74
+++ query.php 8 Jun 2002 20:13:03 -0000 1.75
@@ -35,17 +35,19 @@
function show_query() {
global $db, $t, $TITLE, $u, $_gv;
+ if ($u != 'nobody') {
+ // Grab the saved queries if there are any
+ $t->assign('queries',
+ $db->getAll("select * from ".TBL_SAVED_QUERY." where user_id = '$u'"));
+ }
+
// Show the advanced query form
if (!empty($_gv['form']) and $_gv['form'] == 'advanced') {
- if ($u != 'nobody') {
- // Grab the saved queries if there are any
- $t->assign('queries',
- $db->getAll("select * from ".TBL_SAVED_QUERY." where user_id = '$u'"));
- }
$t->wrap('queryform.html', 'bugquery');
} else { // or show the simple one
$t->wrap('queryform-simple.html', 'bugquery');
}
+
}
function build_query($assignedto, $reportedby, $open) {
|