Skip to content

Commit

Permalink
tidied up news CSS
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@576 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 27, 2001
1 parent 1bebf4d commit 791fe56
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 52 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -4,6 +4,7 @@ Mantis

* Modified many files for extensive use of CSS.
* Added view by page feature.
* Added edit new link in news update page.

12.01.2001 - 0.16.1

Expand Down
14 changes: 5 additions & 9 deletions news_add.php3
Expand Up @@ -24,7 +24,6 @@
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<? print_top_page( $g_top_include_page ) ?>

<? print_menu( $g_menu_include_file ) ?>

<p>
Expand All @@ -33,18 +32,15 @@
if ( $result ) { ### SUCCESS
PRINT "$s_news_added_msg<p>";
?>
<table width="75%" bgcolor="<? echo $g_primary_border_color ?>" <? echo $g_primary_table_tags ?>>
<table class="width75" cellspacing="0">
<tr>
<td bgcolor="<? echo $g_primary_color_dark ?>">
<b><? echo $f_headline ?></b>
<td class="news-heading">
<span class="news-headline"><? echo $f_headline ?></span>
</td>
</tr>
<tr>
<td bgcolor="<? echo $g_primary_color_light ?>">
<br>
<blockquote>
<? echo $f_body ?>
</blockquote>
<td class="news-body">
<? echo $f_body ?>
</td>
</tr>
</table>
Expand Down
1 change: 0 additions & 1 deletion news_delete.php3
Expand Up @@ -27,7 +27,6 @@
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<? print_top_page( $g_top_include_page ) ?>

<? print_menu( $g_menu_include_file ) ?>

<p>
Expand Down
1 change: 0 additions & 1 deletion news_delete_page.php3
Expand Up @@ -19,7 +19,6 @@
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<? print_top_page( $g_top_include_page ) ?>

<? print_menu( $g_menu_include_file ) ?>

<p>
Expand Down
11 changes: 4 additions & 7 deletions news_edit_page.php3
Expand Up @@ -34,24 +34,21 @@
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<? print_top_page( $g_top_include_page ) ?>

<? print_menu( $g_menu_include_file ) ?>

<p>
<div align="center">
<? print_bracket_link( $g_news_menu_page, "Back" ) ?>
</div>

<? ### Edit News Form BEGIN ?>
<p>
<div align="center">
<form method="post" action="<? echo $g_news_update ?>">
<input type="hidden" name="f_id" value="<? echo $v_id ?>">
<table class="width75" cellspacing="0">
<tr>
<td class="form-title" colspan="2">
<td class="form-title">
<? echo $s_edit_news_title ?>
</td>
<td class="right">
<? print_bracket_link( $g_news_menu_page, "Back" ) ?>
</td>
</tr>
<tr class="row-1">
<td width="25%">
Expand Down
16 changes: 8 additions & 8 deletions news_list_page.php3
Expand Up @@ -18,38 +18,38 @@
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<? print_top_page( $g_top_include_page ) ?>

<? print_menu( $g_menu_include_file ) ?>

<p>

<ul>
<?
### Select the news posts
# Select the news posts
$query = "SELECT id, poster_id, UNIX_TIMESTAMP(date_posted) as date_posted, headline
FROM $g_mantis_news_table
WHERE project_id='$g_project_cookie_val' OR project_id='0000000'
ORDER BY id DESC";
$result = db_query( $query );
$news_count = db_num_rows( $result );

### Loop through results
# Loop through results
for ($i=0;$i<$news_count;$i++) {
$row = db_fetch_array($result);
extract( $row, EXTR_PREFIX_ALL, "v" );

$v_headline = string_display( $v_headline );
$v_date_posted = date( $g_normal_date_format, $v_date_posted );
$v_date_posted = date( $g_complete_date_format, $v_date_posted );

## grab the username and email of the poster
# grab the username and email of the poster
$row2 = get_user_info_by_id_arr( $v_poster_id );
if ( $row2 ) {
$t_poster_name = $row2["username"];
$t_poster_email = $row2["email"];
}

PRINT "<i>$v_date_posted</i> - <b><a href=\"$g_news_view_page?f_id=$v_id\">$v_headline</a></b> - $t_poster_name<br>";
} ### end for loop
PRINT "<li><span class=\"news-date\">$v_date_posted</span> - <span class=\"news-headline\"><a href=\"$g_news_view_page?f_id=$v_id\">$v_headline</a></span> - <a class=\"news-email\" href=\"mailto:echo $t_poster_email\">$t_poster_name</a>";
} # end for loop
?>
</ul>

<? print_bottom_page( $g_bottom_include_page ) ?>
<? print_footer(__FILE__) ?>
Expand Down
8 changes: 4 additions & 4 deletions news_menu_page.php3
Expand Up @@ -34,7 +34,7 @@
</td>
</tr>
<tr class="row-1">
<td width="25%">
<td class="category" width="25%">
<? echo $s_headline ?><br>
<? echo $s_do_not_use ?> "
</td>
Expand All @@ -43,15 +43,15 @@
</td>
</tr>
<tr class="row-2">
<td>
<td class="category">
<? echo $s_body ?>
</td>
<td>
<textarea name="f_body" cols="60" rows="8" wrap="virtual"></textarea>
</td>
</tr>
<tr class="row-1">
<td>
<td class="category">
<? echo $s_post_to ?>
</td>
<td>
Expand Down Expand Up @@ -92,7 +92,7 @@
</td>
</tr>
<tr class="row-2">
<td width="25%">
<td class="category" width="25%">
<? echo $s_select_post ?>
</td>
<td width="75%">
Expand Down
20 changes: 9 additions & 11 deletions news_update.php3
Expand Up @@ -31,31 +31,29 @@
<p>
<div align="center">
<?
if ( $result ) { ### SUCCESS
if ( $result ) { # SUCCESS
PRINT "$s_news_updated_msg<p>";
?>
<table width="75%" bgcolor="<? echo $g_primary_border_color ?>" <? echo $g_primary_table_tags ?>>
<table class="width75" cellspacing="0">
<tr>
<td bgcolor="<? echo $g_primary_color_dark ?>">
<b><? echo $f_headline ?></b>
<td class="news-heading">
<span class="news-headline"><? echo $f_headline ?></span>
</td>
</tr>
<tr>
<td bgcolor="<? echo $g_primary_color_light ?>">
<br>
<blockquote>
<? echo $f_body ?>
</blockquote>
<td class="news-body">
<? echo $f_body ?>
</td>
</tr>
</table>
<p>
<?
} else { ### FAILURE
} else { # FAILURE
print_sql_error( $query );
}

print_bracket_link( $g_news_menu_page, $s_proceed )
print_bracket_link( $g_news_edit_page."?f_id=".$f_id."&f_action=edit", $s_edit_link );
print_bracket_link( $g_news_menu_page, $s_proceed );
?>
</div>

Expand Down
18 changes: 7 additions & 11 deletions news_view_page.php3
Expand Up @@ -18,7 +18,6 @@
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<? print_top_page( $g_top_include_page ) ?>

<? print_menu( $g_menu_include_file ) ?>

<?
Expand Down Expand Up @@ -47,20 +46,17 @@
?>
<p>
<div align="center">
<table width="75%" bgcolor="<? echo $g_primary_border_color ?>" <? echo $g_primary_table_tags ?>>
<table class="width75" cellspacing="0">
<tr>
<td bgcolor="<? echo $g_primary_color_dark ?>">
<b><? echo $v_headline ?></b> -
<i><? echo $v_date_posted ?></i> -
<a href="mailto:<? echo $t_poster_email ?>"><? echo $t_poster_name ?></a>
<td class="news-heading">
<span class="news-headline"><? echo $v_headline ?></span> -
<span class="news-date"><? echo $v_date_posted ?></span> -
<a class="news-email" href="mailto:<? echo $t_poster_email ?>"><? echo $t_poster_name ?></a>
</td>
</tr>
<tr>
<td bgcolor="<? echo $g_primary_color_light ?>">
<br>
<blockquote>
<? echo $v_body ?>
</blockquote>
<td class="news-body">
<? echo $v_body ?>
</td>
</tr>
</table>
Expand Down

0 comments on commit 791fe56

Please sign in to comment.