| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | <?php// $Id: views-view-table.tpl.php,v 1.8 2009/01/28 00:43:43 merlinofchaos Exp $/** * @file views-view-table.tpl.php * Template to display a view as a table. * * - $title : The title of this group of rows.  May be empty. * - $header: An array of header labels keyed by field id. * - $fields: An array of CSS IDs to use for each field id. * - $class: A class or classes to apply to the table, based on settings. * - $row_classes: An array of classes to apply to each row, indexed by row *   number. This matches the index in $rows. * - $rows: An array of row items. Each row is an array of content. *   $rows are keyed by row number, fields within rows are keyed by field ID. * @ingroup views_templates */?><i>   Note: To get complete annotation for a sequence, click on the sequence name.</i><table class="tripal_search_feature-table  tripal-table tripal-table-horz <?php print $class; ?>">  <?php if (!empty($title)) : ?>    <caption><?php print $title; ?></caption>  <?php endif; ?>  <thead>    <tr class="tripal_search_feature-table-odd-row tripal-table-odd-row">      <?php foreach ($header as $field => $label): ?>        <th class="views-field views-field-<?php print $fields[$field]; ?>">          <?php print $label; ?>        </th>      <?php endforeach; ?>    </tr>  </thead>  <tbody>    <?php foreach ($rows as $count => $row):     			$rowclass = "";    			if ($count % 2 == 0) {    				$rowclass = "tripal_search_feature-table-even-row tripal-table-even-row";    			} else {    				$rowclass = "tripal_search_feature-table-odd-row tripal-table-odd-row";    			}    ?>      <tr class="<?php print $rowclass?> <?php print implode(' ', $row_classes[$count]); ?>">        <?php foreach ($row as $field => $content): ?>          <td class="views-field views-field-<?php print $fields[$field]; ?>">            <?php print $content; ?>          </td>        <?php endforeach; ?>      </tr>    <?php endforeach; ?>  </tbody></table>
 |