Mark partition if it has sub partitions
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
e6756427e4
commit
8e70f48817
@ -199,7 +199,7 @@ class PMA_Partition extends PMA_SubPartition
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function hasSubParitions()
|
||||
public function hasSubPartitions()
|
||||
{
|
||||
return ! empty($this->subPartitions);
|
||||
}
|
||||
|
||||
@ -28,8 +28,9 @@
|
||||
);
|
||||
?>
|
||||
<?php foreach ($partitions as $partition): ?>
|
||||
<tr class="noclick <?php echo $odd ? 'odd' : 'even' ?>">
|
||||
<?php if ($partition->hasSubParitions()): ?>
|
||||
<?php $hasSubPartitions = $partition->hasSubPartitions(); ?>
|
||||
<tr class="noclick <?php echo $odd ? 'odd' : 'even'; echo $hasSubPartitions ? ' marked' : '';?>">
|
||||
<?php if ($hasSubPartitions): ?>
|
||||
<td><?php echo $partition->getOrdinal(); ?></td>
|
||||
<td></td>
|
||||
<?php else: ?>
|
||||
@ -63,7 +64,7 @@
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if ($partition->hasSubParitions()): ?>
|
||||
<?php if ($hasSubPartitions): ?>
|
||||
<?php foreach ($partition->getSubParitions() as $subParition): ?>
|
||||
<tr class="noclick <?php echo $odd ? 'odd' : 'even' ?>">
|
||||
<td></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user