<?php

/********************************************************************************
	- MemHT Portal -
	
	Copyright (C) 2007-2008 by Miltenovik Manojlo
	http://www.memht.com
	
	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 opinion) any later version.
	
	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. See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License along
	with this program; if not, see <http://www.gnu.org/licenses/> (GPLv2)
	or write to the Free Software Foundation, Inc., 51 Franklin Street,
	Fifth Floor, Boston, MA02110-1301, USA.
		
********************************************************************************/

function template_header($step=0) {
	?>
	<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
	<html xmlns='http://www.w3.org/1999/xhtml'>
	<head>
	<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
	<title>MemHT Portal - Update</title>
	<link rel='stylesheet' href='style.css' type='text/css'>
	<?php @include("../javascript.php"); ?>
	</head>
	<body>
	
	<table width="700" align="center" cellpadding="0" cellspacing="0">
		<tr><td><a href='http://www.memht.com' title='MemHT Portal' target='_blank'><img src='images/logo.gif' border='0'></a></td></tr>
	</table>
	<div style="background-image:url(images/bg_head_horizontal.gif); height:12px;"></div>
	<div style="background-image:url(images/bg_bar.gif); height:34px;"></div>
	<div style="background-color:#A6301C; height:20px;"></div>
	<div class="spacer"></div>
		
	<table width="700" align="center" cellpadding="0" cellspacing="0" class="menubox">
	  <tr>
			<?php template_nav($step); ?>
	  </tr>
	</table>
	<div class="spacer"></div>
	<table width='700' border='0' align='center' cellpadding='0' cellspacing='0'>
	<tr>
    	<td colspan='5' valign='top' class="main">
		<?php
}

function template_nav($step) {
	$step = intval($step);
	
	$myclass = ($step==1) ? "activestep" : "inactivestep" ;
	echo "<td align='center' class='$myclass'>License</td>";
	$myclass = ($step==2) ? "activestep" : "inactivestep" ;
	echo "<td align='center' class='$myclass'>Select version</td>";
	$myclass = ($step==3) ? "activestep" : "inactivestep" ;
	echo "<td align='center' class='$myclass'>Update</td>";
}

function template_footer() {
		?>
		</div>
		</td>
	  </tr>
	  </table>
	  
	  <div class='foot' align='center'><a href='http://www.memht.com' title='MemHT.com' target='_blank'><b>MemHT Portal</b></a> is a free software released under the GNU/GPL License by <a href='http://www.memht.com' title='MemHT.com' target='_blank'><b>Miltenovik Manojlo</b></a><br>Updater v1.0</div>
	</body>
	</html>
	<?php
}

?>