51 lines
1.9 KiB
PHTML
51 lines
1.9 KiB
PHTML
<?php
|
|
$odd_row = true;
|
|
// for every column present in table
|
|
for (
|
|
$column_index = 0, $nb = count($columnNames);
|
|
$column_index < $nb;
|
|
$column_index++
|
|
): ?>
|
|
<tr class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
|
|
<?php $odd_row = !$odd_row; ?>
|
|
<!-- If 'Function' column is present -->
|
|
<?php if ($geomColumnFlag): ?>
|
|
<?php echo PMA\Template::get('geom_func')
|
|
->render(array(
|
|
'column_index' => $column_index
|
|
)); ?>
|
|
<?php endif; ?>
|
|
<!-- Displays column's name, type, collation and value -->
|
|
<th>
|
|
<?php echo htmlspecialchars($columnNames[$column_index]); ?>
|
|
</th>
|
|
<?php $properties = $self->getColumnProperties($column_index, $column_index); ?>
|
|
<td>
|
|
<?php echo htmlspecialchars($properties['type']); ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $properties['collation']; ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $properties['func']; ?>
|
|
</td>
|
|
<!-- here, the data-type attribute is needed for a date/time picker-->
|
|
<td data-type="<?php echo htmlspecialchars($properties['type']); ?>">
|
|
<?php echo $properties['value']; ?>
|
|
</td>
|
|
</tr>
|
|
<!-- Displays hidden fields -->
|
|
<tr>
|
|
<td>
|
|
<input type="hidden"
|
|
name="criteriaColumnNames[<?php echo $column_index; ?>]"
|
|
value="<?php echo htmlspecialchars($columnNames[$column_index]); ?>" />
|
|
<input type="hidden"
|
|
name="criteriaColumnTypes[<?php echo $column_index; ?>]"
|
|
value="<?php echo htmlspecialchars($columnTypes[$column_index]); ?>" />
|
|
<input type="hidden"
|
|
name="criteriaColumnCollations[<?php echo $column_index; ?>]"
|
|
value="<?php echo $columnCollations[$column_index]; ?>" />
|
|
</td>
|
|
</tr>
|
|
<?php endfor; ?> |