forked from tylerhall/Shine
-
Notifications
You must be signed in to change notification settings - Fork 2
/
yui.php
340 lines (316 loc) · 20.4 KB
/
yui.php
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Shine</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
<link rel="stylesheet" href="css/yuiapp.css" type="text/css">
<link id="theme" rel="stylesheet" href="css/tan_blue.css" type="text/css">
<script src="http://yui.yahooapis.com/3.0.0pr2/build/yui/yui-min.js" type="text/javascript"></script>
<script src="js/yuiapp.js" type="text/javascript"></script>
</head>
<body class="rounded">
<div id="doc3" class="yui-t6">
<div id="hd">
<?PHP include('inc/header.inc.php'); ?>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<h2>Hello, there.</h2>
<p><a href="http://github.com/tylerhall/yui-app-theme/">Shine</a> is a generic, skinnable layout for web applications.</p>
<p>What you're looking at is the basic page template. Because it's built on top of the <a href="http://developer.yahoo.com/yui/grids/">YUI Grids</a> foundation, you can easily change the page and column widths or even swap the columns around to suit your needs. Not only is it cross-browser compatible (we support all the major browsers including IE6), but it's super easy to extend as well.</p>
<p>It's particularly well suited for admin areas. You'll find most of the standard UI elements are styled and ready for you to use: blocks, tabbed modules, tables, lists, one and two column forms, etc. Just explore the page to see what's available. Pay particular attention to the theme and layout panels on the side. They'll let you preview alternate layouts and color schemes with one click.</p>
<p>Enjoy!</p>
<!-- Basic block -->
<div class="block">
<div class="hd">
<h2>Basic Block ← This can be an H2 or H3</h2>
</div>
<div class="bd">
<h2>Some H2 Text</h2>
<h3>Some H3 Text</h3>
<p>So this is a basic block module. It allows you to define a header using either an <h2> or <h3> tag. It can live in the main body column (here) or in the side bar to the right. It will automatically expand/shrink/do-the-right-thing where ever you put it — without requiring any markup changes.</p>
<p>Lorem ipsum dolor sit amet, <strong>some bold text</strong> <em>followed by some italic text</em> consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <span class="highlight">Highlighted text goes here</span>, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p class="small">small text</p>
<p class="gray">gray text</p>
<hr>
<p>Don't miss the <hr> here ↑</p>
</div>
</div>
<!-- Basic block with tabs -->
<div class="block tabs">
<div class="hd">
<h2>Fake Header For SEO Purposes</h2>
<ul>
<li class="active"><a href="#">Tabs</a></li>
<li><a href="#">Are</a></li>
<li><a href="#">Freaking</a></li>
<li><a href="#">Awesome</a></li>
<li><a href="#">Tab 5</a></li>
<li><a href="#">Tab 6</a></li>
</ul>
<div class="clear"></div>
</div>
<div class="bd">
<h3>Tab Example</h3>
<p>The tabs at the top of this block are made using an <ul> — they're super-useful for sub-navigation elements. If you look at the source, you'll also notice that right above them is an <h2> tag which is hidden from view. This lets you define a header for <abbr title="Search Engine Optimization">SEO</abbr> purposes without affecting your layout.</p>
<p>You can set the active tab by simply applying <code>class="active"</code> to the appropriate <li>.</p>
</div>
</div>
<!-- Basic block with spaced tabs -->
<div class="block tabs spaces">
<div class="hd">
<ul>
<li class="active"><a href="#">Tabs</a></li>
<li><a href="#">With</a></li>
<li><a href="#">Space</a></li>
<li><a href="#">Between</a></li>
<li><a href="#">Them</a></li>
<!-- <li><a href="#">(a really big tab that goes on far too long to show how they expand)</a></li> -->
</ul>
<div class="clear"></div>
</div>
<div class="bd">
<h3>Tab Example with Spaces</h3>
<p>These tabs use the <span class="highlight">exact same markup</span> as the previous example with an extra <code>class="spaces"</code> added to the containing block. This lets you switch between the two tab styles with very little fuss.</p>
</div>
</div>
<!-- Tables -->
<div class="block">
<div class="hd">
<h2>Table Example</h2>
</div>
<div class="bd">
<h3>Tables</h3>
<table>
<thead>
<tr>
<td><input type="checkbox" name="test10" id="test10" value=""></td>
<td>ID</td>
<td><a href="#">Login</a></td>
<td><a href="#">First Name</a></td>
<td><a href="#">Last Name</a></td>
<td> </td>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" name="test11" id="test11" value=""></td>
<td>1</td>
<td>susan</td>
<td>Susan</td>
<td>Delgado</td>
<td class="text-right"><a href="#">view</a> | <a href="#">edit</a> | <a href="#">delete</a></td>
</tr>
<tr>
<td><input type="checkbox" name="test12" id="test12" value=""></td>
<td>2</td>
<td>eddie</td>
<td>Edward</td>
<td>Dean</td>
<td class="text-right"><a href="#">view</a> | <a href="#">edit</a> | <a href="#">delete</a></td>
</tr>
<tr>
<td><input type="checkbox" name="test13" id="test13" value=""></td>
<td>3</td>
<td>jake</td>
<td>John</td>
<td>Chambers</td>
<td class="text-right"><a href="#">view</a> | <a href="#">edit</a> | <a href="#">delete</a></td>
</tr>
<tr>
<td><input type="checkbox" name="test14" id="test14" value=""></td>
<td>4</td>
<td>calvin</td>
<td>Calvin</td>
<td>Tower</td>
<td class="text-right"><a href="#">view</a> | <a href="#">edit</a> | <a href="#">delete</a></td>
</tr>
</tbody>
</table>
<ul class="pager">
<li><a href="#">« Prev</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
<li><a href="#">7</a></li>
<li><a href="#">8</a></li>
<li><a href="#">9</a></li>
<li><a href="#">10</a></li>
<li><a href="#">11</a></li>
<li><a href="#">12</a></li>
<li><a href="#">Next »</a></li>
</ul>
</div>
</div>
<!-- Forms -->
<div class="block">
<div class="hd">
<h2>Single Column Form Example</h2>
</div>
<div class="bd">
<h3>Attractive Looking Forms</h3>
<form action="#" method="get">
<p><label for="test1">Text field</label>
<input type="text" class="text" name="test1" id="test1" value="test1">
<span class="info">Ex: some text</span>
</p>
<p><label for="test2">Title <span class="validation">must be awesome</span></label>
<input type="text" class="text" name="test2" id="test2" value="Dude, it's like totally awesome.">
<span class="info">Ex: some more text</span>
</p>
<p><label for="test3">Text area</label>
<textarea class="text" name="test3" id="test3" rows="4" cols="40"></textarea>
<span class="info">Lots of text can go in here</span>
</p>
<p><input type="submit" name="test4" id="test4" value="Submit"> or <a href="#">Cancel</a></p>
</form>
</div>
</div>
<!-- Messages -->
<div class="block">
<div class="hd">
<h2>Message Style Examples</h2>
</div>
<div class="bd">
<h3>Messages</h3>
<p>Notifying the user with an error, warning, or notice is easy with these simple alert boxes.</p>
<p class="alert error">Error message</p>
<p class="alert warning">Warning message</p>
<p class="alert notice">Notice message</p>
</div>
</div>
<!-- Two column forms -->
<div class="block">
<div class="hd">
<h2>Two Column Form Example</h2>
</div>
<div class="bd">
<h3>2 Column Forms</h3>
<form action="#" method="get">
<div class="column left">
<p><label for="test5">Text field</label>
<input type="text" class="text" name="test5" id="test5" value="">
<span class="info">Ex: some text</span>
</p>
<p><label for="test6">Title <span class="validation">must be awesome</span></label>
<input type="text" class="text" name="test6" id="test6" value="Dude, it's like totally awesome.">
<span class="info">Ex: some more text</span>
</p>
<p><label for="test7">Text area</label>
<textarea class="text" name="test7" id="test7" rows="4" cols="40"></textarea>
<span class="info">Lots of text can go in here</span>
</p>
</div>
<div class="column right">
<p>I bet you thought two column forms would be difficult, eh? <span class="highlight">Don't worry</span>. We've got you covered.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="clear"></div>
<p><input type="submit" name="test8" id="test8" value="Submit"> or <a href="#">Cancel</a></p>
</form>
</div>
</div>
<!-- Lists -->
<div class="block">
<div class="hd">
<h2>Lists! Lists!</h2>
</div>
<div class="bd">
<h3>Get your lists here!</h3>
<p>Unordered List</p>
<ul class="list">
<li>Apple</li>
<li>Pear</li>
<li>Orange</li>
</ul>
<p>Ordered List</p>
<ol class="list">
<li>Mars</li>
<li>Jupiter</li>
<li>Venus</li>
</ol>
<p>Dictionary List</p>
<dl class="list">
<dt>Hollywood</dt>
<dd>Academy Awards</dd>
<dt>Television</dt>
<dd>Emmys</dd>
<dt>Broadway</dt>
<dd>Tonys</dd>
</dl>
</div>
</div>
</div></div>
</div>
<div id="sidebar" class="yui-b">
<!-- Sidebar block (same markup as basic block) -->
<div class="block">
<div class="hd">
<h2>Sidebar Block ← This is an H2 or H3</h2>
</div>
<div class="bd">
<p>This sidebar block uses the exact same markup as the main body blocks. This lets you move them around easily - as they automatically resize to fit the available space.</p>
</div>
</div>
<!-- Layout adjustment options (for demo purposes) -->
<div class="block">
<div class="hd">
<h2>Adjust Layout</h2>
</div>
<div class="bd">
<h3>Page Width</h3>
<ul id="page-width-switcher" class="biglist">
<li><a href="#" title="doc">750px centered</a></li>
<li><a href="#" title="doc2">950px centered</a></li>
<li><a href="#" title="doc4">974px fluid</a></li>
<li><a href="#" title="doc3" class="highlight">100% fluid</a></li>
</ul>
<h3>Layout</h3>
<ul id="page-layout-switcher" class="biglist">
<li><a href="#" title="yui-t1">Left sidebar, 160px</a></li>
<li><a href="#" title="yui-t2">Left sidebar, 180px</a></li>
<li><a href="#" title="yui-t3">Left sidebar, 300px</a></li>
<li><a href="#" title="yui-t4">Right sidebar, 180px</a></li>
<li><a href="#" title="yui-t5">Right sidebar, 240px</a></li>
<li><a href="#" title="yui-t6" class="highlight">Right sidebar, 300px</a></li>
<li><a href="#" title="yui-t0">Single Column</a></li>
</ul>
<h3>Color Scheme</h3>
<ul id="page-color-switcher" class="biglist">
<li><a href="#" title="tan_blue" class="highlight">Tan Blue</a></li>
<li><a href="#" title="red">Red</a></li>
<li><a href="#" title="green">Green</a></li>
<li><a href="#" title="purple">Purple</a></li>
<li><a href="#" title="aqua">Aqua</a></li>
</ul>
<h3>Rounded Corners</h3>
<p class="small gray">Rounded corners are <a href="http://blogs.msdn.com/ie/archive/2005/06/23/431980.aspx">not supported</a> in Internet Explorer.</p>
<ul id="page-corner-switcher" class="biglist">
<li><a href="#" title="on" class="highlight">On</a></li>
<li><a href="#" title="off">Off</a></li>
</ul>
</div>
</div>
<div class="block">
<div class="bd">
<h2>About yui-app-theme</h2>
<p>This project is based on the great idea and design work done by the <a href="http://github.com/pilu/web-app-theme/tree/master">web-app-theme</a> project on GitHub.</p>
<p>We loved the concept and simplicity of their web app template but needed it to be built with <a href="http://developer.yahoo.com/yui/">YUI</a> instead. So we decided to re-implement it ourselves.</p>
<p>The result is a clean, semantically structured layout built using <a href="http://developer.yahoo.com/yui/grids/">YUI Grids</a>. We hope you find it useful.</p>
</div>
</div>
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Strict" height="31" width="88"></a></p>
</div>
</div>
<div id="ft">
<p class="inner">Copyright © 2009 Blah Your Website</p>
</div>
</div>
</body>
</html>