datatable supports offset/limit server side fetching of table data. js events are added onto each row. need to fix ordering, searching.

This commit is contained in:
Naomi 2011-01-25 18:41:59 -05:00
parent 057b1a08a6
commit a0ecbecf3b
10 changed files with 108 additions and 294 deletions

View file

@ -1,32 +1,17 @@
<?php
if($this->files) {
?>
<table id="library_display">
<tr>
<th><span class="title">Title</span></th>
<th><span class="artist">Creator</span></th>
<th><span class="album">Album</span></th>
<th><span class="track">Track</span></th>
<th><span class="length">Length</span></th>
<th><span class="type">Type</span></th>
</tr>
<?php
echo $this->partialLoop('library/libraryTablePartial.phtml', $this->files);
?>
</table>
<?php
}
else {
echo "No Results";
}
?>
<?php
echo $this->paginationControl($this->paginator,
'Sliding',
'library/paginator.phtml');
?>
<div>
<table id="library_display">
<thead>
<tr>
<th>Id</th>
<th>Title</th>
<th>Creator</th>
<th>Album</th>
<th>Track</th>
<th>Length</th>
<th>Type</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>

View file

@ -5,5 +5,4 @@
<td><?php echo $this->album_title ?></td>
<td><?php echo $this->track_number ?></td>
<td><?php echo $this->length ?></td>
<td><?php echo $this->ftype ?></td>
</tr>