summaryrefslogtreecommitdiff
path: root/includes/admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-10-10 10:52:19 +0000
committerDries Buytaert <dries@buytaert.net>2000-10-10 10:52:19 +0000
commit4a6c6de758960a2f98ba58f20a1c17c6ee67111c (patch)
treed0466a04feb29ce5769d90ffb8041b78412faa82 /includes/admin.inc
parent73077e8778cfd890f51023f6683e70904317cc6f (diff)
downloadbrdo-4a6c6de758960a2f98ba58f20a1c17c6ee67111c.tar.gz
brdo-4a6c6de758960a2f98ba58f20a1c17c6ee67111c.tar.bz2
Huge update - I don't have time to write everything down but the directory
structure changes, some sections are expanded. Take a look at the source code or ask me to elaborate on certain issues/topics.
Diffstat (limited to 'includes/admin.inc')
-rw-r--r--includes/admin.inc78
1 files changed, 78 insertions, 0 deletions
diff --git a/includes/admin.inc b/includes/admin.inc
new file mode 100644
index 000000000..4d0ed0dda
--- /dev/null
+++ b/includes/admin.inc
@@ -0,0 +1,78 @@
+<?
+
+
+function admin_icon($name) {
+ global $section;
+ if ($name == $section) print " <TD ALIGN=\"center\" BGCOLOR=\"#CCCCCC\"><A HREF=\"admin.php?section=$name\"><IMG SRC=\"images/admin-$name.png\" BORDER=\"0\"></A><BR>$name</TD>\n";
+ else print " <TD ALIGN=\"center\" VALIGN=\"middle\"><A HREF=\"admin.php?section=$name\"><IMG SRC=\"images/admin-$name.png\" BORDER=\"0\"></A><BR>$name</TD>\n";
+}
+
+function admin_header() {
+ global $sitename, $section, $status;
+
+ ?>
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+ <HTML>
+ <HEAD><TITLE><? echo $sitename; ?> administration center</TITLE></HEAD>
+ <STYLE>
+ body { font-family: helvetica, arial; }
+ h1 { font-size: 14pt; font-weight: bold; color: #006699; }
+ h2 { font-family: helvetica, arial; font-size: 12pt; font-weight: bold; }
+ h3 { font-family: helvetica, arial; font-size: 14pt; font-weight: bold; }
+ th { font-family: helvetica, arial; text-align: center; background-color: #CCCCCC; color: #885555; }
+ td { font-family: helvetica, arial; }
+ </STYLE>
+ <BODY BGCOLOR="#FFFFFF" LINK="#006699" VLINK="#004499" ALINK="#FF0000">
+ <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="2" WIDTH="780">
+ <TR><TD COLSPAN="10"><H1><? echo "$sitename"; ?> administration center</H1></TD></TR>
+ <TR><TD BGCOLOR="#000000" COLSPAN="10" WIDTH="100%"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="1" ALT=""></TD></TR>
+ <TR>
+ <?
+ admin_icon("stories");
+ admin_icon("comments");
+ admin_icon("diaries");
+ admin_icon("accounts");
+ admin_icon("misc");
+ admin_icon("bans");
+ admin_icon("logs");
+ admin_icon("stats");
+ admin_icon("info");
+ admin_icon("home");
+ ?>
+ </TR>
+ <TR><TD BGCOLOR="#000000" COLSPAN="10" WIDTH="100%"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="0" ALT=""></TD></TR>
+ <TR><TD COLSPAN="10">&nbsp;</TD></TR>
+ <?
+ if ($status) {
+ ?>
+ <TR><TD COLSPAN="10"><BIG><B>status:</B> <? echo $status; ?></BIG></TD></TR>
+ <TR><TD COLSPAN="10">&nbsp;</TD></TR>
+ <?
+ }
+ ?>
+ <TR>
+ <TD COLSPAN="10">
+ <?
+}
+
+function admin_box($title, $body) {
+ print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
+ print " <TR><TD><FONT COLOR=\"#83997A\"><B>$title</B></A></TD></TR>\n";
+ print " <TR><TD BGCOLOR=\"#000000\" WIDTH=\"100%\"><IMG SRC=\"images/pixel.gif\" WIDTH=\"1\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
+ print " <TR><TD>&nbsp;</TD></TR>\n";
+ print " <TR><TD>$body</TD></TR>\n";
+ print "</TABLE>\n";
+ print "<BR><BR>\n";
+}
+
+function admin_footer() {
+ ?>
+ </TD>
+ </TR>
+ </TABLE>
+ </BODY>
+ </HTML>
+ <?
+}
+
+?> \ No newline at end of file