Skip to content

Commit

Permalink
made main table title backgrounds variables
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@44 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 8, 2000
1 parent 5ac8255 commit 1d2051e
Show file tree
Hide file tree
Showing 27 changed files with 158 additions and 71 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -29,6 +29,7 @@ To Do:
to $g_view_bug_all_page $g_view_bug_page $g_view_bug_advanced_page
* Renamed corresponding .php3 files
* Added profile management
* Profiles can be used for advanced bug submission

12.06.2000 - 0.10.2

Expand Down
6 changes: 3 additions & 3 deletions account_page.php3
Expand Up @@ -44,14 +44,14 @@
?>
<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=50%>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100% cols=3>
<table cols=2 width=100%>
<form method=post action="<? echo $g_account_update ?>">
<input type=hidden name=f_id value="<? echo $u_id ?>">
<tr>
<td>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Edit Account</b>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions bug_update_advanced_page.php3
Expand Up @@ -83,14 +83,14 @@
?>

<p>
<table width=100% bgcolor=<? echo $g_primary_border_color ?>aa>
<table width=100% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<form method=post action="<? echo $g_bug_update ?>">
<input type=hidden name=f_id value="<? echo $v_id ?>">
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100% bgcolor=<? echo $g_white_color ?>>
<table cols=6 width=100% bgcolor=<? echo $g_white_color ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?> colspan=2>
<td colspan=6 bgcolor=<? echo $g_table_title_color ?>>
<b>Viewing Bug Details</b>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions bug_update_page.php3
Expand Up @@ -89,14 +89,14 @@
?>

<p>
<table width=100% bgcolor=<? echo $g_primary_border_color ?>aa>
<table width=100% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<form method=post action="<? echo $g_bug_update ?>">
<input type=hidden name=f_id value="<? echo $v_id ?>">
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100% bgcolor=<? echo $g_white_color ?>>
<table cols=6 width=100% bgcolor=<? echo $g_white_color ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?> colspan=2>
<td colspan=6 bgcolor=<? echo $g_table_title_color ?>>
<b>Viewing Bug Details</b>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions bugnote_add_inc.php
Expand Up @@ -9,10 +9,10 @@
### check access level
if ( access_level_check_greater( "reporter" ) ) {
?>
<table width=100% cols=2 bgcolor=<? echo $g_primary_border_color ?>>
<table width=100% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td valign=top width=25% bgcolor=<? echo $g_white_color ?>>
<table width=100% cols=2 bgcolor=<? echo $g_white_color ?>>
<td valign=top width=100% bgcolor=<? echo $g_white_color ?>>
<table width=100% bgcolor=<? echo $g_white_color ?>>
<tr>
<form method=post action="<? echo $g_bugnote_add_page ?>">
<td align=center bgcolor=<? echo $g_white_color ?> colspan=2>
Expand Down
4 changes: 2 additions & 2 deletions bugnote_add_page.php3
Expand Up @@ -30,14 +30,14 @@

<p>
<div align=center>
<table width=100% bgcolor=<? echo $g_primary_border_color ?>aa>
<table width=100% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<form method=post action="<? echo $g_bugnote_add ?>">
<input type=hidden name=f_bug_id value="<? echo $f_id ?>">
<tr>
<td>
<td bgcolor=<? echo $g_table_title_color ?>>
<b>Add Bugnote</b>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions bugnote_inc.php
Expand Up @@ -15,7 +15,7 @@
$num_notes = mysql_num_rows($result);
?>

<table width=100% cols=2 bgcolor=<? echo $g_primary_border_color ?>>
<table width=100% cols=2 bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<?
### no bugnotes
if ( $num_notes==0 ) {
Expand All @@ -30,8 +30,8 @@
### print bugnotes
else {
?>
<tr bgcolor=<? echo $g_white_color ?>>
<td colspan=2>
<tr>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Bug Notes</b>
</td>
</tr>
Expand Down
10 changes: 9 additions & 1 deletion config_inc.php
Expand Up @@ -171,14 +171,22 @@
# folows the english required by strtotime()
$g_date_partitions = array("1 day","3 days","1 week","1 month","1 year");

#--------------------
# html table appearance variables
$g_primary_table_tags = "";


#--------------------
# color values
$g_white_color = "#ffffff"; # white

$g_primary_color_dark = "#d8d8d8"; # gray
$g_primary_color_light = "#e8e8e8"; # light gray
$g_primary_border_color = "#aaaaaa"; # dark gray
$g_category_title_color = "#c8c8e8"; # bluish
$g_category_title_color2 = "#c0c0c8"; # gray bluish
$g_white_color = "#ffffff"; # white

$g_table_title_color = "#ffffff"; # white

$g_required_field_color = "#aa0000"; # redish

Expand Down
6 changes: 3 additions & 3 deletions login_error_page.php3
Expand Up @@ -21,13 +21,13 @@ you entered is incorrect.

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=50%>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table cols=2 width=100%>
<form action="<? echo $g_login ?>" method=post>
<form method=post action="<? echo $g_login ?>">
<tr>
<td>
<td bgcolor=<? echo $g_table_title_color ?>>
<b>Login</b>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions login_page.php3
Expand Up @@ -15,13 +15,13 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=50%>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table cols=2 width=100%>
<form action="<? echo $g_login ?>" method=post>
<tr>
<td colspan=2>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Login</b>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions logout_page.php3
Expand Up @@ -22,17 +22,17 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=50%>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<tr>
<td bgcolor=<? echo $g_primary_color_dark ?>>
<td bgcolor=<? echo $g_table_title_color ?>>
<b>Logged Out...</b>
</td>
</tr>
<tr>
<td bgcolor=<? echo $g_primary_color_light ?> align=center>
<td align=center bgcolor=<? echo $g_primary_color_dark ?>>
<b>...Redirecting <a href="<? echo $g_index ?>">Here</a></b>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion main_page.php3
Expand Up @@ -64,7 +64,7 @@
?>
<p>
<div align=center>
<table width=75% bgcolor=<? echo $g_primary_border_color ?>>
<table width=75% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_primary_color_dark ?>>
<b><? echo string_unsafe( $v_headline ) ?></b> -
Expand Down
4 changes: 2 additions & 2 deletions manage_category_page.php3
Expand Up @@ -29,13 +29,13 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=50%>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<form method=post action="<? echo $g_manage_category_update ?>">
<tr>
<td colspan=2>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Edit Categories</b>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions manage_create_user_page.php3
Expand Up @@ -29,13 +29,13 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=50%>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<form method=post action="<? echo $g_manage_create_new_user ?>">
<tr>
<td colspan=2>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Create New Account</b>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions manage_page.php3
Expand Up @@ -49,12 +49,12 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=100%>
<table width=100% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<table cols=8 width=100%>
<tr>
<td>
<td colspan=8 bgcolor=<? echo $g_table_title_color ?>>
<b>Manage Accounts</b>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions manage_user_page.php3
Expand Up @@ -37,14 +37,14 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=50%>
<table width=50% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<form method=post action="<? echo $g_manage_user_update ?>?f_action=update">
<input type=hidden name=f_id value="<? echo $u_id ?>">
<tr>
<td colspan=3 bgcolor=<? echo $g_white_color ?>>
<td colspan=3 bgcolor=<? echo $g_table_title_color ?>>
<b>Edit User</b>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion news_add.php3
Expand Up @@ -53,7 +53,7 @@
?>
<p>
<div align=center>
<table width=75% bgcolor=<? echo $g_primary_border_color ?>>
<table width=75% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_primary_color_dark ?>>
<b><? echo string_unsafe( $t_headline ) ?></b>
Expand Down
5 changes: 3 additions & 2 deletions news_edit_page.php3
Expand Up @@ -30,6 +30,7 @@
if ( $row ) {
extract( $row, EXTR_PREFIX_ALL, "v" );
}

$v_headline = string_edit( $v_headline );
$v_body = string_edit( $v_body );
?>
Expand All @@ -47,14 +48,14 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=75%>
<table width=75% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<form method=post action="<? echo $g_news_update ?>">
<input type=hidden name=f_id value="<? echo $v_id ?>">
<tr>
<td colspan=2>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Edit News</b>
</td>
</tr>
Expand Down
10 changes: 5 additions & 5 deletions news_menu_page.php3
Expand Up @@ -39,14 +39,14 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=75%>
<table width=75% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<form method=post action="<? echo $g_news_add ?>">
<input type=hidden name=f_poster_id value="<? echo $u_id ?>">
<tr>
<td colspan=2>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Add News</b>
</td>
</tr>
Expand Down Expand Up @@ -81,13 +81,13 @@

<p>
<div align=center>
<table bgcolor=<? echo $g_primary_border_color ?> width=75%>
<table width=75% bgcolor=<? echo $g_primary_border_color." ".$g_primary_table_tags ?>>
<tr>
<td bgcolor=<? echo $g_white_color ?>>
<table width=100%>
<form method=post action="<? echo $g_news_edit_page ?>">
<tr>
<td colspan=2>
<td colspan=2 bgcolor=<? echo $g_table_title_color ?>>
<b>Edit or Delete News</b>
</td>
</tr>
Expand All @@ -109,7 +109,7 @@
FROM $g_mantis_news_table
ORDER BY id DESC";
$result = db_mysql_query( $query );
$news_count = mysql_num_rows( $ result );
$news_count = mysql_num_rows( $result );

for ($i=0;$i<$news_count;$i++) {
$row = mysql_fetch_array( $result );
Expand Down
23 changes: 20 additions & 3 deletions report_add.php3
Expand Up @@ -40,12 +40,29 @@
$f_description = string_safe( $f_description );
$f_additional_info = string_safe( $f_additional_info );
$f_steps_to_reproduce = string_safe( $f_steps_to_reproduce );
$f_os = string_safe( $f_os );
$f_osbuild = string_safe( $f_osbuild );
$f_platform = string_safe( $f_platform );
$f_version = string_safe( $f_version );
$f_build = string_safe( $f_build );

$f_platform = string_safe( $f_platform );
$f_os = string_safe( $f_os );
$f_osbuild = string_safe( $f_osbuild );

### if a profile was selected then let's use that information
if ( !empty( $f_id ) ) {
### Get profile data and prefix with v_
$query = "SELECT id, platform, os, os_build, default_profile
FROM $g_mantis_user_profile_table
WHERE id='$f_id'";
$result = db_mysql_query( $query );
$profile_count = mysql_num_rows( $result );

$row = mysql_fetch_array( $result );
extract( $row, EXTR_PREFIX_ALL, "v" );
$f_platform = string_unsafe( $v_platform );
$f_os = string_unsafe( $v_os );
$f_osbuild = string_unsafe( $v_os_build );
}

### Insert text information
$query = "INSERT
INTO $g_mantis_bug_text_table
Expand Down

0 comments on commit 1d2051e

Please sign in to comment.