54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th>Principle</th>
|
|
<th>Created</th>
|
|
<th>Name</th>
|
|
<th>Type</th>
|
|
<th>Size</th>
|
|
<th class="actions">Actions</th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
|
|
$last_principle = array();
|
|
|
|
foreach ($archived as $attachment):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td>
|
|
<?php
|
|
if($attachment['Principle']['short_name']) {
|
|
echo $html->link($attachment['Principle']['short_name'], '/principles/view/'.$attachment['Principle']['id']);
|
|
}
|
|
else {
|
|
echo $html->link($attachment['Principle']['name'], '/principles/view/'.$attachment['Principle']['id']);
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php echo $time->nice($attachment['Attachment']['created']); ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $attachment['Attachment']['name']; ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $attachment['Attachment']['type']; ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $number->toReadAbleSize($attachment['Attachment']['size']); ?>
|
|
</td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('action' => 'view', $attachment['Attachment']['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $attachment['Attachment']['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</div>
|
|
|