show search tags, current tags, and tags of the current pic in one line
[photo-tags.git] / index.php
index 353a848b0972f7c6726d46f8abb1e06bd53f68e0..7cf15c01024d74cd75405c055f52f71f835822fc 100644 (file)
--- a/index.php
+++ b/index.php
@@ -42,12 +42,15 @@ function autoversion($file)
 
 /* The basic layout */
 ?>
-
+<!DOCTYPE html>
 <html>
+<head>
+<meta charset="utf-8">
 <title><?php echo htmlspecialchars($title) ?></title>
 <script src = "<?php echo $webbase.autoversion("/js/d3.min.js")?>"></script>
-<link rel="stylesheet" type="text/css" href="<?php echo $webbase.autoversion("/css/normalize.css")?>" />
+<link rel="stylesheet" type="text/css" href="<?php echo $webbase.autoversion("/css/bootstrap.min.css")?>" />
 <link rel="stylesheet" type="text/css" href="<?php echo $webbase.autoversion("/css/style.css")?>" />
+</head>
 
 <body>
 
@@ -55,22 +58,29 @@ function autoversion($file)
 <h1><?php echo htmlspecialchars($title) ?></h1>
 
 <nav>
-page <span class="index"></span>
-<button class="prev" type="button" disabled="disabled" onclick="prev_page()"> prev </button>
-<button class="next" type="button" onclick="next_page()">next </button>
-<button class="all"  type="submit" onclick="document.location.href='<?php echo $webbase?>'">all</button>
+
+<div class="pagination">
+  <ul>
+  </ul>
+</div>
+
 </nav>
 
+
 <div class="permalink"></div>
 
 <div class="tagsearch">
-<form method="get" action="">
- Search for tag: <input list="MyTags" id="MyTagsInput" type="text" value="" />
-  <datalist id="MyTags">
-  </datalist>
+<form class="form-search" method="get" action="">
+  <p>
+    <label>Search for tag:</label> <input class="input-medium search-query" list="MyTags" id="MyTagsInput" type="text" value="" />
+    <datalist id="MyTags">
+    </datalist>
+    Current tags:<span id="currenttags"></span>
+    <a class="next btn btn-small btn-info" onclick="tagcloud()">tag cloud</a>
+    <a class="btn btn-small btn-success" href='<?php echo $webbase?>'>all</a>
+    <span id="pictags"></span>
+  </p>
 </form>
-  Current tags:<span id="currenttags"></span>
-  <button class="next" type="button" onclick="tagcloud()">tag cloud</button>
 </div>
 
 <div class="nextprev"> <ul></ul></div>
@@ -84,6 +94,8 @@ page <span class="index"></span>
 
 
 <script src = "<?php echo $webbase.autoversion("/js/photo-tags.js")?>"></script>
+<script src="http://code.jquery.com/jquery-latest.js"></script>
+<script src="js/bootstrap.min.js"></script>
 <script type="text/javascript" >
 
 /*hand parameters over to javascript*/