weight-view-weight-form.tpl.php in Weight 7
Views template for Weight module.
File
weight-view-weight-form.tpl.phpView source
<?php
/**
* @file
* Views template for Weight module.
*/
?>
<table class="<?php
print $class;
?>" id="<?php
print $id;
?>">
<?php
if (!empty($title)) {
?>
<caption><?php
print $title;
?></caption>
<?php
}
?>
<thead>
<tr>
<?php
if (count($header)) {
?>
<?php
foreach ($header as $field => $label) {
?>
<th class="views-field views-field-<?php
print $fields[$field];
?>">
<?php
print $label;
?>
</th>
<?php
}
?>
<?php
}
?>
</tr>
</thead>
<tbody>
<?php
if (count($rows)) {
?>
<?php
foreach ($rows as $count => $row) {
?>
<tr class="<?php
print ($count + 1) % 2 == 0 ? 'even' : 'odd';
?> draggable">
<?php
foreach ($row as $field => $content) {
?>
<td class="views-field views-field-<?php
print isset($fields[$field]) ? $fields[$field] : '';
?>">
<?php
print $content;
?>
</td>
<?php
}
?>
</tr>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
<?php
print $submit;