From db36bde36e3407baaccd97b8df5443ad9fc56a2d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 10 Jul 2005 23:05:36 +0000 Subject: [PATCH] r304: Added tab navigation system. --- attachment.php | 2 ++ editcomment.php | 2 ++ editreport.php | 2 ++ favourite.php | 2 ++ global.php | 1 - includes/class_message_reporter.php | 6 ++--- index.php | 2 ++ login.php | 2 ++ newreport.php | 2 ++ register.php | 2 ++ search.php | 2 ++ showhistory.php | 2 ++ showreport.php | 2 ++ templates/header.tpl | 8 +++++++ templates/style.css | 36 +++++++++++++++++++++++++---- viewattachment.php | 2 ++ vote.php | 2 ++ 17 files changed, 69 insertions(+), 8 deletions(-) diff --git a/attachment.php b/attachment.php index 8d9cb65..d089a2a 100755 --- a/attachment.php +++ b/attachment.php @@ -17,6 +17,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); if (isset($bugsys->in['attachmentid'])) diff --git a/editcomment.php b/editcomment.php index 0a85ddb..97d6758 100644 --- a/editcomment.php +++ b/editcomment.php @@ -16,6 +16,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); $comment = $db->query_first(" diff --git a/editreport.php b/editreport.php index e25c2c0..b9bd379 100644 --- a/editreport.php +++ b/editreport.php @@ -17,6 +17,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); $bug = $db->query_first(" diff --git a/favourite.php b/favourite.php index d6c770a..4badda8 100644 --- a/favourite.php +++ b/favourite.php @@ -12,6 +12,8 @@ define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); if (!$bugsys->userinfo['userid']) diff --git a/global.php b/global.php index 2044dab..4f070f5 100755 --- a/global.php +++ b/global.php @@ -20,7 +20,6 @@ $template->templatedir = $bugsys->fetch_sourcepath('templates/'); // ################################################################### // global template variables - $datetime = $datef->format('l, F j, Y g:i A'); // ################################################################### diff --git a/includes/class_message_reporter.php b/includes/class_message_reporter.php index a3bac9b..afba72c 100755 --- a/includes/class_message_reporter.php +++ b/includes/class_message_reporter.php @@ -21,7 +21,7 @@ class Message_Reporter function error($text = '') { global $bugsys; - global $doctype, $header, $headinclude, $footer; + global $doctype, $header, $headinclude, $footer, $focus, $show; if (is_array($this->phrase) AND empty($this->process)) { @@ -65,7 +65,7 @@ class Message_Reporter function redirect($text = '', $url = '') { global $bugsys; - global $doctype, $header, $headinclude, $footer; + global $doctype, $header, $headinclude, $footer, $focus, $show; if (is_array($this->phrase) AND empty($this->process)) { @@ -96,7 +96,7 @@ class Message_Reporter function message($text = '') { global $bugsys; - global $doctype, $header, $headinclude, $footer; + global $doctype, $header, $headinclude, $footer, $focus, $show; if (is_array($this->phrase) AND empty($this->process)) { diff --git a/index.php b/index.php index 15773b5..5a797ba 100644 --- a/index.php +++ b/index.php @@ -17,6 +17,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['index'] = 'focus'; + require_once('./global.php'); if (!can_perform('canviewbugs')) diff --git a/login.php b/login.php index 4340c0a..6acd02f 100755 --- a/login.php +++ b/login.php @@ -16,6 +16,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['user'] = 'focus'; + require_once('./global.php'); // ################################################################### diff --git a/newreport.php b/newreport.php index f3c830a..a0900c7 100755 --- a/newreport.php +++ b/newreport.php @@ -17,6 +17,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['newreport'] = 'focus'; + require_once('./global.php'); if (!can_perform('cansubmitbugs')) diff --git a/register.php b/register.php index 0fad45d..fa45d42 100755 --- a/register.php +++ b/register.php @@ -16,6 +16,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['user'] = 'focus'; + require_once('./global.php'); // ################################################################### diff --git a/search.php b/search.php index 5f9e733..4511216 100644 --- a/search.php +++ b/search.php @@ -17,6 +17,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['search'] = 'focus'; + require_once('./global.php'); if (!can_perform('cansearch')) diff --git a/showhistory.php b/showhistory.php index d10212b..e625d71 100644 --- a/showhistory.php +++ b/showhistory.php @@ -18,6 +18,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . intval($bugsys->in['bugid'])); diff --git a/showreport.php b/showreport.php index 9be557d..a07b886 100644 --- a/showreport.php +++ b/showreport.php @@ -18,6 +18,8 @@ $fetchtemplates = array( define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); if (!can_perform('canviewbugs')) diff --git a/templates/header.tpl b/templates/header.tpl index e10fd98..f7d5d1c 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -5,4 +5,12 @@ $datetime +
+ Listing + New Bug + Bug Display + Search + userinfo['userid']">userctrl.php">My Controlslogin.php">Login/Register + Help +
\ No newline at end of file diff --git a/templates/style.css b/templates/style.css index 77ff79d..d44a9aa 100644 --- a/templates/style.css +++ b/templates/style.css @@ -29,7 +29,7 @@ body { color: inherit; text-decoration: none; - font-family: "Trebuchet MS", Helvetica, Arial, Tahoma, sans-serif; + font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 44px; text-shadow: 2px 2px 3px gray; font-weight: 300; @@ -45,12 +45,40 @@ body vertical-align: super; } +#tabbar +{ + margin: 10px 20px 0px 20px; + padding: 4px 16px 5px 0px; +} + + #tabbar .tab, .tabfocus + { + background-color: rgb(204, 204, 204); + padding: 4px 15px 4px 15px; + color: rgb(0, 0, 0); + text-decoration: none; + margin: 0px 7px 0px 0px; + } + + #tabbar .tab:hover + { + background-color: rgb(255, 255, 255); + text-decoration: underline; + } + + #tabbar .tabfocus + { + background-color: rgb(255, 255, 255); + border-bottom: none; + padding-bottom: 5px; + font-weight: bold; + } + #content { background-color: rgb(255, 255, 255); - padding: 5px; - margin: 20px 20px 5px 20px; - border: 2px solid rgb(153, 153, 153); + padding: 10px; + margin: 0px 20px 5px 20px; } /*=====================================================================*\ diff --git a/viewattachment.php b/viewattachment.php index 2ab6912..9a51f4a 100755 --- a/viewattachment.php +++ b/viewattachment.php @@ -14,6 +14,8 @@ ob_start(); define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); $attachment = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "attachment WHERE attachmentid = " . intval($bugsys->in['attachmentid'])); diff --git a/vote.php b/vote.php index e4d3043..18e3071 100644 --- a/vote.php +++ b/vote.php @@ -12,6 +12,8 @@ define('SVN', '$Id$'); +$focus['showreport'] = 'focus'; + require_once('./global.php'); // ################################################################### -- 2.22.5