Blame view

www/js/tablesorter/tests/cell.metadata.html 2.62 KB
ef60cd4d   Administrator   first commit
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
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  
  <html>
  <head>
  <title>tablesorter 2.0-dev demo, multi column sorting</title>
  	
  	<style type="text/css">@import "assets/css/default.css";</style>
  	
  	<script type="text/javascript" src="../jquery-latest.js"></script>
  	<script type="text/javascript" src="../jquery.metadata.js"></script>
  	<script type="text/javascript" src="../jquery.tablesorter.js"></script>
  	<script type="text/javascript">
  	
  	$(function() {
  		$("table").tablesorter();
  	});
  	
  		</script>	
  </head>
  
  <body>
  <h1>tablesorter 2.0-dev demo, multi column sorting</h1>
  <p>
  To select more then one column to sort by, hold down your shift key and press the "headers".
  Pressing a all ready sorted column while holding down shift will reverse the order.
  </p>
  <p>
  Releasing the shift key and pressing a column will result in a one column sort.
  </p>
  
  <p>Not big enough? <a href="#" class="append">Add 500 random rows of data </a> (can be clicked many times, more then a 1000 rows can be slow)</p>
  
  <table id="large" cellspacing="0">
  	
  	<thead>
  
  		<tr>
  			<th>Name</th>
  			<th>Major</th>
  			<th>Sex</th>
  			<th class="{sorter:'metadata'}">English</th>
  			<th>Japanese</th>
  			<th>Calculus</th>
  			<th>Geometry</th>
  			<th>Geometry</th>
  		</tr>
  	</thead>
  	<tfoot>
  		<tr>
  			<th>Name</th>
  
  			<th>Major</th>
  			<th>Sex</th>
  			<th>English</th>
  			<th>Japanese</th>
  			<th>Calculus</th>
  			<th>Geometry</th>
  			<th>Geometry</th>
  
  		</tr>
  	</tfoot>
  	<tbody>
  		<tr>
  			<td>Student01</td>
  			<td>Languages</td>
  			<td>male</td>
  
  			<td class="{sortValue: 0}">80</td>
  			<td>70</td>
  			<td>75</td>
  			<td>80</td>
  			<td><select><option>brian</option><option>christian</option></select></td>
  		</tr>
  		<tr>
  			<td>Student02</td>
  
  			<td>Mathematics</td>
  			<td>male</td>
  			<td class="{sortValue: 1}">90</td>
  			<td>88</td>
  			<td>100</td>
  			<td>90</td>
  <td><select><option>brian</option><option>christian</option></select></td>
  		</tr>
  		<tr>
  			<td>Student03</td>
  			<td>Languages</td>
  			<td>female</td>
  			<td class="{sortValue: 2}">85</td>
  			<td>95</td>
  
  			<td>80</td>
  			<td>85</td>
  			<td><select><option>brian</option><option>christian</option></select></td>
  		</tr>
  		<tr>
  			<td>Student04</td>
  			<td>Languages</td>
  			<td>male</td>
  
  			<td class="{sortValue: 3}">60</td>
  			<td>55</td>
  			<td>100</td>
  			<td>100</td>
  			<td><select><option>angus</option><option>zebra</option></select></td>
  		</tr>
  	</tbody>
  </table>
  	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  </script>
  <script type="text/javascript">
  _uacct = "UA-2189649-1";
  urchinTracker();
  </script>
  	</body>
  </html>