Skip to content

Commit

Permalink
MDL-19807 Migrated calls to print_heading
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 6, 2009
1 parent f7a1496 commit 53b1f5d
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion mod/feedback/complete.php
Expand Up @@ -280,7 +280,7 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));

if( (intval($feedback->publish_stats) == 1) AND ( $capabilities->viewanalysepage) AND !( $capabilities->viewreports) ) {
if($multiple_count = $DB->count_records('feedback_tracking', array('userid'=>$USER->id, 'feedback'=>$feedback->id))) {
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/complete_guest.php
Expand Up @@ -224,7 +224,7 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));

if( (intval($feedback->publish_stats) == 1) AND ( $capabilities->viewanalysepage) AND !( $capabilities->viewreports) ) {
echo '<div class="mdl-align"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/delete_completed.php
Expand Up @@ -78,10 +78,10 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));
// print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
print_box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal');
print_heading(get_string('confirmdeleteentry', 'feedback'));
echo $OUTPUT->heading(get_string('confirmdeleteentry', 'feedback'));
$mform->display();
// print_simple_box_end();
print_box_end();
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/delete_item.php
Expand Up @@ -71,10 +71,10 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));
// print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
print_box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal');
print_heading(get_string('confirmdeleteitem', 'feedback'));
echo $OUTPUT->heading(get_string('confirmdeleteitem', 'feedback'));
print_string('relateditemsdeleted','feedback');
$mform->display();
// print_simple_box_end();
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/delete_template.php
Expand Up @@ -88,12 +88,12 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(get_string('delete_template','feedback'));
echo $OUTPUT->heading(get_string('delete_template','feedback'));
if($shoulddelete == 1) {

// print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
print_box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal');
print_heading(get_string('confirmdeletetemplate', 'feedback'));
echo $OUTPUT->heading(get_string('confirmdeletetemplate', 'feedback'));
$mform->display();
// print_simple_box_end();
print_box_end();
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/edit.php
Expand Up @@ -214,9 +214,9 @@

$helpbutton = helpbutton('preview', get_string('preview','feedback'), 'feedback',true,false,'',true);

print_heading($helpbutton . get_string('preview', 'feedback'));
echo $OUTPUT->heading($helpbutton . get_string('preview', 'feedback'));
if(isset($SESSION->feedback->moving) AND $SESSION->feedback->moving->shouldmoving == 1) {
print_heading('<a href="'.htmlspecialchars($ME.'?id='.$id).'">'.get_string('cancel_moving', 'feedback').'</a>');
echo $OUTPUT->heading('<a href="'.htmlspecialchars($ME.'?id='.$id).'">'.get_string('cancel_moving', 'feedback').'</a>');
}
// print_simple_box_start('center', '80%');
print_box_start('generalbox boxaligncenter boxwidthwide');
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/edit_item.php
Expand Up @@ -131,7 +131,7 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));


//print errormsg
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/import.php
Expand Up @@ -90,7 +90,7 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(get_string('import_questions','feedback'));
echo $OUTPUT->heading(get_string('import_questions','feedback'));

if(isset($importerror->msg) AND is_array($importerror->msg)) {
// print_simple_box_start('center', '', '#FFAAAA', 5, 'notifyproblem');
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/lib.php
Expand Up @@ -2282,15 +2282,15 @@ function feedback_send_email_html($info, $course, $cm) {
*/
function feedback_print_errors() {

global $SESSION;
global $SESSION, $OUTPUT;

if(empty($SESSION->feedback->errors)) {
return;
}

// print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
print_box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal');
print_heading(get_string('handling_error', 'feedback'));
echo $OUTPUT->heading(get_string('handling_error', 'feedback'));

echo '<p align="center"><b><font color="black"><pre>';
print_r($SESSION->feedback->errors) . "\n";
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/print.php
Expand Up @@ -55,7 +55,7 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));

feedback_print_errors();

Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/show_entries.php
Expand Up @@ -207,7 +207,7 @@
/// Print the responses of the given user
////////////////////////////////////////////////////////
if($do_show == 'showoneentry') {
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));

//print the items
if(is_array($feedbackitems)){
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/show_entries_anonym.php
Expand Up @@ -78,7 +78,7 @@
///////////////////////////////////////////////////////////////////////////
include('tabs.php');

print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));

print_continue(htmlspecialchars('show_entries.php?id='.$id.'&do_show=showentries'));
//print the list with anonymous completeds
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/use_templ.php
Expand Up @@ -77,11 +77,11 @@
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));

// print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
print_box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal');
print_heading(get_string('confirmusetemplate', 'feedback'));
echo $OUTPUT->heading(get_string('confirmusetemplate', 'feedback'));

$mform->display();

Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/view.php
Expand Up @@ -110,7 +110,7 @@
/// print the tabs
include('tabs.php');

print_heading(format_text($feedback->name));
echo $OUTPUT->heading(format_text($feedback->name));

// print_simple_box_start('center', '80%');
print_box_start('generalbox boxaligncenter boxwidthwide');
Expand All @@ -120,7 +120,7 @@
print_box_end();

if($capabilities->edititems) {
print_heading(get_string("page_after_submit", "feedback"), '', 4);
echo $OUTPUT->heading(get_string("page_after_submit", "feedback"), 4);
// print_simple_box_start('center', '80%');
print_box_start('generalbox boxaligncenter boxwidthwide');
echo format_text($feedback->page_after_submit);
Expand Down

0 comments on commit 53b1f5d

Please sign in to comment.