Permalink
Browse files

Feedback tab will be highlighted if there is unread feedback

  • Loading branch information...
1 parent 4f83f44 commit f34c44a306e117beb1538f172098ef12d00c9ef0 Tyler Hall committed Jan 2, 2010
Showing with 9 additions and 0 deletions.
  1. +1 −0 css/yuiapp.css
  2. +8 −0 inc/header.inc.php
View
@@ -14,6 +14,7 @@ h1 { font-size:230%; color:#fff; }
#primary-navigation li a { font-size:116%; padding:0.4em 1em; }
#primary-navigation li.active a { background-color:#f0f0ee; color:#000; }
+#primary-navigation li.highlight a { background-color:lightyellow; color:#000; }
#user-navigation { float:right; }
#user-navigation li a { font-size:93%; padding:0.5em 1em; }
View
@@ -1,9 +1,17 @@
+<?PHP
+ $db = Database::getDatabase();
+ $feedback_count = $db->getValue("SELECT COUNT(*) FROM feedback WHERE new = 1");
+?>
<h1>Shine</h1>
<div id="navigation">
<ul id="primary-navigation">
<li class="active"><a href="index.php">Applications</a></li>
<li><a href="orders.php">Orders</a></li>
+ <?PHP if($feedback_count == 0) : ?>
<li><a href="feedback.php">Feedback</a></li>
+ <?PHP else : ?>
+ <li class="highlight"><a href="feedback.php">Feedback</a></li>
+ <?PHP endif; ?>
<li><a href="stats.php">Sparkle Stats</a></li>
</ul>

0 comments on commit f34c44a

Please sign in to comment.