version 1.19, 2008/10/30 17:45:25
|
version 1.21, 2008/12/11 14:55:27
|
Line 211 sub SurveyProblemSelector {
|
Line 211 sub SurveyProblemSelector {
|
$Str .= '<tr><td>'. |
$Str .= '<tr><td>'. |
'<input type="radio" name="problemchoice" id="'.$id.'" '. |
'<input type="radio" name="problemchoice" id="'.$id.'" '. |
'value="'.$value.'" '.$checked.'/>'.'</td>'. |
'value="'.$value.'" '.$checked.'/>'.'</td>'. |
'<td><nobr>'. |
'<td><span class="LC_nobreak">'. |
'<label for="'.$id.'">'.$problem->{'res'}->compTitle.' ('.$problem->{'seq'}->compTitle.')'.'</label>'. |
'<label for="'.$id.'">'.$problem->{'res'}->compTitle.' ('.$problem->{'seq'}->compTitle.')'.'</label>'. |
(' 'x2). |
(' 'x2). |
'<a target="preview" href="'.$link.'">'.&mt('View survey').'</a>'.'</td></tr>'.$/; |
'<a target="preview" href="'.$link.'">'.&mt('View survey').'</a>'.'</span></td></tr>'.$/; |
} |
} |
$Str .= '</table>'; |
$Str .= '</table>'; |
return $Str; |
return $Str; |
Line 569 sub make_HTML_report {
|
Line 569 sub make_HTML_report {
|
sprintf("%.2f",$count/$total*100).'%</td>'. |
sprintf("%.2f",$count/$total*100).'%</td>'. |
&Apache::loncommon::end_data_table_row().$/; |
&Apache::loncommon::end_data_table_row().$/; |
} |
} |
$Str .= &Apache::loncommon::start_data_table_row(). |
$Str.='<tr>' |
'<th>'.&mt('Foil Name').'</th>'. |
.'<td colspan="3">' |
'<th>'.&mt('Text').'</th>'. |
.&Apache::loncommon::start_data_table() |
'<th>'.&mt('Freq').'</th>'. |
.&Apache::loncommon::start_data_table_header_row() |
'<th>'.&mt('Percent').'</th>'. |
.'<th>'.&mt('Foil Name').'</th>' |
&Apache::loncommon::end_data_table_row().$/. |
.'<th>'.&mt('Text').'</th>' |
$tmp; |
.'<th>'.&mt('Frequency').'</th>' |
|
.'<th>'.&mt('Percent').'</th>' |
|
.&Apache::loncommon::end_data_table_header_row().$/ |
|
.$tmp |
|
.&Apache::loncommon::end_data_table() |
|
.'</td></tr>'; |
} |
} |
$Str.= &Apache::loncommon::end_data_table().'<hr />'; |
$Str.= '</table>'; |
$r->print($Str); |
$r->print($Str); |
$r->rflush(); |
$r->rflush(); |
} |
} |