<?php foreach ($dwcaArr as $k => $v) { ?> <tr> <td><?php echo '<a href="../misc/collprofiles.php?collid=' . $v['collid'] . '">' . str_replace(' DwC-Archive', '', $v['title']) . '</a>'; ?> </td> <td><?php echo substr($v['description'], 24); ?> </td> <td class="nowrap"> <?php $filePath = 'dwc' . substr($v['link'], strrpos($v['link'], '/')); $sizeStr = $dwcaManager->humanFilesize($filePath); echo '<a href="' . $filePath . '">DwC-A (' . $sizeStr . ')</a>'; if ($isAdmin) { ?> <form action="datapublisher.php" method="post" style="display:inline;" onsubmit="return window.confirm('Are you sure you want to delete this archive?');"> <input type="hidden" name="colliddel" value="<?php echo $v['collid']; ?> "> <input type="image" src="../../images/del.png" name="action" value="DeleteCollid" title="Delete Archive" style="width:15px;" /> </form> <?php } ?> </td> <td class="nowrap"><?php