delete.html 2.57 KB
Newer Older
1
<?php
2
$navlinks = array();
3
4
$navlinks[] = array('name' => $stradministration, 'link' => "$CFG->wwwroot/$CFG->admin/index.php", 'type' => 'misc');
$navlinks[] = array('name' => get_string('mnetsettings', 'mnet'), 'link' => "$CFG->wwwroot/$CFG->admin/mnet/index.php", 'type' => 'misc');
5
6
7
$navlinks[] = array('name' => get_string('deletehost', 'mnet'), 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$site->shortname: $strmnetsettings", "$site->fullname", $navigation);
8

9
echo $OUTPUT->heading(get_string('mnetsettings', 'mnet'));
10
?>
11
12
<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
    <table class="generalbox standard" border="0" cellpadding="5" cellspacing="0">
13
14
15
16
        <tr>
            <td  class="generalboxcontent">
            <table cellpadding="9" cellspacing="0" >
                <tr valign="top">
17
                    <td colspan="2" class="header" cellpadding="0"><span><?php print_string('deleteaserver', 'mnet'); ?>Deleting a Server</span></td>
18
19
                </tr>
                <?php
20
                if (count($warn) > 0){
21
22
                ?>
                <tr valign="top">
23
                    <td align="right" colspan="2"><?php print_string('receivedwarnings','mnet'); ?>:<br />
24
25
26
27
                    <?php foreach($warn as $warning) echo $warning .'<br />'; ?>
                    </td>
                </tr>
                <?php
28
                }
29
30
                ?>
                <tr valign="top">
31
                    <td colspan="2"><?php print_string('reallydeleteserver','mnet'); ?>: "<?php echo $mnet_peer->name; ?>"?</td>
32
33
34
                </tr>
                <tr valign="top">
                    <td width="80">
35
                        <form method="post" action="delete.php">
skodak's avatar
skodak committed
36
                            <input type="hidden" name="sesskey" value="<?php sesskey() ?>" />
37
38
39
40
41
42
                            <input type="hidden" name="hostid" value="<?php echo $mnet_peer->id; ?>" />
                            <input type="hidden" name="step" value="delete" />
                            <input type="submit" name="submit" value="<?php print_string('delete'); ?>"/>
                        </form>
                    </td>
                    <td>
43
                        <form method="get" action="index.php">
44
45
46
47
48
49
50
51
                            <input type="submit" name="ignore" value="<?php print_string('cancel'); ?>"/>
                        </form>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
    </table>
52
</div>
53
<?php
54
echo $OUTPUT->footer();
55
?>