Pridano super barevny CSS menu
authorThomas Mudrunka <tomas@mudrunka.cz>
Mon, 8 Aug 2011 03:12:46 +0000 (05:12 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Mon, 8 Aug 2011 03:16:54 +0000 (05:16 +0200)
TODO
index.php

diff --git a/TODO b/TODO
index baf872c14649eb365a4427b7b5559803d2a529a7..4547bc71bfa91998d4d04d32d0dde9e8e245bcb6 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,12 +1,12 @@
 ##TODO
   * HOT
-    * History (!)
-    * Reference integrity
     * Write some assistants for basic workflows
-    * CSS
   * Features
     * INSERT/UPDATE to multiple tables (so brand new item can be inserted with model at once)
+  * DB
+    * Reference integrity
   * UI
+    * CSS
     * Templating system
     * Stateless barcode scanner interface (php-cli?)
   * Security
@@ -14,8 +14,9 @@
     * XSS (none fixed)
   * Code refactoring
     * Optimize magic quotes usage
-    * Separate classes to single files
+    * Move classes to separate files
       * Make sure that every method is in the class that it belongs to
+    * Move CSS and Javascript to separate files
     * Use GetText
       * English and Czech locales
        * Release engineering
index 0614a8d491015f5d5d198233910452148604f8d3..a41759c806ca12358db1e6bc34cbad8aef9d1884 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -40,20 +40,77 @@ class Sklad_HTML {
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 </head>
 <h1><a href="$script/">SystémSklad</a><small>$title</small></h1>
+
+<style type="text/css">
+.menu li, .menu * li {
+       float: left;
+       margin: 0.2em;
+}
+
+.menu * menu {
+       position: absolute;
+       background-color: yellow;
+}
+
+.menu, .menu * menu {
+       list-style: none;
+}
+
+.menu * menu {
+       display: none;
+       margin: 0;
+}
+
+.menu li:hover menu {
+       display: block;
+}
+</style>
+
 <div>
-       <menu>
+       <menu class="menu">
                <li><a href="?logout">Logout</a></li>
                <li><a href="$script/">Home</a></li>
+               <li><a href="#">Assistants</A>
+                       <menu>
+                               <li><a href="$script/assistant/new-item">new-item</a></li>
+                       </menu>
+               </li>
+               <li><a href="#">List</a>
+                       <menu>
+                               <li><a href="$script/item">item</a></li>
+                               <li><a href="$script/model">model</a></li>
+                               <li><a href="$script/category">category</a></li>
+                               <li><a href="$script/producer">producer</a></li>
+                               <li><a href="$script/vendor">vendor</a></li>
+                               <li><a href="$script/room">room</a></li>
+                               <li><a href="$script/status">status</a></li>
+                       </menu>
+               </li>
+               <li><a href="#">New</a>
+                       <menu>
+                               <li><a href="$script/item/new">item</a></li>
+                               <li><a href="$script/model/new">model</a></li>
+                               <li><a href="$script/category/new">category</a></li>
+                               <li><a href="$script/producer/new">producer</a></li>
+                               <li><a href="$script/vendor/new">vendor</a></li>
+                               <li><a href="$script/room/new">room</a></li>
+                               <li><a href="$script/status/new">status</a></li>
+                       </menu>
+               </li>
        </menu>
-       <form action="?" method="GET">
-               <input type="text" name="q" placeholder="regexp..." value="$search" />
-               <input type="submit" value="filter" />
-       </form>
-       <!-- form action="$script/" method="GET">
-               <input type="text" name="q" placeholder="regexp..." value="$search" />
-               <input type="submit" value="search items" />
-       </form -->
+
+       <div style="float: right;">
+               <form action="?" method="GET">
+                       <input type="text" name="q" placeholder="regexp..." value="$search" />
+                       <input type="submit" value="filter" />
+               </form>
+               <!-- form action="$script/" method="GET">
+                       <input type="text" name="q" placeholder="regexp..." value="$search" />
+                       <input type="submit" value="search items" />
+               </form -->
+       </div>
 </div>
+<hr style="clear: both;" />
 <div style="background-color:#FFDDDD;">
        <font color="red">$message</font>
 </div>
This page took 0.137722 seconds and 4 git commands to generate.