-
Notifications
You must be signed in to change notification settings - Fork 9
/
index_en.html
299 lines (252 loc) · 10.8 KB
/
index_en.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="TWeb es el primer framework para modHarbour que sirve para crear pantallas web">
<meta name="description" content="TWeb is the first framework for modHarbour used to create web screens">
<meta name="keywords" content="tweb, mercury, harbour, modharbour, clipper, fivewin, web, framework">
<meta name="Author" content="Carles Aubia Floresvi">
<meta name="Generator" content="TWeb from iTarraco">
<link rel="icon" href="images/tweb.png" type="image/x-icon" >
<link rel="shortcut icon" href="images/tweb.png" type="image/x-icon">
<title>TWeb for mod Harbour</title>
<!-- jQyery Bootstrap core -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<style>
#mytable tr:hover {background-color: #ddd;}
#mytable tr:nth-child(even){background-color: #e0e6ff;}
#mytable { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;border-collapse: collapse; width: 100%; }
#mytable thead { background-color: #007bff;color: white;}
#mylogo {
vertical-align: middle;
margin-bottom: 8px;
margin-right: 10px;
}
#flag {
float: right;
margin-top: 10px;
width: 25px;
cursor: pointer;
}
#mycode {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: #141414;
display: none;
}
#mycodebar {
background-color: gray;
color: white;
padding-left: 10px;
}
#code {
position: relative;
top: 0px;
height: 95%;
}
</style>
</head>
<body>
<div class="container">
<h1><a target="_blank_" href="https://github.com/carles9000/tweb"><img id="mylogo" src="images/tweb.png">TWEB<a> for mod Harbour
<a href="index.html">
<img id="flag" src="images/lang_es.png"></a>
</h1>
<p class="lead">The easiest way to design screens for <span><a target="_blank_" href="https://github.com/FiveTechSoft/mod_harbour">mod Harbour</a></span> on the Web</p>
<hr>
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse1">Description</a>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse show">
<div class="panel-body">
<p><a target="_blank_" href="info"><em>TWeb</em></a></span> It was ported for the Genesis Professional environment, but it has been decided to extract the entire library to be able to use it independently.
The main advantages are:
<ul>
<li>Create screens easily using xBase syntax</li>
<li>Independent of any system or programming environment</li>
<li>Multiplatform (Windows / Linux)</li>
<li>The base is <span><a target="_blank_" href="https://getbootstrap.com/">Bootstrap</a></span>, since it is one of the most popular frameworks used on the web</li>
<li>You can use many examples that are in the network for example in <span><a target="_blank_" href="https://www.w3schools.com/bootstrap4/">W3schools</a></span></li>
<li>All sources are available, allowing changes to be modified and recompiled in an HRB and used immediately</li>
<li>Possibility of using other frameworks using the same methodology</li>
</ul>
<h5>Our usual xBase commands (GET, SAY, COMBOBOX, CHECKBOX, ...) now available for our PRGs on the Web!</h5>
<hr>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse2">Documentation</a>
</h4>
</div>
<div id="collapse2" class="panel-collapse collapse ">
<div class="panel-body">
<p><img src="images/help.ico"/> <a target="_blank_" href="doc/hfw_tweb_v1.pdf">You can download the manual <em>TWeb</em> from here... (Spanish version)</a>
<hr>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse3">Examples</a>
</h4>
</div>
<div id="collapse3" class="panel-collapse collapse">
<div class="panel-body">
<table id="mytable" >
<thead>
<tr>
<th width="200px">Prg</th>
<th width="50px"></th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a target="_blank_" href="tutor3.prg">tutor3.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('tutor3.prg')"></td>
<td>Tutorial. On-screen position of controls</td>
</tr>
<tr>
<td><a target="_blank_" href="tutor5.prg">tutor5.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('tutor5.prg')"></td>
<td>Tutorial. Screen example</td>
</tr>
<tr>
<td><a target="_blank_" href="tutor7.prg">tutor7.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('tutor7.prg')"></td>
<td>Tutorial. Example of alignments</td>
</tr>
<tr>
<td><a target="_blank_" href="tutor10.prg">tutor10.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('tutor10.prg')"></td>
<td>Tutorial. Responsive</td>
</tr>
<tr>
<td><a target="_blank_" href="tpl-card.prg">tpl-card.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('tpl-card.prg')"></td>
<td>Templates. Example use templates and native code</td>
</tr>
<tr>
<td><a target="_blank_" href="combo-font.prg">combo-font.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('combo-font.prg')"></td>
<td>Fonts</td>
</tr>
<tr>
<td><a target="_blank_" href="get_auto_sel.prg">get_auto_sel.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('get_auto_sel.prg')"></td>
<td>Get autocomplete (ajax)</td>
</tr>
<tr>
<td><a target="_blank_" href="folder.prg">folder.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('folder.prg')"></td>
<td>Folders</td>
</tr>
<tr>
<td><a target="_blank_" href="browse.prg">browse.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('browse.prg')"></td>
<td>Browse. Basic example</td>
</tr>
<tr>
<td><a target="_blank_" href="browse-ajax.prg">browse-ajax.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('browse-ajax.prg')"></td>
<td>Browse + ajax</td>
</tr>
<tr>
<td><a target="_blank_" href="browse-full.prg">browse-full.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('browse-full.prg')"></td>
<td>Browse full</td>
</tr>
<tr>
<td><a target="_blank_" href="button-upload-ext.prg">button-upload-ext.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('button-upload-ext.prg')"></td>
<td>Upload. Example of file upload with event control</td>
</tr>
<tr>
<td><a target="_blank_" href="msginfo.prg">msginfo.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('msginfo.prg')"></td>
<td>Javascript. MsgInfo() example</td>
</tr>
<tr>
<td><a target="_blank_" href="msgserver.prg">msgserver.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('msgserver.prg')"></td>
<td>Javascript. MsgServer() example, request data to the server via ajax</td>
</tr>
<tr>
<td><a target="_blank_" href="msgnotify.prg">msgnotify.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('msgnotify.prg')"></td>
<td>Javascript. MsgNotify() example, notification messages</td>
</tr>
<tr>
<td><a target="_blank_" href="maqueta.prg">maqueta.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('maqueta.prg')"></td>
<td>Example screen with controls</td>
</tr>
<tr>
<td><a target="_blank_" href="phone-login.prg">phone-login.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('phone-login.prg')"></td>
<td>Example for smartphone</td>
</tr>
<tr>
<td><a target="_blank_" href="spaguetti.prg">spaguetti.prg</a></td>
<td align="center" style="cursor:pointer;"><img src="images/code.png" onclick="View('spaguetti.prg')"></td>
<td>App example</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div> <!-- /container -->
<div id="mycode">
<div id="mycodebar">
<img src="images/code.png" style="cursor:pointer;" onclick="EditorHide()">
<small id='filename'></small>
</div>
<div id="code"></div>
</div>
<script src="ace/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("code");
editor.session.setMode("ace/mode/javascript");
editor.setTheme("ace/theme/twilight");
editor.getSession().setUseWorker(false);
editor.setOptions( {
fontSize: "12pt",
readOnly: true,
selectionStyle: "text", // "line"|"text"
highlightActiveLine: true,
showPrintMargin: true,
printMarginColumn: 80,
showLineNumbers: true,
showGutter: true,
displayIndentGuides: false,
tooltipFollowsMouse: false,
enableBasicAutocompletion:true,
})
function View( cFile ) {
$.get( 'read.prg', cFile, function(data, status){
editor.setValue(data,1)
$('#filename').html( cFile )
$('#mycode').show()
})
}
function EditorHide() {$('#mycode').hide() }
</script>
</body></html>