Esempio n. 1
0
             //get2post("$scriptname?action=delgroup&sid=$surveyid&gid=$gid");
         } else {
             $groupsummary .= "<a href='{$scriptname}?sid={$surveyid}&amp;gid={$gid}' onclick=\"alert('" . $clang->gT("Impossible to delete this group because there is at least one question having a condition on its content", "js") . "')\"" . " title=\"" . $clang->gTview("Delete current question group") . "\">" . "<img src='{$imageurl}/delete_disabled.png' alt='" . $clang->gT("Delete current question group") . "' name='DeleteWholeGroup' /></a>\n";
         }
     } else {
         $groupsummary .= "<img src='{$imageurl}/blank.gif' alt='' width='40' />\n";
     }
 }
 // EXPORT QUESTION GROUP BUTTON
 if (bHasSurveyPermission($surveyid, 'surveycontent', 'export')) {
     $groupsummary .= "<a href='{$scriptname}?action=exportstructureGroup&amp;sid={$surveyid}&amp;gid={$gid}' title=\"" . $clang->gTview("Export this question group") . "\" >" . "<img src='{$imageurl}/dumpgroup.png' title='' alt='" . $clang->gT("Export this question group") . "' name='ExportGroup'  /></a>\n";
 }
 // CHANGE QUESTION ORDER BUTTON
 if (bHasSurveyPermission($surveyid, 'surveycontent', 'update')) {
     $groupsummary .= "<img src='{$imageurl}/seperator.gif' alt='' />\n";
     if ($activated != "Y" && getQuestionSum($surveyid, $gid) > 1) {
         //                $groupsummary .= "<img src='$imageurl/blank.gif' alt='' width='40' />\n";
         //                $groupsummary .= "<img src='$imageurl/seperator.gif' alt='' />\n";
         $groupsummary .= "<a href='{$scriptname}?action=orderquestions&amp;sid={$surveyid}&amp;gid={$gid}' title=\"" . $clang->gTview("Change Question Order") . "\" >" . "<img src='{$imageurl}/reorder.png' alt='" . $clang->gT("Change Question Order") . "' name='updatequestionorder' /></a>\n";
     } else {
         $groupsummary .= "<img src='{$imageurl}/blank.gif' alt='' width='40' />\n";
     }
 }
 $groupsummary .= "</div>\n" . "<div class='menubar-right'>\n" . "<span class=\"boxcaption\">" . $clang->gT("Questions") . ":</span><select class=\"listboxquestions\" name='qid' " . "onchange=\"window.open(this.options[this.selectedIndex].value, '_top')\">" . getQuestions($surveyid, $gid, $qid) . "</select>\n";
 // QUICK NAVIGATION TO PREVIOUS AND NEXT QUESTION
 // TODO: Fix functionality to previos and next question  buttons (Andrie)
 $QidPrev = getQidPrevious($surveyid, $gid, $qid);
 $groupsummary .= "<span class='arrow-wrapper'>";
 if ($QidPrev != "") {
     $groupsummary .= "" . "<a href='{$scriptname}?sid={$surveyid}&amp;gid={$gid}&amp;qid={$QidPrev}'>" . "<img src='{$imageurl}/previous_20.png' title='' alt='" . $clang->gT("Previous question") . "' " . "name='questiongroupprevious'/></a>";
 } else {
Esempio n. 2
0
         //				$groupsummary .= "<a href='$scriptname?action=delgroup&amp;sid=$surveyid&amp;gid=$gid' onclick=\"return confirm('".$clang->gT("Deleting this group will also delete any questions and answers it contains. Are you sure you want to continue?","js")."')\""
         $groupsummary .= "<a href='#' onclick=\"if (confirm('" . $clang->gT("Deleting this group will also delete any questions and answers it contains. Are you sure you want to continue?", "js") . "')) {" . get2post("{$scriptname}?action=delgroup&amp;sid={$surveyid}&amp;gid={$gid}") . "}\"" . " title=\"" . $clang->gTview("Delete current question group") . "\">" . "<img src='{$imagefiles}/delete.png' alt='" . $clang->gT("Delete current question group") . "' name='DeleteWholeGroup' title=''  /></a>\n";
         //get2post("$scriptname?action=delgroup&amp;sid=$surveyid&amp;gid=$gid");
     } else {
         $groupsummary .= "<a href='{$scriptname}?sid={$surveyid}&amp;gid={$gid}' onclick=\"alert('" . $clang->gT("Impossible to delete this group because there is at least one question having a condition on its content", "js") . "')\"" . " title=\"" . $clang->gTview("Delete current question group") . "\">" . "<img src='{$imagefiles}/delete_disabled.png' alt='" . $clang->gT("Delete current question group") . "' name='DeleteWholeGroup' /></a>\n";
     }
 } else {
     $groupsummary .= "<img src='{$imagefiles}/blank.gif' alt='' width='40' />\n";
 }
 if (bHasRight($surveyid, 'export')) {
     $groupsummary .= "<a href='{$scriptname}?action=exportstructureGroup&amp;sid={$surveyid}&amp;gid={$gid}' title=\"" . $clang->gTview("Export this question group") . "\" >" . "<img src='{$imagefiles}/dumpgroup.png' title='' alt='" . $clang->gT("Export this question group") . "' name='ExportGroup'  /></a>\n";
 } else {
     $groupsummary .= "<img src='{$imagefiles}/blank.gif' alt='' width='40' />\n";
 }
 $groupsummary .= "<img src='{$imagefiles}/seperator.gif' alt='' />\n";
 if ($activated != "Y" && bHasRight($surveyid, 'define_questions') && getQuestionSum($surveyid, $gid) > 1) {
     $groupsummary .= "<img src='{$imagefiles}/blank.gif' alt='' width='40' />\n";
     $groupsummary .= "<img src='{$imagefiles}/seperator.gif' alt='' />\n";
     $groupsummary .= "<a href='{$scriptname}?action=orderquestions&amp;sid={$surveyid}&amp;gid={$gid}' title=\"" . $clang->gTview("Change Question Order") . "\" >" . "<img src='{$imagefiles}/reorder.png' alt='" . $clang->gT("Change Question Order") . "' name='updatequestionorder' /></a>\n";
 } else {
     $groupsummary .= "<img src='{$imagefiles}/blank.gif' alt='' width='40' />\n";
 }
 $groupsummary .= "</div>\n" . "<div class='menubar-right'>\n" . "<span class=\"boxcaption\">" . $clang->gT("Questions") . ":</span><select class=\"listboxquestions\" name='qid' " . "onchange=\"window.open(this.options[this.selectedIndex].value, '_top')\">" . getQuestions($surveyid, $gid, $qid) . "</select>\n";
 if ($activated == "Y") {
     $groupsummary .= "<img src='{$imagefiles}/blank.gif' alt='' width='40' />\n";
 } elseif (bHasRight($surveyid, 'define_questions')) {
     $groupsummary .= "<a href='{$scriptname}?action=addquestion&amp;sid={$surveyid}&amp;gid={$gid}'" . " title=\"" . $clang->gTview("Add New Question to Group") . "\" >" . "<img src='{$imagefiles}/add.png' title='' alt='" . $clang->gT("Add New Question to Group") . "' " . " name='AddNewQuestion' onclick=\"window.open('', '_top')\" /></a>\n";
 }
 $groupsummary .= "<img src='{$imagefiles}/seperator.gif' alt=''  />";
 $groupsummary .= "<img src='{$imagefiles}/blank.gif' width='18' alt='' />" . "<input id='MinimizeGroupWindow' type='image' src='{$imagefiles}/minus.gif' title='" . $clang->gT("Hide Details of this Group") . "' alt='" . $clang->gT("Hide Details of this Group") . "' name='MinimizeGroupWindow' />\n";
 $groupsummary .= "<input type='image' id='MaximizeGroupWindow' src='{$imagefiles}/plus.gif' title='" . $clang->gT("Show Details of this Group") . "' alt='" . $clang->gT("Show Details of this Group") . "' name='MaximizeGroupWindow' />\n";