Location: PHPKode > projects > ConCentric Event Planning Software > CC/system/application/views/concentric/participants/participants_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'>
		Name
	</th>
	<th VALIGN='MIDDLE' ALIGN='CENTER'  class='tbl_headercell'>
		SortedName
	</th>
	<th VALIGN='MIDDLE' ALIGN='CENTER'  class='tbl_headercell'>
		EquipmentQ
	</th>
	<th VALIGN='MIDDLE' ALIGN='CENTER'  class='tbl_headercell'>
		ActiveQ
	</th>
	<th VALIGN='MIDDLE' ALIGN='CENTER'  class='tbl_headercell'>
		FakeQ
	</th>

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

      <?
         $i = 0;
         foreach ($participants_list->result_array() as $participant) {
            $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)."/".$participant["id"]; ?>" >Edit</a>
            &nbsp;&nbsp;&nbsp;
            <a href = "<?= site_url($delete_url)."/".$participant["id"]; ?>" >Delete</a>
         </td>
   <td align="left" nowrap="nowrap"><?= $participant['id']; ?></td>
   <td align="left" nowrap="nowrap"><?= $participant['name']; ?></td>
   <td align="left" nowrap="nowrap"><?= $participant['sortedName']; ?></td>
   <td align="left" nowrap="nowrap"><?= ($participant['equipmentQ']) ? 'Yes' : 'No'; ?></td>
   <td align="left" nowrap="nowrap"><?= ($participant['activeQ']) ? 'Yes' : 'No'; ?></td>
   <td align="left" nowrap="nowrap"><?= ($participant['hideQ']) ? 'Yes' : 'No'; ?></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