|
@@ -64,7 +64,7 @@ discard block |
|
|
block discarded – undo |
|
64
|
64
|
if ($surveyData['survey_type'] == 1) { |
|
65
|
65
|
$table_survey_question_group = Database::get_course_table(TABLE_SURVEY_QUESTION_GROUP); |
|
66
|
66
|
$sql = 'SELECT id,name FROM '.$table_survey_question_group.' |
|
67
|
|
- WHERE survey_id = '.(int)$_GET['survey_id'].' |
|
|
67
|
+ WHERE survey_id = '.(int) $_GET['survey_id'].' |
|
68
|
68
|
ORDER BY name'; |
|
69
|
69
|
$rs = Database::query($sql); |
|
70
|
70
|
$glist = null; |
|
@@ -75,15 +75,15 @@ discard block |
|
|
block discarded – undo |
|
75
|
75
|
$grouplist = $grouplist1 = $grouplist2 = $glist; |
|
76
|
76
|
|
|
77
|
77
|
if (!empty($formData['assigned'])) { |
|
78
|
|
- $grouplist = str_replace('<option value="'.$formData['assigned'].'"','<option value="'.$formData['assigned'].'" selected',$glist); |
|
|
78
|
+ $grouplist = str_replace('<option value="'.$formData['assigned'].'"', '<option value="'.$formData['assigned'].'" selected', $glist); |
|
79
|
79
|
} |
|
80
|
80
|
|
|
81
|
81
|
if (!empty($formData['assigned1'])) { |
|
82
|
|
- $grouplist1 = str_replace('<option value="'.$formData['assigned1'].'"','<option value="'.$formData['assigned1'].'" selected',$glist); |
|
|
82
|
+ $grouplist1 = str_replace('<option value="'.$formData['assigned1'].'"', '<option value="'.$formData['assigned1'].'" selected', $glist); |
|
83
|
83
|
} |
|
84
|
84
|
|
|
85
|
85
|
if (!empty($formData['assigned2'])) { |
|
86
|
|
- $grouplist2 = str_replace('<option value="'.$formData['assigned2'].'"','<option value="'.$formData['assigned2'].'" selected',$glist); |
|
|
86
|
+ $grouplist2 = str_replace('<option value="'.$formData['assigned2'].'"', '<option value="'.$formData['assigned2'].'" selected', $glist); |
|
87
|
87
|
} |
|
88
|
88
|
|
|
89
|
89
|
$this->html .= ' <tr><td colspan=""> |
|
@@ -95,7 +95,7 @@ discard block |
|
|
block discarded – undo |
|
95
|
95
|
|
|
96
|
96
|
$this->html .= ' |
|
97
|
97
|
<b>'.get_lang('Secondary').'</b><br /> |
|
98
|
|
- '.'<input type="radio" name="choose" value="2" '.(($formData['choose']==2)?'checked':''). |
|
|
98
|
+ '.'<input type="radio" name="choose" value="2" '.(($formData['choose'] == 2) ? 'checked' : ''). |
|
99
|
99
|
'><select name="assigned1">'.$grouplist1.'</select> '. |
|
100
|
100
|
'<select name="assigned2">'.$grouplist2.'</select>' |
|
101
|
101
|
.'</fieldset><br />'; |
|
@@ -131,7 +131,7 @@ discard block |
|
|
block discarded – undo |
|
131
|
131
|
<div class="form-group"> |
|
132
|
132
|
<label class="col-sm-2 control-label"></label> |
|
133
|
133
|
<div class="col-sm-8"> |
|
134
|
|
- <div class="alert alert-info">' . get_lang('YouCantNotEditThisQuestionBecauseAlreadyExistAnswers') . '</div> |
|
|
134
|
+ <div class="alert alert-info">' . get_lang('YouCantNotEditThisQuestionBecauseAlreadyExistAnswers').'</div> |
|
135
|
135
|
</div> |
|
136
|
136
|
<div class="col-sm-2"></div> |
|
137
|
137
|
</div> |