xcpweb

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