xcpweb

view interface/some_unfinished_stuff/menu_tmpl.html @ 6:fa572caf2edc

The interface template and the login part almost ready :)
author Nikola Nikov <nikolanikov@webconnect.bg>
date Tue Jun 15 00:35:25 2010 +0300 (2010-06-15)
parents
children
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>XCP web interface submenu test</title>
6 <link href="rightmenu.css" rel="stylesheet" type="text/css" />
7 <script type="Text/JavaScript" Language="JavaScript" src="rightmenu.js"></script>
8 <style media="all" type="text/css">
9 .more-info {display:none}
10 </style>
11 <script type="text/javascript" language="javascript">
12 var param;
13 function createMenu(param,e) {
14 if (xcp_menu.getMenu(param)) { xcp_menu.dropMenu(param); }
15 var currentMenu = xcp_menu.createMenu(param);
16 if (typeof(currentMenu) == 'object') {
17 xcp_menu.appendInMenu(currentMenu,'item1','Item 1',"alert('Item 1')",'/interface/img/ico-arrow-right.png');
18 xcp_menu.appendInMenu(currentMenu,'item2','Item 2',"alert('Item 2');",'/interface/img/ico-arrow-right.png');
19 var subcurrent = xcp_menu.appendSubInMenu(currentMenu,'sub1','Sub1','/interface/img/ico-arrow-right.png');
20 if (typeof(subcurrent) == 'object') {
21 xcp_menu.appendInMenu(subcurrent,'submenu1','Sub Menu 1',"alert('Sub Menu 1')",'/interface/img/ico-arrow-right.png');
22 }
23 xcp_menu.appendInMenu(currentMenu,'item3','Item 3',"alert('item3');",'/interface/img/ico-arrow-right.png');
24 xcp_menu.appendInMenu(currentMenu,'item4','Item 4',"alert('item4')",'/interface/img/ico-arrow-right.png');
25 xcp_menu.openRightMenu('menu_'+param,e);
26 }
27 }
28 </script>
29 </head>
30 <body>
31 <a href="#" onclick="createMenu('current_prv',event);">test menu</a>
32 <div id="otherPages"></div>
33 <div id="submenus"></div>
34 </body>
35 </html>