2 admin_externalpage_print_header();
4 $currenttab = 'mnetservices';
5 require_once($CFG->dirroot
.'/admin/mnet/tabs.php');
7 print_simple_box_start("center", "");
11 <form method=
"post" action=
"mnet_services.php">
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" >
18 foreach($myservices as $name => $versions) {
19 $version = current($versions);
20 $langmodule = ($version['parent_type'] == 'mod' ?
'' : ($version['parent_type'] . '_')) . $version['parent'];
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
); ?>
28 foreach($versions as $version){
29 if (count($versions) > 1) {
30 $versionstring = '('.get_string('version','mnet') .' '.$version['apiversion'].')';
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" ': '' ; ?>/>
40 print_string('publish','mnet');
42 if (!empty($version['hostsubscribes'])) {
43 echo '<a href="#" title="'.get_string('issubscribed','mnet', $mnet_peer->name
).'">√</a> ';
45 if (!empty($version['allhosts_publish'])) {
46 print_string("enabled_for_all",'mnet',!empty($version['I_publish']));
50 <input type=
"checkbox" name=
"subscribe[<?php echo $version['serviceid']; ?>]" <?php
echo (!empty($version['I_subscribe']))?
'checked="checked" ': '' ; ?>/>
52 print_string('subscribe','mnet');
54 if (!empty($version['hostpublishes'])) {
55 echo '<a href="#" title="'.get_string('ispublished','mnet', $mnet_peer->name
).'">√</a> ';
57 if (!empty($version['allhosts_subscribe'])) {
58 print_string("enabled_for_all",'mnet',!empty($version['I_subscribe']));
62 $breakstring = '. . . . . . . . . . . . . . . . . . . . . . . . <br>';
71 <td align=
"left" valign=
"top" colspan=
"2">
72 <div id=
"pubTreeLoc"></div>
76 <td align=
"left" valign=
"top" colspan=
"2">
77 <div id=
"subTreeLoc"></div>
81 <td colspan=
"2"><input type=
"submit" value=
"<?php print_string("savechanges
") ?>" /></td
>
84 <td align
="left" valign
="top" colspan
="2">
85 <div id
="formElements"><input type
="hidden" name
="outer" value
="4" /></div
>
92 print_simple_box_end();
93 admin_externalpage_print_footer();