Location: PHPKode > projects > PSlash > pslash-0.70/html/themes/Main/header.php
<?

###############################################################################
# Copyright (C) 2000  Derek Leung
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# You may modify your copy or copies of this Program or any portion of it,
# but you must cause the modified files to carry prominent notices stating 
# that you changed the files and the date of any change.  And you are required 
# to keep a copy of this License along with this Program.
#
# You are not required to accept this License, since you have not signed it. 
# However, nothing else grants you permission to modify or distribute this 
# Program or its derivative works. These actions are prohibited by law if 
# you do not accept this License. Therefore, by modifying or distributing 
# this Program (or any work based on this Program), you indicate your 
# acceptance of this License to do so, and all its terms and conditions 
# for copying, distributing or modifying this Program or works based on it.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
# See the GNU General Public License for more details.
# http://www.opensource.org/licenses/gpl-license.html
###############################################################################

function ps_header($arg) {

global $myTopic,$config;

$header_topics=getTopics();
if (!in_array($myTopic,$header_topics)) {
	$myTopic = $config[def_theme];
}

unset($header_topics);
if ($arg[js] == "true") {
	include("js/util.js");
}

$header_settingArray = getCookie($config[setting_cookie_name]);
list($header_resol) = split("x",$header_settingArray[resolution]);

if ($header_resol == "") {
	$header_resol = 800;
}

$header_resol = $header_resol-40;

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>pSlash</TITLE>
<META http-equiv=Content-Type content="text/html;"><LINK 
href="<?=$config[theme_relative_path]?>/<?=$myTopic?>/main.css" type=text/css rel=stylesheet>
</HEAD>
<BODY leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">

	<TABLE width=<?=$header_resol?> cellSpacing=0 cellPadding=0 align=center border=0>
		<TR>    
			<TD align="center" ><img width="400" height="120"  src="<?=$config[theme_relative_path]?>/<?=$myTopic?>/images/mainlogo.gif" align="left"></td>
			<TD ><img src="<?=$config[theme_relative_path]?>/<?=$myTopic?>/images/logoright.gif"  align="right"></td>
		</tr>
	</table>
	
    

					<TABLE cellSpacing=0 cellPadding=0 width=<?=$header_resol?> border=0 align=center>
						<TBODY>
							<TR vAlign=top>
								<TD width=100% bgcolor="white">
									<TABLE cellSpacing=4 cellPadding=0 width="100%" border=0>
										<tr>
											<td width="150" valign="top" class="leftmenu">
											
												<? // LEFT Menu box start here?>
												<? Main_Menu_Box(); ?>
												<br>
												<? Language_resol_box($header_resol); ?>
												<br>
												<? Login_Box(); ?>
												<br>
												<? dynamic_box(); ?>
												<br>
												<? getOnlineUsers(); ?>
												<br>
												<? browser_Box(); ?>
                  
												<br>&nbsp;&nbsp;
												<? powerby_box();?>
												<? // LEFT Menu box stop here?>
											</TD>
										

											<TD valign=top  class=content>
									
													<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 class=articlebox>
														<tr>
															<td class=articlebox><font size=+1 ><b>&nbsp;
																<? if ($arg[titlebar]) { echo $arg[titlebar]; } ?></b>
					  
																</font>
															</td>
														</tr>
					  
													</table>
													<Br>
													<!-- main stuff start here -->

<?
}
Return current item: PSlash