Location: PHPKode > projects > ConCentric Event Planning Software > CC/system/application/views/concentric/locationSetups/locationSetups_grid.php
<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"> &nbsp; sort by:&nbsp; </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 ($locationSetups_list->result_array() as $locationSetup) {
			$bgColor = '#' . $locationSetup['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)."/".$locationSetup["id"]; ?>" >Edit</a>
			&nbsp;&nbsp;&nbsp;
			<a href = "<?= site_url($delete_url)."/".$locationSetup["id"]; ?>" >Delete</a>
		</td>
		<td align="left" nowrap="nowrap"><?= $locationSetup['id']; ?></td>
		<td align="left" nowrap="nowrap"><?= $locationSetup['name']; ?></td>
		<td align="left" nowrap="nowrap" style="background-color: <?= $bgColor; ?>"><?= $locationSetup['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>

Return current item: ConCentric Event Planning Software