NOBUG xmldb editor - make php code generated to follow the 2-slash coding style
[moodle.git] / enrol / mnet / config.html
CommitLineData
92e46c03 1<?php
2
7580ce94 3if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
4ca9f280 4 echo $OUTPUT->box(get_string('mnetdisabled','mnet'));
92e46c03 5}
6
9b0633ac 7$servercount = 0;
8if (is_array($mnethosts)) {
9 $servercount = count(array_keys($mnethosts));
10}
73fb41a0 11
92e46c03 12?>
537ea847 13<table cellspacing="0" cellpadding="5" border="0" class="boxaligncenter">
bf1a3d20 14
bf1a3d20 15<tr valign="top">
22f9befe 16 <th align="center" colspan="3"><?php print_string('mnetlocalforexternal','enrol_mnet'); ?>:</th>
bf1a3d20 17</tr>
18
19<tr valign="top">
20 <td align="right">allow_allcourses:</td>
21 <td>
6f115995 22 <?php echo html_writer::select_yes_no('enrol_mnet_allow_allcourses', $frm->enrol_mnet_allow_allcourses); ?>
bf1a3d20 23 </td>
24 <td>
25 <?php print_string("allow_allcourses", "enrol_mnet") ?>
26 </td>
27</tr>
28
29<tr>
30 <td align="right">allowed_courses:</td>
31 <td>
32 <a href="<?php echo "$CFG->wwwroot/enrol/mnet/allowed_courses.php" ?>"><?php print_string('allowedcourseslinktext', 'enrol_mnet') ?></a>
33 </td>
34</tr>
35
36
37</table>