Location: PHPKode > projects > ConCentric Event Planning Software > CC/system/application/views/concentric/eventrooms/eventrooms_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>
		<?php foreach($sort_url as $urlname => $url) : ?>
			<a href="<?=site_url($url)?>">
			<?php if ($sort['name'] == $urlname) : ?>
				<?= ($sort['direction'] == 'ASC') ? $this->page->icon('arrow_up') : $this->page->icon('arrow_down');?>
				<b>
			<?php endif; ?>
			Sort by <?=$urlname?>
			<?=($sort['name'] == $urlname) ? '</b>' : ''; ?>
			</a>
		<?php endforeach; ?>
	</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'>
		EventName
	</th>
	<th VALIGN='MIDDLE' ALIGN='CENTER'  class='tbl_headercell'>
		RoomName
	</th>

</tr>
</thead>
<tbody  class="scrollingContent">

	<?
		$i = 0;
		foreach ($eventrooms_list->result_array() as $row) {
			$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)."/".$row["id"]; ?>" >Edit</a>
			&nbsp;&nbsp;&nbsp;
			<a href = "<?= site_url($delete_url)."/".$row["id"]; ?>" >Delete</a>
		</td>
		<td align="left" nowrap="nowrap"><?= $row['id']; ?></td>
		<td align="left" nowrap="nowrap"><?= $row['event_name']; ?></td>
		<td align="left" nowrap="nowrap"><?= $row['room_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