
<html>
<head>
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    <title>{$application_name|htmlspecialchars} {$application_version|htmlspecialchars} - {$page_title|htmlspecialchars}</title>
    <link rel="StyleSheet" href="styles/blue2.css" type="text/css">
    <META http-equiv="Content-Type" content="text/html; charset={$STRING.lang_charset}">
</head>
{if $include_js}
	{foreach name=include_js_loop item=v from=$include_js}
		<script language="javascript" src={$v}></script>
	{/foreach}
{/if}
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" {if $onUnload}onUnload="{$onUnload}"{/if}>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="nav">
  <tr>
	<!-- <td class="nav" valign="middle"><img name="title" src="{$template_path}/images/title.gif" width="500" height="50" border="0" alt="" hspace="0" vspace="0"></td> -->
	<!-- TODO : I should make the header more configurable -->
	<td class="nav" valign="middle">
		<img src="{$template_path}/{$PRIMARY_LOGO}" alt="Diamentis logo" />	
	</td>
	<td align="right" valign="middle" class="nav">
		<form action="bug.php"><p>
		<input type="hidden" name="op" value="show" />
			{$STRING.WRAP.FindBug|htmlspecialchars}
		<input name="file_id" type="text" id="file_id" size="4" value="" />
		&nbsp;</p>
		</form>
	</td>
  </tr>
   <tr>
	  <td class="navtitlebar" colspan="2">
	  <table border="0" cellspacing="0" cellpadding="3">
			<tr>
			  <td nowrap ><a href="index.php" class="navlink">{$STRING.WRAP.Home|htmlspecialchars}</a></td>
			  <td>|</td>
			  <td nowrap ><a href="bug.php?op=add" class="navlink">{$STRING.WRAP.AddNewBug|htmlspecialchars}</a></td>
			  <td>|</td>
			  <td nowrap ><a href="query.php?op=query" class="navlink">{$STRING.WRAP.QueryBugs|htmlspecialchars}</a></td>
			  <!--
			  <td>|</td>			  :
				<td><a href="report.php" class="navlink">{$STRING.WRAP.ViewReports}</a></td>
				-->
				{if not NEW_ACCOUNTS_DISABLED and not $smarty.session.uid}
			  <td>|</td>
			  <td nowrap ><a href="newaccount.php" class="navlink">{$STRING.WRAP.CreateNewAccount|htmlspecialchars}</a></td>
				{/if}
				{if not NEW_ACCOUNTS_DISABLED and $smarty.session.uid}
			  <td>|</td>
			  <td nowrap ><a href="newdomain.php" class="navlink">{$STRING.WRAP.CreateNewDomain|htmlspecialchars}</a></td>
				{/if}
			  <td>|</td>
			  <td nowrap ><a href="{$doc_url}" class="navlink">{$STRING.WRAP.Documentation|htmlspecialchars}</a></td>
				{if isset($perm) and $perm->have_perm('AdminProject')}
			  <td>|</td>
			  <td nowrap ><a href="admin/project.php" class="navlink">{$STRING.WRAP.AdminTools|htmlspecialchars}</a></td>
				{/if}
			</tr>
		</table>
	</td>
  </tr>
  {if $smarty.server.SCRIPT_NAME|basename neq 'newaccount.php'}
	<tr>
	    <td colspan="2" class="bottomnav">
		{if not $smarty.session.uid}
		<form method="post" action="{$smarty.server.SCRIPT_NAME}{if $smarty.request.QUERY_STRING}?{$smarty.request.QUERY_STRING}{/if}">
		&nbsp;
		    {if EMAIL_IS_LOGIN}
			{assign var="loginlabel" value=$STRING.WRAP.Email}
		    {else}
			{assign var="loginlabel" value=$STRING.WRAP.Login}
		    {/if}
				{$loginerror}
				{$loginlabel}: <input type="text" name="username" class="bottomnavinput" value="{$smarty.cookies.phpbt_user}"/>
				{$STRING.USER_PREF.Password|htmlspecialchars}: <input type="password" name="password" class="bottomnavinput" value="{$smarty.cookies.phpbt_user_pw}"/>
				<input type="hidden" name="dologin" value="1"/>
				<input type="submit" value="{$STRING.WRAP.DoLogin}" class="bottomnavinput"/>
		    {if ENCRYPT_PASS==1}
		    {else}
				<input type="submit" name="sendpass" value="{$STRING.WRAP.EmailPassword}" class="bottomnavinput" title="Forgot your password?  Have it sent to you"/>
		    {/if}
		    {if RECALL_LOGIN}
				<input type="checkbox" name="savecookie" value="1" {if !empty($smarty.cookies.phpbt_user)}checked{/if} class="bottomnavinput" title="Remember {$loginlabel} for next time"/> {$STRING.WRAP.RememberMe}
		    {/if}
		</form>
		{else}
				{$STRING.WRAP.BugsAssigned|htmlspecialchars} : 
				{if $owner_open}
					<a href="{$owner_open}" title="Open">				 
					{$owner_open_nb}
					</a>
				{else}
					0
				{/if}
				 
				{if $owner_closed}
				/	<a href="{$owner_closed}" title="Closed">
						{$owner_closed_nb}
					</a>
				{else}
				
				{/if}
				| 
				{$STRING.WRAP.BugsReported|htmlspecialchars} : 
				{if $reporter_open}
					<a href="{$reporter_open}" title="Open">
						{$reporter_open_nb}
					</a>
				{else}
					0
				{/if}
				 
				{if $reporter_closed}
				/	<a href="{$reporter_closed}" title="Closed">
						{$reporter_closed_nb}
					</a>
				{else}
				
				{/if}
				| <a href="user.php">
					{$STRING.WRAP.PersonalPage|htmlspecialchars}
				</a>
				| <a href="logout.php">
					{$STRING.WRAP.Logout|htmlspecialchars} {$smarty.session.uname}
				</a>
		{/if}
	    </td>
	</tr>
  {/if}
  <tr>
	  <td class="navbotspacer" height="10" colspan="2"><img src="{$template_path}/images/spacer.gif" height="1" width="1"></td>
  </tr>
</table>
{if $adsense}
<table  width="100%" >
<tr>
<td valign="top">
<script type="text/javascript"><!--
google_ad_client = "pub-7860043105347404";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
<td>
{/if}
{include file=$content_template}
{if $adsense}
</td>
<td valign="top">
<script type="text/javascript"><!--
google_ad_client = "pub-7860043105347404";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
{/if}
{if $adsense}
<tr>
<td></td>
<td align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7860043105347404";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
	</td>
</tr>
</table>
{/if}
</body>
</html>
