Skip to content
Permalink
Browse files

Fixed up some layout issues in the configuration files

  • Loading branch information...
moodler
moodler committed Feb 8, 2005
1 parent 33aa00b commit b61aed4297da822e52b9eda93498daff4d99ed8a
@@ -1,9 +1,9 @@
<form method="post" action="module.php" name="form">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">

<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><p>assignment_maxbytes:</td>
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right">assignment_maxbytes:</td>
<td><?php
$choices = get_max_upload_sizes($CFG->maxbytes);
choose_from_menu ($choices, "assignment_maxbytes", $CFG->assignment_maxbytes, "");
@@ -15,7 +15,7 @@
</tr>

<tr>
<td colspan=3 align=center>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
@@ -1,9 +1,35 @@
<?php
if (!isset($CFG->attendance_dynsection)) {
$CFG->attendance_dynsection = '';
}
if (!isset($CFG->attendance_default_hours)) {
$CFG->attendance_default_hours = '';
}
if (!isset($CFG->attendance_tardies_per_absence)) {
$CFG->attendance_tardies_per_absence = '';
}
if (!isset($CFG->attendance_hours_in_full_report)) {
$CFG->attendance_hours_in_full_report = '';
}
if (!isset($CFG->attendance_default_student_status)) {
$CFG->attendance_default_student_status = '';
}
if (!isset($CFG->attendance_autoattend)) {
$CFG->attendance_autoattend = '';
}
if (!isset($CFG->attendance_grade)) {
$CFG->attendance_grade = '';
}
if (!isset($CFG->attendance_maxgrade)) {
$CFG->attendance_maxgrade = '';
}
?>
<form method="post" action="module.php" name="form">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">

<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><p>attendance_dynsection:</td>
<td align=right>attendance_dynsection:</td>
<td>
<?php $optds[0] = "No";$optds[1] = "Yes";
choose_from_menu($optds, "attendance_dynsection", $CFG->attendance_dynsection, ""); ?>
@@ -14,7 +40,7 @@
</tr>

<tr valign=top>
<td align=right><p>attendance_default_hours:</td>
<td align=right>attendance_default_hours:</td>
<td>
<?php for ($i=1;$i<=24;$i++){ $opt[$i] = $i; }
choose_from_menu($opt, "attendance_default_hours", $CFG->attendance_default_hours, ""); ?>
@@ -25,7 +51,7 @@
</tr>

<tr valign=top>
<td align=right><p>attendance_tardies_per_absence:</td>
<td align=right>attendance_tardies_per_absence:</td>
<td>
<?php for ($i=1;$i<=24;$i++){ $opt2[$i] = $i; }
choose_from_menu($opt2, "attendance_tardies_per_absence", $CFG->attendance_tardies_per_absence, "none","","0"); ?>
@@ -36,7 +62,7 @@
</tr>

<tr valign=top>
<td align=right><p>attendance_hours_in_full_report:</td>
<td align=right>attendance_hours_in_full_report:</td>
<td>
<?php for ($i=10;$i<=24;$i++){ $opt3[$i] = $i; }
choose_from_menu($opt3, "attendance_hours_in_full_report", $CFG->attendance_tardies_per_absence, ""); ?>
@@ -47,7 +73,7 @@
</tr>

<tr valign=top>
<td align=right><p>attendance_default_student_status:</td>
<td align=right>attendance_default_student_status:</td>
<td>
<?php
$A = get_string("absentlong","attendance");
@@ -75,7 +101,7 @@
</tr>

<tr valign=top>
<td align=right><p>attendance_autoattend:</td>
<td align=right>attendance_autoattend:</td>
<td>
<?php $optaa[0] = "No";$optaa[1] = "Yes";
choose_from_menu($optaa, "attendance_autoattend", $CFG->attendance_autoattend, ""); ?>
@@ -86,7 +112,7 @@
</tr>

<tr valign=top>
<td align=right><p>attendance_grade:</td>
<td align=right>attendance_grade:</td>
<td>
<?php $optgr[0] = "No";$optgr[1] = "Yes";
choose_from_menu($optgr, "attendance_grade", $CFG->attendance_grade, ""); ?>
@@ -97,7 +123,7 @@
</tr>

<tr valign=top>
<td align=right><p>attendance_maxgrade:</td>
<td align=right>attendance_maxgrade:</td>
<td>
<?php for ($i=0;$i<=100;$i++){ $opt4[$i] = $i; }
choose_from_menu($opt4, "attendance_maxgrade", $CFG->attendance_maxgrade, ""); ?>
@@ -12,7 +12,7 @@


<tr valign="top">
<td align="right"><p>chat_method:</td>
<td align="right">chat_method:</td>
<td>
<?php
unset($options);
@@ -26,7 +26,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>chat_refresh_userlist:</td>
<td align="right">chat_refresh_userlist:</td>
<td>
<input name="chat_refresh_userlist" type="text" size="5" value="<?php p($CFG->chat_refresh_userlist) ?>" />
</td>
@@ -35,7 +35,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>chat_old_ping:</td>
<td align="right">chat_old_ping:</td>
<td>
<input name="chat_old_ping" type="text" size="5" value="<?php p($CFG->chat_old_ping) ?>" />
</td>
@@ -52,7 +52,7 @@
</tr>

<tr valign="top">
<td align="right"><p>chat_refresh_room:</td>
<td align="right">chat_refresh_room:</td>
<td>
<input name="chat_refresh_room" type="text" size="5" value="<?php p($CFG->chat_refresh_room) ?>" />
</td>
@@ -69,7 +69,7 @@
</tr>

<tr valign="top">
<td align="right"><p>chat_serverhost:</td>
<td align="right">chat_serverhost:</td>
<td>
<input name="chat_serverhost" type="text" size="20" value="<?php p($CFG->chat_serverhost) ?>" />
</td>
@@ -78,7 +78,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>chat_serverip:</td>
<td align="right">chat_serverip:</td>
<td>
<input name="chat_serverip" type="text" size="16" value="<?php p($CFG->chat_serverip) ?>" />
</td>
@@ -87,7 +87,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>chat_serverport:</td>
<td align="right">chat_serverport:</td>
<td>
<input name="chat_serverport" type="text" size="5" value="<?php p($CFG->chat_serverport) ?>" />
</td>
@@ -96,7 +96,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>chat_servermax:</td>
<td align="right">chat_servermax:</td>
<td>
<input name="chat_servermax" type="text" size="5" value="<?php p($CFG->chat_servermax) ?>" />
</td>
@@ -3,7 +3,7 @@

<table cellpadding="9" cellspacing="0" >
<tr valign="top">
<td align="right"><p>forum_displaymode:</td>
<td align="right">forum_displaymode:</td>
<td>
<?php choose_from_menu ($FORUM_LAYOUT_MODES, "forum_displaymode", $CFG->forum_displaymode, "", "", ""); ?>
</td>
@@ -12,7 +12,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_replytouser:</td>
<td align="right">forum_replytouser:</td>
<td>
<?php
unset($options);
@@ -26,7 +26,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_shortpost:</td>
<td align="right">forum_shortpost:</td>
<td>
<input name="forum_shortpost" type="text" size="5" value="<?php p($CFG->forum_shortpost) ?>" />
</td>
@@ -35,7 +35,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_longpost:</td>
<td align="right">forum_longpost:</td>
<td>
<input name="forum_longpost" type="text" size="5" value="<?php p($CFG->forum_longpost) ?>" />
</td>
@@ -44,7 +44,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_manydiscussions:</td>
<td align="right">forum_manydiscussions:</td>
<td>
<input name="forum_manydiscussions" type="text" size="5" value="<?php p($CFG->forum_manydiscussions) ?>" />
</td>
@@ -53,7 +53,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_maxbytes:</td>
<td align="right">forum_maxbytes:</td>
<td><?php
$choices = get_max_upload_sizes($CFG->maxbytes);
choose_from_menu ($choices, "forum_maxbytes", $CFG->forum_maxbytes, "");
@@ -65,7 +65,7 @@
</tr>

<tr valign="top">
<td align="right"><p>forum_trackreadposts:</td>
<td align="right">forum_trackreadposts:</td>
<td>
<?php
unset($options);
@@ -79,7 +79,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_oldpostdays:</td>
<td align="right">forum_oldpostdays:</td>
<td>
<input name="forum_oldpostdays" type="text" size="5" value="<?php p($CFG->forum_oldpostdays) ?>" />
</td>
@@ -88,7 +88,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_usermarksread:</td>
<td align="right">forum_usermarksread:</td>
<td>
<?php
unset($options);
@@ -102,7 +102,7 @@
</td>
</tr>
<tr valign="top">
<td align="right"><p>forum_cleanreadtime:</td>
<td align="right">forum_cleanreadtime:</td>
<td>
<?php
unset($options);
@@ -139,7 +139,7 @@
</tr>

<tr valign="top">
<td align="right"><p>forum_enablerssfeeds:</td>
<td align="right">forum_enablerssfeeds:</td>
<td>
<?php
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {

0 comments on commit b61aed4

Please sign in to comment.
You can’t perform that action at this time.