Location: PHPKode > projects > SvnDashboard > 1.1.3.140/template.top.inc.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<link rel="shortcut icon" href="./favicon.ico" />
	<meta http-equiv="CONTENT-TYPE" content="TEXT/HTML; CHARSET=ISO-8859-1" />
	<meta http-equiv="CACHE-CONTROL" content="PUBLIC" />
	<title>
		SVN Dashboard
	</title>
	<link rel="stylesheet" type="text/css" href="./dashboard.css" />
	<link rel="stylesheet" type="text/css" href="./index.css" />
	<script language="javascript" type="text/javascript" src="./dashboard.js"></script>
	<script language="javascript" type="text/javascript" src="./domNav.js"></script>
	<script language="javascript" type="text/javascript" src="./dialogLayer.js"></script>
	<script language="javascript" type="text/javascript" src="./XMLHTTPRequest.js"></script>
</head>

<body>
	<div class="page">
		<div class="header">
			<div class="header_door">
				<div class="title"><span>SVN Dashboard</span></div>
			</div> <!-- Close header_door Div -->
			<div class="transition">
				<div class="transition_door">
				</div> <!-- Close transition_door Div -->
			</div> <!-- Close transition Div -->
		</div> <!-- Close header Div -->
		<div class="body">
			<table>
				<tr>
					<td class="sidebar">
						<div class="authentication">
							<div class="greeting">
								<!-- TODO: all authentication features need to be programmed -->
<?php
								if (isset( $_SESSION['username'] ))
								{
									echo 'Hello, <span class="username">'.$_SESSION['username'].'</span>';
								}
?>
							</div> <!-- Close greeting Div -->
							<div class="action">
<?php
								if (isset( $_SESSION['username'] ))
								{
									echo '<img src="./assets/images/button_logout.png" alt="Log Out" onclick="requestLogout( );" />';
								}
								else
								{
									echo '<img src="./assets/images/button_login.png" alt="Log In" onclick="requestLogin( );" />';
								}
?>
							</div> <!-- Close action Div -->
						</div> <!-- Close authentication Div -->
						<div id="navigation">
<?php
							if (isset( $_SESSION['username'] ))
							{
								$items = array();
								$items[] = array( 'text' => 'Users', 'page' => 'pageUsers');
								$items[] = array( 'text' => 'Groups', 'page' => 'pageGroups');
								$items[] = array( 'text' => 'Repositories', 'page' => 'pageRepos');

								$list = '<ul>';
								foreach ($items as $item)
								{
									$list .= '<li onclick="showPage( \''.$item['page'].'\' )">';
									$list .= $item['text'];
									$list .= '</li>';
								}
								$list .= '</ul>';

								echo $list;
							}
?>
						</div> <!-- Close navigation Div -->
						<div id="commonTasks">
<?php
							if (isset( $_SESSION['username'] ))
							{
								echo '<img class="button" src="./assets/images/button_writePermissions.png" alt="Write Permissions" title="Write Permissions to File" onclick="writePermissions( );" />';
							}
?>
						</div> <!-- Close commonTasks Div -->
					</td> <!-- Close sidebar Cell -->
					<td id="content">
Return current item: SvnDashboard