2006-05-12 18:47:06 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2006-11-06 17:05:00 +01:00
|
|
|
|
|
|
|
<?cs # $Id$ ?>
|
|
|
|
|
2006-05-12 18:47:06 +02:00
|
|
|
<head>
|
|
|
|
<title>CryptoBox</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<meta http-equiv="pragma" content="no-cache" />
|
|
|
|
<meta http-equiv="cache-control" content="no-cache" />
|
|
|
|
<meta http-equiv="expires" content="0" />
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
|
|
<link rel="stylesheet" media="screen" href="<?cs var:Settings.Stylesheet ?>" type="text/css" />
|
2006-11-06 17:05:00 +01:00
|
|
|
<?cs if:?Data.Redirect.URL ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs var:Data.Redirect.URL ?>" /><?cs
|
|
|
|
elif:Data.Redirect.Action ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs call:link(Data.Redirect.Action,'','','','') ?>" /><?cs /if ?>
|
2006-12-18 14:37:08 +01:00
|
|
|
|
|
|
|
<?cs # any additional (plugin) stylesheets? ?><?cs
|
|
|
|
if:subcount(Data.StylesheetFiles) > 0
|
|
|
|
?><style type="text/css"><?cs
|
|
|
|
each:css_file = Data.StylesheetFiles ?><?cs
|
|
|
|
linclude:css_file ?><?cs
|
|
|
|
/each ?></style><?cs
|
|
|
|
/if ?>
|
|
|
|
|
2006-05-12 18:47:06 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2006-11-06 17:05:00 +01:00
|
|
|
|
2006-12-18 14:37:08 +01:00
|
|
|
<div id="main">
|
|
|
|
|
2006-11-06 17:05:00 +01:00
|
|
|
<div id="main_menu">
|
2006-11-13 17:12:09 +01:00
|
|
|
<?cs # three possibilities to find the active ('to be marked') plugin:
|
|
|
|
- the active plugin is a volume plugin -> mark 'disks'
|
|
|
|
- the active plugin is part of the menu list -> mark it
|
|
|
|
- the rest: mark 'preferences' ?><?cs
|
|
|
|
if:Settings.PluginList[Data.ActivePlugin].Types.volume ?><?cs
|
|
|
|
set:markPlugin = 'disks' ?><?cs
|
|
|
|
else ?><?cs
|
|
|
|
# first: set default value ?><?cs
|
|
|
|
set:markPlugin = 'system_preferences' ?><?cs
|
|
|
|
# check if the active plugin is visible in the menu ?><?cs
|
|
|
|
each:plugin = Settings.PluginList ?><?cs
|
|
|
|
if:plugin.Visible.menu && (name(plugin) == Data.ActivePlugin) ?><?cs
|
|
|
|
set:markPlugin = name(plugin) ?><?cs
|
|
|
|
/if ?><?cs
|
|
|
|
/each ?><?cs
|
|
|
|
/if ?><?cs
|
|
|
|
# sort the Plugins - using the most stupid way :) ?><?cs
|
|
|
|
loop: order = #0, #100, #1 ?><?cs
|
|
|
|
# plugins ?><?cs each:x = Settings.PluginList ?><?cs
|
|
|
|
if:x.Types.system && x.Visible.menu && x.Rank == order ?>
|
|
|
|
<div class="plugin_menu plugin_menu_<?cs
|
|
|
|
if:markPlugin == name(x) ?>active<?cs else ?>passive<?cs /if
|
|
|
|
?>"><a href="<?cs call:link(name(x),'','','','') ?>" title="<?cs
|
2006-12-18 14:37:08 +01:00
|
|
|
var:html_escape(Lang.Plugins[name(x)].Link) ?>"><img src="<?cs
|
2006-11-13 17:12:09 +01:00
|
|
|
call:link('icons/' + name(x), '','','','') ?>" alt="<?cs
|
|
|
|
var:html_escape('icon: ' + name(x)) ?>" /><br/><?cs
|
2006-12-18 14:37:08 +01:00
|
|
|
var:html_escape(Lang.Plugins[name(x)].Link) ?></a></div><?cs
|
2006-11-13 17:12:09 +01:00
|
|
|
/if ?><?cs
|
2006-11-06 17:05:00 +01:00
|
|
|
/each ?><?cs
|
|
|
|
/loop ?>
|
2006-05-12 18:47:06 +02:00
|
|
|
</div>
|
|
|
|
|
2006-11-06 17:05:00 +01:00
|
|
|
|
2006-11-13 17:12:09 +01:00
|
|
|
|
2006-12-18 14:37:08 +01:00
|
|
|
<?cs # we need this div to get 100% of screenwidth in mozilla and ie ?>
|
|
|
|
<div id="pane_div">
|
2006-11-15 12:47:28 +01:00
|
|
|
<table id="pane">
|
|
|
|
|
|
|
|
<tr><td colspan="3"><div id="head">
|
2007-07-20 16:54:51 +02:00
|
|
|
<table>
|
2006-11-06 17:05:00 +01:00
|
|
|
<tr><td>
|
2007-07-27 13:30:26 +02:00
|
|
|
<a href="<?cs call:link("", "", "", "", "")
|
2008-01-15 23:46:00 +01:00
|
|
|
?>" title="CryptoNAS"><img src="cryptobox-misc/cryptonas_logo_left.png"
|
2007-07-20 16:54:51 +02:00
|
|
|
alt="icon: logo" /></a>
|
2006-11-06 17:05:00 +01:00
|
|
|
<h2><?cs var:html_escape(Lang.Title.Slogan) ?></h2>
|
2007-07-20 16:54:51 +02:00
|
|
|
</td>
|
2006-11-06 17:05:00 +01:00
|
|
|
<td>
|
|
|
|
<?cs if:Data.activeDisksCount > 0 ?><?cs
|
2007-07-20 16:54:51 +02:00
|
|
|
set:logoFile = "cbx_logo_right_fire.png" ?><?cs
|
2006-11-06 17:05:00 +01:00
|
|
|
else ?><?cs
|
2007-07-20 16:54:51 +02:00
|
|
|
set:logoFile = "cbx_logo_right.png" ?><?cs
|
2006-11-06 17:05:00 +01:00
|
|
|
/if ?>
|
2007-07-20 16:54:51 +02:00
|
|
|
<div class="logo_right"><a href="<?cs call:link("", "", "", "", "")
|
2008-01-15 23:46:00 +01:00
|
|
|
?>" title="CryptoNAS"><img src="cryptobox-misc/<?cs var:logoFile
|
2006-12-14 14:19:37 +01:00
|
|
|
?>" alt="icon: logo" />
|
2006-12-13 11:01:58 +01:00
|
|
|
</a></div>
|
|
|
|
<?cs call:help_link() ?>
|
2007-07-20 16:54:51 +02:00
|
|
|
</td></tr>
|
|
|
|
</table>
|
2006-12-13 11:01:58 +01:00
|
|
|
</div></td></tr>
|
2006-11-06 17:05:00 +01:00
|
|
|
|
2007-01-22 02:46:34 +01:00
|
|
|
<?cs if:subcount(Data.EnvironmentWarning) > 0
|
|
|
|
?><?cs # display up to 3 warnings (sorted by priority)
|
|
|
|
?><?cs set:warn_count = min(#3, subcount(Data.EnvironmentWarning))
|
|
|
|
?><?cs loop: x = #0, warn_count-#1, #1 ?>
|
|
|
|
<tr><td colspan="3"><div class="EnvironmentWarning">
|
|
|
|
<?cs call:environment_warning(Data.EnvironmentWarning[x]) ?>
|
|
|
|
</div></td></tr>
|
|
|
|
<?cs /loop ?><?cs
|
|
|
|
/if ?>
|
2006-05-29 09:09:17 +02:00
|
|
|
|
2007-02-03 19:24:07 +01:00
|
|
|
<!--
|
2006-11-15 12:47:28 +01:00
|
|
|
<tr><td id="pane_left_top" /><td id="pane_top" /><td id="pane_right_top" /></tr>
|
|
|
|
<tr><td id="pane_left" />
|
|
|
|
<td id="pane_content">
|
2007-02-03 19:24:07 +01:00
|
|
|
-->
|
|
|
|
<tr><td><td id="pane_content">
|
2006-11-15 12:47:28 +01:00
|
|
|
<div id="words">
|
2007-02-08 03:16:41 +01:00
|
|
|
|