File: nx.html

package info (click to toggle)
kpax 20061019-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 848 kB
  • ctags: 1,007
  • sloc: lisp: 7,343; makefile: 93
file content (353 lines) | stat: -rw-r--r-- 9,259 bytes parent folder | download | duplicates (2)
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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>NX Web Application Style Demo</title>
  <link rel="stylesheet" type="text/css" href="nx.css" />
</head>

<body>

<h1>NX Web Application Style Demo</h1>
<p>
  Welcome to the NX Web Application Style Demo. 
  NX is a CSS style sheet that can be used to give HTML pages of Web Applications a certain look and feel.
  NX takes over some design cues from the NeXT GUI.
  The NX CSS was developed as part of the KPAX Common Lisp Web Application Framework.
</p>
<p>
  By default a web page is white, text is black.
  We use Helvetica (or the sans-serif font should Helvetica be unavailable) in size 13px.
  Paragraphs are are intended 10px and limited to 600px width for readability.
</p>

<h2>Labels</h2>
<p>
  NX uses a limited set of grayscale colors. Labels in rectangles with different backgrounds are one element of the NX look.
</p>
<span class="NX_black_label">This is a black label</span>
<span class="NX_gray_label">This is a gray label</span>

<h2>Panels</h2>
<p>
  Panels are used to group and optionally label a number of components.
</p>
<div class="NX_panel">
<span class="NX_title">The sw_vers command</span>
<div class="NX_border">
<p>
  The default width is 600px but can be overridden locally.
  This is the output of the <tt>sw_vers</tt> command:
</p>
<pre>
[sven@voyager:~/Tmp]$ vi /etc/httpd/kpax.conf 
[sven@voyager:~/Tmp]$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.3.5
BuildVersion:   7M34
</pre>
</div>
</div>

<h2>Buttons</h2>
<p>
  Buttons are implemented as styled links.
</p>
<div class="NX_button_group">
  <a class="NX_button" href="do?action=run" title="Run this script">Run Script</a>
  <a class="NX_button" href="do?action=run" title="Run another script">Run Another Script</a>
  <a class="NX_button" href="do?action=run" title="OK">OK</a>
  <A class="NX_button" href="do?action=run" title="Install Mac OS X Server 10.4">Install Mac OS X Server 10.4</a>
</div>
<p>
  An optional button group makes all buttons of an equal size (100 px), and centers their titles.
</p>
<div class="NX_equal_button_group">
  <a class="NX_button" href="do?action=run" title="Cancel">Cancel</a>
  <a class="NX_button" href="do?action=run" title="Don't Save">Don't Save</a>
  <a class="NX_button" href="do?action=run" title="Save">Save</a>
  <br /><!-- important-->
</div>
<h2>Menus</h2>
<p>
  Menus are a special case of buttons.
</p>

<h2>Tables</h2>
<p>
  NX uses clean and simple tables with thin borders.
</p>
<table class="NX_table" cellspacing="0">
  <tr>
    <th>Decimal</th>
    <th>Roman</th>
    <th>English</th>
    <th>French</th>
  </tr>
  <tr>
    <td>1</td>
    <td>I</td>
    <td>One</td>
    <td>Un</td>
  </tr>
  <tr>
    <td>2</td>
    <td>II</td>
    <td>Two</td>
    <td>Deux</td>
  </tr>
  <tr>
    <td>3</td>
    <td>III</td>
    <td>Three</td>
    <td>Trois</td>
  </tr>
  <tr>
    <td>4</td>
    <td>IV</td>
    <td>Four</td>
    <td>Quatre</td>
  </tr>
  <tr>
    <td>5</td>
    <td>V</td>
    <td>Five</td>
    <td>Cinq</td>
  </tr>
</table>
<p>
  The previous table had no width specification, the next one has a width of 100%.
  By using a special class on TR tags, you can have alternating row colors.
</p>
<table class="NX_table" width="100%" cellspacing="0">
  <tr>
    <th>Decimal</th>
    <th>Roman</th>
    <th>English</th>
    <th>French</th>
  </tr>
  <tr class="NX_odd_row">
    <td>1</td>
    <td>I</td>
    <td>One</td>
    <td>Un</td>
  </tr>
  <tr class="NX_even_row">
    <td>2</td>
    <td>II</td>
    <td>Two</td>
    <td>Deux</td>
  </tr>
  <tr class="NX_odd_row">
    <td>3</td>
    <td>III</td>
    <td>Three</td>
    <td>Trois</td>
  </tr>
  <tr class="NX_even_row">
    <td>4</td>
    <td>IV</td>
    <td>Four</td>
    <td>Quatre</td>
  </tr>
  <tr class="NX_odd_row">
    <td>5</td>
    <td>V</td>
    <td>Five</td>
    <td>Cinq</td>
  </tr>
</table>
<p>
  It is also possible to have buttons inside tables.
</p>
<table class="NX_table" cellspacing="0">
  <tr>
    <th>ID</th>
    <th>Person</th>
    <th>Actions</th>
  </tr>
  <tr class="NX_odd_row">
    <td>1</td>
    <td>Bill Clinton</td>
    <td valign="middle">
      <div class="NX_button_group">
      <a class="NX_button" href="do?action=view&id=1" title="View">View</a>
      <a class="NX_button" href="do?action=edit&id=1" title="Edit">Edit</a>
      <a class="NX_button" href="do?action=delete&id=1" title="Delete">Delete</a>
      </div>
    </td>
  </tr>
  <tr class="NX_even_row">
    <td>2</td>
    <td>Ronald Reagan</td>
    <td></td>
  </tr>
  <tr class="NX_odd_row">
    <td>3</td>
    <td>John Kennedy</td>
    <td></td>
  </tr>
  <tr class="NX_even_row">
    <td>4</td>
    <td>Richard Nixon</td>
    <td></td>
  </tr>
  <tr class="NX_odd_row">
    <td>5</td>
    <td>George Bush</td>
    <td></td>
  </tr>
</table>

<h2>Forms</h2>

<h2>Tabs</h2>

<h2>Login Panel</h2>
<p>
  As the login panel is for many applications the first thing the user sees,
  it should be styled well.
</p>
<center>
<div class="NX_login_panel" Align="center">
  <form>
    <div class="NX_title">Login</div>
    <div class="NX_fields" align="center">
      <table>
	<tr>
	  <td><label>Username:</label></td>
	  <td><input type="text" size="24"/></td>
	</tr>
	<tr>
	  <td><label>Password:</label></td>
	  <td><input type="password" size="24"/></td>
	</tr>
      </table>
    </div>
    <div class="NX_buttons"><a class="NX_button" href="document.forms[0].submit();" title="Login">Login</a></div>
  </form>
</div>
</center>
  <div class="NX_form">
      <form action='' method='post'>
        <input type='hidden' name='form-id' value='5' />
        <div class='title'>
          Demo User
        </div>
        <fieldset> <legend>Personal Info </legend>
        <div>
          <label>Fullname : </label>
          <input type='text' name='FULLNAME' value='' size='32' />
        </div>
        <br />
        <div>
          <label> <span class='required'> * </span>Username : </label>
          <input type='text' name='USERNAME' value='' size='10' />
        </div>
        <br />
        <div>
          <label>Password : </label>
          <input type='password' name='PASSWORD' value='' size='10' />
        </div>
        <br />
        <div>
          <label>Password : </label>
          <input type='password' name='PASSWORD2' value='' size='10' />
        </div>
        <br />
        <div class='cr'>
          <span class='cr'>Gender : </span> <label>
          <input type='radio' name='GENDER' value='MALE' />
          Male </label> <label>
          <input type='radio' name='GENDER' value='FEMALE' />
          Female </label>
        </div>
        <br />
        <div>
          <label> <span class='required'> * </span>Age : </label>
          <input type='text' name='AGE' value='0' size='4' />
        </div>
        <br />
        </fieldset> <fieldset> <legend>Admin Info </legend>
        <div>
          <label>Notes : </label>
          <textarea name='NOTES' rows='10' cols='40'>
          </textarea>
        </div>
        <br />
        <div class="chk">
          <label>
          <input type='checkbox' name='ENABLED-P' value='T' /> Enabled
          </label>
        </div>
        <br />
        </fieldset> 
        <fieldset><legend>Preferences </legend>
        <div class='cr'>
          <span class='cr'>Interests : </span>
          <label><input type='checkbox' name='INTERESTS' value='SEX' />Sex</label>
          <label><input type='checkbox' name='INTERESTS' value='DRUGS' />Drugs</label>
          <label> <input type='checkbox' name='INTERESTS' value='ROCK-AND-ROLL' />Rock-And-Roll</label>
          <label> <input type='checkbox' name='INTERESTS' value='HACKING' />Hacking</label>
        </div>
        <br />
        <div>
          <label>Language: </label>
          <select name='LANGUAGE'>
            <option value='ENGLISH'>
              English
            </option>
            <option value='FRENCH'>
              French
            </option>
            <option value='DUTCH'>
              Dutch
            </option>
            <option value='GERMAN'>
              German
            </option>
          </select>
        </div>
        <br />
        <div>
          <label>Music-Tastes: </label>
          <select name='MUSIC-TASTES' multiple='multiple'>
            <option value='ROCK'>
              Rock
            </option>
            <option value='POP'>
              Pop
            </option>
            <option value='PUNK'>
              Punk
            </option>
            <option value='ALTERNATIVE'>
              Alternative
            </option>
            <option value='JAZZ'>
              Jazz
            </option>
            <option value='NEW-WAVE'>
              New-Wave
            </option>
          </select>
        </div>
        <br />
        </fieldset>
        <div>
          <input type='hidden' name='ID' value='' />
        </div>
        <br />
        <div class='buttons'>
          <input type='submit' value='Create' />
        </div>
      </form>
  </div>

<h2>Footer</h2>
<p>
$Id: nx.html,v 1.8 2004/09/09 12:14:45 nicky Exp $
</p>
</body>
</html>