PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]

Source for file index.phtml

Documentation is available at index.phtml

  1. <h1>Listing <?php echo $model_name_plural ?></h1>
  2.  
  3. <table border="0" cellpadding="2" cellspacing="2">
  4. <?php if(count($models))?> 
  5.     <tr> 
  6.         <?php foreach($content_columns as $column)?>
  7.             <th><?php echo $column['human_name'?></th>
  8.         <?php endforeach?>
  9.     </tr> 
  10.     <?php foreach($models as $model)?>
  11.         <tr>
  12.             <?php foreach($model->content_columns as $column)?>
  13.                 <td><?php echo $model->send($column['name']?></td>
  14.             <?php endforeach?>
  15.             <td><?php echo link_to("Show",   array(":action" => "show",   ":id" => $model)) ?></td>
  16.             <td><?php echo link_to("Edit",   array(":action" => "edit",   ":id" => $model)) ?></td>
  17.             <td><?php echo link_to("Delete"array(":action" => "delete"":id" => $model)array("confirm" => "Are you sure?")) ?></td>
  18.         </tr>
  19.     <?php endforeach?>
  20. <?php else?>
  21.     <tr>
  22.         <td>No <?php echo $model_name_plural ?> found.</td>
  23.     </tr>
  24. <?php endif?>
  25. </table>
  26.  
  27. <br />
  28.  
  29. <?php echo link_to("New ".$model_object_namearray(":action" => "add")) ?>

Documentation generated on Mon, 21 May 2007 22:28:36 -0600 by phpDocumentor 1.3.2