2007-12-12 16:29:16 +00:00
|
|
|
<?php header('Content-Type: text/html; charset=utf-8'); ?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
|
|
<head>
|
2008-11-13 09:49:11 +00:00
|
|
|
<title><?php echo filter($GLOBALS['sitename'] . (isset($pagetitle) ? ': ' . $pagetitle : '')); ?></title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<link rel="icon" type="image/png"
|
2008-11-21 10:44:28 +00:00
|
|
|
href="<?php echo ROOT ?>icon.png" />
|
2008-11-13 09:49:11 +00:00
|
|
|
<link rel="stylesheet" type="text/css"
|
2008-11-21 10:44:28 +00:00
|
|
|
href="<?php echo ROOT ?>scuttle.css" />
|
2008-11-13 09:49:11 +00:00
|
|
|
<?php
|
|
|
|
if(isset($rsschannels)) {
|
2008-05-10 08:59:41 +00:00
|
|
|
$size = count($rsschannels);
|
|
|
|
for ($i = 0; $i < $size; $i++) {
|
2008-11-13 09:49:11 +00:00
|
|
|
echo '<link rel="alternate" type="application/rss+xml" title="'. $rsschannels[$i][0] .'" href="'. $rsschannels[$i][1] .'" />';
|
2008-05-10 08:59:41 +00:00
|
|
|
}
|
2008-11-13 09:49:11 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if (isset($loadjs)) :?>
|
|
|
|
|
|
|
|
<script type="text/javascript"
|
2008-11-21 10:44:28 +00:00
|
|
|
src="<?php echo ROOT ?>jsScuttle.php"></script>
|
2008-11-13 09:49:11 +00:00
|
|
|
|
2008-11-25 15:57:29 +00:00
|
|
|
|
2008-11-30 19:32:15 +00:00
|
|
|
<link rel="stylesheet" type="text/css"
|
2008-11-20 13:42:03 +00:00
|
|
|
href="http://ajax.googleapis.com/ajax/libs/dojo/1.2/dijit/themes/nihilo/nihilo.css">
|
2008-11-13 09:49:11 +00:00
|
|
|
|
2008-11-14 15:50:36 +00:00
|
|
|
<script type="text/javascript"
|
|
|
|
src="http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/dojo.xd.js"
|
2008-11-30 19:32:15 +00:00
|
|
|
djConfig="parseOnLoad:true, isDebug:false, usePlainJson:true"></script>
|
2008-11-25 15:57:29 +00:00
|
|
|
|
2008-11-13 09:49:11 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
dojo.require("dojo.parser");
|
|
|
|
dojo.require("dojo.data.ItemFileReadStore");
|
2008-11-20 13:42:03 +00:00
|
|
|
dojo.require("dojox.form.MultiComboBox");
|
|
|
|
dojo.require("dijit.Tree");
|
2008-11-13 09:49:11 +00:00
|
|
|
</script>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2007-12-12 16:29:16 +00:00
|
|
|
</head>
|
2008-11-13 09:49:11 +00:00
|
|
|
|
2008-11-20 13:42:03 +00:00
|
|
|
<body class="nihilo">
|
|
|
|
<!-- the class is used by Dojo widgets -->
|
2007-12-12 16:29:16 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
$headerstyle = '';
|
|
|
|
if(isset($_GET['popup'])) {
|
2008-11-13 09:49:11 +00:00
|
|
|
$headerstyle = ' class="popup"';
|
2007-12-12 16:29:16 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2008-11-13 09:49:11 +00:00
|
|
|
<div id="header" <?php echo $headerstyle; ?>>
|
2008-11-21 10:44:28 +00:00
|
|
|
<h1><a href="<?php echo ROOT ?>"><?php echo $GLOBALS['sitename']; ?></a></h1>
|
2008-11-13 09:49:11 +00:00
|
|
|
<?php
|
|
|
|
if(!isset($_GET['popup'])) {
|
|
|
|
$this->includeTemplate('toolbar.inc');
|
|
|
|
}
|
|
|
|
?> <?php if(!isset($_GET['popup'])):?> <!--span id="welcome"><?php echo $GLOBALS['welcomeMessage'];?></span-->
|
|
|
|
<?php endif; ?></div>
|
2007-12-12 16:29:16 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
if (isset($subtitle)) {
|
2008-11-13 09:49:11 +00:00
|
|
|
echo '<h2>'. $subtitle ."</h2>\n";
|
2007-12-12 16:29:16 +00:00
|
|
|
}
|
2008-11-27 10:13:29 +00:00
|
|
|
if (isset($error) && $msg!='') {
|
2008-11-13 09:49:11 +00:00
|
|
|
echo '<p class="error">'. $error ."</p>\n";
|
2007-12-12 16:29:16 +00:00
|
|
|
}
|
2008-11-27 10:13:29 +00:00
|
|
|
if (isset($msg) && $msg!='') {
|
2008-11-13 09:49:11 +00:00
|
|
|
echo '<p class="success">'. $msg ."</p>\n";
|
2007-12-12 16:29:16 +00:00
|
|
|
}
|
2008-11-13 09:49:11 +00:00
|
|
|
?>
|