<html>
<head>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
#center_block {width:100%;margin:0 auto;min-width:300px}
#header_block {padding:2px 5px 6px;line-height: 1.8}
#tables_block {width:100%;margin:0}
#header_block > span {margin:2 5px}
#login_top span {padding-right:10px}
#header_block span {padding-right:10px}
.captions {padding:6px 0px;}
</style>
</head>
<body>
{$header}
{BEGIN body}

##if @BUILDER.bCreateLoginPage##
<table id="center_block" align=center><tr><td>
{BEGIN loggedas_block}
<div id="header_block">
<span>##message LOGGED_AS## <b>{$username}</b></span>
{END loggedas_block}
{BEGIN logout_link}
<a href="login.##@ext##?a=logout">##message LOG_OUT##</a>
{END logout_link}
##if @BUILDER.bChangePwdPage##
{BEGIN changepwd_link}
<a href="changepwd.##@ext##">##message CHANGE_PASSWORD##</a>
{END changepwd_link}
##endif##
##endif##
<div id="tables_block">
<p align=center>Administrative Page<br><br>
##foreach @BUILDER.Tables as @t filter @t.bMenuItem && (@t.bList || @t.bAdd || @t.nType==titREPORT || @t.nType==titCHART) order @t.nMenuOrder##
{BEGIN ##@t.strShortTableName##_tablelink}
<div class=captions align=center>
<a {$##@t.strShortTableName##_tablelink_attrs}>##@t.strCaption h##</a>
</div>
{END ##@t.strShortTableName##_tablelink}
##endfor##
</p>
</div>
##if @BUILDER.bWebReports##
{BEGIN webreports_link}
<div><hr>
<a href="webreport.##@ext##">##message WEBREPORTS_SHORT##</a>
</div>
{END webreports_link}
##endif##

##if bDynamicPermissions##
{BEGIN adminarea_link}
<div><hr>
<a href="admin_rights_list.##@ext##">##message AA_ADMINAREA##</a>
</div>
{END adminarea_link}
##endif##
</td></tr></table>

{END body}
{$footer}
</body>
</html>