Skip to content

Commit

Permalink
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_de…
Browse files Browse the repository at this point in the history
…v@9509 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Andrie de Vries committed Nov 19, 2010
1 parent bdecb42 commit cc04bb9
Showing 1 changed file with 69 additions and 3 deletions.
72 changes: 69 additions & 3 deletions admin/html.php
Expand Up @@ -703,7 +703,7 @@

$surveysummary .= "</ul>";

// End of survey toolbat 2nd page
// End of survey toolbar 2nd page

////////////////////////////////////////////////////////////////////////
// QUESTION GROUP TOOLBAR
Expand All @@ -730,7 +730,39 @@
$gid=null;
$qid=null;
}


// QUICK NAVIGATION TO PREVIOUS AND NEXT QUESTION GROUP
// TODO: Fix functionality to previous and next question group buttons (Andrie)
$GidPrev = getGidPrevious($surveyid, $gid);
if ($GidPrev != "")
{
$surveysummary .= ""
. "<input type='image' src='$imageurl/questiongroupprevious.png' title='". $clang->gT("Previous question group")."' "
. "alt='". $clang->gT("Previous question group")."' name='questiongroupprevious' ";
//. "onclick='document.getElementById(\"surveydetails\").style.display=\"none\";' />\n";
}
else
{
$surveysummary .= ""
. "<input type='image' src='$imageurl/questiongroupprevioushidden.png' title='". $clang->gT("Previous question group")."' "
. "alt='". $clang->gT("Previous question group")."' name='questiongroupprevious' ";
}

$GidNext = getGidNext($surveyid, $gid);
if ($GidNext != "")
{
$surveysummary .= ""
. "<input type='image' src='$imageurl/questiongroupnext.png' title='". $clang->gT("Next question group")."' "
. "alt='". $clang->gT("Next question group")."' name='questiongroupnext' ";
//. "onclick='document.getElementById(\"surveydetails\").style.display=\"none\";' />\n";
}
else
{
$surveysummary .= ""
. "<input type='image' src='$imageurl/questiongroupnexthidden.png' title='". $clang->gT("Next question group")."' "
. "alt='". $clang->gT("Next question group")."' name='questiongroupnext' ";
}


// ADD NEW GROUP TO SURVEY BUTTON

Expand Down Expand Up @@ -1071,6 +1103,41 @@
. "</select>\n";


// QUICK NAVIGATION TO PREVIOUS AND NEXT QUESTION
// TODO: Fix functionality to previos and next question buttons (Andrie)
$QidPrev = getQidPrevious($surveyid, $gid, $qid);
if ($QidPrev != "")
{
$groupsummary .= ""
. "<input type='image' src='$imageurl/questionprevious.png' title='". $clang->gT("Previous question")."' "
. "alt='". $clang->gT("Previous question")."' name='questionprevious' ";
//. "onclick='document.getElementById(\"surveydetails\").style.display=\"none\";' />\n";
}
else
{
$groupsummary .= ""
. "<input type='image' src='$imageurl/questionprevioushidden.png' title='". $clang->gT("Previous question")."' "
. "alt='". $clang->gT("Previous question")."' name='questionprevious' ";
}


$QidNext = getQidNext($surveyid, $gid, $qid);
if ($QidNext != "")
{
$groupsummary .= ""
. "<input type='image' src='$imageurl/questionnext.png' title='". $clang->gT("Next question")."' "
. "alt='". $clang->gT("Next question")."' name='questionnext' ";
//. "onclick='document.getElementById(\"surveydetails\").style.display=\"none\";' />\n";
}
else
{
$groupsummary .= ""
. "<input type='image' src='$imageurl/questionnexthidden.png' title='". $clang->gT("Next question")."' "
. "alt='". $clang->gT("Next question")."' name='questionnext' ";
}



// ADD NEW QUESTION TO GROUP BUTTON

if ($activated == "Y")
Expand All @@ -1087,7 +1154,6 @@
" name='AddNewQuestion' onclick=\"window.open('', '_top')\" /></a>\n";
}

// TODO: Add buttons to navigate group here (Andrie)

// Separator

Expand Down

0 comments on commit cc04bb9

Please sign in to comment.