summaryrefslogtreecommitdiff
path: root/tpl/general
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2011-11-20 13:39:47 +0100
committerNicolas BERNSTEIN <alexis211@gmail.com>2011-11-20 13:39:47 +0100
commitd45c7f14891d951f8a6987cc6492073b97e05b5b (patch)
treed6467b1202c27f67fd8e894d25fd4aea0085b559 /tpl/general
parent4d7e065c2d2ec407b6a7ebfc7569628bac9149d1 (diff)
downloadBits-d45c7f14891d951f8a6987cc6492073b97e05b5b.tar.gz
Bits-d45c7f14891d951f8a6987cc6492073b97e05b5b.zip
Added the bit list study system
Diffstat (limited to 'tpl/general')
-rw-r--r--tpl/general/top.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tpl/general/top.php b/tpl/general/top.php
index 28a9658..2ddc84e 100644
--- a/tpl/general/top.php
+++ b/tpl/general/top.php
@@ -7,9 +7,17 @@ global $user, $apps; //These might be hidden because this page is called from sq
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<link href="design/style.css" rel="stylesheet" type="text/css" media="screen" />
+ <?php
+ if (isset($js_include)) {
+ foreach($js_include as $e) {
+ echo '<script type="text/javascript" src="' . $e . '"></script>';
+ }
+ }
+ if (isset($javascript)) echo '<script type="text/javascript">' . $javascript . '</script>';
+ ?>
</head>
- <body>
+ <body<?php if (isset($onload_js)) echo ' onload="' . $onload_js . '"'; ?>>
<div class="menu">
<div class="right">
<?php
@@ -30,6 +38,7 @@ if ($user['id'] != 0) {
echo '<a href="upload-image">Upload image</a>';
}
echo '<a href="deck">Study decks</a>';
+ echo '<a href="list">Study lists</a>';
}
?>
</div>