Use $this->error for only error report
[moodle-linuxchix.git] / admin / mnet / mnet_services.html
blob6f714b7ada9eb022680c361323ab7010d3a2a770
1 <?php
2 admin_externalpage_print_header($adminroot);
4 $logurl = $CFG->wwwroot.
5 '/course/report/log/index.php?chooselog=1&amp;showusers=1&amp;showcourses=1&amp;host_course='.$mnet_peer->id.
6 '%2F1&amp;user='.'0'.
7 '&amp;date=0'.
8 '&amp;modid=&amp;modaction=0&amp;logformat=showashtml';
10 $tabs[] = new tabobject('mnetdetails', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $strmnetedithost, $strmnetedithost, false);
11 $tabs[] = new tabobject('mnetservices', 'mnet_services.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetservices, $strmnetservices, false);
12 if ($mnet_peer->id != $CFG->mnet_all_hosts_id) $tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
13 print_tabs(array($tabs), 'mnetservices');
14 print_simple_box_start("center", "");
18 <form method="post" action="mnet_services.php">
19 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
20 <input type="hidden" name="step" value="<?php echo $mnet_peer->nextstep; ?>" />
21 <input type="hidden" name="hostid" value="<?php echo ($mnet_peer->id)? $mnet_peer->id : '0' ; ?>" />
22 <table cellpadding="9" cellspacing="0" >
23 <?php
24 foreach($myservices as $name => $versions):
25 $version = current($versions);
27 <tr>
28 <td align="left" valign="top" colspan="2">
29 <h3><?php echo get_string($name.'_name', $version['parent_type'].'_'.$version['parent'] , $mnet_peer->name); ?></h3>
30 <p><?php echo get_string($name.'_description', $version['parent_type'].'_'.$version['parent'], $mnet_peer->name); ?></p>
31 <?php
32 $breakstring = '';
33 foreach($versions as $version):
34 if (count($versions) > 1) {
35 $versionstring = '('.get_string('version','mnet') .' '.$version['apiversion'].')';
36 } else {
37 $versionstring = '';
40 echo $breakstring;
42 <input type="hidden" name="exists[<?php echo $version['serviceid']; ?>]" value="1" />
43 <input type="checkbox" name="publish[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_publish']))? 'checked="checked" ': '' ; ?>/><?php print_string('publish','mnet'); ?><?php echo $versionstring; if (!empty($version['hostsubscribes'])) echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name).'">&radic;</a> '; if (!empty($version['allhosts_publish'])) print_string("enabled_for_all",'mnet',!empty($version['I_publish'])); ?><br />
44 <input type="checkbox" name="subscribe[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_subscribe']))? 'checked="checked" ': '' ; ?>/><?php print_string('subscribe','mnet'); ?><?php echo $versionstring; if (!empty($version['hostpublishes'])) echo '<a href="#" title="'.get_string('ispublished','mnet', $mnet_peer->name).'">&radic;</a> '; if (!empty($version['allhosts_subscribe'])) print_string("enabled_for_all",'mnet',!empty($version['I_subscribe'])); ?><br />
45 <?php
46 $breakstring = '. . . . . . . . . . . . . . . . . . . . . . . . <br>';
47 endforeach;
49 </td>
50 </tr>
51 <?php
52 endforeach;
54 <tr>
55 <td align="left" valign="top" colspan="2">
56 <div id="pubTreeLoc"></div>
57 </td>
58 </tr>
59 <tr>
60 <td align="left" valign="top" colspan="2">
61 <div id="subTreeLoc"></div>
62 </td>
63 </tr>
64 <tr>
65 <td colspan="2"><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
66 </tr>
67 <tr>
68 <td align="left" valign="top" colspan="2">
69 <div id="formElements"><input type="hidden" name="outer" value="4" /></div>
70 </td>
71 </tr>
72 </table>
73 </form>
74 <?php
75 print_simple_box_end();
76 admin_externalpage_print_footer($adminroot);