Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / templates / header.tpl
1 <div id="header">
2 <!-- quick search -->
3 <form name="quicksearch" action="showreport.php" method="post" id="quicksearch" style="float: <%- $stylevar['right'] %>">
4 <input type="hidden" name="do" value="quicksearch" />
5 <%-T("Go to bug ID")%> <input type="text" name="bugid" size="5" /> <input type="submit" name="submit" value=" <%-T("Go")%> " />
6 </form>
7 <!-- / quick search -->
8
9 <span id="title"><a href="index.php"><%- bugdar::$options['trackertitle'] %></a></span>
10 &nbsp;
11 <img src="templates/images/clock.gif" alt="<%-T("Current Date and Time")%>" />
12 <span id="time"><%- BSApp::$date->format('l, F j, Y g:i A') %></span>
13 </div>
14
15 <% if (!bugdar::$userinfo['userid']): %>
16 <div class="alertbox">
17 <%-T('Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the <a href="register.php">Register</a> tab at the top. If you are already registered, you can login at the <a href="login.php">Login</a> tab.')%>
18 </div>
19 <% endif %>
20
21 <div id="tabbar">
22 <span style="float: <%- $stylevar['right'] %>" class="smallfont"><a href="syndicate.php"><img src="templates/images/feed.gif" alt="<%-T("Syndicate")%>" style="border: 0px" /> <%-T("Syndicate")%></a></span>
23
24 <a class="tab<%- $focus['index'] %>" href="index.php"><%-T("Listing")%></a>
25 <% if ($show['newreport']): %>
26 <a class="tab<%- $focus['newreport'] %>" href="newreport.php"><%-T("New")%></a>
27 <% endif %>
28 <a class="tab<%- $focus['showreport'] %>" href="showreport.php"><%-T("Display")%></a>
29 <% if ($show['search']): %>
30 <a class="tab<%- $focus['search'] %>" href="search.php"><%-T("Search")%></a>
31 <% endif %>
32 <% if (bugdar::$userinfo['userid']): %>
33 <a class="tab<%- $focus['favorites'] %>" href="favorite.php"><%-T("Favorites")%></a>
34 <% endif %>
35 <a class="tab<%- $focus['user'] %>" href="<% if (bugdar::$userinfo['userid']): %>userctrl.php"><%-T("Options")%><% else: %>login.php"><%-T("Login/Register")%><% endif %></a>
36 <% if ($show['admin']): %>
37 <a class="tab" href="admin/index.php"><%-T("Administration")%></a>
38 <% endif %>
39 <% if (bugdar::$userinfo['userid']): %>
40 <a class="tab<%- $focus['logout'] %>" href="login.php?do=logout" onclick="return confirm('<%-T("Are you sure you want to log out?")%>')"><%-T("Logout")%></a>
41 <% endif %>
42 </div>
43
44 <div id="content">