echo "</b></p></center>";
- print_simple_box_start("center", "100%", "$THEME->cellheading");
+ print_simple_box_start("center", "100%");
print_heading($options[$auth]);
- print_simple_box_start("center", "60%", "$THEME->cellcontent");
+ print_simple_box_start("center", "60%");
print_string("auth_$auth"."description", "auth");
print_simple_box_end();
print_simple_box("<center>".get_string("adminhelpbackup")."</center>", "center", "50%");
echo "<br />";
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
//Check for required functions...
- if(!function_exists('utf8_encode')) {
- print_simple_box("<font color=\"red\">You need to add XML support to your PHP installation</font>", "center", "70%", "$THEME->cellheading", "20", "noticebox");
+ if (!function_exists('utf8_encode')) {
+ notify("You need to add XML support to your PHP installation");
}
include ("$CFG->dirroot/backup/config.html");
/// Print the table of all blocks
- if (empty($THEME->custompix)) {
- $pixpath = '../pix';
- // [pj] This is not used anywhere, but I'm leaving it in for the future
- //$modpixpath = '../mod';
- } else {
- $pixpath = '../theme/'.$CFG->theme.'/pix';
- // [pj] This is not used anywhere, but I'm leaving it in for the future
- //$modpixpath = '../theme/'.$CFG->theme.'/pix/mod';
- }
-
$table->head = array ($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strmultiple, $strdelete, $strsettings);
$table->align = array ('LEFT', 'RIGHT', 'LEFT', 'CENTER', 'CENTER', 'CENTER', 'CENTER');
$table->wrap = array ('NOWRAP', '', '', '', '', '', '');
foreach ($blockbyname as $blockname => $blockid) {
- // [pj] This is not used anywhere, but I'm leaving it in for the future
- //$icon = "<img src=\"$modpixpath/$block->name/icon.gif\" hspace="10" height="16" width="16" border="0">";
$blockobject = $blockobjects[$blockid];
$delete = '<a href="blocks.php?delete='.$blockid.'&sesskey='.$USER->sesskey.'">'.$strdelete.'</a>';
if ($blocks[$blockid]->visible) {
$visible = '<a href="blocks.php?hide='.$blockid.'&sesskey='.$USER->sesskey.'" title="'.$strhide.'">'.
- '<img src="'.$pixpath.'/i/hide.gif" style="height: 16px; width: 16px;" alt=\"\" /></a>';
+ '<img src="'.$CFG->pixpath.'/i/hide.gif" style="height: 16px; width: 16px;" alt=\"\" /></a>';
} else {
$visible = '<a href="blocks.php?show='.$blockid.'&sesskey='.$USER->sesskey.'" title="'.$strshow.'">'.
- '<img src="'.$pixpath.'/i/show.gif" style="height: 16px; width: 16px;" alt=\"\" /></a>';
+ '<img src="'.$CFG->pixpath.'/i/show.gif" style="height: 16px; width: 16px;" alt=\"\" /></a>';
$class = ' class="dimmed_text"'; // Leading space required!
}
if ($blockobject->instance_allow_multiple()) {
// Main display starts here
- print_simple_box_start('center', '100%', $THEME->cellheading);
+ print_simple_box_start('center');
include('./calendar.html');
print_simple_box_end();
$sesskey = !empty($USER->id) ? $USER->sesskey : '';
- print_simple_box_start('center', '', "$THEME->cellheading");
+ print_simple_box_start('center');
include('config.html');
print_simple_box_end();
return true;
}
-?>
\ No newline at end of file
+?>
}
if (!empty($CFG->enablerssfeeds)) { //Defined in admin/variables page
- if (file_exists("$CFG->dirroot/rss/rsslib.php")) {
- include_once("$CFG->dirroot/rss/rsslib.php");
- mtrace("Running rssfeeds if required...");
+ include_once("$CFG->libdir/rsslib.php");
+ mtrace("Running rssfeeds if required...");
- if ( ! cron_rss_feeds()) {
- mtrace("Something went wrong while generating rssfeeds!!!");
- } else {
- mtrace("Rssfeeds finished");
- }
+ if ( ! cron_rss_feeds()) {
+ mtrace("Something went wrong while generating rssfeeds!!!");
+ } else {
+ mtrace("Rssfeeds finished");
}
}
?>
</div>
</td>
- <td style="vertical-align: middle;">
- <div id="dstdisplayboard" style="display: none; margin: 1em; padding: 5px; border: 1px black solid; text-align: center; background-color: <?php echo $THEME->cellcontent; ?>; -moz-border-radius: 4px;"> </div>
- <div style="text-align: center; margin: 1em;">
+ <td style="vertical-align: middle;text-align: center;">
<input type="submit" name="mode_add" value="<?php print_string('add'); ?>..." />
<input type="submit" name="mode_edit" value="<?php print_string('edit'); ?>" <?php if(empty($presets)) echo 'disabled="disabled"';?> />
<input type="submit" name="mode_delete" value="<?php print_string('delete'); ?>" <?php if(empty($presets)) echo 'disabled="disabled"';?> />
- </div>
</td>
</tr>
</tbody>
6 => get_string('saturday', 'calendar')
);
print_heading(get_string('editingdstpreset', 'admin'));
- print_simple_box_start('center', '70%', $THEME->cellheading);
+ print_simple_box_start('center', '70%');
include('./dst_edit.html');
print_simple_box_end();
}
}
print_heading($strcalendardstpresets);
- print_simple_box_start('center', '70%', $THEME->cellheading);
+ print_simple_box_start('center', '70%');
include('./dst.html');
print_simple_box_end();
}
print_heading($streditorsettings);
print_simple_box("<center>$streditorsettingshelp</center>","center","50%");
print("<br />\n");
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
include("editor.html");
print_simple_box_end();
print_footer();
echo "</b></p></div>";
/// Print current enrolment type description
- print_simple_box_start("center", "80%", "$THEME->cellheading");
+ print_simple_box_start("center", "80%");
print_heading($options[$enrol]);
- print_simple_box_start("center", "60%", "$THEME->cellcontent");
+ print_simple_box_start("center", "60%");
print_string("description", "enrol_$enrol");
print_simple_box_end();
-<?php print_simple_box_start("center", "", "$THEME->cellheading"); ?>
+<?php print_simple_box_start("center"); ?>
<form name="filters" id="filters" method="post" action="filters.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
<br />
-<?php print_simple_box_start("center", "", "$THEME->cellheading"); ?>
+<?php print_simple_box_start("center"); ?>
<form name="options" id="options" method="post" action="filters.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
$stradministration = get_string("administration");
print_header("$site->shortname: $stradministration","$site->fullname", "$stradministration");
- print_simple_box_start("center", "100%", "$THEME->cellcontent2", 20);
+ print_simple_box_start('center', '100%', '', 20);
print_heading($stradministration);
if (!empty($CFG->upgrade)) { // Print notice about extra upgrading that needs to be done
if ($editable) {
echo "<form name=\"$currentfile\" action=\"lang.php\" method=\"post\">";
}
- echo "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" border=\"0\">";
+ echo "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" border=\"0\" class=\"generalbox\">";
foreach ($enstring as $key => $envalue) {
$envalue = nl2br(htmlspecialchars($envalue));
$envalue = preg_replace('/(\$a\-\>[a-zA-Z0-9]*|\$a)/', '<b>$0</b>', $envalue); // Make variables bold.
$envalue = str_replace("%%","%",$envalue);
$envalue = str_replace("\\","",$envalue); // Delete all slashes
- echo "\n\n<tr>";
- echo "<td dir=\"ltr\" lang=\"en\" width=\"20%\" bgcolor=\"$THEME->cellheading\" nowrap=\"nowrap\" valign=\"top\">$key</td>\n";
- echo "<td dir=\"ltr\" lang=\"en\" width=\"40%\" bgcolor=\"$THEME->cellheading\" valign=\"top\">$envalue</td>\n";
+ echo "\n\n".'<tr>';
+ echo '<td dir="ltr" lang="en" width="20%" nowrap="nowrap" valign="top">'.$key.'</td>'."\n";
+ echo '<td dir="ltr" lang="en" width="40%" valign="top">'.$envalue.'</td>'."\n";
$value = $string[$key];
$value = str_replace("\r","",$value); // Bad character caused by Windows
$value = str_replace(">",">",$value);
$value = str_replace('"',""",$value);
- $cellcolour = $value ? $THEME->cellcontent: $THEME->highlight;
+ $cellcolour = $value ? '': 'class="highlight"';
if ($editable) {
- echo "<td width=\"40%\" bgcolor=\"$cellcolour\" valign=\"top\">\n";
+ echo '<td width="40%" '.$cellcolour.' valign="top">'."\n";
if (isset($string[$key])) {
$valuelen = strlen($value);
} else {
$cols=50;
if (strstr($value, "\r") or strstr($value, "\n") or $valuelen > $cols) {
$rows = ceil($valuelen / $cols);
- echo "<textarea name=\"string-$key\" cols=\"$cols\" rows=\"$rows\">$value</textarea>\n";
+ echo '<textarea name="string-'.$key.'" cols="'.$cols.'" rows="'.$rows.'">'.$value.'</textarea>'."\n";
} else {
if ($valuelen) {
$cols = $valuelen + 2;
}
- echo "<input type=\"text\" name=\"string-$key\" value=\"$value\" size=\"$cols\"></td>";
+ echo '<input type="text" name="string-'.$key.'" value="'.$value.'" size="'.$cols.'"></td>';
}
- echo "</td>\n";
+ echo '</td>';
} else {
- echo "<td width=\"40%\" bgcolor=\"$cellcolour\" valign=\"top\">$value</td>\n";
+ echo '<td width="40%" bgcolor="'.$cellcolour.'" valign="top">'.$value.'</td>';
}
}
if ($editable) {
- echo "<tr><td colspan=\"2\"> <td><br />";
+ echo '<tr><td colspan="2"> <td><br />';
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
- echo " <input type=\"hidden\" name=\"currentfile\" value=\"$currentfile\">";
- echo " <input type=\"hidden\" name=\"mode\" value=\"compare\">";
- echo " <input type=\"submit\" name=\"update\" value=\"".get_string("savechanges").": $currentfile\">";
- echo "</td></tr>";
+ echo ' <input type="hidden" name="currentfile" value="'.$currentfile.'">';
+ echo ' <input type="hidden" name="mode" value="compare">';
+ echo ' <input type="submit" name="update" value="'.get_string('savechanges').': '.$currentfile.'">';
+ echo '</td></tr>';
}
- echo "</table>";
- echo "</form>";
+ echo '</table>';
+ echo '</form>';
}
print_simple_box("<center>".get_string("configwarning")."</center>", "center", "50%");
echo "<br />";
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center", "");
include("$CFG->dirroot/mod/$module/config.html");
print_simple_box_end();
/// Print the table of all modules
- if (empty($THEME->custompix)) {
- $pixpath = "../pix";
- $modpixpath = "../mod";
- } else {
- $pixpath = "../theme/$CFG->theme/pix";
- $modpixpath = "../theme/$CFG->theme/pix/mod";
- }
-
$table->head = array ($stractivitymodule, $stractivities, $strversion, "$strhide/$strshow", $strdelete, $strsettings);
$table->align = array ("LEFT", "RIGHT", "LEFT", "CENTER", "CENTER", "CENTER");
$table->wrap = array ("NOWRAP", "", "", "", "","");
foreach ($modulebyname as $modulename => $module) {
- $icon = "<img src=\"$modpixpath/$module->name/icon.gif\" hspace=\"10\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" />";
+ $icon = "<img src=\"$CFG->modpixpath/$module->name/icon.gif\" hspace=\"10\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" />";
$delete = "<a href=\"modules.php?delete=$module->name&sesskey=$USER->sesskey\">$strdelete</a>";
if ($module->visible) {
$visible = "<a href=\"modules.php?hide=$module->name&sesskey=$USER->sesskey\" title=\"$strhide\">".
- "<img src=\"$pixpath/i/hide.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" /></a>";
+ "<img src=\"$CFG->pixpath/i/hide.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" /></a>";
$class = "";
} else {
$visible = "<a href=\"modules.php?show=$module->name&sesskey=$USER->sesskey\" title=\"$strshow\">".
- "<img src=\"$pixpath/i/show.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" /></a>";
+ "<img src=\"$CFG->pixpath/i/show.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" /></a>";
$class = "class=\"dimmed_text\"";
}
if ($module->name == "forum") {
/// Print the form
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center", "");
echo "<form name=\"form\" action=\"http://moodle.org/register/\" method=\"post\">\n";
echo "<table cellpadding=\"9\" border=\"0\">\n";
$usehtmleditor = can_use_html_editor();
$defaultformat = FORMAT_HTML;
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center", "");
include("site.html");
print_simple_box_end();