cryptonas-branches/pythonrewrite/templates/header.cs
lars 5c7a6c474c "show_plugin" macro supports different types of plugins
"show_volume" macro can display disks with appropriate icons according to their state
main interface partly moved to new design
2006-11-01 09:28:48 +00:00

58 lines
1.9 KiB
C#

<?cs # $Id$ ?>
<?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">
<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" />
<?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 ?>
</head>
<body>
<div id="main_menu">
<?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.Enabled && x.Types.menu && x.Rank == order ?>
<?cs call:show_plugin(name(x), 'menu') ?><?cs /if ?><?cs
/each ?><?cs
/loop ?>
<?cs call:print_form_header("select_language",'') ?>
<div id="lang">
<select name="weblang">
<?cs each:item = Data.Languages ?>
<option value="<?cs var:name(item) ?>" <?cs
if:Settings.Language == name(item) ?>selected="selected"<?cs /if
?>><?cs var:item ?></option><?cs /each ?>
</select>
<button type="submit"><?cs var:html_escape(Lang.Button.SelectLanguage) ?></button>
</div>
</form>
</div>
<div id="main">
<?cs if:Data.activeDisksCount > 0 ?>
<div id="head_red">
<?cs else ?>
<div id="head_green">
<?cs /if ?>
<h1><?cs var:html_escape(Lang.Title.Top) ?></h1>
<h2><?cs var:html_escape(Lang.Title.Slogan) ?></h2>
</div>
<div id="menu">
&nbsp;
</div>
<div id="words">