xcpweb

diff interface/some_unfinished_stuff/tabs_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/tabs_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 tabs test</title>
     1.9 +<link href="tabs.css" rel="stylesheet" type="text/css" />
    1.10 +<script type="Text/JavaScript" Language="JavaScript" src="tabs.js"></script>
    1.11 +<script type="text/javascript" language="javascript">
    1.12 +function testTabs() {
    1.13 +	tabs.construct('testtab');
    1.14 +	tabs.append('name','name of the tab',function() { myFunc(1); });
    1.15 +	tabs.append('name2','name2 of the tab',function() { myFunc(2); });
    1.16 +	tabs.activateByAlias('name',tabs.getDom());
    1.17 +	document.getElementById('tabDiv').appendChild(tabs.getDom());
    1.18 +	var cnt = document.createElement('DIV');
    1.19 +	cnt.setAttribute('id','tabContent');
    1.20 +	cnt.className = 'tabContent';
    1.21 +	document.getElementById('tabDiv').appendChild(cnt);
    1.22 +	tabs.clear();
    1.23 +}
    1.24 +function myFunc(param) {
    1.25 +	document.getElementById('tabContent').innerHTML = param;
    1.26 +}
    1.27 +</script>
    1.28 +<style>
    1.29 +#tabDiv {
    1.30 +	width:auto;
    1.31 +	text-align:left;
    1.32 +}
    1.33 +</style>
    1.34 +</head>
    1.35 +<body onload="testTabs();">
    1.36 +<div id="tabDiv"></div>
    1.37 +</body>
    1.38 +</html>
    1.39 \ No newline at end of file