Location: PHPKode > projects > ChurchCMS > churchcms/theme/templates/header.tpl
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<link href="theme/theme.css" rel="stylesheet" type="text/css">
<title>Uhhhhhhh.......</title>
</head>

<body>
<table border="0" width="100%"  id="main" cellpadding="3">
<tr><td colspan="2" align="center"><img src="theme/header.png"></td></tr>
{if $SES.next_page.msg != ""}
{* Show message from previous page *}
<tr>
	<td colspan="2" align="center">
		<hr> 
		<p class="{$smarty.session.next_page.class}">{$SES.next_page.msg}</p> 
		<hr>
	</td>
</tr>
{/if}
<tr><td width="20%" valign="top">
{if $SES.user == ""}
	{* Login *}
	{include file="sub_header.tpl" title="Login"}
	<form action="admin.php?op=login" method="post">
		<table border="0" width="100%">
			<tr><td class="field-title">Username:</td></tr>
			<tr><td>&nbsp;&nbsp;&nbsp;<input type="text" name="uname" style="width: 75%; "></td></tr>
			<tr><td class="field-title">Password:</td></tr>
			<tr><td>&nbsp;&nbsp;&nbsp;<input type="password" name="pass" style="width: 75%; "></td></tr>
		</table>
		&nbsp;&nbsp;<input type="submit" value="Login">
	</form>
	{include file="sub_footer.tpl"}
{else}
	{* Show some user something.... *}
	{include file="sub_header.tpl" title="Login"}
	<div align="right" style="font-size: 10pt"> <a href="admin.php?op=logout">Logout</a></div>
	<p>Welcome {$SES.user.name}</p>
	{include file="sub_footer.tpl"}	
{/if}	
	<br>
	{* Menu *}
	{include file="menu.tpl}
	
</td><td valing="top" style="border-left: 1px solid #05F; padding-left: 6px;">
	{* Main Section *}
Return current item: ChurchCMS