Skip to content

Commit

Permalink
update survey graph pagination Ref # B9068
Browse files Browse the repository at this point in the history
  • Loading branch information
aragonc committed Jan 29, 2015
1 parent 042189b commit 5258895
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions main/css/base.css
Expand Up @@ -5410,4 +5410,11 @@ i.size-32.icon-new-work{
.survey-block .confirmation-message, .survey-block .error-message{
font-size: 16px;
text-align: center;
}
#question_report_questionnumbers.pagination .disabled a{
background-color:#F5F5F5;
color: #666;
}
.title-question{
font-size: 22px;
}
10 changes: 6 additions & 4 deletions main/survey/survey.lib.php
Expand Up @@ -2897,6 +2897,7 @@ function jumpMenu(targ,selObj,restore) {
* @todo the pagebreak and comment question types should not be shown => removed from $survey_data before
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
* @version February 2007 - Updated March 2008
* @CSS Alex Aragon <alex.aragon@beeznest.com> - update January 2015
*/
public static function display_question_report($survey_data)
{
Expand Down Expand Up @@ -2965,9 +2966,9 @@ public static function display_question_report($survey_data)
echo get_lang('NextQuestion').' '.Display::return_icon('action_next.png', get_lang('NextQuestion'), array('align' => 'middle'));
}*/
}

echo isset($question['survey_question']) ? $question['survey_question'] : null;

echo '<div class="title-question">';
echo strip_tags(isset($question['survey_question']) ? $question['survey_question'] : null);
echo '</div>';
if ($question['type'] == 'score') {
/** @todo This function should return the options as this is needed further in the code */
$options = SurveyUtil::display_question_report_score($survey_data, $question, $offset);
Expand Down Expand Up @@ -3023,7 +3024,7 @@ public static function display_question_report($survey_data)
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/tag/jquery.fcbkcomplete.js" type="text/javascript" language="javascript"></script>';

// displaying the table: headers
echo '<table class="data_table">';
echo '<table class="table">';
echo ' <tr>';
echo ' <th>&nbsp;</th>';
echo ' <th>'.get_lang('AbsoluteTotal').'</th>';
Expand Down Expand Up @@ -3897,6 +3898,7 @@ static function display_comparative_report() {
$questions = survey_manager::get_questions($_GET['survey_id']);

// Actions bar

echo '<div class="actions">';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'survey/reporting.php?survey_id='.Security::remove_XSS($_GET['survey_id']).'">'.Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('ReportingOverview'),'',ICON_SIZE_MEDIUM).'</a>';
echo '</div>';
Expand Down

0 comments on commit 5258895

Please sign in to comment.