<form method="post" name="form3" action="taskdetails.php"> <input type="hidden" name="action" value="deleteattach"> <input type="hidden" name="id" value=""> <tr class="light"> <td><?php echo $lang['common_attachment']; ?> </td> <td> <table border="0" cellpadding="2" cellspacing="1" width="100%"> <?php while ($a = current($taskInst->attachments)) { $attachment = new attachment($a); echo "<tr class=light>\n"; echo "<td><a href=\"" . tool::encodeUrl("fileget.php?created=" . $attachment->created . "&filename=" . $attachment->name) . "\" title=\"" . $lang['common_open'] . " " . $attachment->name . " " . $lang['common_inANewWindow'] . "\">" . $attachment->name . "</a></td>\n"; echo "<td>" . $attachment->getSize() . "</td>\n"; ?> <td align=right><a href="javascript:document.form3.id.value='<?php echo $a; ?> ';document.form3.submit()"><img src="grafx/delete.gif" onClick="return Check();" width="16" height="15" border="0" title="<?php echo $lang['tasks_deleteThisJob']; ?> "></a></td><?php next($taskInst->attachments); echo "</tr>\n"; } ?> </table> </td> </tr>