import rt 2.0.14
[freeside.git] / rt / webrt / SelfService / Elements / Header
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
2      "http://www.w3.org/TR/REC-html40/loose.dtd"> 
3 <HTML>
4 <HEAD>
5 <TITLE><%$Title%></TITLE>
6 % if ($Code) {
7 <META NAME="HTTP-EQUIV" VALUE="<%$Code%> <%$Why%>">
8 % }
9
10 <link rel="stylesheet" href="<%$RT::WebPath%>/NoAuth/webrt.css" type="text/css">
11 </HEAD>
12 <BODY BGCOLOR="<%$BgColor%>">
13 <TABLE BORDER=0 WIDTH=100% CELLSPACING=0 BGCOLOR="#993333">
14 <TR VALIGN=TOP>
15 <TD WIDTH=32>
16         <IMG SRC="<%$RT::LogoURL%>" alt="RT">
17 </TD>
18 <TD VALIGN=CENTER ALIGN=LEFT>
19 <font size=+2 color=#ffffff>
20 <B>
21 <%$Title%>
22 </B>
23 </font>
24 </TD>
25 <TD ALIGN=RIGHT>
26 <font color="#ffffff">
27 % if ($session{'CurrentUser'} ) {
28 Signed in as <b><%$session{'CurrentUser'}->Name%></b>.<BR>
29 % if ($session{'CurrentUser'}->HasSystemRight('ModifySelf')) {
30 [<A class='inverse' HREF="<%$RT::WebPath%>/SelfService/Prefs.html" >Preferences</A>]
31 % }
32 % unless ($RT::WebExternalAuth) { 
33  [<A class='inverse' HREF="<%$RT::WebPath%>/NoAuth/Logout.html">Logout</a>]
34 % }
35 % } else {
36 Not logged in.
37 % }
38 </font>
39 </TD>
40 </TR>
41 </TABLE>
42
43 <BR>
44 <& /SelfService/Elements/Tabs &>
45
46 <%ARGS>
47 $Title => ''
48 $Code => undef
49 $Why => undef
50 $BgColor => '#ffffff'
51 </%ARGS>
52 <%INIT>
53 $Title = "RT/$RT::rtname: ".$Title;
54 </%INIT>
55