source: admin/WebConsole/menus/menuejemplo.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.9 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>Men&uacute; de inicio de los equipos OpenGnsys</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        <h1>Men&uacute; de opciones</h1>
57
58        <dl class="windows">
59                <dt><a href="command:bootOs 1 1" title="Iniciar sesi&oacute;n de Windows, accesskey: 1" accesskey="1">[1] Arrancar Windows.</a></dt>
60                        <dd>Arranque normal de Windows sin modificaciones.</dd>
61                <dt><a href="command+confirm:restoreImage REPO windows 1 1" title="Formatear el disco e instalar el sistema operativo Windows, accesskey: 2" accesskey="2">[2] Instalar Windows. </a></dt>
62                        <dd>El proceso de instalaci&oacute;n tardar&aacute; unos minutos.</dd>
63        </dl>
64
65        <dl class="linux">
66                <dt><a href="command+output:bootOs 1 2" title="Iniciar sesi&oacute;n de Ubuntu 12, accesskey: 3" accesskey="3">[3] Arrancar GNU/Linux. </a></dt>
67                        <dd>Arranque normal de <acronym title="GNU's not Unix">GNU</acronym>/Linux sin modificaciones.</dd>
68                       
69                <dt><a href="command+output+confirm:restoreImage REPO linux 1 2" title="Formatear el disco e instalar el sistema operativo GNU/Linux, accesskey: 4" accesskey="4">[4] Instalar GNU/Linux. </a></dt>
70                        <dd>El proceso de instalaci&oacute;n tardar&aacute; unos minutos.</dd>
71        </dl>
72       
73        <dl class="apagar">
74                <dt><a href="command:poweroff" title="Apagar la m&aacute;quina, accesskey: 0" accesskey="0">[0] Apagar. </a></dt>
75                        <dd>Apagar el ordenador.</dd>
76
77                <dt><a href="command:reboot" title="Reiniciar la m&aacute;quina, accesskey: 6" accesskey="6">[6] Reiniciar. </a></dt>
78                        <dd>Reiniciar el ordenador.</dd>
79        </dl>
80
81<?php   // Acceso a menú privado.
82if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
83    $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
84} else {
85    $ip = $_SERVER['REMOTE_ADDR'];
86}
87?>
88        <div class="admin"><a href="../varios/acceso_operador.php?iph=<?php echo $ip ?>">Administraci&oacute;n</a></div>
89
90   </body>
91</html>
92
Note: See TracBrowser for help on using the repository browser.