xcpweb

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/interface/some_unfinished_stuff/menu_tmpl.html	Tue Jun 15 00:35:25 2010 +0300
     1.3 @@ -0,0 +1,35 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1.5 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.6 +<head>
     1.7 +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     1.8 +<title>XCP web interface submenu test</title>
     1.9 +<link href="rightmenu.css" rel="stylesheet" type="text/css" />
    1.10 +<script type="Text/JavaScript" Language="JavaScript" src="rightmenu.js"></script>
    1.11 +<style media="all" type="text/css">
    1.12 +.more-info {display:none}
    1.13 +</style>
    1.14 +<script type="text/javascript" language="javascript">
    1.15 +var param;
    1.16 +function createMenu(param,e) {
    1.17 +	if (xcp_menu.getMenu(param)) { xcp_menu.dropMenu(param); }
    1.18 +	var currentMenu = xcp_menu.createMenu(param);
    1.19 +	if (typeof(currentMenu) == 'object') {
    1.20 +		xcp_menu.appendInMenu(currentMenu,'item1','Item 1',"alert('Item 1')",'/interface/img/ico-arrow-right.png');
    1.21 +		xcp_menu.appendInMenu(currentMenu,'item2','Item 2',"alert('Item 2');",'/interface/img/ico-arrow-right.png');
    1.22 +		var subcurrent = xcp_menu.appendSubInMenu(currentMenu,'sub1','Sub1','/interface/img/ico-arrow-right.png');
    1.23 +		if (typeof(subcurrent) == 'object') {
    1.24 +			xcp_menu.appendInMenu(subcurrent,'submenu1','Sub Menu 1',"alert('Sub Menu 1')",'/interface/img/ico-arrow-right.png');
    1.25 +		}
    1.26 +		xcp_menu.appendInMenu(currentMenu,'item3','Item 3',"alert('item3');",'/interface/img/ico-arrow-right.png');
    1.27 +		xcp_menu.appendInMenu(currentMenu,'item4','Item 4',"alert('item4')",'/interface/img/ico-arrow-right.png');
    1.28 +		xcp_menu.openRightMenu('menu_'+param,e);
    1.29 +	}
    1.30 +}
    1.31 +</script>
    1.32 +</head>
    1.33 +<body>
    1.34 +<a href="#" onclick="createMenu('current_prv',event);">test menu</a>
    1.35 +<div id="otherPages"></div>
    1.36 +<div id="submenus"></div>
    1.37 +</body>
    1.38 +</html>
    1.39 \ No newline at end of file