| 1 |
<?php |
| 2 |
/* |
| 3 |
Getting backup row class. |
| 4 |
Class can be "alt-backup-row" for odd index row or "backup-row" for even index row. |
| 5 |
*/ |
| 6 |
// Deinfe Classes. |
| 7 |
$CSSClasses = array( |
| 8 |
0 => 'backup-row', |
| 9 |
1 => 'alt-backup-row', |
| 10 |
); |
| 11 |
// Select row class based on index. |
| 12 |
$rowClassIndex = $rowIndex & 0x01; // $rowIndex passed through getTemplates $params. |
| 13 |
$rowClass = " {$CSSClasses[$rowClassIndex]}"; |
| 14 |
?> |
| 15 |
<li id="backup-row-<?php echo $this->currentBackup->id ?>" class="backup-row<?php echo $rowClass ?>"> |
| 16 |
<span class="backup-name"><?php echo $this->currentBackup->name ?></span> <?php echo cssJSToolbox::getText('By') ?> <?php echo $this->currentBackup->owner->display_name ?> @ <?php echo $this->currentBackup->created ?> |
| 17 |
<span class="backup-tasks"> |
| 18 |
<a class="restore" href="#<?php echo $this->currentBackup->id ?>">Restore</a> | <a class="delete" href="#<?php echo $this->currentBackup->id ?>">Delete</a> |
| 19 |
</span> |
| 20 |
</li> |