Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / admin / mnet / mnet_services.html
blobae83cb7ea80abe9afb03b304199ebfb7205f17e5
1 <?php
2 admin_externalpage_print_header();
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 $tabs[] = new tabobject('mnetthemes', 'mnet_themes.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetthemes, $strmnetthemes, false);
13 if ($mnet_peer->id != $CFG->mnet_all_hosts_id && $mnet_peer->application->name == 'moodle') {
14 $tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
16 print_tabs(array($tabs), 'mnetservices');
17 print_simple_box_start("center", "");
21 <form method="post" action="mnet_services.php">
22 <div>
23 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
24 <input type="hidden" name="step" value="<?php echo $mnet_peer->nextstep; ?>" />
25 <input type="hidden" name="hostid" value="<?php echo ($mnet_peer->id)? $mnet_peer->id : '0' ; ?>" />
26 <table cellpadding="9" cellspacing="0" >
27 <?php
28 foreach($myservices as $name => $versions) {
29 $version = current($versions);
31 <tr>
32 <td align="left" valign="top" colspan="2">
33 <h3><?php echo get_string($name.'_name', $version['parent_type'].'_'.$version['parent'] , $mnet_peer->name); ?></h3>
34 <?php echo get_string($name.'_description', $version['parent_type'].'_'.$version['parent'], $mnet_peer->name); ?>
35 <?php
36 $breakstring = '';
37 foreach($versions as $version){
38 if (count($versions) > 1) {
39 $versionstring = '('.get_string('version','mnet') .' '.$version['apiversion'].')';
40 } else {
41 $versionstring = '';
44 echo $breakstring;
46 <input type="hidden" name="exists[<?php echo $version['serviceid']; ?>]" value="1" />
47 <input type="checkbox" name="publish[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_publish']))? 'checked="checked" ': '' ; ?>/>
48 <?php
49 print_string('publish','mnet');
50 echo $versionstring;
51 if (!empty($version['hostsubscribes'])) {
52 echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name).'">&radic;</a> ';
54 if (!empty($version['allhosts_publish'])) {
55 print_string("enabled_for_all",'mnet',!empty($version['I_publish']));
57 echo '<br />';
59 <input type="checkbox" name="subscribe[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_subscribe']))? 'checked="checked" ': '' ; ?>/>
60 <?php
61 print_string('subscribe','mnet');
62 echo $versionstring;
63 if (!empty($version['hostpublishes'])) {
64 echo '<a href="#" title="'.get_string('ispublished','mnet', $mnet_peer->name).'">&radic;</a> ';
66 if (!empty($version['allhosts_subscribe'])) {
67 print_string("enabled_for_all",'mnet',!empty($version['I_subscribe']));
70 echo '<br />';
71 $breakstring = '. . . . . . . . . . . . . . . . . . . . . . . . <br>';
72 } // end foreach
74 </td>
75 </tr>
76 <?php
77 } // end foreach
79 <tr>
80 <td align="left" valign="top" colspan="2">
81 <div id="pubTreeLoc"></div>
82 </td>
83 </tr>
84 <tr>
85 <td align="left" valign="top" colspan="2">
86 <div id="subTreeLoc"></div>
87 </td>
88 </tr>
89 <tr>
90 <td colspan="2"><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
91 </tr>
92 <tr>
93 <td align="left" valign="top" colspan="2">
94 <div id="formElements"><input type="hidden" name="outer" value="4" /></div>
95 </td>
96 </tr>
97 </table>
98 </div>
99 </form>
100 <?php
101 print_simple_box_end();
102 admin_externalpage_print_footer();