source: admin/WebConsole/menus/examplemenu.php

qndtest
Last change on this file was 918688e, checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago

#919: How to use new URLs in menus.

  • Property mode set to 100644
File size: 2.7 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
3
4<head>
5        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
6        <title>Init menu for OpenGnsys clients</title>
7
8        <style type="text/css">
9        body { background: #fff; font-size: 0.7em; }
10        h1, h2 { font-size: 1.5em; }
11        br {font-size: 0.2em; }
12        a:link, a:visited { text-decoration: none; color:#900; font-weight: bold; }
13        a:hover, a:active { color:#d90; }
14
15        h1 {
16                font-size: 1.5em;
17                width: 100%;
18                vertical-align: bottom;
19                color: #555;
20                background: transparent url('images/opengnsys.png')  no-repeat top left;
21                padding: 2em 0 1.5em 12em;
22                margin-bottom: 1em;
23        }
24
25        dl {
26                background: transparent url('images/xp_peque.png') no-repeat top left;
27                padding: 0 0 1em 5em;
28                margin: 2em 10em;
29        }
30
31        dl.windows {
32                background-image: url('images/xp_peque.png');
33        }
34
35        dl.linux {
36                background-image: url('images/linux_peque.png');
37        }
38
39        dl.apagar {
40                background-image: url('images/poweroff.png');
41        }
42
43        dt { float: left;}
44        dd { margin: 1em 10em 1em 20em; }
45
46        div.admin {
47                margin: 1em;
48                float: right;
49        }
50        </style>
51
52</head>
53
54   <body>
55
56
57        <h1>Option Menu</h1>
58        <dl class="windows">
59                <dt><a href="command:bootOs 1 1" title="Init session Windows, accesskey: 1" accesskey="1">Init session Windows.</a></dt>
60                        <dd>Normal boot Windows without changes.</dd>
61                <dt><a href="command+confirm:restoreImage REPO windows 1 1" title="Format the disk and install the Windows operating system, accesskey: 2" accesskey="2">Install Windows.</a></dt>
62                        <dd>The installation process takes a few minutes.</dd>
63        </dl>
64
65        <dl class="linux">
66                <dt><a href="command+output:bootOs 1 2" title="Init session GNU/Linux, accesskey: 3" accesskey="3">Init session GNU/Linux.</a></dt>
67                        <dd>Normal boot <acronym title="GNU's not Unix">GNU</acronym>/Linux without changes.</dd>
68                <dt><a href="command+output+confirm:restoreImage REPO linux 1 2" title="Format the disk and install the GNU/Linux operating system GNU/Linux, accesskey: 4" accesskey="4">Install GNU/Linux.</a></dt>
69                        <dd>The installation process takes a few minutes.</dd>
70        </dl>
71
72        <dl class="apagar">
73                <dt><a href="command:poweroff" title="Power-off, accesskey: 0" accesskey="0">Power-off.</a></dt>
74                        <dd>Power-off computer.</dd>
75                <dt><a href="command:reboot" title="Reboot, accesskey: 6" accesskey="6">Reboot.</a></dt>
76                        <dd>Reboot computer.</dd>
77        </dl>
78
79<?php   // Access to private menu.
80if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
81    $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
82} else {
83    $ip = $_SERVER['REMOTE_ADDR'];
84}
85?>
86        <div class="admin"><a href="../varios/acceso_operador.php?iph=<?php echo $ip ?>">Admin Menu</a></div>
87
88   </body>
89</html>
Note: See TracBrowser for help on using the repository browser.