ticket system integration framework and skin RT
[freeside.git] / rt / html / Elements / Header
1 %# BEGIN LICENSE BLOCK
2 %# 
3 %# Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
4 %# 
5 %# (Except where explictly superceded by other copyright notices)
6 %# 
7 %# This work is made available to you under the terms of Version 2 of
8 %# the GNU General Public License. A copy of that license should have
9 %# been provided with this software, but in any event can be snarfed
10 %# from www.gnu.org.
11 %# 
12 %# This work is distributed in the hope that it will be useful, but
13 %# WITHOUT ANY WARRANTY; without even the implied warranty of
14 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 %# General Public License for more details.
16 %# 
17 %# Unless otherwise specified, all modifications, corrections or
18 %# extensions to this work which alter its source code become the
19 %# property of Best Practical Solutions, LLC when submitted for
20 %# inclusion in the work.
21 %# 
22 %# 
23 %# END LICENSE BLOCK
24 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
25 <HTML>
26 <HEAD>
27 <TITLE><%$Title%></TITLE>
28 % if ($Refresh > 0) {
29 <META HTTP-EQUIV="REFRESH" CONTENT="<%$Refresh%>">
30 % }
31
32 <link rel="shortcut icon" href="<%$RT::WebImagesURL%>/favicon.png" type="image/png">
33 <link rel="stylesheet" href="<%$RT::WebPath%>/NoAuth/webrt.css" type="text/css">
34 </HEAD>
35 <BODY BGCOLOR="<%$BgColor%>"
36 % if ($Focus) {
37 ONLOAD="
38     var tmp = (document.getElementsByName('<% $Focus %>'));
39     if (tmp.length > 0) tmp[tmp.length-1].focus();
40 "
41 % }
42 >
43 <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
44   <tr> 
45     <td rowspan=2><img border=0 alt="freeside" src="<%$RT::WebImagesURL%>/small-logo.png" width="92" height="62"></td>
46     <td align="left" rowspan=2><font size=7>Ticketing</font></td>
47     <td align="right" valign="top">
48 % if ($session{'CurrentUser'} && $session{'CurrentUser'}->Id && $LoggedIn) {
49 <SPAN STYLE="display: none"><A HREF="#skipnav"><&|/l&>Skip Menu</&></A> |</SPAN>
50 <A  HREF="<%$RT::WebPath%><% $Prefs %>" ><&|/l&>Preferences</&></A>
51 <& /Elements/Callback, %ARGS &>
52 % unless ($RT::WebExternalAuth and !$RT::WebFallbackToInternalAuth) {
53 | <A  HREF="<%$RT::WebPath%>/NoAuth/Logout.html<%$URL && "?URL=".$URL%>"><&|/l&>Logout</&></a>
54 % }
55 <BR>
56 <&|/l, "<b>".$session{'CurrentUser'}->Name."</b>" &>Logged in as [_1]</&>
57 % } else {
58 <&|/l&>Not logged in.</&>
59 % }
60     </td>
61
62   </tr>
63   <tr>
64
65     <td align=right valign=bottom>
66       <table>
67         <tr>
68           <td align=right>
69             <FONT SIZE="-3">
70              Freeside <% $FS::VERSION %><BR>
71              <A HREF="http://www.sisd.com/freeside">Freeside&nbsp;home&nbsp;page</A><BR>
72              <A HREF="docs/">Documentation</A><BR>
73             </FONT>
74           </td>
75           <td bgcolor=#000000></td>
76           <td align=left>
77             <FONT SIZE="-3">
78              RT <% $RT::VERSION %><BR>
79              <A HREF="http://www.bestpractical.com/rt">RT&nbsp;home&nbsp;page</A><BR>
80              <A HREF="http://wiki.bestpractical.com/">Documentation</A><BR>
81             </FONT>
82           </td>
83
84         </tr>
85       </table>
86     </td>
87
88   </tr>
89 </table>
90 <%INIT>
91
92 $r->header_out('Pragma' => 'no-cache');
93 $r->header_out('Cache-control' => 'no-cache');
94 </%INIT>
95
96 <%ARGS>
97 $Prefs => '/User/Prefs.html'
98 $Focus => 'focus'
99 $Title => undef
100 $Code => undef
101 $Refresh => 0
102 $Why => undef
103 $BgColor => '#ffffff'
104 $ShowBar => 1
105 $LoggedIn => 1
106 $URL => undef
107 </%ARGS>