xcpweb

annotate 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
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 tabs test</title>
nikolanikov@6 6 <link href="tabs.css" rel="stylesheet" type="text/css" />
nikolanikov@6 7 <script type="Text/JavaScript" Language="JavaScript" src="tabs.js"></script>
nikolanikov@6 8 <script type="text/javascript" language="javascript">
nikolanikov@6 9 function testTabs() {
nikolanikov@6 10 tabs.construct('testtab');
nikolanikov@6 11 tabs.append('name','name of the tab',function() { myFunc(1); });
nikolanikov@6 12 tabs.append('name2','name2 of the tab',function() { myFunc(2); });
nikolanikov@6 13 tabs.activateByAlias('name',tabs.getDom());
nikolanikov@6 14 document.getElementById('tabDiv').appendChild(tabs.getDom());
nikolanikov@6 15 var cnt = document.createElement('DIV');
nikolanikov@6 16 cnt.setAttribute('id','tabContent');
nikolanikov@6 17 cnt.className = 'tabContent';
nikolanikov@6 18 document.getElementById('tabDiv').appendChild(cnt);
nikolanikov@6 19 tabs.clear();
nikolanikov@6 20 }
nikolanikov@6 21 function myFunc(param) {
nikolanikov@6 22 document.getElementById('tabContent').innerHTML = param;
nikolanikov@6 23 }
nikolanikov@6 24 </script>
nikolanikov@6 25 <style>
nikolanikov@6 26 #tabDiv {
nikolanikov@6 27 width:auto;
nikolanikov@6 28 text-align:left;
nikolanikov@6 29 }
nikolanikov@6 30 </style>
nikolanikov@6 31 </head>
nikolanikov@6 32 <body onload="testTabs();">
nikolanikov@6 33 <div id="tabDiv"></div>
nikolanikov@6 34 </body>
nikolanikov@6 35 </html>