summaryrefslogtreecommitdiff
path: root/php/admin/templates/page.tpl.in
blob: 697791e0cf46cebb49dccd29ead12a6a8c349e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{* Smarty Template *}
{*
  Local variables:
  buffer-file-coding-system: utf-8
  End:
*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>{$page_title}</title>
<meta name="robots" content="noindex" />	
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="{$currentlang}" /> 
<meta name="description" content="Kolab Administration Webinterface" />
<meta name="keywords" content="Linux, Unix, Groupware, Email, Calendar" />
<link rel="stylesheet" type="text/css" href="{$stylesheet|default:"$topdir/style.css"}" />
<link rel="stylesheet" type="text/css" media="print" href="{"$topdir/print.css"}" />

<script type="text/javascript">
<!--
function changeLanguage(combobox) {ldelim}
	val=combobox.options[combobox.selectedIndex].value;
        if(val!="") window.location="{$lang_url}"+val;
{rdelim}
-->
</script>

</head>
<body>
<div id="topbar">
	<a href="@webserver_web_prefix@/admin"><div id="toplogo"></div></a>
	<div id="toptitle">{$page_title}</div>
</div>
<div id="topuserinfo">
{if $uid}
{tr msg="User:"} {$uid} | {tr msg="Role:"} {$group} | <a id="logout" href="{$topdir}/logout.php">{tr msg="Logout"}</a>
{else}
{tr msg="Not logged in"}
{/if}
<br/>
<select name="lang" class="langcombo" onchange="changeLanguage(this);">
{section name=id loop=$languages}
{if $languages[id].code==$currentlang}
<option value="{$languages[id].code}" selected>{$languages[id].name}</option>
{else}
<option value="{$languages[id].code}">{$languages[id].name}</option>
{/if}
{/section}
</select>
</div>
{strip}
<div id="topmenu">
{foreach from=$menuitems item=menuitem}
<a href="{$menuitem.url}">
	<span class="topmenuitem{$menuitem.selected}">&nbsp;{$menuitem.name}&nbsp;</span>
</a>
{/foreach}
</div>
{/strip}
{if count($submenuitems) > 0}
<div id="submenu">
{strip}
{section name=id loop=$submenuitems}
<a href="{$submenuitems[id].url}">
	<span class="submenuitem{$submenuitems[id].selected}">{$submenuitems[id].name}</span>
</a>&nbsp;|&nbsp;
{/section}
{/strip}
</div>
{/if}
<div id="page">
{if $errors}
<div id="errorcontent">
<div id="errorheader">{tr msg="Errors:"}</div>
{section name=id loop=$errors}
{$errors[id]}<br/>
{/section}
</div>
{/if}
{if $messages}
<div id="messagecontent">
<div id="messageheader">{tr msg="Message:"}</div>
{section name=id loop=$messages}
{$messages[id]}<br/>
{/section}
</div>
{/if}
<div id="maincontent">
{include file=$maincontent}
</div>
<!--
<div id="validators">
<a href="http://validator.w3.org/check/referer">
<img style="border:0;width:88px;height:31px"
     src="http://www.w3.org/Icons/valid-xhtml10"
     alt="Valid XHTML 1.0!" />
</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
     src="http://jigsaw.w3.org/css-validator/images/vcss" 
     alt="Valid CSS!" />
</a>
</div>
-->
</div>
<br/>
<br/>
</body>
</html>