more missing files
[L-seed.git] / web / index.php
1 <?php
2         function __autoload($class_name) { require_once $class_name . '.php'; }
3
4 //require("php/Communication.php");
5
6 //$res = GetPlantList();
7 //echo $res;
8
9
10 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
11 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
12
13 <html>
14         <head>
15                 <title>L-Seed</title>
16
17                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
18
19                 <link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
20                 <link rel="stylesheet" type="text/css" href="ext/resources/css/xtheme-slate.css" />
21                 <link rel="stylesheet" type="text/css" href="css/RowEditor.css" />
22                 <style type="text/css">
23                         #loading {
24                           position: absolute;
25                           left: 45%;
26                           top: 40%;
27                           margin-left: -45px;
28                           padding: 2px;
29                           z-index: 20001;
30                           height: auto;
31                           border: 1px solid #ccc;
32                         }
33
34                         #loading a {
35                           color: #225588;
36                         }
37
38                         #loading .loading-indicator {
39                           background: white;
40                           color: #444;
41                           font: bold 13px tahoma, arial, helvetica;
42                           padding: 10px;
43                           margin: 0;
44                           height: auto;
45                           width:130px;
46                         }
47
48                         #loading .loading-indicator img {
49                           margin-right:8px;
50                           float:left;
51                           vertical-align:top;
52                         }
53
54                         #loading-msg {
55                           font: normal 10px arial, tahoma, sans-serif;
56                         }
57
58                 </style>
59
60                 <script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
61                 <script type="text/javascript" src="ext/ext-all-debug.js"></script>
62                 <script type="text/javascript" src="js/md5.js"></script>
63                 <script type="text/javascript" src="js/communication.js"></script>
64                 <script type="text/javascript" src="js/codepress/codepress.js"></script>
65                 <script type="text/javascript" src="js/RowEditor.js"></script>
66                 <script type="text/javascript">
67                         communication = new Lseed.Communication();
68                         editor = new Lseed.Editor();
69
70                         Ext.onReady(function() {
71                                 Ext.QuickTips.init();
72
73                                 new Ext.Viewport({
74                                     layout: 'border'
75                                     ,items: [{
76                                                 region: 'north'
77                                                 ,html: '<h1 class="x-panel-header">L-Seed Manager</h1>'
78                                                 ,autoHeight: true
79                                                 ,border: false
80                                                 ,margins: '0 0 5 0'
81                                         },{
82                                                 id: 'navTree'
83                                                 ,region: 'west'
84                                                 ,collapsible: true
85                                                 ,title: 'Navigation'
86                                                 ,xtype: 'treepanel'
87                                                 ,width: 200
88                                                 ,autoScroll: true
89                                                 ,split: true
90                                                 ,tbar: [{
91                                                         xtype: "button"
92                                                         ,text: "Logout"
93                                                         ,handler: communication.logout.createDelegate(communication)
94                                                 }]
95                                                 ,loader: new Ext.tree.TreeLoader()
96                                                 ,root: new Ext.tree.AsyncTreeNode({
97                                                         expanded: true
98                                                         ,children: [{
99                                                                 text: 'Start'
100                                                                 ,leaf: true
101                                                         }]
102                                                 })
103                                                 ,rootVisible: false
104                                                 ,listeners: {
105                                                         click: function(obj) {
106                                                                 communication.showTab(obj.attributes.id);
107                                                         }
108                                                 }
109                                                 ,bbar: [{
110                                                         id: 'loadPageProgressbar'
111                                                         ,xtype: 'progress'
112                                                 }]
113                                         },{
114                                                 id: 'contentTabPanel'
115                                                 ,region: 'center'
116                                                 ,xtype: 'tabpanel'
117                                                 ,activeTab: 0
118                                                 ,items: [{
119                                                         id: 'ContentPanel_start'
120                                                         ,style: 'padding: 5px;'
121                                                         ,title: 'Start'
122                                                         ,html: 'Willkommen beim L-Seed Manager.'
123                                                 }]
124                                         },{
125                                                 region: 'south'
126                                                 ,title: 'Statusanzeige'
127                                                 ,collapsible: true
128                                                 ,collapsed: true
129                                                 ,html: 'Statusanzeige'
130                                                 ,split: true
131                                                 ,height: 100
132                                                 ,minHeight: 100
133                                         }]
134                                 });
135
136                                 communication.Init(editor);
137                         });
138                 </script>
139         </head>
140         <body style="overflow: hidden">
141
142
143                 <div id="content"/>
144         </body>
145 </html>