Welcome Guest, Not a member yet? Register   Sign In
adding class to html table row
#1

[eluser]intsurfer[/eluser]
Hi!
I've changed the Table.php library to set class for rows. I googled how to do it, but i decided to make some changes in the library file.
This is code from my project:
Code:
foreach($res as $item){
//......
$this->table->add_row($item['price'],$celldb,$cellde, $cell1);
$this->table->add_row_class($item['center_id'].'_'.$item['spec_id']);
}
result is:
Code:
<tbody>
<tr class="6_1">
<td>100.00</td><td>01.01.2012</td><td>00.00.0000</td></tr>
<tr class="2_4">
<td>150.00</td><td>01.04.2012</td><td>00.00.0000</td></tr>
</tbody>
File is here


Messages In This Thread
adding class to html table row - by El Forum - 07-11-2012, 12:58 PM
adding class to html table row - by El Forum - 07-11-2012, 01:47 PM
adding class to html table row - by El Forum - 07-11-2012, 03:12 PM
adding class to html table row - by El Forum - 07-11-2012, 06:01 PM
adding class to html table row - by El Forum - 07-11-2012, 06:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB