Remove odd CSS class logic from template files
Odd CSS class is no longer needed, background coloring is now done with CSS pseudo-class. Signed-off-by: Patric Gustafsson <patricjgustafsson@outlook.com>
This commit is contained in:
parent
3ecfa98907
commit
8e6202bbc9
@ -1,14 +1,12 @@
|
||||
<?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 <?= $odd_row ? 'odd' : 'even'; ?>">
|
||||
<?php $odd_row = !$odd_row; ?>
|
||||
<!-- If 'Function' column is present -->
|
||||
<tr class="noclick">
|
||||
<!-- If 'Function' column is present trying to change comment -->
|
||||
<?php if ($geomColumnFlag): ?>
|
||||
<?= PMA\libraries\Template::get('table/search/geom_func')
|
||||
->render(array(
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
$odd_row = true;
|
||||
$type = $collation = $func = $value = array();
|
||||
/**
|
||||
* Get already set search criteria (if any)
|
||||
@ -17,8 +16,7 @@ for ($i = 0; $i < 4; $i++): ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr class="noclick <?= ($odd_row ? 'odd' : 'even'); ?>">
|
||||
<?php $odd_row = ! $odd_row; ?>
|
||||
<tr class="noclick">
|
||||
<!-- Select options for column names -->
|
||||
<th>
|
||||
<select name="criteriaColumnNames[]" id="tableid_<?= $i; ?>" >
|
||||
|
||||
@ -36,7 +36,6 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $odd_row = true; ?>
|
||||
<?php for (
|
||||
$column_index = 0, $nb = count($_columnNames);
|
||||
$column_index < $nb;
|
||||
@ -59,8 +58,7 @@
|
||||
<?php
|
||||
$fieldpopup = $_columnNames[$column_index];
|
||||
$foreignData = PMA_getForeignData($_foreigners, $fieldpopup, false, '', '' );?>
|
||||
<tr class="noclick <?= ($odd_row ? 'odd' : 'even'); ?>">
|
||||
<?php $odd_row = ! $odd_row; ?>
|
||||
<tr class="noclick">
|
||||
<!-- Display column Names -->
|
||||
<th><?= htmlspecialchars($_columnNames[$column_index]); ?></th>
|
||||
<!-- Null checkbox if column can be null -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user