$strallowguests = get_string("allowguests");
$strrequireskey = get_string("requireskey");
- if (empty($THEME->custompix)) {
- $pixpath = "$CFG->wwwroot/pix";
- } else {
- $pixpath = "$CFG->wwwroot/theme/$CFG->theme/pix";
- }
echo '<form name="movecourses" action="category.php" method="post">';
echo "<input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\">";
echo "<td>";
echo '<a title="'.$strsettings.'" href="'.$CFG->wwwroot.'/course/edit.php?id='.
$acourse->id.'">'.
- '<img src="'.$pixpath.'/t/edit.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/edit.gif" height="11" width="11" border="0" alt="" /></a> ';
echo '<a title="'.$strassignteachers.'" href="'.$CFG->wwwroot.'/course/teacher.php?id='.
$acourse->id.'">'.
- '<img src="'.$pixpath.'/t/user.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/user.gif" height="11" width="11" border="0" alt="" /></a> ';
echo '<a title="'.$strdelete.'" href="delete.php?id='.$acourse->id.'">'.
- '<img src="'.$pixpath.'/t/delete.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/delete.gif" height="11" width="11" border="0" alt="" /></a> ';
if (!empty($acourse->visible)) {
echo '<a title="'.$strhide.'" href="category.php?id='.$category->id.'&page='.$page.
'&hide='.$acourse->id.'&sesskey='.$USER->sesskey.'">'.
- '<img src="'.$pixpath.'/t/hide.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/hide.gif" height="11" width="11" border="0" alt="" /></a> ';
} else {
echo '<a title="'.$strshow.'" href="category.php?id='.$category->id.'&page='.$page.
'&show='.$acourse->id.'&sesskey='.$USER->sesskey.'">'.
- '<img src="'.$pixpath.'/t/show.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/show.gif" height="11" width="11" border="0" alt="" /></a> ';
}
echo '<a title="'.$strbackup.'" href="../backup/backup.php?id='.$acourse->id.'">'.
- '<img src="'.$pixpath.'/t/backup.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/backup.gif" height="11" width="11" border="0" alt="" /></a> ';
echo '<a title="'.$strrestore.'" href="../files/index.php?id='.$acourse->id.
'&wdir=/backupdata">'.
- '<img src="'.$pixpath.'/t/restore.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/restore.gif" height="11" width="11" border="0" alt="" /></a> ';
if ($up) {
echo '<a title="'.$strmoveup.'" href="category.php?id='.$category->id.'&page='.$page.
'&moveup='.$acourse->id.'&sesskey='.$USER->sesskey.'">'.
- '<img src="'.$pixpath.'/t/up.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/up.gif" height="11" width="11" border="0" alt="" /></a> ';
} else {
echo '<img src="'.$CFG->wwwroot.'/pix/spacer.gif" height="11" width="11" border="0" alt="" /></a> ';
}
if ($down) {
echo '<a title="'.$strmovedown.'" href="category.php?id='.$category->id.'&page='.$page.
'&movedown='.$acourse->id.'&sesskey='.$USER->sesskey.'">'.
- '<img src="'.$pixpath.'/t/down.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/down.gif" height="11" width="11" border="0" alt="" /></a> ';
} else {
echo '<img src="'.$CFG->wwwroot.'/pix/spacer.gif" height="11" width="11" border="0" alt="" /></a> ';
}
} else if (isteacheredit($acourse->id)) {
echo "<td>";
echo '<a title="'.$strsettings.'" href="'.$CFG->wwwroot.'/course/edit.php?id='.$acourse->id.'">'.
- '<img src="'.$pixpath.'/t/edit.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/edit.gif" height="11" width="11" border="0" alt="" /></a> ';
echo '<a title="'.$strassignteachers.'" href="'.$CFG->wwwroot.'/course/teacher.php?id='.$acourse->id.'">'.
- '<img src="'.$pixpath.'/t/user.gif" height="11" width="11" border="0" alt="" /></a> ';
+ '<img src="'.$CFG->pixpath.'/t/user.gif" height="11" width="11" border="0" alt="" /></a> ';
}
echo "</td>";
} else {
if (!empty($acourse->guest)) {
echo '<a href="view.php?id='.$acourse->id.'"><img hspace="2" title="'.
$strallowguests.'" alt="" height="16" width="16" border="0" src="'.
- $pixpath.'/i/user.gif" /></a>';
+ $CFG->pixpath.'/i/user.gif" /></a>';
}
if (!empty($acourse->password)) {
echo '<a href="view.php?id='.$acourse->id.'"><img hspace="2" title="'.
$strrequireskey.'" alt="" height="16" width="16" border="0" src="'.
- $pixpath.'/i/key.gif" /></a>';
+ $CFG->pixpath.'/i/key.gif" /></a>';
}
if (!empty($acourse->summary)) {
link_to_popup_window ("/course/info.php?id=$acourse->id", "courseinfo",
- '<img hspace="2" alt="info" height="16" width="16" border="0" src="'.$pixpath.'/i/info.gif" />',
+ '<img hspace="2" alt="info" height="16" width="16" border="0" src="'.$CFG->pixpath.'/i/info.gif" />',
400, 500, $strsummary);
}
echo "</td>";
$form->sesskey = !empty($USER->id) ? $USER->sesskey : '';
print_heading($streditcoursesettings);
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
include("edit.html");
print_simple_box_end();
-> $stredit");
print_heading(get_string("summaryof", "", "$sectionname $form->section"));
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
include("editsection.html");
print_simple_box_end();
<tr valign="top">
- <td class="generalbox" bgcolor="<?php p($THEME->cellheading)?>"><center><?php if (isset ($errormsg)) {formerr($errormsg);} ?></center>
+ <td class="generalbox"><center><?php if (isset ($errormsg)) {formerr($errormsg);} ?></center>
<form name="form" method="post" action="enrol.php">
<tr>
<th colspan="2"><?php echo $t->name ?></th>
</tr>
- <tr><td class="generalboxcontent" bgcolor="<?php echo $THEME->cellcontent ?>">
+ <tr><td class="generalboxcontent">
<table width="100%">
<tr>
<td valign="top" width="120">
<p><?php echo $t->description ?></p>
<?php
if (!empty($t->linkeditprofile)) {
- echo '<p style="font-size: small" align="right"><a href="'.$t->linkeditprofile->url.'">'.$t->linkeditprofile->text.'</a>...</p>';
+ echo '<p align="right"><a href="'.$t->linkeditprofile->url.'">'.$t->linkeditprofile->text.'</a>...</p>';
}
?>
</td>
</tr>
- <tr bgcolor="<?php echo $THEME->cellcontent ?>">
+ <tr>
<td colspan="2" align="left">
- <p style="font-size: x-small"><?php
+ <?php
if ($t->users) {
$countusers = count($t->users);
foreach ($t->users as $user) {
}
}
?>
- </p>
</td>
</tr>
- <tr bgcolor="<?php echo $THEME->cellcontent ?>">
+ <tr>
<td colspan="2" align="right">
<?php
if (!empty($t->linkfullprofile)) {
- echo '<p style="font-size: small" align="right"><a href="'.$t->linkfullprofile->url.'">'.$t->linkfullprofile->text.'</a>...</p>';
+ echo '<p align="right"><a href="'.$t->linkfullprofile->url.'">'.$t->linkfullprofile->text.'</a>...</p>';
}
?>
</td>
$searchtext = (isset($frm->searchtext)) ? $frm->searchtext : "";
$previoussearch = ($previoussearch) ? '1' : '0';
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
include('importstudents.html');
-?>
\ No newline at end of file
+?>
function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $up=false, $down=false) {
/// Recursive function to print all the categories ready for editing
- global $THEME, $CFG, $USER;
+ global $CFG, $USER;
static $str = '';
- static $pixpath = '';
if (empty($str)) {
$str->delete = get_string("delete");
$str->show = get_string("show");
}
- if (empty($pixpath)) {
- if (empty($THEME->custompix)) {
- $pixpath = "$CFG->wwwroot/pix";
- } else {
- $pixpath = "$CFG->wwwroot/theme/$CFG->theme/pix";
- }
- }
-
if ($category) {
- echo "<tr><td align=\"left\" nowrap=\"nowrap\" bgcolor=\"$THEME->cellcontent\">";
+ echo "<tr><td align=\"left\" nowrap=\"nowrap\">";
echo "<p>";
for ($i=0; $i<$depth;$i++) {
echo " ";
echo "<td nowrap=\"nowrap\">"; /// Print little icons
echo "<a title=\"$str->delete\" href=\"index.php?delete=$category->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
if (!empty($category->visible)) {
echo "<a title=\"$str->hide\" href=\"index.php?hide=$category->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
} else {
echo "<a title=\"$str->show\" href=\"index.php?show=$category->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"\" /></a> ";
}
if ($up) {
echo "<a title=\"$str->moveup\" href=\"index.php?moveup=$category->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/up.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/up.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
}
if ($down) {
echo "<a title=\"$str->movedown\" href=\"index.php?movedown=$category->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/down.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/down.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"\" /></a> ";
}
echo "</td>";
require_login();
}
- if (empty($THEME->custompix)) {
- $pixpath = "$CFG->wwwroot/pix";
- } else {
- $pixpath = "$CFG->wwwroot/theme/$CFG->theme/pix";
- }
-
print_header(get_string("summaryof", "", $course->fullname));
echo "<h3 align=\"center\">$course->fullname<br />($course->shortname)</h3>";
echo "<center>";
if ($course->guest) {
$strallowguests = get_string("allowguests");
- echo "<p><font size=\"1\"><img align=\"middle\" alt=\"\" height=\"16\" width=\"16\" border=\"0\" src=\"$pixpath/i/guest.gif\" /></a> $strallowguests</font></p>";
+ echo "<p><font size=\"1\"><img align=\"middle\" alt=\"\" height=\"16\" width=\"16\" border=\"0\" src=\"$CFG->pixpath/i/guest.gif\" /></a> $strallowguests</font></p>";
}
if ($course->password) {
$strrequireskey = get_string("requireskey");
- echo "<p><font size=\"1\"><img align=\"middle\" alt=\"\" height=\"16\" width=\"16\" border=\"0\" src=\"$pixpath/i/key.gif\" /></a> $strrequireskey</font></p>";
+ echo "<p><font size=\"1\"><img align=\"middle\" alt=\"\" height=\"16\" width=\"16\" border=\"0\" src=\"$CFG->pixpath/i/key.gif\" /></a> $strrequireskey</font></p>";
}
// This function trawls through the logs looking for
// anything new since the user's last login
- global $CFG, $USER, $THEME, $SESSION;
+ global $CFG, $USER, $SESSION;
$isteacher = isteacher($course->id);
function print_heading_block($heading, $width="100%", $class="headingblock") {
- global $THEME;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">";
- echo "<tr><td bgcolor=\"$THEME->cellheading\" class=\"$class\">";
+ echo "<tr><td class=\"$class\">";
echo stripslashes($heading);
echo "</td></tr></table>";
}
function print_courses($category, $width="100%") {
/// Category is 0 (for all courses) or an object
- global $CFG, $THEME;
+ global $CFG;
if (empty($category)) {
$categories = get_categories(0); // Parent = 0 ie top-level categories only
function print_course($course, $width="100%") {
- global $CFG, $THEME;
+ global $CFG;
static $enrol;
$enrol = new enrolment_plugin;
}
- print_simple_box_start("center", "$width", $THEME->cellcontent, 5, "coursebox");
+ print_simple_box_start("center", "$width", '', 5, "coursebox");
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
}
function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=-1) {
- global $CFG, $THEME, $USER;
+ global $CFG, $USER;
static $str;
$path = ".";
}
- if (empty($THEME->custompix)) {
- $pixpath = "$path/../pix";
- } else {
- $pixpath = "$path/../theme/$CFG->theme/pix";
- }
-
if ($mod->visible) {
$hideshow = "<a title=\"$str->hide\" href=\"$path/mod.php?hide=$mod->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/hide.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"$str->hide\" /></a> ";
+ " src=\"$CFG->pixpath/t/hide.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"$str->hide\" /></a> ";
} else {
$hideshow = "<a title=\"$str->show\" href=\"$path/mod.php?show=$mod->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/show.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
+ " src=\"$CFG->pixpath/t/show.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
"border=\"0\" alt=\"$str->show\" /></a> ";
}
if ($mod->groupmode !== false) {
if ($mod->groupmode == SEPARATEGROUPS) {
$grouptitle = $str->groupsseparate;
- $groupimage = "$pixpath/t/groups.gif";
+ $groupimage = "$CFG->pixpath/t/groups.gif";
$grouplink = "$path/mod.php?id=$mod->id&groupmode=0&sesskey=$USER->sesskey";
} else if ($mod->groupmode == VISIBLEGROUPS) {
$grouptitle = $str->groupsvisible;
- $groupimage = "$pixpath/t/groupv.gif";
+ $groupimage = "$CFG->pixpath/t/groupv.gif";
$grouplink = "$path/mod.php?id=$mod->id&groupmode=1&sesskey=$USER->sesskey";
} else {
$grouptitle = $str->groupsnone;
- $groupimage = "$pixpath/t/groupn.gif";
+ $groupimage = "$CFG->pixpath/t/groupn.gif";
$grouplink = "$path/mod.php?id=$mod->id&groupmode=2&sesskey=$USER->sesskey";
}
if ($mod->groupmodelink) {
if ($moveselect) {
$move = "<a title=\"$str->move\" href=\"$path/mod.php?copy=$mod->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/move.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
+ " src=\"$CFG->pixpath/t/move.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
" border=\"0\" alt=\"$str->move\" /></a>";
} else {
$move = "<a title=\"$str->moveup\" href=\"$path/mod.php?id=$mod->id&move=-1&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/up.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
+ " src=\"$CFG->pixpath/t/up.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
" border=\"0\" alt=\"$str->moveup\" /></a>".
"<a title=\"$str->movedown\" href=\"$path/mod.php?id=$mod->id&move=1&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/down.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
+ " src=\"$CFG->pixpath/t/down.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
" border=\"0\" alt=\"$str->movedown\" /></a>";
}
$leftright = "";
if ($indent > 0) {
$leftright .= "<a title=\"$str->moveleft\" href=\"$path/mod.php?id=$mod->id&indent=-1&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/left.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
+ " src=\"$CFG->pixpath/t/left.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
" border=\"0\" alt=\"$str->moveleft\" /></a>";
}
if ($indent >= 0) {
$leftright .= "<a title=\"$str->moveright\" href=\"$path/mod.php?id=$mod->id&indent=1&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/right.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
+ " src=\"$CFG->pixpath/t/right.gif\" hspace=\"2\" height=\"11\" width=\"11\" ".
" border=\"0\" alt=\"$str->moveright\" /></a>";
}
return "$leftright$move".
"<a title=\"$str->update\" href=\"$path/mod.php?update=$mod->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/edit.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" ".
+ " src=\"$CFG->pixpath/t/edit.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" ".
" alt=\"$str->update\" /></a>".
// Following line is commented out until this feature is more definite -- martin
// "<a title=\"$str->duplicate\" href=\"$path/mod.php?duplicate=$mod->id&sesskey=$USER->sesskey\"> 2 </a>".
"<a title=\"$str->delete\" href=\"$path/mod.php?delete=$mod->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/delete.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" ".
+ " src=\"$CFG->pixpath/t/delete.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" ".
" alt=\"$str->delete\" /></a>$hideshow$groupmode";
}
$icon = "<img align=\"middle\" height=\"16\" width=\"16\" src=\"$CFG->modpixpath/$module->name/icon.gif\" alt=\"\" /> ";
print_heading_with_help($pageheading, "mods", $module->name, $icon);
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
include_once($modform);
print_simple_box_end();
if ($scales) {
//Calculate the base path
$path = "$CFG->wwwroot/course";
- //Calculate pixpath
- if (empty($THEME->custompix)) {
- $pixpath = "$path/../pix";
- } else {
- $pixpath = "$path/../theme/$CFG->theme/pix";
- }
$data = array();
$incustom = true;
$buttons = "";
if (empty($scales_uses) && ($incustom || isadmin())) {
$buttons .= "<a title=\"$stredit\" href=\"$path/scales.php?id=$course->id&scaleid=$scale->id&action=edit\"><img".
- " src=\"$pixpath/t/edit.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/edit.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
if ($incustom && isadmin()) {
$buttons .= "<a title=\"$strdown\" href=\"$path/scales.php?id=$course->id&scaleid=$scale->id&action=down&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/down.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/down.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
}
if (!$incustom && isadmin()) {
$buttons .= "<a title=\"$strup\" href=\"$path/scales.php?id=$course->id&scaleid=$scale->id&action=up&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/up.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/up.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
}
$buttons .= "<a title=\"$strdelete\" href=\"$path/scales.php?id=$course->id&scaleid=$scale->id&action=delete&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/delete.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ " src=\"$CFG->pixpath/t/delete.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
}
$line[] = $buttons;
$searchtext = (isset($frm->searchtext)) ? $frm->searchtext : "";
$previoussearch = ($previoussearch) ? '1' : '0';
- print_simple_box_start("center", "", "$THEME->cellheading");
+ print_simple_box_start("center");
$sesskey = !empty($USER->id) ? $USER->sesskey : '';