922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
|
** the id zTableId by clicking.
**
** The javascript is derived from:
**
** http://www.webtoolkit.info/sortable-html-table.html
**
*/
static void output_table_sorting_javascript(const char *zTableId){
@ <script>
@ function SortableTable(tableEl){
@ this.tbody = tableEl.getElementsByTagName('tbody');
@ this.sort = function (cell) {
@ var column = cell.cellIndex;
@ this.sortIndex = column;
@ var newRows = new Array();
|
|
|
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
|
** the id zTableId by clicking.
**
** The javascript is derived from:
**
** http://www.webtoolkit.info/sortable-html-table.html
**
*/
void output_table_sorting_javascript(const char *zTableId){
@ <script>
@ function SortableTable(tableEl){
@ this.tbody = tableEl.getElementsByTagName('tbody');
@ this.sort = function (cell) {
@ var column = cell.cellIndex;
@ this.sortIndex = column;
@ var newRows = new Array();
|