2003-07-17 23:54:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("db_ops.inc");
|
2003-08-22 05:36:25 +00:00
|
|
|
require_once("../html_user/util.inc");
|
|
|
|
require_once("../html_user/project_specific/project.inc");
|
2003-07-17 23:54:23 +00:00
|
|
|
|
|
|
|
define("EMAIL_EXISTS", -1);
|
|
|
|
define("EMAIL_UPDATED", 1);
|
|
|
|
define("EMAIL_FAIL", -2);
|
|
|
|
|
|
|
|
define("LG_FONT", "<font size=+1>");
|
|
|
|
define("SM_FONT", "<font size=-1>");
|
|
|
|
|
|
|
|
define("TD", "<td bgcolor=#708090>");
|
|
|
|
define("TD2", "<td colspan=2 bgcolor=#708090>");
|
|
|
|
define("TD3", "<td colspan=3 bgcolor=#708090>");
|
|
|
|
|
|
|
|
define("TABLE", "<table cellpadding=10 cellspacing=4 border=0 width=100%>");
|
|
|
|
define("TABLE2", "<table width=580>");
|
|
|
|
|
|
|
|
define("TITLE_COLOR", " bgcolor=000000 ");
|
|
|
|
define("TITLE_FONT", " <font color=ffffff> ");
|
|
|
|
define("BODY_COLOR", " bgcolor=ffffff ");
|
|
|
|
define("NOLOGIN", "Not logged in. Click <a href=login.php>here</a> to login.\n");
|
|
|
|
|
2003-08-22 05:36:25 +00:00
|
|
|
function admin_page_head($title) {
|
2003-07-17 23:54:23 +00:00
|
|
|
echo "<head><title>$title</title><body " . BODY_COLOR . ">\n";
|
|
|
|
echo TABLE . "<tr " . TITLE_COLOR . "><td>" . TITLE_FONT . "<font size=6><b><a href=index.php>".PROJECT.":</a> $title</b></font></td></tr></table>\n";
|
|
|
|
}
|
|
|
|
|
2003-08-22 05:36:25 +00:00
|
|
|
function admin_page_tail() {
|
2003-07-17 23:54:23 +00:00
|
|
|
echo "<hr><a href=index.php> Main admin page </a>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
function print_checkbox($text,$name,$checked) {
|
|
|
|
echo "<input type=checkbox name=$name"
|
|
|
|
. (strlen($checked) ? " checked" : "") . ">"
|
|
|
|
. "$text\n"
|
|
|
|
. "<p>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
function print_radio_button($text,$name,$value,$checked) {
|
|
|
|
echo "<input type=radio name=$name value=$value"
|
|
|
|
. (strlen($checked) ? " checked" : "") . ">"
|
|
|
|
. "$text\n"
|
|
|
|
. "<br>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
function print_text_field($text,$name,$value) {
|
|
|
|
echo "$text <input type=text size=10 name=$name value=\"$value\">\n"
|
|
|
|
. "<p>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
function row($x, $y) {
|
|
|
|
echo "<tr>\n<td width=30% colspan=2 valign=top align=right>$x</td>\n<td colspan=2>$y</td>\n</tr>\n";
|
|
|
|
}
|
|
|
|
|
2003-08-04 23:57:37 +00:00
|
|
|
function c_row2($color, $x, $y) {
|
|
|
|
echo "<tr bgcolor=$color><td align=right>$x</td><td>$y</td></tr>\n";
|
|
|
|
}
|
2003-07-17 23:54:23 +00:00
|
|
|
|
|
|
|
function row4($xx, $xy, $yx, $yy) {
|
|
|
|
echo "<tr><td width=25% valign=top align=right>$xx</td><td width=25%>$xy</td>"
|
|
|
|
. "<td width=25% align=right>$yx</td><td width=%25>$yy</td></tr>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|