1 |
<html> |
2 |
<head> |
3 |
<title><?php include("config.php"); echo $sitename; if($titletag) echo" - $titletag"; ?></title> |
4 |
</head> |
5 |
<body bgcolor="#FFFFFF" text="#000000" topmargin=5 leftmargin=0 rightmargin=0 marginheight=5 link=Blue vlink=Blue> |
6 |
|
7 |
<table border=0 cellpadding=4 cellspacing=0 width=100% align=center> |
8 |
<tr><td bgcolor=FFFFFF> |
9 |
<table border="0" cellspacing="0" cellpadding="3" width="100%" bgcolor="FFFFFF"> |
10 |
<tr><td> |
11 |
<a href="/"><img src="themes/ExtraLite/ellogo.gif" alt="<?php echo "".translate("Welcome to").""; ?> <?php echo "$sitename"; ?>" border=0></a> |
12 |
</td><td align=right> |
13 |
<form action="search.php" method=post><font face=Arial,Helvetica size=2> |
14 |
<?php echo "".translate("Search").""; ?> |
15 |
<input type=name name=query> |
16 |
</form> |
17 |
</td></tr></table></td></tr> |
18 |
<tr><td valign=top width=100% bgcolor=FFFFFF> |
19 |
<table border=0 cellspacing=0 cellpadding=2 width=100%><tr><td valign=top width=150 bgcolor=FFFFFF> |
20 |
|
21 |
<!-- Blocks Init --> |
22 |
|
23 |
<?php |
24 |
include("config.php"); |
25 |
mysql_pconnect($dbhost, $dbuname, $dbpass); |
26 |
$MainBlock = mysql_query("select title, content from mainblock"); |
27 |
list($title, $content) = mysql_fetch_row($MainBlock); |
28 |
?> |
29 |
<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td> |
30 |
<table width=100% border=0 cellspacing=1 cellpadding=3><tr> |
31 |
<td colspan=1 bgcolor=FFFFFF> |
32 |
<font face=Arial,Helvetica size=2><?php echo"$title"; ?> |
33 |
</td></tr><tr><td bgcolor=FFFFFF><font face=Arial,Helvetica size=2> |
34 |
<?php echo"$content"; ?> |
35 |
</td></tr></table></td></tr></table><br> |
36 |
<?php mysql_free_result($MainBlock); ?> |
37 |
|
38 |
<!-- Show Left Blocks --> |
39 |
|
40 |
<?php |
41 |
global $admin; |
42 |
if ($admin) { |
43 |
include("config.php"); |
44 |
mysql_pconnect($dbhost, $dbuname, $dbpass); |
45 |
$AdminBlock = mysql_query("select title, content from adminblock"); |
46 |
list($title, $content) = mysql_fetch_row($AdminBlock); |
47 |
?> |
48 |
<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td> |
49 |
<table width=100% border=0 cellspacing=1 cellpadding=3><tr><td colspan=1 bgcolor=FFFFFF> |
50 |
<font face=Arial,Helvetica size=2><?php echo"$title"; ?> |
51 |
</td></tr><tr><td bgcolor=FFFFFF><font face=Arial,Helvetica size=2> |
52 |
<?php echo"$content"; ?> |
53 |
</td></tr></table></td></tr></table><br> |
54 |
<?php mysql_free_result($AdminBlock); ?> |
55 |
<?php } ?> |
56 |
|
57 |
|
58 |
<?php |
59 |
include("config.php"); |
60 |
mysql_pconnect($dbhost, $dbuname, $dbpass); |
61 |
$LeftBlocks = mysql_query("select title, content from lblocks"); |
62 |
while(list($title, $content) = mysql_fetch_row($LeftBlocks)) { |
63 |
?> |
64 |
<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td> |
65 |
<table width=100% border=0 cellspacing=1 cellpadding=3><tr><td colspan=1 bgcolor=FFFFFF> |
66 |
<font face=Arial,Helvetica size=2><?php echo"$title"; ?> |
67 |
</td></tr><tr><td bgcolor=FFFFFF><font face=Arial,Helvetica size=2> |
68 |
<?php echo"$content"; ?> |
69 |
</td></tr></table></td></tr></table><br> |
70 |
<?php } ?> |
71 |
<?php mysql_free_result($LeftBlocks); ?> |
72 |
|
73 |
<?php |
74 |
include("config.php"); |
75 |
if ($events==1) { |
76 |
mysql_pconnect($dbhost, $dbuname, $dbpass); |
77 |
$today = getdate(); |
78 |
$eday = $today[mday]; |
79 |
$emonth = $today[mon]; |
80 |
?> |
81 |
<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td> |
82 |
<table width=100% border=0 cellspacing=1 cellpadding=3><tr><td colspan=1 bgcolor=FFFFFF> |
83 |
<font face=Arial,Helvetica size=2><?php echo"".translate("Events").""; ?> |
84 |
</td></tr><tr><td bgcolor=FFFFFF><font face=Arial,Helvetica size=2> |
85 |
<center><b><?php echo "".translate("One Day like Today...").""; ?></b></center><br> |
86 |
<?php |
87 |
$eph = mysql_query("select yid, content from ephem where did='$eday' AND mid='$emonth'"); |
88 |
while(list($yid, $content) = mysql_fetch_row($eph)) { |
89 |
if ($cnt==1) { |
90 |
echo "<br><br>"; |
91 |
} |
92 |
echo "<b>$yid</b><br>"; |
93 |
echo "$content"; |
94 |
$cnt = 1; |
95 |
} ?> |
96 |
</td></tr></table></td></tr></table><br> |
97 |
<?php mysql_free_result($eph); ?> |
98 |
<?php } ?> |
99 |
|
100 |
<?php |
101 |
function themesidebox($title, $content) { |
102 |
include("config.php"); ?> |
103 |
<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000><tr><td> |
104 |
<table width=100% border=0 cellspacing=1 cellpadding=3><tr><td colspan=1 bgcolor=FFFFFF> |
105 |
<font face=Arial,Helvetica size=2><?php echo"$title"; ?> |
106 |
</td></tr><tr><td bgcolor=FFFFFF><font face=Arial,Helvetica size=2> |
107 |
<?php echo"$content"; ?> |
108 |
</td></tr></table></td></tr></table><br> |
109 |
<?php } ?> |
110 |
|
111 |
<img src=images/pix.gif border=0 width=150 height=1> |
112 |
</td><td width=100% valign=top> |