Improve Sorttable

This commit is contained in:
Dany De Bontridder 2016-12-30 18:45:47 +01:00
parent bfb4aa3fe6
commit ff1aaca93c
3 changed files with 8 additions and 7 deletions

BIN
html/image/delete.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

View file

@ -121,7 +121,8 @@ sorttable = {
this.removeChild(document.getElementById('sorttable_sortfwdind'));
sortrevind = document.createElement('span');
sortrevind.id = "sorttable_sortrevind";
sortrevind.innerHTML = stIsIE ? '&nbsp<font face="webdings">5</font>' : '&nbsp;&#x25B4;';
// sortrevind.innerHTML = stIsIE ? '&nbsp<font face="webdings">5</font>' : '&nbsp;&#x25B4;';
sortrevind.innerHTML = '<img src="image/down.gif">';
this.appendChild(sortrevind);
return;
}
@ -134,7 +135,8 @@ sorttable = {
this.removeChild(document.getElementById('sorttable_sortrevind'));
sortfwdind = document.createElement('span');
sortfwdind.id = "sorttable_sortfwdind";
sortfwdind.innerHTML = stIsIE ? '&nbsp<font face="webdings">6</font>' : '&nbsp;&#x25BE;';
// sortfwdind.innerHTML = stIsIE ? '&nbsp<font face="webdings">6</font>' : '&nbsp;&#x25BE;';
sortfwdind.innerHTML = '<img src="image/up.gif">';
this.appendChild(sortfwdind);
return;
}
@ -155,7 +157,8 @@ sorttable = {
this.className += ' sorttable_sorted';
sortfwdind = document.createElement('span');
sortfwdind.id = "sorttable_sortfwdind";
sortfwdind.innerHTML = stIsIE ? '&nbsp<font face="webdings">6</font>' : '&nbsp;&#x25BE;';
// sortfwdind.innerHTML = stIsIE ? '&nbsp<font face="webdings">6</font>' : '&nbsp;&#x25BE;';
sortfwdind.innerHTML = '<img src="image/up.gif">';
this.appendChild(sortfwdind);
// build an array to sort. This is a Schwartzian transform thing,

View file

@ -34,10 +34,8 @@
<?php echo _("Quick Code")?>
<?php echo HtmlInput::infobulle(17)?>
</th>
<th class="sorttable_sorted_reverse">
<th >
<?php echo _("Nom")?>
<span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span>
</th>
<th>
<?php echo _("Poste Comptable")?>
@ -47,7 +45,7 @@
<?php echo _("Catégorie")?>
</th>
<?php endif; ?>
<th>
<th class="sorttable_nosort">
<?php echo _("Selection")?>
</th>
</tr>