Support Auth0.
[readifood.git] / lib / header.php
index 88a7271..928b741 100644 (file)
@@ -1,11 +1,17 @@
 <head>
 <link rel="stylesheet" type="text/css" href="/style.css">
 <title><?php echo "$charity"; if ($module) echo " - $module"; ?></title>
+<?php
+  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css\">\n";
+  echo "<script src=\"$http://code.jquery.com/jquery-1.9.1.js\"></script>\n";
+  echo "<script src=\"$http://code.jquery.com/ui/1.10.3/jquery-ui.js\"></script>\n";
+?>
+<script src="/jquery.autosize.js"></script>
+<script src="/jquery.sortable.js"></script>
 </head>
 <body>
 
 <p id="header">
-<strong> <?php if ($username) echo "<em>$username</em>@"; echo "$charity"; ?></strong>
 <?php if ($username) { ?>
 <a href="/city">Cities</a>
 /
 <a href="/hub">Hubs</a>
 /
 <a href="/donation">Donations</a>
-<?php } ?>
+/
+<a href="/report">Reports</a>
+
+<strong class="small"><em><?php echo $username; ?></em>@<?php echo $charity; ?></strong>
+<a href="/logout.php" class="smaller">logout</a>
+<?php } else echo "<strong>$charity</strong>"; ?>
 </p>
 
 <div id="main">