echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
echo '<input type="hidden" name="currentfile" value="'.$currentfile.'" />';
echo '<input type="hidden" name="mode" value="helpfiles" />';
- echo "<div align=\"center\">\n";
+ echo "<div class='mdl-align'>\n";
echo "<textarea rows=\"$fileeditorrows\" cols=\"$fileeditorcols\" name=\"filedata\">";
if (file_exists("$saveto/$currentfile")) {
echo htmlspecialchars(file_get_contents("$saveto/$currentfile"));
if (is_readable("$altdir/$currentfile")) {
// show the content of the same help file in alternative location
echo '<fieldset><legend>'.$straltdirtitle.'</legend>';
- echo "<div align=\"center\">\n";
+ echo "<div class='mdl-align'>\n";
echo "<textarea rows=\"$fileeditorrows\" cols=\"$fileeditorcols\" name=\"\">";
if (file_exists("$altdir/$currentfile")) {
echo htmlspecialchars(file_get_contents("$altdir/$currentfile"));
echo '<fieldset><legend>'.$strlangmasterenglish;
helpbutton('langpackages', $strlangmasterenglish);
echo '</legend>';
- echo "<div align=\"center\">\n<textarea rows=\"$fileeditorrows\" cols=\"$fileeditorcols\" name=\"\">";
+ echo "<div class='mdl-align'>\n<textarea rows=\"$fileeditorrows\" cols=\"$fileeditorcols\" name=\"\">";
echo htmlspecialchars(file_get_contents($ensrc));
echo "</textarea>\n</div>\n";
$preview_url = lang_help_preview_url($currentfile, true, 'en_utf8'); // do not display en_utf8_local
require_once($CFG->libdir.'/filelib.php');
$path = get_file_url($path, null, 'rssfile');
- print '<div align="right"><a href="'. $path .'"><img src="'. $rsspix .'" title="'. strip_tags($tooltiptext) .'" alt="'.get_string('rss').'" /></a></div>';
+ print '<div class="mdl-right"><a href="'. $path .'"><img src="'. $rsspix .'" title="'. strip_tags($tooltiptext) .'" alt="'.get_string('rss').'" /></a></div>';
}
if ($USER->username == 'guest') { // only real guest user, not for users with guest role
$curcost = get_course_cost($course);
- echo '<div align="center">';
+ echo '<div class="mdl-align">';
echo '<p>'.get_string('paymentrequired').'</p>';
echo '<p><b>'.get_string('cost').": $curcost[currency] $curcost[cost]".'</b></p>';
echo '<p><a href="'.$CFG->httpswwwroot.'/login/">'.get_string('loginsite').'</a></p>';
$mform->addElement('header', 'general', get_string('paymentrequired'));
$othermethodstr = $this->other_method_available($paymentmethod);
if ($othermethodstr) {
- $mform->addElement('static', '', '<div align="right">' . $othermethodstr . '</div>', '');
+ $mform->addElement('static', '', '<div class="mdl-right">' . $othermethodstr . '</div>', '');
}
$mform->addElement('hidden', 'id', $course->id);
echo $this->Tables(); break;
}
global $ADODB_vers;
- echo "<p><div align=center><font size=1>$ADODB_vers Sponsored by <a href=http://phplens.com/>phpLens</a></font></div>";
+ echo "<p><div class='mdl-align'><font size=1>$ADODB_vers Sponsored by <a href=http://phplens.com/>phpLens</a></font></div>";
}
/*
// end hack
}
-?>
\ No newline at end of file
+?>
}
//button "export to excel"
- //echo '<div align="center">';
+ //echo '<div class="mdl-align">';
// echo '<div class="feedback_centered_button">';
echo '<div class="form-buttons">';
$export_button_link = 'analysis_to_excel.php';
$check_anonymously = false;
}
}
- // echo '<div align="center"><table width="80%" cellpadding="10"><tr><td>';
+ // echo '<div class="mdl-align"><table width="80%" cellpadding="10"><tr><td>';
echo '<div><table width="80%" cellpadding="10"><tr><td>';
if($check_anonymously) {
$itemnr = 0;
if( $capabilities->viewreports ) {
//button "export to excel"
- echo '<div align="center">';
+ echo '<div class="mdl-align">';
$export_button_link = 'analysis_to_excel.php';
$export_button_options = array('sesskey'=>$USER->sesskey, 'id'=>$id, 'coursefilter'=>$coursefilter);
$export_button_label = get_string('export_to_excel', 'feedback');
}
echo '<form name="report" method="post">';
- echo '<div align="center"><table width="80%" cellpadding="10">';
+ echo '<div class="mdl-align"><table width="80%" cellpadding="10">';
if ($courseitemfilter > 0) {
$avgvalue = 'avg(value)';
if ($DB->get_dbfamily() == 'postgres') { // TODO: this should be moved to standard sql DML function ;-)
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))) {
- echo '<div align="center"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
+ echo '<div class="mdl-align"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
echo get_string('completed_feedbacks', 'feedback').'</a>';
echo '</div>';
}
if(is_array($feedbackitems)){
// print_simple_box_start('center', '75%');
print_box_start('generalbox boxaligncenter boxwidthwide');
- echo '<div align="center"><form name="frm" action="'.$ME.'" method="post" onsubmit=" ">';
+ echo '<div class="mdl-align"><form name="frm" action="'.$ME.'" method="post" onsubmit=" ">';
echo '<input type="hidden" name="sesskey" value="' . $USER->sesskey . '" />';
echo '<table>';
switch ($feedback->anonymous) {
print_heading(format_text($feedback->name));
if( (intval($feedback->publish_stats) == 1) AND ( $capabilities->viewanalysepage) AND !( $capabilities->viewreports) ) {
- echo '<div align="center"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
+ echo '<div class="mdl-align"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
echo get_string('completed_feedbacks', 'feedback').'</a>';
echo '</div>';
}
if(is_array($feedbackitems)){
// print_simple_box_start('center', '75%');
print_box_start('generalbox boxaligncenter boxwidthwide');
- echo '<div align="center"><form name="frm" action="'.$ME.'" method="post" onsubmit=" ">';
+ echo '<div class="mdl-align"><form name="frm" action="'.$ME.'" method="post" onsubmit=" ">';
echo '<table>';
echo '<tr><td colspan="3" align="center">
<input type="hidden" name="anonymous" value="0" />
print_box_end();
}else {
$templates = feedback_get_template_list($course, true);
- echo '<div align="center">';
+ echo '<div class="mdl-align">';
if(!is_array($templates)) {
// print_simple_box(get_string('no_templates_available_yet', 'feedback'), "center");
print_box(get_string('no_templates_available_yet', 'feedback'), 'generalbox boxaligncenter');
<?php
- echo '<div align="center">';
+ echo '<div class="mdl-align">';
print_single_button('edit.php', array('id'=>$id, 'do_show'=>'templates'), get_string('cancel'));
echo '</div>';
print_footer($course);
// print_simple_box_start('center', '80%');
print_box_start('generalbox boxaligncenter boxwidthwide');
- echo '<div align="center" class="printview"><table>';
+ echo '<div class="mdl-align printview"><table>';
//print the inserted items
$itempos = 0;
foreach($feedbackitems as $feedbackitem){
$completedFeedbackCount = feedback_get_completeds_group_count($feedback, $mygroupid);
if($feedback->course == SITEID){
- echo '<div align="center"><a href="'.htmlspecialchars('analysis_course.php?id=' . $id . '&courseid='.$courseid).'">';
+ echo '<div class="mdl-align"><a href="'.htmlspecialchars('analysis_course.php?id=' . $id . '&courseid='.$courseid).'">';
echo get_string('course') .' '. get_string('analysis', 'feedback') . ' ('.get_string('completed_feedbacks', 'feedback').': '.intval($completedFeedbackCount).')</a>';
helpbutton('viewcompleted', '', 'feedback', true, true);
echo '</div>';
}else {
- echo '<div align="center"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
+ echo '<div class="mdl-align"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
echo get_string('analysis', 'feedback') . ' ('.get_string('completed_feedbacks', 'feedback').': '.intval($completedFeedbackCount).')</a>';
echo '</div>';
}
$choose_group_form->set_data(array('id'=>$id, 'lstgroupid'=>$SESSION->feedback->lstgroupid, 'do_show'=>$do_show));
$choose_group_form->display();
}
- echo '<div align="center"><table><tr><td width="400">';
+ echo '<div class="mdl-align"><table><tr><td width="400">';
if (!$students) {
if($courseid != SITEID){
notify(get_string('noexistingstudents'));
}
</script>
- <div align="center">
+ <div class="mdl-align">
<form name="frm" action="<?php echo me();?>" method="post">
<table>
<tr>
echo '<p align="center">'.get_string('preview', 'feedback').'</p>';
// print_simple_box_start('center', '75%');
print_box_start('generalbox boxaligncenter boxwidthwide');
- echo '<div align="center"><table>';
+ echo '<div class="mdl-align"><table>';
foreach($templateitems as $templateitem){
echo '<tr>';
if($templateitem->hasvalue == 1 AND $feedback->autonumbering) {
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))) {
- echo '<div align="center"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
+ echo '<div class="mdl-align"><a href="'.htmlspecialchars('analysis.php?id=' . $id . '&courseid='.$courseid).'">';
echo get_string('completed_feedbacks', 'feedback').'</a>';
echo '</div>';
}
if($feedback->course == SITEID) {
// print_simple_box_start('center', '80%');
print_box_start('generalbox boxaligncenter boxwidthwide');
- echo '<div align="center">';
+ echo '<div class="mdl-align">';
echo '<form action="mapcourse.php" method="get">';
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
echo '<input type="hidden" name="id" value="'.$id.'" />';
}
}
if ($canunsubscribe) {
- $posthtml .= "\n<div align=\"right\"><font size=\"1\"><a href=\"$CFG->wwwroot/mod/forum/subscribe.php?id=$forum->id\">".get_string("unsubscribe", "forum")."</a></font></div>";
+ $posthtml .= "\n<div class='mdl-right'><font size=\"1\"><a href=\"$CFG->wwwroot/mod/forum/subscribe.php?id=$forum->id\">".get_string("unsubscribe", "forum")."</a></font></div>";
} else {
- $posthtml .= "\n<div align=\"right\"><font size=\"1\">".get_string("everyoneissubscribed", "forum")."</font></div>";
+ $posthtml .= "\n<div class='mdl-right'><font size=\"1\">".get_string("everyoneissubscribed", "forum")."</font></div>";
}
$posthtml .= '<hr size="1" noshade="noshade" /></p>';
}
$options = new object();
$options->para = false;
if (!empty($localpath)) { // Show some help
- echo '<div align="right" class="helplink">';
+ echo '<div class="mdl-right helplink">';
link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'), get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));
echo '</div>';
}
$options->para = false;
echo '<div class="summary">'.format_text($resource->summary, FORMAT_HTML, $options).'</div>';
if (!empty($localpath)) { // Show some help
- echo '<div align="right" class="helplink">';
+ echo '<div class="mdl-right helplink">';
link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'),
get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));
echo '</div>';
} else { // Display the resource on it's own
if (!empty($localpath)) { // Show a link to help work around browser security
- echo '<div align="right" class="helplink">';
+ echo '<div class="mdl-right helplink">';
link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'),
get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));
echo '</div>';
echo '<div class="summary">'.format_text($resource->summary, FORMAT_HTML, $formatoptions).'</div>';
if (!empty($localpath)) { // Show some help
- echo '<div align="right" class="helplink">';
+ echo '<div class="mdl-right helplink">';
link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'), get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));
echo '</div>';
}
} else { // Display the resource on it's own
if (!empty($localpath)) { // Show a link to help work around browser security
- echo '<div align="right" class="helplink">';
+ echo '<div class="mdl-right helplink">';
link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'), get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));
echo '</div>';
echo "<center><p>(<a href=\"$fullurl\">$fullurl</a>)</p></center>";
$preview_text=$GLOBALS["ewiki_plugins"]["render"][0](optional_param("content", null), 1, EWIKI_ALLOW_HTML || (@$data["flags"]&EWIKI_DB_F_HTML));
return( '<div class="preview">'
. "<hr noshade>"
- . "<div align=\"right\">" . ewiki_t("PREVIEW") . "</div><hr noshade><br />\n"
+ . "<div class='mdl-right'>" . ewiki_t("PREVIEW") . "</div><hr noshade><br />\n"
. format_text($preview_text, $moodle_format)
. "<br /><br /><hr noshade><br />"
. "</div>"
}
$o = "\n"
- . '<div align="right" class="action-links control-links">'
+ . '<div class="mdl-right action-links control-links">'
. "\n<br />\n"
. "<hr noshade>" . "\n";
$datadefscat= array();
$datadefscat = $this->qtypeobj->get_dataset_definitions_category($this->question);
$datasetmenus = array();
- $label = "<div align=\"center\">".get_string('datasetrole', 'qtype_datasetdependent','numerical')."</div>";
+ $label = "<div class='mdl-align'>".get_string('datasetrole', 'qtype_datasetdependent','numerical')."</div>";
$mform->addElement('html', $label);// explaining the role of datasets so other strings can be shortened
$mform->addElement('header', 'mandatoryhdr', get_string('mandatoryhdr', $stringfile));
$labelsharedwildcard = get_string("sharedwildcard", "qtype_datasetdependent");
}
}
-?>
\ No newline at end of file
+?>
.mdl-align {
text-align: center;
}
+.mdl-left {
+ text-align: left;
+}
+.mdl-right {
+ text-align: right;
+}
.continuebutton {
text-align: center;