From 6a591cd6a91b1ceac6b98f923726462a46abd4f0 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Sat, 28 Mar 2009 01:39:39 +0000 Subject: [PATCH] New Feature: (minor) Added survey title to browse menu bar heading Dev: New function in common.php getSurveyName($surveyid) returns survey title as text Dev: when given survey id - will use it to add the survey title to other menu bars on Dev: pages where the survey title doesn't show git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey181@6589 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/browse.php | 2 +- common.php | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/admin/browse.php b/admin/browse.php index 8b63830e35d..a103a917dbd 100644 --- a/admin/browse.php +++ b/admin/browse.php @@ -56,7 +56,7 @@ } -$surveyoptions = browsemenubar($clang->gT("Browse Responses")); +$surveyoptions = browsemenubar($clang->gT("Browse Responses"), getSurveyName($surveyid)); $browseoutput = "
\n" ."\n"; diff --git a/common.php b/common.php index 35b864b3791..e03b55614d1 100644 --- a/common.php +++ b/common.php @@ -1798,7 +1798,7 @@ function fixmovedquestionConditions($qid,$oldgid,$newgid) //Function rewrites th } } -function browsemenubar($title='') +function browsemenubar($title='', $surveyname='') { global $surveyid, $scriptname, $imagefiles, $homeurl, $clang, $sumrows5, $surrows; @@ -1806,7 +1806,7 @@ function browsemenubar($title='') //BROWSE MENU BAR $browsemenubar = "