summaryrefslogtreecommitdiff
path: root/templates/admin.tpl
blob: de56e26da4e2660b63ac52740d59dab95d2632a4 (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
{strip}

{if $package}
	<div class="floaticon">{biticon ipackage="$package" iname="pkg_`$package`" iexplain="$package" iforce=icon}</div>
{/if}
<div class="floaticon">{bithelp}</div>

<div class="admin {$package}">
	{if $package}
		<div class="header">
			<h1>{tr}Configure {$page|capitalize}{/tr}</h1>
		</div>
	{else}
		<div class="header">
			<h1>{tr}Administration{/tr}</h1>
		</div>
	{/if}

	{* The rest determines which page to include using "page" GET parameter. Default: list-sections
	Add a value in first check when you create a new admin page. *}
	<div class="body">
		{if $file }
			{* SPIDERKILL FOR NOW include file="bitpackage:kernel/anchors.tpl" *}
			{include file="bitpackage:$package/admin_`$file`.tpl"}
		{else}
			<table width="100%" class="menutable">
				<tr>
					<td style="width:25%;vertical-align:top;" rowspan="10">
						{box class="kernelmenu menu box" ipackage=kernel iname="pkg_kernel" iexplain="kernel" idiv="menuicon" title="Kernel"}
							{include file=$kernelTemplate}
						{/box}
					</td>

					<td style="width:25%;vertical-align:top;">
						{box class="layoutmenu menu box" ipackage=kernel iname="pkg_layout" iexplain="layout and design" idiv="menuicon" title="look &amp; feel"}
							{include file="bitpackage:kernel/menu_layout_admin.tpl"}
						{/box}
					</td>

					{assign var="i" value="2"}
					{foreach key=key item=template from=$adminTemplates}
						{if $key ne "kernel"}
							<td style="width:25%;vertical-align:top;">
								{box class="`$key`menu menu box" ipackage=$key iname="pkg_`$key`" iexplain="$key" idiv="menuicon" title="$key"}
									{include file="bitpackage:`$key`/menu_`$key`_admin.tpl"}
								{/box}
							</td>
							{if not ($i++ mod 3)}
								</tr><tr>
							{/if}
						{/if}
					{/foreach}
				</tr>
			</table>
		{/if}
	</div><!-- end .body -->
</div><!-- end .body -->

{/strip}