You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(34) |
Aug
(215) |
Sep
(180) |
Oct
(135) |
Nov
(105) |
Dec
(81) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(76) |
Feb
(22) |
Mar
(154) |
Apr
(149) |
May
(128) |
Jun
(94) |
Jul
(14) |
Aug
(24) |
Sep
(77) |
Oct
(52) |
Nov
(22) |
Dec
(6) |
| 2003 |
Jan
(4) |
Feb
(10) |
Mar
(6) |
Apr
(29) |
May
(10) |
Jun
(37) |
Jul
(39) |
Aug
(13) |
Sep
(23) |
Oct
(3) |
Nov
(7) |
Dec
(2) |
| 2004 |
Jan
|
Feb
(10) |
Mar
(4) |
Apr
|
May
(35) |
Jun
(4) |
Jul
(17) |
Aug
(6) |
Sep
(14) |
Oct
(18) |
Nov
(2) |
Dec
(14) |
| 2005 |
Jan
(9) |
Feb
(30) |
Mar
(6) |
Apr
|
May
(38) |
Jun
(23) |
Jul
(21) |
Aug
(76) |
Sep
(50) |
Oct
(51) |
Nov
(13) |
Dec
|
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:53:36
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv16484 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- CHANGELOG 2001/07/31 14:07:31 1.7 +++ CHANGELOG 2001/08/07 13:53:32 1.8 @@ -1,3 +1,8 @@ +-- 0.2.0 -- +: Allow for browsing the bugs without logging in +: Started reporting +: Started using jpgraph (optional) for showing summary charts + -- 0.1.7 -- 31 July 2001 : Fixed bugs with valid_email() in admin/user.php : Added table definition for BugHistory table in createdb.sql |
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:50:54
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv15284
Added Files:
configure
Log Message:
The beginnings of a installationn script -- it's just a pretty face at the moment
--- NEW FILE: configure ---
#! /bin/sh
DIALOG=${DIALOG=dialog}
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 1 2 5 15
menuitem='Administrivia'
# Strings
ADMINEMAIL=phpbt@`hostname -d`
INSTALLPATH=`pwd`
INSTALLURL=http://`hostname -f`/phpbt
PHPLIBPATH=''
# Booleans
ENCRYPTPASS=1
USE_JPGRAPH=0
administrivia() {
$DIALOG --backtitle "phpBT Configuration" \
--title "Admin Email (1 of 4)" \
--inputbox "Enter the email address of the administrator of this installation. \
All emails from phpBugTracker will come from this address" 0 0 $ADMINEMAIL \
2> $tempfile
if [ $? -gt 0 ]; then
return
fi
ADMINEMAIL=`<$tempfile`
$DIALOG --backtitle "phpBT Configuration" \
--title "Installation Path (2 of 4)" \
--inputbox "Enter the directory where the files will be stored." 0 0 $INSTALLPATH \
2> $tempfile
if [ $? -gt 0 ]; then
return
fi
INSTALLPATH=`<$tempfile`
$DIALOG --backtitle "phpBT Configuration" \
--title "Installation URL (3 of 4)" \
--inputbox "Enter the web site where phpBugTracker will be accessable" 0 0 $INSTALLURL \
2> $tempfile
if [ $? -gt 0 ]; then
return
fi
INSTALLURL=`<$tempfile`
$DIALOG --backtitle "phpBT Configuration" \
--title "PHPlib Path (4 of 4)" \
--inputbox "If PHPlib is not in PHP's include path, specify the location of PHPlib." 0 0 $PHPLIBPATH \
2> $tempfile
if [ $? -gt 0 ]; then
return
fi
PHPLIBPATH=`<$tempfile`
menuitem='Features'
show_menu
}
change_features() {
if [ $ENCRYPTPASS -eq 1 ]; then
OLD_ENCRYPTPASS=on
else
OLD_ENCRYPTPASS=off
fi
if [ $USE_JPGRAPH -eq 1 ]; then
OLD_USE_JPGRAPH=on
else
OLD_USE_JPGRAPH=off
fi
$DIALOG --backtitle "phpBT Configuration" \
--title "Optional Features" \
--separate-output \
--checklist "Choose the features below you would like to enable" 10 72 3 \
"ENCRYPTPASS" "Store passwords encrypted in the database" $OLD_ENCRYPTPASS \
"USE_JPGRAPH" "Use the JP Graph class for charting some reports" $OLD_USE_JPGRAPH \
2> $tempfile
retval=$?
choice=`<$tempfile`
if [ $retval -eq 0 ]; then
for selected in $choice
do
case $selected in
ENCRYPTPASS)
NEW_ENCRYPTPASS=1;;
USE_JPGRAPH)
NEW_USE_JPGRAPH=1;;
esac
done
ENCRYPTPASS=${NEW_ENCRYPTPASS:-0}
USE_JPGRAPH=${NEW_USE_JPGRAPH:-0}
fi
menuitem='Save'
show_menu
}
show_menu() {
$DIALOG --clear --backtitle "phpBT Configuration" \
--title "Configuration Menu" \
--default-item $menuitem \
--menu "Choose from the options below to configure your phpBugTracker installation." 15 68 4 \
"Administrivia" "Parameters that must be configured" \
"Features" "Optional features" \
"Save" "Save configuration changes" \
2> $tempfile
retval=$?
choice=`<$tempfile`
if [ $retval -eq 0 ]; then
case $choice in
Administrivia)
administrivia
;;
Features)
change_features
;;
Save)
#echo $ENCRYPTPASS
#echo $USE_JPGRAPH
$DIALOG --backtitle "phpBT Configuration" \
--infobox "Your changes have been saved" 5 36
;;
esac
else
$DIALOG --backtitle "phpBT Configuration" \
--infobox "Quitting without saving changes" 5 36
fi
}
show_menu
|
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:50:10
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv14990/admin
Modified Files:
component.php os.php project.php resolution.php status.php
user.php version.php
Log Message:
Move session start code to include.php
Index: component.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/component.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- component.php 2001/07/21 02:49:55 1.4
+++ component.php 2001/08/07 13:50:07 1.5
@@ -2,10 +2,6 @@
include '../include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-
-$u = $auth->auth['uid'];
-
function do_form($componentid = 0) {
global $q, $me, $projectid, $name, $description, $owner, $active, $u, $STRING;
Index: os.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/os.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- os.php 2001/07/21 02:49:55 1.4
+++ os.php 2001/08/07 13:50:07 1.5
@@ -4,8 +4,6 @@
include '../include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-
function do_form($osid = 0) {
global $q, $me, $fname, $fregex, $fsortorder, $STRING;
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- project.php 2001/07/21 02:49:55 1.4
+++ project.php 2001/08/07 13:50:07 1.5
@@ -2,10 +2,6 @@
include '../include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-
-$u = $auth->auth['uid'];
-
function do_form($projectid = 0) {
global $q, $me, $name, $description, $active, $version, $u, $STRING;
Index: resolution.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/resolution.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- resolution.php 2001/07/21 02:49:55 1.5
+++ resolution.php 2001/08/07 13:50:07 1.6
@@ -4,8 +4,6 @@
include '../include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-
function do_form($resolutionid = 0) {
global $q, $me, $fname, $fdescription, $fsortorder, $STRING;
Index: status.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/status.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- status.php 2001/07/21 02:49:55 1.5
+++ status.php 2001/08/07 13:50:07 1.6
@@ -4,8 +4,6 @@
include '../include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-
function do_form($statusid = 0) {
global $q, $me, $fname, $fdescription, $fsortorder, $STRING;
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/user.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- user.php 2001/07/31 16:49:32 1.10
+++ user.php 2001/08/07 13:50:07 1.11
@@ -2,8 +2,6 @@
include '../include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-
function do_form($userid = 0) {
global $q, $me, $ffirstname, $flastname, $femail, $fpassword, $usertype, $STRING, $now;
Index: version.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/version.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- version.php 2001/07/21 02:49:55 1.5
+++ version.php 2001/08/07 13:50:07 1.6
@@ -2,9 +2,6 @@
include '../include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-$u = $auth->auth['uid'];
-
function do_form($versionid = 0) {
global $q, $me, $projectid, $version, $active, $STRING, $now, $u;
|
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:50:10
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv14990
Modified Files:
bug.php images.php index.php logout.php newaccount.php
query.php report.php user.php
Log Message:
Move session start code to include.php
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- bug.php 2001/07/21 03:03:05 1.16
+++ bug.php 2001/08/07 13:50:07 1.17
@@ -4,9 +4,6 @@
include 'include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-$u = $auth->auth['uid'];
-
///
/// Show the activity for a bug
function show_history($bugid) {
Index: images.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/images.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- images.php 2001/08/03 03:50:28 1.1
+++ images.php 2001/08/07 13:50:07 1.2
@@ -2,7 +2,7 @@
// images.php - Draw graphs using jpgraph
-define ('JPGRAPH_PATH', '/home/bcurtis/public_html/jp/');
+define ('NO_AUTH',1);
include 'include.php';
include JPGRAPH_PATH.'jpgraph.php';
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- index.php 2001/08/06 03:28:32 1.6
+++ index.php 2001/08/07 13:50:07 1.7
@@ -4,8 +4,6 @@
include 'include.php';
-page_open(array('sess' => 'usess'));
-
$t->set_file(array(
'wrap' => 'wrap.html',
'content' => 'index.html'
Index: logout.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/logout.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- logout.php 2001/08/01 22:08:07 1.2
+++ logout.php 2001/08/07 13:50:07 1.3
@@ -4,8 +4,6 @@
include 'include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth'));
-
$auth->unauth();
include 'templates/'.THEME.'logout.html';
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- newaccount.php 2001/07/30 13:47:33 1.6
+++ newaccount.php 2001/08/07 13:50:07 1.7
@@ -49,4 +49,6 @@
$t->pparse('main',array('content','wrap','main'));
+page_close();
+
?>
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- query.php 2001/07/21 03:03:05 1.8
+++ query.php 2001/08/07 13:50:07 1.9
@@ -4,9 +4,6 @@
include 'include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth'));
-$u = $auth->auth['uid'];
-
function delete_saved_query($queryid) {
global $q, $u, $me;
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- report.php 2001/08/06 03:28:32 1.7
+++ report.php 2001/08/07 13:50:07 1.8
@@ -4,9 +4,6 @@
include 'include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-$u = $auth->auth['uid'];
-
function resolution_by_engineer($projectid = 0) {
global $q, $t;
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/user.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- user.php 2001/08/05 03:52:56 1.3
+++ user.php 2001/08/07 13:50:07 1.4
@@ -4,10 +4,6 @@
include 'include.php';
-page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
-
-$u = $auth->auth['uid'];
-
function change_password($pass1, $pass2) {
global $t, $q, $u, $STRING;
|
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:49:49
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv14827
Modified Files:
global.css
Log Message:
Allow for browsing bugs without logging in
Index: global.css
===================================================================
RCS file: /cvsroot/phpbt/phpbt/global.css,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- global.css 2000/12/23 17:07:59 1.1.1.1
+++ global.css 2001/08/07 13:49:45 1.2
@@ -123,4 +123,7 @@
#rtitlecell {
background-color: #003366;
- text-align: center; }
\ No newline at end of file
+ text-align: center; }
+
+.login-box { vertical-align: text-bottom; font-size: 10px; }
+input[type="text"].login-box { padding-top: 0.1em; padding-left: 0.2em; padding-right: 0.2em; }
\ No newline at end of file
|
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:48:55
|
Update of /cvsroot/phpbt/phpbt/admin/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv14444/admin/templates/default
Modified Files:
wrap.html
Log Message:
Allow for browsing bugs without logging in -- still needs some changes for bug editing
Index: wrap.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/templates/default/wrap.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wrap.html 2001/08/01 13:55:56 1.1
+++ wrap.html 2001/08/07 13:48:52 1.2
@@ -18,11 +18,8 @@
<a href="status.php">Statuses</a> |
<a href="resolution.php">Resolutions</a> |
<a href="os.php">OSes</a>
- <!-- BEGIN logoutblock -->
- | <a href="../logout.php">Logout {loggedinas}</a>
- <!-- END logoutblock -->
]
- </font>
+ </b></font>
</td>
<td width="100" align="right">
<font id="stockfontb"><b>
@@ -39,18 +36,28 @@
{content}
<table border="0" cellpadding="0" cellspacing="0">
<tr>
- <td width="640" colspan="2"><hr size="1" width="640"></td>
+ <td width="640"><hr size="1" width="640"></td>
</tr>
<tr>
- <td>
- <font id="stockfontb">
- <b><a href="#top">Top</a></b>
- </font>
+ <!-- BEGIN loginblock -->
+ <td class="login-box">
+ <form method="post" action="{me2}">
+ Email: <input type="text" name="username" class="login-box">
+ Password: <input type="password" name="password" class="login-box">
+ <!--<input type="image" border="0" name="login" value="doit" src="go.gif" width="30" height="20" align="middle" class="login-button">-->
+ <input type="hidden" name="login" value="1">
+ <input type="submit" value="Login" class="login-box">
+ </form>
</td>
- <td align="right">
- <font id="stockfontb">
- <b><a href="index.php">Home</a></b>
- </font>
+ <!-- END loginblock -->
+ <!-- BEGIN logoutblock -->
+ <td>
+ <font id="stockfontb"><b>
+ [ <a href="user.php">Personal Page</a>
+ | <a href="logout.php">Logout {loggedinas}</a>
+ ]
+ </b></font>
</td>
+ <!-- END logoutblock -->
</tr>
</table>
|
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:48:55
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv14444/templates/default
Modified Files:
wrap.html
Log Message:
Allow for browsing bugs without logging in -- still needs some changes for bug editing
Index: wrap.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/wrap.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wrap.html 2001/08/01 13:55:56 1.1
+++ wrap.html 2001/08/07 13:48:52 1.2
@@ -10,26 +10,25 @@
<td width="640" colspan="2"><hr size="1" width="640"></td>
</tr>
<tr>
- <td width="540" valign="center">
+ <td width="540" valign="middle">
<font id="stockfontb"><b>
[
<a href="index.php">Home</a> |
<a href="bug.php?op=add">Enter Bug</a> |
<a href="query.php?op=query">Query Bugs</a> |
- <a href="report.php">Reporting</a> |
- <a href="user.php">Personal Page</a>
- <!-- BEGIN logoutblock -->
- | <a href="logout.php">Logout {loggedinas}</a>
- <!-- END logoutblock -->
+ <a href="report.php">Reporting</a>
]
- </font>
+ </b></font>
</td>
- <td width="100" align="right" valign="center">
+ <td width="100" align="right" valign="middle">
<font id="stockfontb"><b>
+ <!-- BEGIN adminnavblock -->
[
<a href="admin/project.php">Admin Tools</a>
- ]
- </font>
+ ]
+ <!-- END adminnavblock -->
+
+ </b></font>
</td>
</tr>
<tr>
@@ -39,18 +38,29 @@
{content}
<table border="0" cellpadding="0" cellspacing="0">
<tr>
- <td width="640" colspan="2"><hr size="1" width="640"></td>
+ <td width="640"><hr size="1" width="640"></td>
</tr>
<tr>
- <td>
- <font id="stockfontb">
- <b><a href="#top">Top</a></b>
- </font>
+ <!-- BEGIN loginblock -->
+ <td class="login-box" nowrap>
+ <form method="post" action="{me2}">
+ Email: <input type="text" name="username" class="login-box">
+ Password: <input type="password" name="password" class="login-box">
+ <!--<input type="image" border="0" name="login" value="doit" src="go.gif" width="30" height="20" align="middle" class="login-button">-->
+ <input type="hidden" name="login" value="1">
+ <input type="submit" value="Login" class="login-box">
+ </form>
+ <font color="#ff0000">{loginerror}</font>
</td>
- <td align="right">
- <font id="stockfontb">
- <b><a href="index.php">Home</a></b>
- </font>
+ <!-- END loginblock -->
+ <!-- BEGIN logoutblock -->
+ <td>
+ <font id="stockfontb"><b>
+ [ <a href="user.php">Personal Page</a>
+ | <a href="logout.php">Logout {loggedinas}</a>
+ ]
+ </b></font>
</td>
+ <!-- END logoutblock -->
</tr>
</table>
|
|
From: Benjamin C. <bc...@us...> - 2001-08-07 13:48:55
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv14444
Modified Files:
include.php
Log Message:
Allow for browsing bugs without logging in -- still needs some changes for bug editing
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- include.php 2001/08/03 03:50:28 1.16
+++ include.php 2001/08/07 13:48:52 1.17
@@ -13,6 +13,7 @@
define ('ENCRYPTPASS',0); // Whether to store passwords encrypted
define ('THEME','default/'); // Which set of templates to use
define ('USE_JPGRAPH',0); // Whether to show images or not
+define ('JPGRAPH_PATH', '/home/bcurtis/public_html/jp/'); // If it's not in the include path
require PHPLIBPATH.'db_mysql.inc';
require PHPLIBPATH.'ct_sql.inc';
@@ -25,22 +26,7 @@
// Localization - include the file with the desired language
include INSTALLPATH.'/strings-en.php';
-$cssfile = 'global.css';
-
-
-$me = $PHP_SELF;
-$me2 = $REQUEST_URI;
-$selrange = 30;
-$now = time();
-$select['authlevels'] = array(
- 0 => 'Inactive',
- 1 => 'User',
- 3 => 'Developer',
- 7 => 'Manager',
- 15 => 'Administrator'
- );
-
-
+// Edit this class with your database information
class dbclass extends DB_Sql {
var $classname = 'dbclass';
var $Host = 'localhost';
@@ -61,6 +47,18 @@
}
$q = new dbclass;
+$cssfile = 'global.css';
+$me = $PHP_SELF;
+$me2 = $REQUEST_URI;
+$selrange = 30;
+$now = time();
+$select['authlevels'] = array(
+ 0 => 'Inactive',
+ 1 => 'User',
+ 3 => 'Developer',
+ 7 => 'Manager',
+ 15 => 'Administrator'
+ );
class sqlclass extends CT_Sql {
var $database_class = 'dbclass';
@@ -81,6 +79,7 @@
var $classname = 'uauth';
var $lifetime = 0;
var $magic = 'looneyville';
+ var $nobody = true;
function auth_loginform() {
global $sess;
@@ -92,7 +91,7 @@
function auth_validatelogin() {
global $username, $password, $q, $select, $emailpass, $emailsuccess, $STRING;
- if (!$username) return false;
+ if (!$username) return 'nobody';
if ($emailpass) {
list($email, $password) = $q->grab("select Email, Password from User where Email = '$username' and UserLevel > 0");
if (!$q->num_rows()) {
@@ -114,7 +113,7 @@
}
$u = $q->grab("select * from User where Email = '$username' and Password = '$password' and UserLevel > 0");
if (!$q->num_rows()) {
- return false;
+ return 'nobody';
} else {
$this->auth['fname'] = $u['FirstName'];
$this->auth['lname'] = $u['LastName'];
@@ -144,18 +143,29 @@
class templateclass extends Template {
function pparse($target, $handle, $append = false) {
- global $auth;
+ global $auth, $perm;
- $this->set_block('wrap', 'logoutblock', 'lblock');
- if ($auth->auth['uid']) {
- $this->set_var('loggedinas', $auth->auth['email']);
- $this->parse('lblock', 'logoutblock', true);
+ $this->set_block('wrap', 'logoutblock', 'loblock');
+ $this->set_block('wrap', 'loginblock', 'liblock');
+ $this->set_block('wrap', 'adminnavblock', 'anblock');
+ if ($auth->auth['uid'] && $auth->auth['uid'] != 'nobody') {
+ $this->set_var(array(
+ 'loggedinas' => $auth->auth['email'],
+ 'liblock' => ''
+ ));
+ $this->parse('loblock', 'logoutblock', true);
} else {
$this->set_var(array(
'loggedinas' => '',
- 'lblock' => ''
+ 'loblock' => ''
));
+ $this->parse('liblock', 'loginblock', true);
}
+ if (isset($perm) && $perm->have_perm('Administrator')) {
+ $this->parse('anblock', 'adminnavblock', true);
+ } else {
+ $this->set_var('anblock', '');
+ }
print $this->finish($this->parse($target, $handle, $append));
return false;
}
@@ -165,8 +175,10 @@
$t->set_var(array(
'TITLE' => '',
'me' => $PHP_SELF,
+ 'me2' => $REQUEST_URI,
'error' => '',
- 'cssfile' => $cssfile));
+ 'cssfile' => $cssfile,
+ 'loginerror' => ''));
// End classes -- Begin helper functions
@@ -382,6 +394,20 @@
/// (From zend.com)
function valid_email($email) {
return eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$', $email);
+}
+
+// Begin every page with a page_open
+if (!defined('NO_AUTH')) {
+ page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
+ $u = $auth->auth['uid'];
+}
+
+// Check to see if the user is trying to login
+if (isset($HTTP_POST_VARS['login'])) {
+ $auth->auth['uid'] = $auth->auth_validatelogin();
+ if ($auth->auth['uid'] == 'nobody') {
+ $t->set_var('loginerror', 'Invalid login');
+ }
}
?>
|
|
From: Benjamin C. <bc...@us...> - 2001-08-06 13:37:07
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv2098/templates/default
Modified Files:
queryform.html
Log Message:
Fixed a typo that prevented the initial sort from the query page to fail
Index: queryform.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/queryform.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- queryform.html 2001/08/01 13:55:56 1.1
+++ queryform.html 2001/08/06 13:37:03 1.2
@@ -201,7 +201,7 @@
Priority
</option>
</select>
- <select aame="sort">
+ <select name="sort">
<option selected value="asc">Ascending</option>
<option value="desc">Descending</option>
</select>
|
|
From: Benjamin C. <bc...@us...> - 2001-08-06 03:28:35
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv20141
Modified Files:
index.php report.php strings-en.php
Log Message:
Use the localization strings
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- index.php 2001/08/03 03:50:28 1.5
+++ index.php 2001/08/06 03:28:32 1.6
@@ -12,7 +12,7 @@
));
$t->set_block('content', 'statsblock', 'sblock');
$t->set_block('statsblock','row','rows');
-$t->set_var('TITLE','Home');
+$t->set_var('TITLE',$TITLE['home']);
if (USE_JPGRAPH) {
$t->set_var('sblock', '<img src="images.php" align="right">');
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- report.php 2001/08/06 01:59:49 1.6
+++ report.php 2001/08/06 03:28:32 1.7
@@ -68,7 +68,7 @@
$t->set_file('content','report.html');
$t->set_var(array(
'projects' => build_select('Project', $projectid),
- 'TITLE' => 'Reporting'
+ 'TITLE' => $TITLE['reporting']
));
resolution_by_engineer($projectid);
Index: strings-en.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/strings-en.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- strings-en.php 2001/07/21 03:03:05 1.7
+++ strings-en.php 2001/08/06 03:28:32 1.8
@@ -49,7 +49,9 @@
'os' => 'Operating Systems',
'resolution' => 'Resolutions',
'status' => 'Statuses',
- 'user' => 'Users'
+ 'user' => 'Users',
+ 'home' => 'Home',
+ 'reporting' => 'Reporting'
);
?>
|
|
From: Benjamin C. <bc...@us...> - 2001-08-06 01:59:52
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv5503
Modified Files:
report.php
Log Message:
Add a title
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- report.php 2001/08/04 03:59:56 1.5
+++ report.php 2001/08/06 01:59:49 1.6
@@ -66,7 +66,10 @@
$t->set_file('wrap','wrap.html');
$t->set_file('content','report.html');
-$t->set_var('projects', build_select('Project', $projectid));
+$t->set_var(array(
+ 'projects' => build_select('Project', $projectid),
+ 'TITLE' => 'Reporting'
+ ));
resolution_by_engineer($projectid);
|
|
From: Benjamin C. <bc...@us...> - 2001-08-06 01:56:57
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv4899
Modified Files:
INSTALL
Log Message:
Updated for the latest additions
Index: INSTALL
===================================================================
RCS file: /cvsroot/phpbt/phpbt/INSTALL,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- INSTALL 2001/02/03 18:16:04 1.2
+++ INSTALL 2001/08/06 01:56:54 1.3
@@ -3,9 +3,17 @@
1. Edit the database creation script, changing the info for the Admin user.
2. Run the database creation script (currently only MySQL) by running
"mysql -u <user> -p<password> < createdb.sql"
-3. Install PHPlib (http://phplib.netuse.de) if it's not already installed.
-4. Edit include.php, changing the ADMINEMAIL constant to what you want and
- changing the database login info in class dbclass.
+3. Install PHPlib (http://sourceforge.net/projects/phplib/) if it's not already
+ installed.
+4. Edit include.php as follows:
+ a. Change the ADMINEMAIL constant to what you want
+ b. Change the database login info in class dbclass.
+ c. Change the ENCRYPTPASS constant to 1 if you want to have passwords stored
+ encrypted in the database.
+ d. Change the USE_JPGRAPH constant to 1 if you want to use the jpgraph class
+ (http://www.aditus.nu/jpgraph/) to display the bug summary info. If you
+ enable this you'll also need to edit the JPGRAPH_PATH constant in
+ images.php.
5. Browse on over to the installation, choose Admin tools, login with the info
you put in the database creation script, and create your first project.
6. Start reporting bugs
|
|
From: Benjamin C. <bc...@us...> - 2001-08-05 03:52:59
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv12448
Modified Files:
user.php
Log Message:
Encrypt the password upon changing if that option is set
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/user.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- user.php 2001/07/10 04:01:54 1.2
+++ user.php 2001/08/05 03:52:56 1.3
@@ -19,7 +19,13 @@
return;
}
- $q->query("update User set Password = '$pass1' where UserID = $u");
+ if (ENCRYPTPASS) {
+ $mpassword = md5($pass1);
+ } else {
+ $mpassword = $pass1;
+ }
+
+ $q->query("update User set Password = '$mpassword' where UserID = $u");
$t->set_file('content', 'passwordchanged.html');
}
|
|
From: Benjamin C. <bc...@us...> - 2001-08-04 04:00:00
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv26319
Modified Files:
report.php
Log Message:
Change the query a bit to grab all bugs, including those not assigned
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- report.php 2001/08/04 03:38:58 1.4
+++ report.php 2001/08/04 03:59:56 1.5
@@ -12,7 +12,7 @@
$t->set_block('content', 'row', 'rows');
$t->set_block('row', 'col', 'cols');
- $t->set_var('reporttitle', 'Status of Assigned bugs');
+ $t->set_var('reporttitle', 'Bug resolutions');
// Start off our query
$querystring = 'select Email as "Assigned To", sum(if(Resolution = "0",1,0)) as "Open"';
@@ -25,10 +25,11 @@
}
$resfields[] = 'Total';
- if ($projectid && is_numeric($projectid))
- $projectquery = "and Project = $projectid";
-
- $q->query("$querystring, count(BugID) as Total from Bug b, User u where AssignedTo = UserID $projectquery group by AssignedTo");
+ if ($projectid && is_numeric($projectid)) {
+ $projectquery = "where Project = $projectid";
+ }
+
+ $q->query("$querystring, count(BugID) as Total from Bug b left join User u on AssignedTo = UserID $projectquery group by AssignedTo");
if (!$q->num_rows()) {
$t->set_var('rows', 'No data to display');
} else {
@@ -42,11 +43,16 @@
$t->set_var('cols', '');
while ($row = $q->grab()) {
foreach ($resfields as $col) {
+ if ($row[$col] == '') {
+ $coldata = 'Unassigned';
+ } elseif ($col == 'Assigned To') {
+ $coldata = sprintf("<a href='mailto:%s'>%s</a>",
+ stripslashes($row[$col]), stripslashes($row[$col]));
+ } else {
+ $coldata = stripslashes($row[$col]);
+ }
$t->set_var(array(
- 'coldata' => $col == 'Assigned To'
- ? sprintf("<a href='mailto:%s'>%s</a>", stripslashes($row[$col]),
- stripslashes($row[$col]))
- : stripslashes($row[$col]),
+ 'coldata' => $coldata,
'colclass' => $col == 'Assigned To' ? '' : 'center-col'
));
$t->parse('cols', 'col', true);
|
|
From: Benjamin C. <bc...@us...> - 2001-08-04 03:39:02
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv22789/templates/default
Modified Files:
report.html
Log Message:
Allow for reporting on specific projects as well as all projects
Index: report.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/report.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- report.html 2001/08/03 20:12:31 1.2
+++ report.html 2001/08/04 03:38:58 1.3
@@ -2,8 +2,18 @@
.header-col { font-weight: bold; }
.center-col { text-align: center; }
</style>
+
+<form action="{me}">
+Bug statistics for
+<select name="projectid" onChange="document.location.href='{me}?projectid='+this.options[this.selectedIndex].value">
+ <option value="0">All projects</option>
+ {projects}
+</select>
+<input type="submit" value="Go">
+</form>
+
<h3>{reporttitle}</h3>
-<table border="0" cellspacing="0" cellpadding="4">
+<table border="0" cellpadding="4">
<!-- BEGIN row -->
<tr bgcolor="{bgcolor}">
<!-- BEGIN col -->
|
|
From: Benjamin C. <bc...@us...> - 2001-08-04 03:39:01
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv22789
Modified Files:
report.php
Log Message:
Allow for reporting on specific projects as well as all projects
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- report.php 2001/08/03 20:12:31 1.3
+++ report.php 2001/08/04 03:38:58 1.4
@@ -7,7 +7,7 @@
page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
$u = $auth->auth['uid'];
-function resolution_by_engineer() {
+function resolution_by_engineer($projectid = 0) {
global $q, $t;
$t->set_block('content', 'row', 'rows');
@@ -15,8 +15,8 @@
$t->set_var('reporttitle', 'Status of Assigned bugs');
// Start off our query
- $querystring = 'select Email, sum(if(Resolution = "0",1,0)) as "Open"';
- $resfields = array('Email','Open');
+ $querystring = 'select Email as "Assigned To", sum(if(Resolution = "0",1,0)) as "Open"';
+ $resfields = array('Assigned To','Open');
// Grab the resolutions from the database
$q->query("select Name, concat(', sum(if(Resolution = \"',ResolutionID,'\",1,0)) as \"',Resolution.Name,'\"') from Resolution");
while (list($fieldname, $countquery) = $q->grab()) {
@@ -24,7 +24,11 @@
$querystring .= $countquery;
}
$resfields[] = 'Total';
- $q->query("$querystring, count(BugID) as Total from Bug b, User u where AssignedTo = UserID group by AssignedTo");
+
+ if ($projectid && is_numeric($projectid))
+ $projectquery = "and Project = $projectid";
+
+ $q->query("$querystring, count(BugID) as Total from Bug b, User u where AssignedTo = UserID $projectquery group by AssignedTo");
if (!$q->num_rows()) {
$t->set_var('rows', 'No data to display');
} else {
@@ -39,8 +43,11 @@
while ($row = $q->grab()) {
foreach ($resfields as $col) {
$t->set_var(array(
- 'coldata' => stripslashes($row[$col]),
- 'colclass' => $col == 'Email' ? '' : 'center-col'
+ 'coldata' => $col == 'Assigned To'
+ ? sprintf("<a href='mailto:%s'>%s</a>", stripslashes($row[$col]),
+ stripslashes($row[$col]))
+ : stripslashes($row[$col]),
+ 'colclass' => $col == 'Assigned To' ? '' : 'center-col'
));
$t->parse('cols', 'col', true);
}
@@ -53,8 +60,9 @@
$t->set_file('wrap','wrap.html');
$t->set_file('content','report.html');
+$t->set_var('projects', build_select('Project', $projectid));
-resolution_by_engineer();
+resolution_by_engineer($projectid);
$t->pparse('main',array('content','wrap','main'));
|
|
From: Benjamin C. <bc...@us...> - 2001-08-03 20:12:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv5712
Modified Files:
report.php
Log Message:
Prettied up the report a little
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- report.php 2001/08/03 15:31:33 1.2
+++ report.php 2001/08/03 20:12:31 1.3
@@ -12,6 +12,7 @@
$t->set_block('content', 'row', 'rows');
$t->set_block('row', 'col', 'cols');
+ $t->set_var('reporttitle', 'Status of Assigned bugs');
// Start off our query
$querystring = 'select Email, sum(if(Resolution = "0",1,0)) as "Open"';
@@ -29,15 +30,21 @@
} else {
foreach ($resfields as $col) {
$t->set_var('coldata', stripslashes($col));
+ $t->set_var('colclass', 'header-col');
$t->parse('cols', 'col', true);
}
+ $t->set_var('bgcolor', '#eeeeee');
$t->parse('rows', 'row', true);
$t->set_var('cols', '');
while ($row = $q->grab()) {
foreach ($resfields as $col) {
- $t->set_var('coldata', stripslashes($row[$col]));
+ $t->set_var(array(
+ 'coldata' => stripslashes($row[$col]),
+ 'colclass' => $col == 'Email' ? '' : 'center-col'
+ ));
$t->parse('cols', 'col', true);
}
+ $t->set_var('bgcolor', (++$i % 2 == 0) ? '#dddddd' : '#ffffff');
$t->parse('rows', 'row', true);
$t->set_var('cols', '');
}
|
|
From: Benjamin C. <bc...@us...> - 2001-08-03 20:12:33
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv5712/templates/default
Modified Files:
report.html
Log Message:
Prettied up the report a little
Index: report.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/report.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- report.html 2001/08/03 15:31:32 1.1
+++ report.html 2001/08/03 20:12:31 1.2
@@ -1,8 +1,13 @@
-<table>
+<style>
+.header-col { font-weight: bold; }
+.center-col { text-align: center; }
+</style>
+<h3>{reporttitle}</h3>
+<table border="0" cellspacing="0" cellpadding="4">
<!-- BEGIN row -->
- <tr>
+ <tr bgcolor="{bgcolor}">
<!-- BEGIN col -->
- <td>
+ <td class="{colclass}">
{coldata}
</td>
<!-- END col -->
|
|
From: Benjamin C. <bc...@us...> - 2001-08-03 15:31:36
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv16260
Modified Files:
report.php
Log Message:
Starting on reporting
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- report.php 2001/02/03 18:06:04 1.1
+++ report.php 2001/08/03 15:31:33 1.2
@@ -1,5 +1,56 @@
-<html>
-<body>
-<div align="center">Nothing here yet</div>
-</body>
-</html>
+<?php
+
+// report.php - Generate reports on various bug activities
+
+include 'include.php';
+
+page_open(array('sess' => 'usess', 'auth' => 'uauth', 'perm' => 'uperm'));
+$u = $auth->auth['uid'];
+
+function resolution_by_engineer() {
+ global $q, $t;
+
+ $t->set_block('content', 'row', 'rows');
+ $t->set_block('row', 'col', 'cols');
+
+ // Start off our query
+ $querystring = 'select Email, sum(if(Resolution = "0",1,0)) as "Open"';
+ $resfields = array('Email','Open');
+ // Grab the resolutions from the database
+ $q->query("select Name, concat(', sum(if(Resolution = \"',ResolutionID,'\",1,0)) as \"',Resolution.Name,'\"') from Resolution");
+ while (list($fieldname, $countquery) = $q->grab()) {
+ $resfields[] = $fieldname;
+ $querystring .= $countquery;
+ }
+ $resfields[] = 'Total';
+ $q->query("$querystring, count(BugID) as Total from Bug b, User u where AssignedTo = UserID group by AssignedTo");
+ if (!$q->num_rows()) {
+ $t->set_var('rows', 'No data to display');
+ } else {
+ foreach ($resfields as $col) {
+ $t->set_var('coldata', stripslashes($col));
+ $t->parse('cols', 'col', true);
+ }
+ $t->parse('rows', 'row', true);
+ $t->set_var('cols', '');
+ while ($row = $q->grab()) {
+ foreach ($resfields as $col) {
+ $t->set_var('coldata', stripslashes($row[$col]));
+ $t->parse('cols', 'col', true);
+ }
+ $t->parse('rows', 'row', true);
+ $t->set_var('cols', '');
+ }
+ }
+}
+
+$t->set_file('wrap','wrap.html');
+$t->set_file('content','report.html');
+
+resolution_by_engineer();
+
+$t->pparse('main',array('content','wrap','main'));
+
+page_close();
+
+?>
|
|
From: Benjamin C. <bc...@us...> - 2001-08-03 15:31:36
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv16260/templates/default
Added Files:
report.html
Log Message:
Starting on reporting
--- NEW FILE: report.html ---
<table>
<!-- BEGIN row -->
<tr>
<!-- BEGIN col -->
<td>
{coldata}
</td>
<!-- END col -->
</tr>
<!-- END row -->
</table>
|
|
From: Benjamin C. <bc...@us...> - 2001-08-03 13:30:46
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv5145
Modified Files:
createdb.sql
Log Message:
Minor explanatory text changes
Index: createdb.sql
===================================================================
RCS file: /cvsroot/phpbt/phpbt/createdb.sql,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- createdb.sql 2001/07/30 13:50:38 1.4
+++ createdb.sql 2001/08/03 13:30:43 1.5
@@ -248,9 +248,9 @@
INSERT INTO Status VALUES (2,'New','A new bug',2);
INSERT INTO Status VALUES (3,'Assigned','Assigned to a developer',3);
INSERT INTO Status VALUES (4,'Reopened','Closed but opened again for further inspection',4);
-INSERT INTO Status VALUES (5,'Resolved','',5);
-INSERT INTO Status VALUES (6,'Verified','Confirmed as a bug',6);
-INSERT INTO Status VALUES (7,'Closed','',7);
+INSERT INTO Status VALUES (5,'Resolved','Set by engineer with a resolution',5);
+INSERT INTO Status VALUES (6,'Verified','The resolution is confirmed by the reporter',6);
+INSERT INTO Status VALUES (7,'Closed','The bug is officially squashed (QA)',7);
insert into db_sequence values ('Status', 7);
|
|
From: Benjamin C. <bc...@us...> - 2001-08-03 03:53:23
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory usw-pr-cvs1:/tmp/cvs-serv21367/templates/default Modified Files: index.html Log Message: Start the inclusion of graphs for reporting Index: index.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/index.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.html 2001/08/01 13:55:56 1.1 +++ index.html 2001/08/03 03:53:20 1.2 @@ -18,6 +18,7 @@ <INPUT TYPE=SUBMIT VALUE="Find"> bug # <INPUT NAME=bugid SIZE=6></FORM> </td> <td valign="top"> + <!-- BEGIN statsblock --> <b>Quick stats</b> <br> <br> @@ -33,6 +34,7 @@ </tr> <!-- END row --> </table> + <!-- END statsblock --> </td> </tr> </table> |
|
From: Benjamin C. <bc...@us...> - 2001-08-03 03:50:31
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19166
Modified Files:
include.php index.php
Added Files:
images.php
Log Message:
Start the inclusion of graphs for reporting
--- NEW FILE: images.php ---
<?php
// images.php - Draw graphs using jpgraph
define ('JPGRAPH_PATH', '/home/bcurtis/public_html/jp/');
include 'include.php';
include JPGRAPH_PATH.'jpgraph.php';
function bug_cat_summary() {
global $q;
include_once JPGRAPH_PATH.'jpgraph_pie.php';
// Grab the legend
$q->query("select StatusID, Name from Status order by SortOrder");
while ($row = $q->grab()) {
$stats[$row['StatusID']]['Name'] = $row['Name'];
}
// Grab the data
$q->query("select Status, count(Status) as Count from Bug group by Status");
while ($row = $q->grab()) {
$stats[$row['Status']]['Count'] = $row['Count'];
}
$totalbugs = 0;
foreach ($stats as $stat) {
if ($stat['Count']) {
$data[] = $stat['Count'];
$legend[] = "{$stat['Name']} ({$stat['Count']})";
$totalbugs += $stat['Count'];
}
}
// Create the Pie Graph.
$graph = new PieGraph(300,200,"bug_cat_summary");
$graph->SetShadow();
// Set A title for the plot
$graph->title->Set(sprintf("Bug Summary (%d bug%s)",
$totalbugs, $totalbugs == 1 ? '' : 's'));
$graph->title->SetFont(FONT1,FS_BOLD);
$graph->legend->Pos(0.03, 0.5, 'right', 'center');
// Create
$p1 = new PiePlot($data);
$p1->SetLegends($legend);
$p1->SetCenter(0.25);
$p1->SetPrecision(0);
$graph->Add($p1);
$graph->Stroke();
}
switch($pic) {
default : bug_cat_summary();
}
?>
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- include.php 2001/08/01 13:55:56 1.15
+++ include.php 2001/08/03 03:50:28 1.16
@@ -12,6 +12,7 @@
define ('ADMINEMAIL','ph...@be...');
define ('ENCRYPTPASS',0); // Whether to store passwords encrypted
define ('THEME','default/'); // Which set of templates to use
+define ('USE_JPGRAPH',0); // Whether to show images or not
require PHPLIBPATH.'db_mysql.inc';
require PHPLIBPATH.'ct_sql.inc';
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- index.php 2001/07/21 03:03:05 1.4
+++ index.php 2001/08/03 03:50:28 1.5
@@ -10,30 +10,36 @@
'wrap' => 'wrap.html',
'content' => 'index.html'
));
-$t->set_block('content','row','rows');
+$t->set_block('content', 'statsblock', 'sblock');
+$t->set_block('statsblock','row','rows');
$t->set_var('TITLE','Home');
-$q->query("select * from Status order by SortOrder");
-while ($row = $q->grab()) {
- $stats[$row['StatusID']]['Name'] = $row['Name'];
-}
-$q->query("select Status, count(Status) as Count from Bug group by Status");
-while ($row = $q->grab()) {
- $stats[$row['Status']]['Count'] = $row['Count'];
-}
-foreach ($stats as $stat) {
+if (USE_JPGRAPH) {
+ $t->set_var('sblock', '<img src="images.php" align="right">');
+} else {
+ $q->query("select * from Status order by SortOrder");
+ while ($row = $q->grab()) {
+ $stats[$row['StatusID']]['Name'] = $row['Name'];
+ }
+ $q->query("select Status, count(Status) as Count from Bug group by Status");
+ while ($row = $q->grab()) {
+ $stats[$row['Status']]['Count'] = $row['Count'];
+ }
+ foreach ($stats as $stat) {
+ $t->set_var(array(
+ 'status' => $stat['Name'],
+ 'count' => $stat['Count'] ? $stat['Count'] : 0
+ ));
+ $total += $stat['Count'];
+ $t->parse('rows','row',true);
+ }
$t->set_var(array(
- 'status' => $stat['Name'],
- 'count' => $stat['Count'] ? $stat['Count'] : 0
+ 'status' => "<b>{$STRING['totalbugs']}</b>",
+ 'count' => $total ? "<b>$total</b>" : 0
));
- $total += $stat['Count'];
$t->parse('rows','row',true);
+ $t->parse('sblock', 'statsblock', true);
}
-$t->set_var(array(
- 'status' => "<b>{$STRING['totalbugs']}</b>",
- 'count' => $total ? "<b>$total</b>" : 0
- ));
-$t->parse('rows','row',true);
$t->pparse('main',array('content','wrap','main'));
|
|
From: Benjamin C. <bc...@us...> - 2001-08-01 22:08:10
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv704 Modified Files: logout.php Log Message: Use the theme, Luke Index: logout.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/logout.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- logout.php 2001/02/03 18:05:31 1.1 +++ logout.php 2001/08/01 22:08:07 1.2 @@ -8,7 +8,7 @@ $auth->unauth(); -include 'templates/logout.html'; +include 'templates/'.THEME.'logout.html'; page_close(); |
|
From: Benjamin C. <bc...@us...> - 2001-08-01 13:56:01
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv7509/templates/default
Added Files:
bugdisplay.html bugemail.txt bugform.html bughistory.html
buglist.html error.html index.html login.html logout.html
newaccount.html newaccountsuccess.html newbugform.html
passwordchanged.html passwordform.html projectlist.html
queryform.html wrap.html
Log Message:
Move the templates down a directory to help in creating themes
--- NEW FILE: bugdisplay.html ---
<form action="bug.php" method="post">
<input type="hidden" name="bugid" value="{bugid}">
<input type="hidden" name="projectid" value="{projectid}">
<input type="hidden" name="lastmodifieddate" value="{lastmodifieddate}">
<input type="hidden" name="op" value="update">
<table border='0' width="640">
<tr>
<td width="210" colspan="2">
Bug <b>#{bugid}</b>
</td>
<td width="210" colspan="2">
Reporter: <b>{reporter}</b>
</td>
<td width="210" colspan="2">
Created: <b>{createddate}</b>
</td>
</tr>
<tr>
<td>
Product:
</td>
<td>
<select name="Project">{project}</select>
</td>
<td>
Component:
</td>
<td>
<select name="Component">{component}</select>
</td>
<td>
Version:
</td>
<td>
<select name="Version">{version}</select>
</td>
</tr>
<tr>
<td>
Severity:
</td>
<td>
<select name="Severity">{severity}</select>
</td>
<td>
Priority:
</td>
<td>
<select name="Priority">{priority}</select>
</td>
<td>
OS:
</td>
<td>
<select name="OS">{os}</select>
</td>
</tr>
<tr>
<td colspan="6">
<hr size="1">
</td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" width="640">
<tr>
<td align="right">Status:</td>
<td><b>{status}</b> {owner}</td>
<td align="right">Resolution:</td>
<td><b>{resolution}</b></td>
</tr>
<tr>
<td align="right">Summary:</td>
<td><input type="text" size="30" maxlength="30" name="Title" value="{title}"></td>
<td align="right">{urllabel}:</td>
<td><input type="text" size="30" maxlength="255" name="URL" value="{url}"></td>
</tr>
<tr>
<td colspan="4">
</td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" width="640">
<tr>
<td valign="top">
Additional Comments:
<br>
<br>
<textarea name="comments" rows="10" cols="35" wrap="virtual"></textarea>
</td>
<td valign="top">
Update Bug Status:
<br>
<br>
<font color="#ff0000">{statuserr}</font>
<input type="radio" name="outcome" value="unchanged" checked>
Leave as <b>{status} {resolution}</b><br>
<!-- BEGIN arow -->
<input type="radio" name="outcome" value="assign">
Accept bug (change status to <b>Assigned</b>)<br>
<!-- END arow -->
<!-- BEGIN rrow -->
<input type="radio" name="outcome" value="resolve">
Resolve bug, changing resolution to <select name="bugresolution">{bugresolution}</select><br>
<input type="radio" name="outcome" value="dupe">
Resolve bug, mark it as a duplicate of bug #<input type="text" name="dupenum" size="5"><br>
<input type="radio" name="outcome" value="reassign">
Reassign bug to <input type="text" name="reassignto"><br>
<input type="radio" name="outcome" value="reassigntocomponent">
Reassign bug to owner of selected component<br>
<!-- END rrow -->
<!-- BEGIN rerow -->
<input type="radio" name="outcome" value="reopen">
Reopen bug<br>
<!-- END rerow -->
<!-- BEGIN vrow -->
<input type="radio" name="outcome" value="verify">
Mark bug as verified<br>
<!-- END vrow -->
<!-- BEGIN crow -->
<input type="radio" name="outcome" value="close">
Mark bug as closed<br>
<!-- END crow -->
<br>
<br>
<div align="right">
<input type='submit' name='submit' value='Submit'>
</div>
</td>
</tr>
</table>
</form>
<a href="{me}?op=history&bugid={bugid}">View bug activity</a>
<br>
<br>
<table border="0" cellpadding="2" cellspacing="0" width="640">
<tr>
<td>
Comments:
<hr size="1">
</td>
</tr>
<tr>
<td>
<div align="center">
<i>----- Posted by {reporter} at {createdtime} on {createddate} -----</i>
<br>
<br>
</div>
{description}
<br>
<br>
<br>
</td>
</tr>
<!-- BEGIN row -->
<tr>
<td>
<div align="center">
<i>----- Posted by {rreporter} at {rcreateddate} -----</i>
<br>
<br>
</div>
{rdescription}
<br>
<br>
<br>
</td>
</tr>
<!-- END row -->
</table>
--- NEW FILE: bugemail.txt ---
============================================================================
Bug #: {bugid} ({url})
{ReporterStat} Reported By: {Reporter}
----------------------------------------------------------------------------
{TitleStat} Summary: {Title}
{URLStat} URL: {URL}
{ProjectStat} Product: {Project}
{VersionStat} Version: {Version}
{ComponentStat} Component: {Component}
{StatusStat} Status: {Status}
{ResolutionStat} Resolution: {Resolution}
{SeverityStat} Severity: {Severity}
{OSStat} OS/Version: {OS}
{PriorityStat} Priority: {Priority}
{AssignedToStat} Assigned To: {AssignedTo}
============================================================================
<!-- BEGIN commentblock -->
COMMENTS
----- Posted by {oldpostedby} at {oldpostedon} -----
{oldcomments}
----- Posted by {newpostedby} at {newpostedon} -----
{newcomments}
<!-- END commentblock -->
--- NEW FILE: bugform.html ---
<form action="bug.php" method="post">
<input type="hidden" name="bugid" value="{bugid}">
<input type="hidden" name="project" value="{project}">
<input type="hidden" name="op" value="do">
<table border='0'>
<tr>
<td colspan="2"><font color="#ff0000">{error}</font></td>
</tr>
<tr>
<td align="right" valign="top">Project:</td>
<td>{projectname}</td>
</tr>
<tr>
<td align="right" valign="top">Version:</td>
<td>
<select name="version">
{version}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">Summary:</td>
<td><input type="text" size="30" maxlength="30" name="title" value="{title}"></td>
</tr>
<tr>
<td align="right" valign="top">Description:</td>
<td><textarea name="description" cols=30 rows=5 wrap=virtual>{description}</textarea></td>
</tr>
<tr>
<td align="right" valign="top">{urllabel}:</td>
<td><input type="text" size="30" maxlength="255" name="url" value="{url}"></td>
</tr>
<tr>
<td align="right" valign="top">Severity:</td>
<td>
<select name="severity">
{severity}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">Priority:</td>
<td>
<select name="priority">
{priority}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">Component:</td>
<td>
<select name="component">
{component}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">OS:</td>
<td>
<select name="os">
{os}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">
Add another:
</td>
<td valign="top">
<input type="checkbox" name="another" value="1">
</td>
</tr>
</table>
<input type='submit' name='submit' value='Submit'>
</form>
--- NEW FILE: bughistory.html ---
<table border="0" cellspacing="2" cellpadding="2">
<tr bgcolor="#eeeeee">
<th>Who</th>
<th>What</th>
<th>Old Value</th>
<th>New Value</th>
<th>When</th>
</tr>
<!-- BEGIN row -->
<tr>
<td bgcolor="{bgcolor}">{createdby}</td>
<td bgcolor="{bgcolor}">{field}</td>
<td bgcolor="{bgcolor}"> {oldvalue}</td>
<td bgcolor="{bgcolor}"> {newvalue}</td>
<td bgcolor="{bgcolor}">{date}</td>
</tr>
<!-- END row -->
</table>
<br>
<a href="{me}?op=show&bugid={bugid}">Back to bug #{bugid}</a>
<br>
<br>
--- NEW FILE: buglist.html ---
<!--
<form method="post" action="{me}?op=add">
Submit a bug for <select name="project">{project}</select>.
<input type="submit" name="Submit">
</form>
-->
<h2>Bug List</h2>
<table cellpadding="2">
<tr>
<th bgcolor="{bugidcolor}"><a href="{bugidurl}">ID</th>
<th bgcolor="{titlecolor}"><a href="{titleurl}">Title</a></th>
<th bgcolor="{createdbycolor}"><a href="{createdbyurl}">Reporter</a></th>
<th bgcolor="{ownercolor}"><a href="{ownerurl}">Assigned To</a></th>
<th bgcolor="{severitycolor}"><a href="{severityurl}">Severity</a></th>
<th bgcolor="{prioritycolor}"><a href="{priorityurl}">Priority</a></th>
<th bgcolor="{createddatecolor}"><a href="{createddateurl}">Date Created</a></th>
<th bgcolor="{statuscolor}"><a href="{statusurl}">Status</a></th>
<th bgcolor="{resolutioncolor}"><a href="{resolutionurl}">Resolution</a></th>
</tr>
<!-- BEGIN row -->
<tr bgcolor="{bgcolor}">
<td><a href="bug.php?op=show&bugid={bugid}">{bugid}</a></td>
<td><a href="bug.php?op=show&bugid={bugid}">{title}</a></td>
<td align="center">{reporter}</td>
<td align="center"> {owner}</td>
<td align="center">{severity}</td>
<td align="center">{priority}</td>
<td align="center">{createddate}</td>
<td align="center">{status}</td>
<td align="center"> {resolution}</td>
</tr>
<!-- END row -->
<tr>
<td colspan="9" align="center">
<br>
{first} - {last} of {total}<br>[ {pages} ]<!-- <a href="bugs.php?page=all">Show all</a>-->
<br>
</td>
</tr>
</table>
--- NEW FILE: error.html ---
<table width="640">
<tr>
<td align="center">
{text}
<br>
<br>
<a href="javascript:history.go(-1)">Back</a>
</td>
</tr>
</table>
--- NEW FILE: index.html ---
<h2>Welcome to phpBugTracker</h2>
<TABLE BORDER=0 WIDTH="640">
<tr>
<td valign="top">
<b>Here's what you can do:</b>
<br>
<br>
<a href="query.php?op=query">Query existing bug reports</a><br>
<a href="bug.php?op=add">Enter a new bug report</a><br>
<a href="report.php">Get summary reports</a><br>
<p>
<a href="newaccount.php">Open a new account</a><br>
<a href="user.php">Change password or user preferences</a><br>
<a href="logout.php">Forget currently stored login</a><br>
<br>
<FORM METHOD=GET ACTION="bug.php">
<input type="hidden" name="op" value="show">
<INPUT TYPE=SUBMIT VALUE="Find"> bug # <INPUT NAME=bugid SIZE=6></FORM>
</td>
<td valign="top">
<b>Quick stats</b>
<br>
<br>
<table border="1" cellspacing="0" cellpadding="2">
<tr>
<th>Status</th>
<th># bugs</th>
</tr>
<!-- BEGIN row -->
<tr>
<td>{status}</td>
<td align="center">{count}</td>
</tr>
<!-- END row -->
</table>
</td>
</tr>
</table>
--- NEW FILE: login.html ---
<?php
global $formvars;
if (!$formvars) {
$formvars = htmlentities(serialize($GLOBALS[HTTP_POST_VARS]));
}
?>
<html>
<head>
<title>phpBugTracker Login</title>
<!--<link rel="StyleSheet" href="/siteadmin.css" type="text/css">-->
<style>
td { font-family: "Verdana","Tahoma","Arial","Helvetica","Times";
color: rgb(0,0,0);
font-size: 9px; }
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#004433" alink="#004433" vlink="#004433">
<center>
<br>
<br>
<br>
<div align='center'><b>User Login</b></div>
<br>
<form action='<?php print $GLOBALS[REQUEST_URI] ?>' method='post'>
<input type="hidden" name="formvars" value="<?php echo $formvars ?>">
<table border="0">
<?php global $username, $emailsuccess; if (isset($username)) { ?>
<tr>
<td align='center'>
<?php if (!$emailsuccess) { ?>
<font color='#ff0000'>
<b>Invalid login and/or password</b>
</font>
<?php } else { ?>
<font color='#0000ff'>
<b>Your password has been mailed to you</b>
</font>
<?php } ?>
</td>
</tr>
<?php } ?>
<tr>
<td>Login (Email):</td>
</tr>
<tr>
<td><input size="30" name='username' value='<?php if (isset($this->auth["uname"])) print $this->auth["uname"] ?>'></td>
</tr>
<tr>
<td>Password:</td>
</tr>
<tr>
<td><input size="30" type='password' name='password'></td>
</tr>
<tr>
<td align="right">
<input type="submit" name="emailpass" value="Email my password">
<input type="submit" value="Go">
</td>
</tr>
<tr>
<td align="center">
<hr size="1" color="#000000" width="140">
<br>
<br>
<a href="newaccount.php">Open a new account</a>
</td>
</tr>
</table>
</form>
</center>
</body>
<script language="JavaScript">
<!--
if (document.forms[0][0].value != '') {
document.forms[0][1].focus();
} else {
document.forms[0][0].focus();
}
// -->
</script>
</html>
--- NEW FILE: logout.html ---
<html>
<head>
<title>phpBugTracker</title>
<style>
td { font-family: "Verdana","Tahoma","Arial","Helvetica","Times";
color: rgb(0,0,0);
font-size: 9px; }
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#004433" alink="#004433" vlink="#004433">
<center>
<br>
<br>
<br>
You have been logged out
<br>
<br>
<a href="index.php">Return to phpBugTracker home</a>
</center>
</body>
</html>
--- NEW FILE: newaccount.html ---
<h2>Create a new account</h2>
<form action="{me}" method="post">
<table border="0">
<tr>
<td align="center" colspan="2">
<font color="#ff0000">{error}</font>
</td>
</tr>
<tr>
<td align="right">Email: </td>
<td><input type="text" name="email" value="{email}"></td>
</tr>
<tr>
<td align="right">First Name (optional):</td>
<td>
<input type="text" name="firstname" value="{firstname}">
</td>
</tr>
<tr>
<td align="right">Last Name (optional):</td>
<td>
<input type="text" name="lastname" value="{lastname}">
</td>
</tr>
</table>
<input type="submit" value="Create new account">
</form>
--- NEW FILE: newaccountsuccess.html ---
<br>
<br>
<table border="0" width="640" align="center">
<tr>
<td>
Thanks for creating an account. Check your email for your password.
</td>
</tr>
</table>
<br>
<br>
--- NEW FILE: newbugform.html ---
<html>
<head>
<title>Bug Form</title>
</head>
<body bgcolor="#FFFFFF">
<form action="bug.php" method="post">
<input type="hidden" name="bugid" value="{bugid}">
<table border='0'>
<tr>
<td align="right" valign="top">Title:</td>
<td><input type="text" size="30" maxlength="30" name="title" value="{title}"></td>
</tr>
<tr>
<td align="right" valign="top">Description:</td>
<td><textarea name="description" cols=40 rows=5 wrap=virtual>{description}</textarea></td>
</tr>
<tr>
<td align="right" valign="top">URL:</td>
<td><input type="text" size="255" maxlength="255" name="url" value="{url}"></td>
</tr>
<tr>
<td align="right" valign="top">Severity:</td>
<td>
<select name="severity">
{severity}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">Priority:</td>
<td>
<select name="priority">
{priority}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">Status:</td>
<td>
<select name="status">
{status}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">AssignedTo:</td>
<td><input type="text" size="3" maxlength="3" name="assignedto" value="{assignedto}"></td>
</tr>
<tr>
<td align="right" valign="top">Project:</td>
<td>
<select name="project">
{project}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">Component:</td>
<td>
<select name="component">
{component}
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">OS:</td>
<td>
<select name="os">
{os}
</select>
</td>
</tr>
</table>
<input type='submit' name='submit' value='Submit'>
</form>
</body>
</html>
--- NEW FILE: passwordchanged.html ---
Your password has been changed successfully
<br>
<br>
<a href="index.php">Return to phpBugTracker home</a>
--- NEW FILE: passwordform.html ---
<form action="{me}" method="{post}">
<input type="hidden" name="do" value="changepassword">
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td colspan="2" width="600"><b>Change Password</b></td>
</tr>
<tr>
<td colspan="2" width="600">
<font color="#ff0000">{error}</font>
</td>
</tr>
<tr>
<td colspan="2" width="600">Please enter your new password twice below</td>
</tr>
<tr>
<td>Password: </td>
<td><input type="password" name="pass1" value="{pass1}"></td>
</tr>
<tr>
<td>Verify: </td>
<td><input type="password" name="pass2" value="{pass2}"></td>
</tr>
<tr>
<td colspan="2">
<input type="reset">
<input type="submit" value="Submit">
</td>
</tr>
</table>
</form>
--- NEW FILE: projectlist.html ---
<H2>First, you must pick a product on which to enter
a bug.</H2>
<table>
<!-- BEGIN row -->
<tr>
<td align="right" valign="top">
<a href="bug.php?op=add&project={id}">{name}</a>:
</td>
<td valign="top">
{description}
</td>
</tr>
<!-- END row -->
</table>
--- NEW FILE: queryform.html ---
<script language="JavaScript">
<!--
versions = new Array();
components = new Array();
versions['All'] = new Array(new Array('','All'));
components['All'] = new Array(new Array('','All'));
{js}
function updateMenus(f) {
sel = f.projects[f.projects.selectedIndex].text;
f.versions.length = versions[sel].length;
for (var x = 0; x < versions[sel].length; x++) {
f.versions.options[x].value = versions[sel][x][0];
f.versions.options[x].text = versions[sel][x][1];
}
f.components.length = components[sel].length;
for (var x = 0; x < components[sel].length; x++) {
f.components.options[x].value = components[sel][x][0];
f.components.options[x].text = components[sel][x][1];
}
}
//-->
</script>
<form method="get" action="query.php" name="query">
<table>
<tr>
<th align="left">Status:</th>
<th align="left">Resolution:</th>
<th align="left">OpSys:</th>
<th align="left">Priority:</th>
<th align="left">Severity:</th>
</tr>
<tr>
<td align="left" valign="top">
<select name="status[]" multiple size="7">{status}</select>
</td>
<td align="left" valign="top">
<select name="resolution[]" multiple size="7">{resolution}</select>
</td>
<td align="left" valign="top">
<select name="os[]" multiple size="7">{os}</select>
</td>
<td align="left" valign="top">
<select name="priority[]" multiple size="7">{priority}</select>
</td>
<td align="left" valign="top">
<select name="severity[]" multiple size="7">{severity}</select>
</td>
</tr>
</table>
<br>
<br>
<table>
<tr>
<td>
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td>
<table cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" valign="top">
Email: <input name="email1" size="30" value=""> matching
as <select name="emailtype1">
<option value="rlike">
regexp
</option>
<option value="not rlike">
not regexp
</option>
<option selected value="like">
substring
</option>
<option value="=">
exact
</option>
</select> </td>
<td><input type="checkbox" name="emailfield1[]" value="Owner"
checked>Assigned To</td>
</tr>
<tr>
<td><input type="checkbox" name="emailfield1[]" value="Reporter">
Reporter</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0">
<tr>
<td align="right">Summary:</td>
<td><input name="Title" size="30" value=""></td>
<td><select name="Title_type">
<option value="like" selected>
substring
</option>
<option value="rlike">
regular expression
</option>
<option value="not rlike">
not ( regular expression )
</option>
</select></td>
</tr>
<tr>
<td align="right">A description entry:</td>
<td><input name="Description" size="30" value=""></td>
<td><select name="Description_type">
<option value="like" selected>
substring
</option>
<option value="rlike">
regular expression
</option>
<option value="not rlike">
not ( regular expression )
</option>
</select></td>
</tr>
<tr>
<td align="right">URL:</td>
<td><input name="URL" size="30" value=""></td>
<td><select name="URL_type">
<option value="like" selected>
substring
</option>
<option value="rlike">
regular expression
</option>
<option value="not rlike">
not ( regular expression )
</option>
</select></td>
</tr>
</table>
<hr align="left" width="640">
<table>
<tr>
<td><b>Project:</b></td>
<td>
<select name="projects" onChange="updateMenus(this.form)">
<option value=''>All</option>
{projects}
</select>
</td>
</tr>
<tr>
<td><b>Version:</b></td>
<td>
<select name="versions"><option value=''>All</option></select>
</td>
</tr>
<tr>
<td><b>Component:</b></td>
<td>
<select name="components"><option value=''>All</option></select>
</td>
</tr>
</table>
<hr align="left" width="640">
<input type="hidden" name="op" value="doquery">
<nobr><b>Sort By:</b>
<select name="order">
<option value="BugID">
Bug Number
</option>
<option selected value="Severity.SortOrder">
Severity
</option>
<option value="Reporter">
Reporter
</option>
<option value="Status.SortOrder">
Status
</option>
<option value="Priority">
Priority
</option>
</select>
<select aame="sort">
<option selected value="asc">Ascending</option>
<option value="desc">Descending</option>
</select>
</nobr>
<br>
<br>
Save this query as: <input maxlength="40" type="text" name="savedqueryname">
<br>
<input type="reset" value="Reset back to the default query">
<input type="submit" value="Submit query">
</form>
<hr align="left" size="1" width="640">
<b>Saved Queries</b>
<br>
<a href="{me}?op=mybugs">List bugs assigned to me</a>
<br>
<!-- BEGIN row -->
<a href="{me}?{savedquerystring}">{savedqueryname}</a> (<a href="{me}?op=delquery&queryid={savedqueryid}" onClick="return confirm('Are you sure you want to delete this saved query?');">Delete</a>)<br>
<!-- END row -->
</body>
</html>
--- NEW FILE: wrap.html ---
<html>
<head>
<META HTTP-EQUIV="Expires" CONTENT="-1">
<title>phpBugTracker - {TITLE}</title>
<link rel="StyleSheet" href="global.css" type="text/css">
</head>
<body bgcolor="#ffffff" link="#006699" vlink="#006699" alink="#006699">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="640" colspan="2"><hr size="1" width="640"></td>
</tr>
<tr>
<td width="540" valign="center">
<font id="stockfontb"><b>
[
<a href="index.php">Home</a> |
<a href="bug.php?op=add">Enter Bug</a> |
<a href="query.php?op=query">Query Bugs</a> |
<a href="report.php">Reporting</a> |
<a href="user.php">Personal Page</a>
<!-- BEGIN logoutblock -->
| <a href="logout.php">Logout {loggedinas}</a>
<!-- END logoutblock -->
]
</font>
</td>
<td width="100" align="right" valign="center">
<font id="stockfontb"><b>
[
<a href="admin/project.php">Admin Tools</a>
]
</font>
</td>
</tr>
<tr>
<td width="640" colspan="2"><hr size="1" width="640"></td>
</tr>
</table>
{content}
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="640" colspan="2"><hr size="1" width="640"></td>
</tr>
<tr>
<td>
<font id="stockfontb">
<b><a href="#top">Top</a></b>
</font>
</td>
<td align="right">
<font id="stockfontb">
<b><a href="index.php">Home</a></b>
</font>
</td>
</tr>
</table>
|