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