Updated the 19 build version to 20101023
[moodle.git] / admin / mnet / mnet_services.html
blob74d9c0ef87543f7fd65916bd64a13d5b1d626d2c
1 <?php
2 admin_externalpage_print_header();
4 $currenttab = 'mnetservices';
5 require_once($CFG->dirroot .'/admin/mnet/tabs.php');
7 print_simple_box_start("center", "");
9 ?>
11 <form method="post" action="mnet_services.php">
12 <div>
13 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
14 <input type="hidden" name="step" value="<?php echo $mnet_peer->nextstep; ?>" />
15 <input type="hidden" name="hostid" value="<?php echo ($mnet_peer->id)? $mnet_peer->id : '0' ; ?>" />
16 <table cellpadding="9" cellspacing="0" >
17 <?php
18 foreach($myservices as $name => $versions) {
19 $version = current($versions);
20 $langmodule = ($version['parent_type'] == 'mod' ? '' : ($version['parent_type'] . '_')) . $version['parent'];
22 <tr>
23 <td align="left" valign="top" colspan="2">
24 <h3><?php echo get_string($name.'_name', $langmodule , $mnet_peer->name); ?></h3>
25 <?php echo get_string($name.'_description', $langmodule, $mnet_peer->name); ?>
26 <?php
27 $breakstring = '';
28 foreach($versions as $version){
29 if (count($versions) > 1) {
30 $versionstring = '('.get_string('version','mnet') .' '.$version['apiversion'].')';
31 } else {
32 $versionstring = '';
35 echo $breakstring;
37 <input type="hidden" name="exists[<?php echo $version['serviceid']; ?>]" value="1" />
38 <input type="checkbox" name="publish[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_publish']))? 'checked="checked" ': '' ; ?>/>
39 <?php
40 print_string('publish','mnet');
41 echo $versionstring;
42 if (!empty($version['hostsubscribes'])) {
43 echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name).'">&radic;</a> ';
45 if (!empty($version['allhosts_publish'])) {
46 print_string("enabled_for_all",'mnet',!empty($version['I_publish']));
48 echo '<br />';
50 <input type="checkbox" name="subscribe[<?php echo $version['serviceid']; ?>]" <?php echo (!empty($version['I_subscribe']))? 'checked="checked" ': '' ; ?>/>
51 <?php
52 print_string('subscribe','mnet');
53 echo $versionstring;
54 if (!empty($version['hostpublishes'])) {
55 echo '<a href="#" title="'.get_string('ispublished','mnet', $mnet_peer->name).'">&radic;</a> ';
57 if (!empty($version['allhosts_subscribe'])) {
58 print_string("enabled_for_all",'mnet',!empty($version['I_subscribe']));
61 echo '<br />';
62 $breakstring = '. . . . . . . . . . . . . . . . . . . . . . . . <br>';
63 } // end foreach
65 </td>
66 </tr>
67 <?php
68 } // end foreach
70 <tr>
71 <td align="left" valign="top" colspan="2">
72 <div id="pubTreeLoc"></div>
73 </td>
74 </tr>
75 <tr>
76 <td align="left" valign="top" colspan="2">
77 <div id="subTreeLoc"></div>
78 </td>
79 </tr>
80 <tr>
81 <td colspan="2"><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
82 </tr>
83 <tr>
84 <td align="left" valign="top" colspan="2">
85 <div id="formElements"><input type="hidden" name="outer" value="4" /></div>
86 </td>
87 </tr>
88 </table>
89 </div>
90 </form>
91 <?php
92 print_simple_box_end();
93 admin_externalpage_print_footer();