2000-09-26 07:34:33 +00:00
|
|
|
<?
|
2001-01-26 13:38:46 +00:00
|
|
|
|
2000-09-26 07:34:33 +00:00
|
|
|
class Theme {
|
2001-02-04 22:09:38 +00:00
|
|
|
var $link = "#666699";
|
|
|
|
|
2000-12-29 11:00:56 +00:00
|
|
|
function header() {
|
2000-11-13 08:17:45 +00:00
|
|
|
global $site_name;
|
2000-09-26 07:34:33 +00:00
|
|
|
?>
|
2001-01-26 13:38:46 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
2000-09-26 07:34:33 +00:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
2000-11-13 08:17:45 +00:00
|
|
|
<TITLE><? print $site_name; ?></TITLE>
|
2000-09-26 07:34:33 +00:00
|
|
|
</HEAD>
|
2001-01-26 13:38:46 +00:00
|
|
|
<STYLE type="text/css">
|
2000-09-26 07:34:33 +00:00
|
|
|
<!--
|
|
|
|
BODY,TD,P,UL,LI,DIV,FORM,EM,BLOCKQUOTE { font-size: 10pt; font-family: Lucida,Verdana,Helvetica,Arial; }
|
2000-10-02 07:32:17 +00:00
|
|
|
TH { font-size: 10pt; font-family: Lucida,Verdana,Helvetica,Arial; }
|
2000-09-26 07:34:33 +00:00
|
|
|
-->
|
|
|
|
</STYLE>
|
|
|
|
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" ALINK="#CCCCCC" LINK="#665555" VLINK="#665555">
|
|
|
|
<TABLE BORDER="0" CELLPADDING="8" CELLSPACING="0">
|
|
|
|
<TR>
|
2000-11-02 09:23:07 +00:00
|
|
|
<TD WIDTH="30" ROWSPAN="3"> </TD>
|
2001-03-03 15:28:52 +00:00
|
|
|
<TD><A HREF="index.php"><IMG SRC="themes/marvin/images/logo.gif" ALT="" BORDER="0"></A></TD>
|
2000-12-29 11:57:54 +00:00
|
|
|
<TD> </TD>
|
2000-09-26 07:34:33 +00:00
|
|
|
</TR>
|
|
|
|
<TR>
|
2001-03-02 08:14:42 +00:00
|
|
|
<TD ALIGN="right" COLSPAN="2">
|
|
|
|
<?
|
|
|
|
print "<SMALL><A HREF=\"index.php\">". t("home") ."</A> | <A HREF=\"module.php?mod=faq\">". t("faq") ."</A> | <A HREF=\"module.php?mod=diary\">". t("diary") ."</A> | <A HREF=\"search.php\">". t("search") ."</A> | <A HREF=\"submit.php\">". t("submit news") ."</A> | <A HREF=\"account.php\">". t("user account") ."</A></SMALL>\n";
|
|
|
|
?>
|
|
|
|
</TD>
|
2000-09-26 07:34:33 +00:00
|
|
|
</TR>
|
|
|
|
<TR>
|
2001-02-17 12:59:24 +00:00
|
|
|
<TD VALIGN="top" WIDTH="85%">
|
2000-09-26 07:34:33 +00:00
|
|
|
<?
|
|
|
|
}
|
|
|
|
|
2001-03-08 08:16:23 +00:00
|
|
|
function story($story, $reply = 0) {
|
|
|
|
if (!$reply) {
|
|
|
|
print "\n<!-- story: \"$story->subject\" -->\n";
|
|
|
|
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"><IMG SRC=\"themes/marvin/images/drop.gif\" ALT=\"\"> <B>". check_output($story->subject) ."</B></TD></TR>\n";
|
|
|
|
print " <TR VALIGN=\"bottom\"><TD COLSPAN=\"2\" BGCOLOR=\"#000000\" WIDTH=\"100%\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"1\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
|
|
|
|
print " <TR>\n";
|
|
|
|
print " <TD>\n";
|
|
|
|
print " <FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?><? if ($story->department) print "<BR>from the $story->department dept."; ?><? print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL><A HREF=\"?section=". urlencode($story->section) ."\"><FONT COLOR=\"#83997A\">$story->section</FONT></A></SMALL>\n";
|
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"> </TD></TR>\n";
|
|
|
|
print " <TR>\n";
|
|
|
|
print " <TD COLSPAN=\"2\">\n";
|
|
|
|
if ($story->abstract) print "<P>". check_output($story->abstract, 1) ."</P>\n";
|
|
|
|
if ($story->updates) print "<P><FONT COLOR=\"#666699\">". t("Editor's note") .":</FONT> ". check_output($story->updates, 1) ."</P>\n";
|
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"> </TD></TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\">". theme_morelink($this, $story) ."</TD></TR>\n";
|
|
|
|
print "</TABLE>\n";
|
|
|
|
print "<BR><BR>\n\n";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
print "\n<!-- story: \"$story->subject\" -->\n";
|
|
|
|
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"><IMG SRC=\"themes/marvin/images/drop.gif\" ALT=\"\"> <B>". check_output($story->subject) ."</B></TD></TR>\n";
|
|
|
|
print " <TR VALIGN=\"bottom\"><TD COLSPAN=\"2\" BGCOLOR=\"#000000\" WIDTH=\"100%\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"1\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
|
|
|
|
print " <TR><TD><FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?><? if ($story->department) print "<BR>from the $story->department dept."; ?><? print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL><A HREF=\"index.php?section=". urlencode($story->section) ."\"><FONT COLOR=\"#83997A\">$story->section</FONT></A></SMALL></TD></TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"> </TD></TR>\n";
|
|
|
|
print " <TR>\n";
|
|
|
|
print " <TD COLSPAN=\"2\">\n";
|
|
|
|
if ($story->abstract) print " <P>". check_output($story->abstract, 1) ."</P>\n";
|
|
|
|
if ($story->updates) print " <P><FONT COLOR=\"#666699\">". t("Editor's note") .":</FONT>". check_output($story->updates, 1) ."</P>\n";
|
|
|
|
if ($story->article) print " <P>". check_output($story->article, 1) ."</P>\n";
|
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"> </TD></TR>\n";
|
|
|
|
print " <TR><TD ALIGN=\"right\" COLSPAN=\"2\">". $reply ."</TD></TR>\n";
|
|
|
|
print "</TABLE>\n";
|
|
|
|
print "<BR><BR>\n\n";
|
|
|
|
}
|
2000-09-26 07:34:33 +00:00
|
|
|
}
|
|
|
|
|
2001-01-21 09:26:06 +00:00
|
|
|
function controls() {
|
2001-01-20 12:20:31 +00:00
|
|
|
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">\n";
|
|
|
|
print " <TR><TD BGCOLOR=\"#000000\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"100%\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
|
2001-01-21 09:26:06 +00:00
|
|
|
print " <TR><TD> </TD></TR>\n";
|
|
|
|
print " <TR><TD>". comment_controls() ."</TD></TR>\n";
|
2001-01-20 12:20:31 +00:00
|
|
|
print " <TR><TD BGCOLOR=\"#000000\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"100%\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
|
|
|
|
print "</TABLE>";
|
2000-09-26 07:34:33 +00:00
|
|
|
}
|
|
|
|
|
2001-02-27 20:58:51 +00:00
|
|
|
function comment($comment, $link = "") {
|
2000-11-03 07:57:28 +00:00
|
|
|
print "<A NAME=\"$comment->cid\">\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Create comment header:
|
2000-09-26 07:34:33 +00:00
|
|
|
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" BGCOLOR=\"#000000\" WIDTH=\"100%\">\n";
|
|
|
|
print " <TR BGCOLOR=\"#000000\">\n";
|
|
|
|
print " <TD>\n";
|
|
|
|
print " <TABLE BORDER=\"0\" CELLPADDING=\"3\" CELLSPACING=\"1\" WIDTH=\"100%\">\n";
|
|
|
|
print " <TR>\n";
|
2001-02-27 21:28:05 +00:00
|
|
|
print " <TD BGCOLOR=\"#EAEAEA\">\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " <TABLE BORDER=\"0\" CELLPADDING=\"2\" CELLSPACING=\"1\" WIDTH=\"100%\">\n";
|
|
|
|
print " <TR>\n";
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Subject:
|
2001-02-17 12:59:24 +00:00
|
|
|
print " <TD ALIGN=\"right\" WIDTH=\"5%\"><B>". t("Subject") .":</FONT></TD>\n";
|
2001-02-27 21:28:05 +00:00
|
|
|
print " <TD WIDTH=\"80%\"><B><FONT COLOR=\"#666699\">". check_output($comment->subject) ."</FONT></B></TD>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Moderation:
|
2000-09-26 07:34:33 +00:00
|
|
|
print " <TD ALIGN=\"right\" ROWSPAN=\"3\" VALIGN=\"middle\" WIDTH=\"15%\">\n";
|
2001-01-20 12:20:31 +00:00
|
|
|
print comment_moderation($comment);
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Author:
|
2000-09-26 07:34:33 +00:00
|
|
|
print " <TR>\n";
|
2001-02-17 12:59:24 +00:00
|
|
|
print " <TD ALIGN=\"right\" VALIGN=\"top\">". t("Author") .":</TD><TD>". format_username($comment->userid) ."</TD>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TR>\n";
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Date
|
2000-09-26 07:34:33 +00:00
|
|
|
print " <TR>\n";
|
2001-02-17 12:59:24 +00:00
|
|
|
print " <TD ALIGN=\"right\">". t("Date") .":</TD><TD>". format_date($comment->timestamp) ."</TD>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TR>\n";
|
|
|
|
|
|
|
|
print " </TABLE>\n";
|
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Print body of comment:
|
2000-11-03 07:57:28 +00:00
|
|
|
if ($comment->comment) print " <TR><TD BGCOLOR=\"#FFFFFF\">". check_output($comment->comment, 1) ."</TD></TR>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Print bottom link(s):
|
2001-02-27 21:28:05 +00:00
|
|
|
print " <TR><TD ALIGN=\"right\" BGCOLOR=\"#EAEAEA\">[ $link ]</TD></TR>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TABLE>\n";
|
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print "</TABLE>\n";
|
|
|
|
print "<BR>\n\n";
|
|
|
|
}
|
|
|
|
|
2001-01-26 13:38:46 +00:00
|
|
|
function box($subject, $content, $options = "") {
|
2000-09-26 07:34:33 +00:00
|
|
|
print "\n<!-- box: \"$subject\" -->\n";
|
|
|
|
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" BGCOLOR=\"#000000\" WIDTH=\"100%\">\n";
|
|
|
|
print " <TR>\n";
|
2000-12-23 23:25:28 +00:00
|
|
|
print " <TD>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " <TABLE BORDER=\"0\" CELLPADDING=\"5\" CELLSPACING=\"1\" WIDTH=\"100%\">\n";
|
2001-02-27 21:28:05 +00:00
|
|
|
print " <TR><TD ALIGN=\"center\" BGCOLOR=\"#EAEAEA\" NOWRAP><FONT COLOR=\"#404040\"><B>$subject</B></FONT></TD></TR>\n";
|
2000-12-23 23:25:28 +00:00
|
|
|
print " <TR><TD BGCOLOR=\"#FFFFFF\">$content</TD></TR>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TABLE>\n";
|
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print "</TABLE>\n";
|
|
|
|
print "<BR>\n\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
function footer() {
|
|
|
|
?>
|
|
|
|
</TD>
|
2001-02-17 12:59:24 +00:00
|
|
|
<TD VALIGN="top" WIDTH=\"200\">
|
2000-09-26 07:34:33 +00:00
|
|
|
<?
|
2001-01-13 16:33:19 +00:00
|
|
|
theme_account($this);
|
2001-01-13 16:41:35 +00:00
|
|
|
theme_blocks("all", $this);
|
2000-12-23 23:25:28 +00:00
|
|
|
?>
|
2000-09-26 07:34:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
<TR>
|
|
|
|
<TD ALIGN="center" COLSPAN="3">
|
2001-03-02 08:14:42 +00:00
|
|
|
<?
|
2001-03-04 12:06:13 +00:00
|
|
|
print "<SMALL>[ <A HREF=\"index.php\">". t("home") ."</A> | <A HREF=\"module.php?mod=faq\">". t("faq") ."</A> | <A HREF=\"module.php?mod=diary\">". t("diary") ."</A> | <A HREF=\"search.php\">". t("search") ."</A> | <A HREF=\"submit.php\">". t("submit news") ."</A> | <A HREF=\"account.php\">". t("user account") ."</A> ]</SMALL><P>\n";
|
2001-03-02 08:14:42 +00:00
|
|
|
?>
|
2001-03-04 12:06:13 +00:00
|
|
|
<CENTER><SMALL><I><FONT COLOR="#7C7C7C">Powered by <A HREF="http://drop.org/module.php?mod=drupal">drupal</A>.</FONT></I></SMALL></CENTER>
|
2000-09-26 07:34:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
</TABLE>
|
2001-01-26 13:38:46 +00:00
|
|
|
</BODY>
|
2000-09-26 07:34:33 +00:00
|
|
|
</HTML>
|
|
|
|
<?
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-12-27 12:44:27 +00:00
|
|
|
?>
|