-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (190 loc) · 8.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<meta charset="utf-8">
<link rel="stylesheet" href="css/vcl.css">
<script type="text/javascript" src="js/vcl.js"></script>
<script type="text/javascript">
function main() {
var form = new HtmlForm(null);
form.align = "center";
form.color = "blue";
form.Refresh();
var popupMenu1 = new HtmlPopupMenu(form);
popupMenu1.items = [{id:1,text:"copy"},{id:2,text:"paste"},{id:-1,text:"-"},{id:3,text:"cut"}];
popupMenu1.onclick = function(obj,evt){
alert(obj.text);
alert(evt.id);
alert(evt.text);
}
var topPanel = new HtmlPanel(form);
topPanel.align = "top";
topPanel.alignment = "center";
topPanel.color = "#333";
topPanel.fontSize = 14;
topPanel.fontColor = "White";
topPanel.name="topPanel1";
//topPanel.text = "<h1>ChromeWebBrowser.net User Guide</h1>";
topPanel.Refresh();
var logoPanel = new HtmlPanel(topPanel);
logoPanel.align = "left";
logoPanel.width = 200;
logoPanel.Refresh();
var logoImg = new HtmlImage(logoPanel);
logoImg.imageUrl = "img/html.png";
logoImg.left = 10;
logoImg.top = 18;
logoImg.width = 40;
logoImg.height = 22;
logoImg.Refresh();
var top_right_panel = new HtmlPanel(topPanel);
top_right_panel.align = "right";
top_right_panel.width = 200;
top_right_panel.Refresh();
var userImg = new HtmlImage(top_right_panel);
userImg.imageUrl = "img/p.png";
userImg.left = 10;
userImg.top = 20;
userImg.width = 20;
userImg.height = 20;
userImg.Refresh();
var userLabel = new HtmlLabel(top_right_panel);
userLabel.alignment = "left";
userLabel.left = 40;
userLabel.top = 23;
userLabel.width = "auto";
userLabel.height = 25;
userLabel.text = "Hi,Roy";
userLabel.fontColor = "white";
userLabel.fontSize = 14;
userLabel.Refresh();
var quitButton = new HtmlLinkButton(top_right_panel);
quitButton.top = 20;
quitButton.left = 120;
quitButton.width = "auto";
quitButton.height = 25;
quitButton.text = "退出";
quitButton.fontColor = "white";
quitButton.fontSize = 14;
quitButton.setUrl("index.html");
quitButton.Refresh();
var top_center_panel = new HtmlPanel(topPanel);
top_center_panel.align = "center";
top_center_panel.Refresh();
var popupMenu2 = new HtmlPopupMenu(form);
popupMenu2.items = [{id:1,text:"白血病"},{id:2,text:"肺炎"},{id:-1,text:"-"},{id:3,text:"流感"}];
popupMenu2.onclick = function(obj,evt){
alert(obj.text);
alert(evt.id);
alert(evt.text);
}
var top_center_DropMenu = new HtmlDropMenu(top_center_panel);
top_center_DropMenu.text = "ICD-10疾病";
top_center_DropMenu.top = 30;
top_center_DropMenu.left = 10;
top_center_DropMenu.height = 20;
top_center_DropMenu.fontColor = "white";
top_center_DropMenu.setDropMenu(popupMenu2);
top_center_DropMenu.Refresh();
var top_center_DropMenu1 = new HtmlDropMenu(top_center_panel);
top_center_DropMenu1.text = "收费项目";
top_center_DropMenu1.top = 30;
top_center_DropMenu1.left = 100;
top_center_DropMenu1.height = 20;
top_center_DropMenu1.fontColor = "white";
top_center_DropMenu1.setDropMenu(popupMenu1);
top_center_DropMenu1.Refresh();
var titleLabel = new HtmlLabel(logoPanel);
titleLabel.alignment = "left";
titleLabel.left = 60;
titleLabel.top = 20;
titleLabel.width = 100;
titleLabel.height = 25;
titleLabel.text = "VCL";
titleLabel.fontColor = "#00ffe2";
titleLabel.fontSize = 16;
titleLabel.Refresh();
var leftPanel = new HtmlPanel(form);
leftPanel.name = "leftPanel1";
leftPanel.align = "left";
leftPanel.color = "#e6e6e6";
leftPanel.width = "200";
leftPanel.Refresh();
var frame = new HtmlFrame(form);
frame.align = "center";
frame.color = "White";
// frame.setUrl("pages/method-EN.html");
frame.setUrl("pages/tabs.html");
frame.Refresh();
var bottomPanel = new HtmlPanel(form);
bottomPanel.align = "bottom";
bottomPanel.alignment = "center";
bottomPanel.color = "#000";
bottomPanel.height = 25;
bottomPanel.fontColor = "White";
bottomPanel.text = "@Author: Roy (173783000@qq.com)";
bottomPanel.Refresh();
var navBar = new HtmlNavBar(leftPanel);
navBar.name = "navBar1";
navBar.align = "center";
navBar.width = "200";
navBar.alignment = "center";
navBar.color = "#393D49";
navBar.items = [{"title":"search","items":[{"id":"1","caption":"Baidu","img":"img/p.png"},{"id":"2","caption":"Bing","img":"img/a.png"}]},
{"title":"components","items":[
{"id":"3","caption":"Control"},{"id":"4","caption":"HtmlForm"},{"id":"5","caption":"HtmlPanel"},
{"id":"6","caption":"HtmlNavBar"},{"id":"7","caption":"HtmlFrame"},
{"id":"12","caption":"HtmlTable","img":"img/d.png"},{"id":"13","caption":"HtmlDialog","img":"img/e.png"},{"id":"14","caption":"HtmlTabControl"},
{"id":"15","caption":"messagebox","img":"img/f.png"},{"id":"16","caption":"HtmlPopupMenu","img":"img/h.png"},{"id":"17","caption":"HtmlDropMenu"},
{"id":"18","caption":"Thread"}]},
{"title":"other","items":[{"id":"31","caption":"HtmlButton"},{"id":"32","caption":"HtmlLinkButton"},{"id":"33","caption":"HtmlEdit"},{"id":"34","caption":"HtmlMemo"},
{"id":"35","caption":"HtmlLabel"},{"id":"36","caption":"HtmlImage"},{"id":"37","caption":"HtmlCheckBox"},
{"id":"38","caption":"HtmlRadio"},{"id":"39","caption":"HtmlCombobox"},{"id":"40","caption":"HtmlGroupBox"}]}
];
navBar.onGroupItemClick = function(event){
//alert(event.control.id+":"+event.control.text);
var url = "";
switch(event.control.id){
case "1":
url = "http://www.baidu.com";
break;
case "2":
url = "http://www.bing.com.cn";
break;
case "3":
url = "pages/control.html"; break;
case "4":
url = "pages/form.html"; break;
case "5":
url = "pages/panel.html"; break;
case "6":
url = "pages/NavBar.html"; break;
case "7":
url = "pages/frame.html"; break;
case "12":
url = "pages/table.html";
break;
case "13":
url = "pages/dialog.html";
break;
case "14":
url = "pages/tabs.html";
break;
case "15":
url = "pages/messagebox.html";
break;
case "16":
url = "pages/popupMenu.html";
break;
case "17":
url = "pages/dropMenu.html";
break;
case "18":
url = "pages/thread.html";
break;
default:
url = "pages/method-EN.html";
break;
}
frame.setUrl(url);
}
navBar.Refresh();
}
</script>