jQuery 3.6.1.
[readifood.git] / lib / header.php
index 3c44dd9..b24bf9f 100644 (file)
@@ -2,15 +2,17 @@
 <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";
+  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$http://code.jquery.com/ui/1.13.2/themes/smoothness/jquery-ui.css\">\n";
+  echo "<script src=\"$http://code.jquery.com/jquery-3.6.1.js\"></script>\n";
+  echo "<script src=\"$http://code.jquery.com/ui/1.13.2/jquery-ui.js\"></script>\n";
 ?>
+<script src="/jquery.autosize.js"></script>
+<script src="/jquery.sortable.js"></script>
 </head>
 <body>
 
 <p id="header">
-<?php if ($username) { ?>
+<?php if (isset($username)) { ?>
 <a href="/city">Cities</a>
 /
 <a href="/area">Areas</a>
@@ -28,7 +30,7 @@
 <a href="/report">Reports</a>
 
 <strong class="small"><em><?php echo $username; ?></em>@<?php echo $charity; ?></strong>
-<a href="/logout" class="smaller">logout</a>
+<a href="/logout.php" class="smaller">logout</a>
 <?php } else echo "<strong>$charity</strong>"; ?>
 </p>