<h2><?=$header?></h2>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th align="right">
<div class="buttons">
<a href="<?=site_url($add_url)?>" class="blue">
<?= $this->page->icon('add');?>
Add
</a>
</div>
</th>
</tr>
</table>
<br />
<table class="tbl" border="0" cellpadding="2" cellspacing="1" width="100%">
<thead>
<tr>
<th align="right" width="70"> sort by: </th>
<th VALIGN='MIDDLE' ALIGN='CENTER' class='tbl_headercell'>
Id
</th>
<th VALIGN='MIDDLE' ALIGN='CENTER' class='tbl_headercell'>
Name
</th>
<th VALIGN='MIDDLE' ALIGN='CENTER' class='tbl_headercell'>
Color
</th>
</tr>
</thead>
<tbody class="scrollingContent">
<?
$i = 0;
foreach ($roomSetups_list->result_array() as $roomSetup) {
$bgColor = '#' . $roomSetup['color_htmlCode'];
$i++;
if (($i%2)==0) { $rowColor = "#FFFFFF"; } else { $rowColor = "#C0C0C0"; }
?>
<tr style="background-color: <?= $rowColor; ?>">
<td align="center" nowrap="nowrap">
<a href = "<?= site_url($edit_url)."/".$roomSetup["id"]; ?>" >Edit</a>
<a href = "<?= site_url($delete_url)."/".$roomSetup["id"]; ?>" >Delete</a>
</td>
<td align="left" nowrap="nowrap"><?= $roomSetup['id']; ?></td>
<td align="left" nowrap="nowrap"><?= $roomSetup['name']; ?></td>
<td align="left" nowrap="nowrap" style="background-color: <?= $bgColor; ?>"><?= $roomSetup['color_name']; ?></td>
</tr>
<? } ?>
</tbody>
</table>
<br />
<div class="buttons">
<a href="<?=site_url($cancel_url)?>" class="blue">
<?= $this->page->icon('arrow_left');?>
Back
</a>
</div>