| 1 |
<?php
|
| 2 |
/* $Id: weight-view-weight-form.tpl.php,v 1.2 2008/11/13 18:35:39 nancyw Exp $
|
| 3 |
/**
|
| 4 |
* @file
|
| 5 |
* Views template for Weight module.
|
| 6 |
*/
|
| 7 |
?>
|
| 8 |
|
| 9 |
<table class="<?php print $class; ?>" id="<?php print $id; ?>">
|
| 10 |
<thead>
|
| 11 |
<tr>
|
| 12 |
<?php if (count($header)): ?>
|
| 13 |
<?php foreach ($header as $field => $label): ?>
|
| 14 |
<th class="views-field views-field-<?php print $fields[$field]; ?>">
|
| 15 |
<?php print $label; ?>
|
| 16 |
</th>
|
| 17 |
<?php endforeach; ?>
|
| 18 |
<?php endif; ?>
|
| 19 |
</tr>
|
| 20 |
</thead>
|
| 21 |
<tbody>
|
| 22 |
<?php if (count($rows)): ?>
|
| 23 |
<?php foreach ($rows as $count => $row): ?>
|
| 24 |
<tr class="<?php print ($count % 2 == 0) ? 'even' : 'odd';?> draggable">
|
| 25 |
<?php foreach ($row as $field => $content): ?>
|
| 26 |
<td class="views-field views-field-<?php print isset($fields[$field]) ? $fields[$field] : '' ?>">
|
| 27 |
<?php print $content; ?>
|
| 28 |
</td>
|
| 29 |
<?php endforeach; ?>
|
| 30 |
</tr>
|
| 31 |
<?php endforeach; ?>
|
| 32 |
<?php endif; ?>
|
| 33 |
</tbody>
|
| 34 |
</table>
|
| 35 |
<?php print $submit; ?>
|