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 {
|
2000-12-23 23:25:28 +00:00
|
|
|
// color set #1:
|
2000-09-26 07:34:33 +00:00
|
|
|
var $bgcolor1 = "#EAEAEA"; // background color
|
|
|
|
var $fgcolor1 = "#404040"; // table body color
|
|
|
|
var $hlcolor1 = "#666699"; // high-light color
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// color set #2:
|
2000-09-26 07:34:33 +00:00
|
|
|
var $bgcolor2 = "#666699";
|
|
|
|
var $fgcolor2 = "#666699";
|
|
|
|
var $hlcolor2 = "#666699";
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// color set #3:
|
2000-09-26 07:34:33 +00:00
|
|
|
var $bgcolor3 = "#EFEFEF";
|
|
|
|
var $fgcolor3 = "yellow";
|
|
|
|
var $hlcolor3 = "yellow";
|
|
|
|
|
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
|
|
|
<META NAME="description" CONTENT="drop.org">
|
|
|
|
<META NAME="keywords" CONTENT="drop, weblog, portal, community, news, article, announcements, stories, story, computer, science, space, hype, cult, geek, nerd, foo, bar">
|
|
|
|
</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>
|
2000-11-25 12:56:04 +00:00
|
|
|
<TD><A HREF=""><IMG SRC="themes/marvin/images/logo.gif" ALT="drop.org" BORDER="0"></A></TD>
|
2000-12-29 11:57:54 +00:00
|
|
|
<TD> </TD>
|
2000-09-26 07:34:33 +00:00
|
|
|
</TR>
|
|
|
|
<TR>
|
2000-12-16 08:39:01 +00:00
|
|
|
<TD ALIGN="right" COLSPAN="2"><SMALL><A HREF="/">home</A> | <A HREF="module.php?mod=faq">faq</A> | <A HREF="module.php?mod=diary">diary</A> | <A HREF="search.php">search</A> | <A HREF="submit.php">submit news</A> | <A HREF="account.php">user account</A></SMALL></TD>
|
2000-09-26 07:34:33 +00:00
|
|
|
</TR>
|
|
|
|
<TR>
|
2000-11-25 12:56:04 +00:00
|
|
|
<TD VALIGN="top" WIDTH="100%">
|
2000-09-26 07:34:33 +00:00
|
|
|
<?
|
|
|
|
}
|
|
|
|
|
|
|
|
function abstract($story) {
|
2001-01-26 13:38:46 +00:00
|
|
|
print "\n<!-- story: \"$story->subject\" -->\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
|
2000-12-27 12:44:27 +00:00
|
|
|
print " <TR><TD COLSPAN=\"2\"><IMG SRC=\"themes/marvin/images/drop.gif\" ALT=\"\"> <B>". check_output($story->subject) ."</B></TD></TR>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
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";
|
2001-01-21 19:41:11 +00:00
|
|
|
print " <FONT COLOR=\"#7C7C7C\"><SMALL>Submitted by ". format_username($story->userid) ." on ". format_date($story->timestamp, "extra 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";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"> </TD></TR>\n";
|
|
|
|
print " <TR>\n";
|
|
|
|
print " <TD COLSPAN=\"2\">\n";
|
2000-11-01 15:09:05 +00:00
|
|
|
if ($story->abstract) print " <P>". check_output($story->abstract, 1) ."</P>\n";
|
|
|
|
if ($story->updates) print " <P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT> ". check_output($story->updates, 1) ."</P>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"> </TD></TR>\n";
|
2000-12-23 23:25:28 +00:00
|
|
|
print " <TR><TD COLSPAN=\"2\">". theme_morelink($this, $story) ."</TD></TR>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print "</TABLE>\n";
|
|
|
|
print "<BR><BR>\n\n";
|
|
|
|
}
|
|
|
|
|
2001-01-13 08:29:50 +00:00
|
|
|
function article($story, $reply = "") {
|
2000-11-02 09:23:07 +00:00
|
|
|
print "\n<!-- story: \"$story->subject\" -->\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
|
2000-12-27 12:44:27 +00:00
|
|
|
print " <TR><TD COLSPAN=\"2\"><IMG SRC=\"themes/marvin/images/drop.gif\" ALT=\"\"> <B>". check_output($story->subject) ."</B></TD></TR>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
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";
|
2001-01-26 13:38:46 +00:00
|
|
|
print " <FONT COLOR=\"#7C7C7C\"><SMALL>Submitted by ". format_username($story->userid) ." on ". format_date($story->timestamp, "extra 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>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
print " </TD>\n";
|
|
|
|
print " </TR>\n";
|
|
|
|
print " <TR><TD COLSPAN=\"2\"> </TD></TR>\n";
|
|
|
|
print " <TR>\n";
|
|
|
|
print " <TD COLSPAN=\"2\">\n";
|
2000-11-01 15:09:05 +00:00
|
|
|
if ($story->abstract) print " <P>". check_output($story->abstract, 1) ."</P>\n";
|
|
|
|
if ($story->updates) print " <P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT>". check_output($story->updates, 1) ."</P>\n";
|
|
|
|
if ($story->article) print " <P>". check_output($story->article, 1) ."</P>\n";
|
2000-09-26 07:34:33 +00:00
|
|
|
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";
|
|
|
|
}
|
|
|
|
|
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-01-20 12:20:31 +00:00
|
|
|
function comment($comment, $link = "", $thread = "") {
|
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";
|
|
|
|
print " <TD BGCOLOR=\"$this->bgcolor1\">\n";
|
|
|
|
print " <TABLE BORDER=\"0\" CELLPADDING=\"2\" CELLSPACING=\"1\" WIDTH=\"100%\">\n";
|
|
|
|
print " <TR>\n";
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Subject:
|
2000-09-26 07:34:33 +00:00
|
|
|
print " <TD ALIGN=\"right\" WIDTH=\"5%\"><B>Subject:</FONT></TD>\n";
|
2000-11-03 07:57:28 +00:00
|
|
|
print " <TD WIDTH=\"80%\"><B><FONT COLOR=\"$this->hlcolor1\">". 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";
|
2000-11-03 07:57:28 +00:00
|
|
|
print " <TD ALIGN=\"right\" VALIGN=\"top\">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";
|
2000-11-03 07:57:28 +00:00
|
|
|
print " <TD ALIGN=\"right\">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 thread (if any):
|
2000-09-26 07:34:33 +00:00
|
|
|
if ($thread) print " <TR><TD BGCOLOR=\"$this->bgcolor1\">$thread</TD></TR>\n";
|
|
|
|
|
2000-12-23 23:25:28 +00:00
|
|
|
// Print bottom link(s):
|
2000-09-26 07:34:33 +00:00
|
|
|
print " <TR><TD ALIGN=\"right\" BGCOLOR=\"$this->bgcolor1\">[ $link ]</TD></TR>\n";
|
|
|
|
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";
|
2000-12-23 23:25:28 +00:00
|
|
|
print " <TR><TD ALIGN=\"center\" BGCOLOR=\"$this->bgcolor1\" NOWRAP><FONT COLOR=\"$this->fgcolor1\"><B>$subject</B></FONT></TD></TR>\n";
|
|
|
|
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>
|
2000-11-25 12:56:04 +00:00
|
|
|
<TD VALIGN="top">
|
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">
|
2000-12-16 08:39:01 +00:00
|
|
|
<SMALL>[ <A HREF="/">home</A> | <A HREF="module.php?mod=faq">faq</A> | <A HREF="module.php?mod=diary">diary</A> | <A HREF="search.php">search</A> | <A HREF="submit.php">submit news</A> | <A HREF="account.php">user account</A> ]</SMALL>
|
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
|
|
|
?>
|