<?php
// auto-generated by sfPropelCrud
// date: 2007/06/12 16:50:00
?>
<h1>cat</h1>

<table cellspacing="0" class="sf_admin_list">
<thead>
<tr>
  <th>Cg</th>
  <th>Cg name</th>
  <th>Cg parentid</th>
  <th>Cg child</th>
  <th>Cg family</th>
  <th>Cg desc</th>
  <th>Cg visited</th>
  <th>Cg image</th>
</tr>
</thead>
<tbody>
<?php foreach ($tblcategorys as $tblcategory): ?>
<tr class="sf_admin_row_0">
    <td><?php echo link_to($tblcategory->getCgId(), 'cat/show?cg_id='.$tblcategory->getCgId()) ?></td>
      <td>
		<?php 
			for($i=0; $i<substr_count($tblcategory->getCgFamily(), "/"); $i++) {
				echo '....';
			}
			echo $tblcategory->getCgName() 
		 ?>
	  </td>
      <td><?php echo $tblcategory->getCgParentid() ?></td>
      <td><?php echo $tblcategory->getCgChild() ?></td>
      <td><?php echo $tblcategory->getCgFamily() ?></td>
      <td><?php echo $tblcategory->getCgDesc() ?></td>
      <td><?php echo $tblcategory->getCgVisited() ?></td>
      <td><?php echo $tblcategory->getCgImage() ?></td>
  </tr>
<?php endforeach; ?>
</tbody>
</table>

<?php echo link_to ('create', 'cat/create') ?>
