Location: PHPKode > projects > eqEpic > eqEpic0.7.8/sources/header_lists.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php 
/******************************************************************************
* header_list.php                                                             *
* Checklist Header File                                                       *
* See readme.txt for additional information                                   *
*******************************************************************************
* eqEpic - The Epic Raid Manager                                              *
* Open-Source Project By Ryan Christenson                                     *
* =========================================================================== *
* Software Version:           eqEpic 0.5.2                                    *
* Software by:                The RSWR Network (http://www.rswr.net)          *
* Copyright 2006-2007 by:     Ryan Christenson (http://www.rswr.net)          *
* Support, News, Updates at:  http://forum.rswr.net/                          *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it     *
* under the terms of the provided license as published by the RSWR Network.   *
*                                                                             *
* This program is distributed in the hope that it is and will be useful,      *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of            *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        *
*                                                                             *
* See the "license.txt" file for details of the RSWR Network license.         *
* The latest version can always be found at http://www.rswr.net               *
******************************************************************************/
?>
<html>
<head>
<title>eqEpic - The Epic Raid Manager</title>
<link rel="stylesheet" href="../sources/eqplan.css" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="../calendar/calendar-win2k-1.css" title="win2k-1" />
	<script type="text/javascript" src="../scripts/jquery.js"></script>
	<script type="text/javascript" src="../scripts/hovertip.js"></script>
</head>
<body>
<?php
// Open connection to the database
$conn = phpmkr_db_connect(HOST, USER, PASS, DB, PORT);

// Grab header display setting
$r_header = phpmkr_query("SELECT * FROM `settings` WHERE (`id` = '1')", $conn);
$row1 = mysqli_fetch_array($r_header);

// Row Data to Display
$x_header = $row1["header"];
?>

<!-- Header Text/Image Switch -->
<?php if ($x_header == "1") { ?>

<!-- Logo -->
	<div class="logo">
		<a href="../index.php"><img src="../images/eqepic_logo.gif" alt="eqEpic" border="0" /></a>
	</div>
<!-- Text Menu -->
	<div class="txtmenu">
		<a href="../playerslist.php?cmd=resetall#">Players List</a> | <a href="../MyProfile.php">My Profile</a>
		<?php if (AllowList("sec")) { ?>
			 | <a href="../admin.php">Admin</a>
		<?php } ?>
		<?php if (IsLoggedIn()) { ?>
			 | <a href="../logout.php">Logout</a>
		<?php } elseif (substr(ewScriptFileName(), 0 - strlen("../login.php")) <> "../login.php") { ?>
			 | <a href="../login.php">Login</a>
		<?php } ?>
	</div>
<!-- Welcome Switch -->
	<div class="welcome">
		<?php
			if (IsLoggedIn()) {
				echo "Welcome, ", $_SESSION[ewSessionUserName];
			} else {
				echo "Welcome, Guest";
			}
		?>
	</div>
<?php } else if ($x_header == "2") { ?>
		
<!-- Logo -->
	<div class="logo">
		<a href="../index.php"><img src="../images/eqepic_logo.gif" alt="eqEpic" border="0" /></a>
	</div>
<!-- Image Menu -->
	<div class="rollover topl">
		<a href="../playerslist.php?cmd=resetall#"><img src="../images/but_players.gif" alt="Players" border="0" /></a>
	</div>
		<?php if (IsLoggedIn()) { ?>
	<div class="rollover top2">
		<a href="../MyProfile.php"><img src="../images/but_profile.gif" alt="Logout" border="0" /></a>
	</div>
	<div class="rollover top3">
		<a href="../logout.php"><img src="../images/but_logout.gif" alt="Logout" border="0" /></a>
	</div>
		<?php } elseif (substr(ewScriptFileName(), 0 - strlen("../login.php")) <> "../login.php") { ?>
	<div class="rollover top2">
		<a href="../login.php"><img src="../images/but_login.gif" alt="Login" border="0" /></a>
		<?php } ?>
	</div>
		<?php if (AllowList("sec")) { ?>
	<div class="rollover top4">
		<a href="../admin.php"><img src="../images/but_admin.gif" alt="Admin" border="0" /></a>
	</div>
		<?php } ?>
<!-- Welcome Switch -->
	<div class="welcome">
		<?php
			if (IsLoggedIn()) {
				echo "Welcome, ", $_SESSION[ewSessionUserName];
			} else {
				echo "Welcome, Guest";
			}
		?>
	</div>
<?php } ?>
Return current item: eqEpic