tazpanel view styles/default/header.html @ rev 381

More reliable menu.d calls
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 06 00:45:40 2014 +0100 (2014-01-06)
parents 5c7e041e367a
children 6a8ad3b2b789
line source
1 cat << EOT
2 <!DOCTYPE html>
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="$(echo $LANG | cut -f1 -d_)">
4 <head>
5 <title>$TITLE</title>
6 <meta charset="utf-8" />
7 <link rel="shortcut icon" href="/styles/default/favicon.ico" />
8 <link rel="stylesheet" type="text/css" href="/styles/default/style.css" />
9 <!-- Function to hide the loading message when page is generated. -->
10 <script type="text/javascript">
11 function showLoading(){
12 document.getElementById("loading").style.display='none';
13 }
15 //Ask confirmation on close window during load time
16 window.onbeforeunload = confirmExit;
17 function confirmExit()
18 {
19 return 1;
20 }
21 </script>
22 </head>
23 <body onload="showLoading()">
25 <div id="toolbar">
26 <div id="icons">
27 <a href="/help.cgi">
28 <img src="/styles/default/images/help.png" alt="Help" /></a>
29 </div>
30 <ul id="menu">
31 <li><a href="/">$(gettext 'Panel')</a>
32 <ul>
33 <li><a href="/index.cgi?terminal"><img
34 src="/styles/default/images/terminal.png" />$(gettext 'Terminal')</a></li>
35 <li><a href="/index.cgi?top"><img
36 src="/styles/default/images/monitor.png" />$(gettext 'Processes')</a></li>
37 <li><a href="/index.cgi?report"><img
38 src="/styles/default/images/text.png" />$(gettext 'Create Report')</a></li>
39 $(for i in menu.d/panel/* ; do [ -f $i ] && sh $i menu $i ; done)
40 </ul>
41 </li>
42 <li><a href="/network.cgi">$(gettext 'Network')</a>
43 <ul>
44 <li><a href="/index.cgi?file=/etc/network.conf"><img
45 src="/styles/default/images/edit.png" />$(gettext 'Config file')</a></li>
46 <li><a href="/network.cgi?eth"><img
47 src="/styles/default/images/ethernet.png" />$(gettext 'Ethernet')</a></li>
48 <li><a href="/network.cgi?wifi"><img
49 src="/styles/default/images/wireless.png" />$(gettext 'Wireless')</a></li>
50 $(for i in menu.d/network/* ; do [ -f $i ] && sh $i menu $i ; done)
51 </ul>
52 </li>
53 <li><a href="/settings.cgi">$(gettext 'Settings')</a>
54 <ul>
55 <li><a href="/settings.cgi?users"><img
56 src="/styles/default/images/user.png" />$(gettext 'Users')</a></li>
57 <li><a href="/settings.cgi?groups"><img
58 src="/styles/default/images/users.png" />$(gettext 'Groups')</a></li>
59 $(for i in menu.d/settings/* ; do [ -f $i ] && sh $i menu $i ; done)
60 </ul>
61 </li>
62 <li><a href="/boot.cgi">$(gettext 'Boot')</a>
63 <ul>
64 <li><a href="/boot.cgi?grub"><img
65 src="/styles/default/images/tux.png" />$(gettext 'Boot loader')</a></li>
66 <li><a href="/boot.cgi?log"><img
67 src="/styles/default/images/text.png" />$(gettext 'Boot logs')</a>
68 <ul>
69 <li><a href="/boot.cgi?log#kernel">$(gettext 'Kernel messages')</a>
70 <li><a href="/boot.cgi?log#boot">$(gettext 'Boot scripts')</a>
71 <li><a href="/boot.cgi?log#slim">$(gettext 'X server')</a>
72 </ul>
73 </li>
74 <li><a href="/boot.cgi?daemons"><img
75 src="/styles/default/images/recharge.png" />$(gettext 'Manage daemons')</a></li>
76 $(for i in menu.d/boot/* ; do [ -f $i ] && sh $i menu $i ; done)
77 </ul>
78 </li>
79 <li><a href="/hardware.cgi">$(gettext 'Hardware')</a>
80 <ul>
81 <li><a href="/hardware.cgi?modules"><img
82 src="/styles/default/images/tux.png" />$(gettext 'Kernel modules')</a></li>
83 <li><a href="/hardware.cgi?detect"><img
84 src="/styles/default/images/monitor.png" />$(gettext 'Detect PCI/USB')</a></li>
85 <li><a href="/hardware.cgi#disk"><img
86 src="/styles/default/images/harddisk.png" />$(gettext 'Disks')</a></li>
87 $(for i in menu.d/hardware/* ; do [ -f $i ] && sh $i menu $i ; done)
88 </ul>
89 </li>
90 $(for i in menu.d/* ; do [ -f $i ] && sh $i menu $i ; done)
91 </ul>
92 </div>
94 <div id="header">
95 <h1>$TITLE</h1>
96 </div>
98 <!-- Page content -->
99 <div id="content">
100 EOT