add a notify at the bottom if the news is cached

This commit is contained in:
Dan Olson 2000-06-22 00:59:12 +00:00
parent 231eb79fc2
commit 683674bfcc
2 changed files with 36 additions and 32 deletions

View File

@ -1,32 +1,34 @@
<? // Preamble <? // Preamble
$pageName = "News"; $pageName = "News";
$focused = "home"; // Dock icon name to get a border $focused = "home"; // Dock icon name to get a border
require "parts/preamble.php"; // Load most of document require "parts/preamble.php"; // Load most of document
?> ?>
<!--SEARCHME--> <!--SEARCHME-->
<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0"> <TABLE width="100%" cellSpacing="0" cellPadding="0" border="0">
<TR vAlign="top"> <TR vAlign="top">
<TD colSpan="2"><? // News display <TD colSpan="2"><? // News display
tableBoxHeader (featureBgColor, featureHeadColor); tableBoxHeader (featureBgColor, featureHeadColor);
tableTitle ('Latest News', 1, featureHeadColor); tableTitle ('Latest News', 1, featureHeadColor);
require "news_funcs.php"; require "news_funcs.php";
latestNews ('1 month'); $cached = latestNews ('1 month');
tableBoxFooter (); tableBoxFooter ();
?></TD> if ($cached)
</TR> echo '<P>A MySQL error occoured. This news is cached and may not be current';
<TR vAlign=top> ?></TD>
<? tableSpacer (9, 9, 1, "black"); ?> </TR>
</TR> <TR vAlign=top>
<TR vAlign=top> <? tableSpacer (9, 9, 1, "black"); ?>
<TD align="center"> </TR>
<? include "sponsor_incl.html"; ?> <TR vAlign=top>
</TD> <TD align="center">
</TR> <? include "sponsor_incl.html"; ?>
<TR vAlign=top> </TD>
<? tableSpacer (9, 9, 1, "black"); ?> </TR>
</TR> <TR vAlign=top>
</TABLE> <? tableSpacer (9, 9, 1, "black"); ?>
<!--NOSEARCH--> </TR>
<? </TABLE>
require "parts/postamble.php"; // Finish this sucker up <!--NOSEARCH-->
?> <?
require "parts/postamble.php"; // Finish this sucker up
?>

View File

@ -127,8 +127,10 @@
mysql_close ($conn); mysql_close ($conn);
} else { } else {
include ('cache.php'); include ('cache.php');
return (1);
// newsItem ('Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch news. Please notify the server administrator.'); // newsItem ('Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch news. Please notify the server administrator.');
} }
return (0);
} }
function fetchNewsEntry ($number) function fetchNewsEntry ($number)