Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / admin / mnet / peers.html
blob1f48fb7abd10f9c3e9529149ce13f50e7e4d1143
1 <?php
2 admin_externalpage_print_header();
4 if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
5 print_box(get_string('mnetdisabled','mnet'));
7 ?>
8 <div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
9 <form method="post" action="peers.php">
10 <div>
11 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
12 <input type="hidden" name="updateregisterall" value="1" />
13 <table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
14 <tr>
15 <th class="header c0" colspan="2"><?php print_string('registerallhosts', 'mnet'); ?></th>
16 </tr>
17 <tr>
18 <td class="cell c1" colspan="2"><?php print_string('registerallhostsexplain', 'mnet'); ?></td>
19 </tr>
20 <tr>
21 <td class="cell c1"><input type="checkbox" name="registerallhosts" <?php if (!empty($CFG->mnet_register_allhosts)) echo 'checked="checked" '; ?>/></td>
22 <td class="cell c1"> <?php print_string('registerallhosts', 'mnet'); ?> </td>
23 </tr>
24 <tr>
25 <td align="right" colspan="2"><input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" /></td>
26 </tr>
27 </table>
28 </div>
29 </form>
30 <table cellspacing="0" cellpadding="5" class="generaltable generalbox standard" >
31 <tr>
32 <th class="header c0"><?php print_string('site'); ?></th>
33 <th class="header c1"><?php print_string('system','mnet'); ?></th>
34 <th class="header c2"><?php print_string('last_connect_time', 'mnet'); ?></th>
35 <th class="header c3"></th>
36 </tr>
37 <?php
39 foreach($hosts as $host) {
41 if ($host->last_connect_time == 0) {
42 $last_connect = get_string('never');
43 } else {
44 $last_connect = date('H:i:s d/m/Y', $host->last_connect_time);
48 <tr>
49 <td class="cell c0"><a href="peers.php?step=update&amp;hostid=<?php echo $host->id; ?>"><?php echo $host->name; ?></a></td>
50 <td class="cell c1"><a href="peers.php?step=update&amp;hostid=<?php echo $host->id; ?>"><?php echo $host->wwwroot; ?></a></td>
51 <td class="cell c2"><?php if ($host->id != $CFG->mnet_all_hosts_id) echo $last_connect; ?></td>
52 <td class="cell c3">
53 <?php if ($host->id != $CFG->mnet_all_hosts_id){ ?>
54 <form method="post" action="delete.php">
55 <div>
56 <input type="hidden" name="hostid" value="<?php echo $host->id; ?>" />
57 <input type="hidden" name="step" value="verify" />
58 <input type="submit" name="submit" value="<?php print_string('delete'); ?>"/>
59 </div>
60 </form>
61 <?php } ?>
62 </td>
63 </tr>
64 <?php
67 </table>
68 <form method="post" action="peers.php">
69 <table cellspacing="0" cellpadding="5" class="generaltable generalbox standard" >
71 <tr>
72 <th class="header c4" colspan="4">
73 <?php print_string('addnewhost', 'mnet'); ?>
74 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
75 <input type="hidden" name="step" value="input" />
76 </th>
77 </tr>
78 <tr>
79 <td class="cell c0"></td>
80 <td class="cell c1"><input type="text" name="wwwroot" value="" /></td>
81 <td class="cell c2">
82 <select name="applicationid">
83 <?php
84 foreach($applications as $application) {
85 echo ' <option value="'.$application->id.'">'.$application->display_name."</option>\n";
88 </select>
89 </td>
90 <td class="cell c3"></td>
91 </tr>
92 <tr>
93 <td class="cell c4" align="right" colspan="4"><input type="submit" value="<?php print_string('addhost','mnet'); ?>" /></td>
94 </tr>
96 </table>
97 </form>
98 </div>
99 <?php
100 admin_externalpage_print_footer();