echo ' </select> <input type="submit" value="' . translate('Update') . '" /> </form> </td> <tr>'; } } if (Doc::attachmentsEnabled() && $rss_view == false) { echo ' <tr> <td class="aligntop bold">' . translate('Attachments') . ':</td> <td>'; $attList = new AttachmentList($id); for ($i = 0; $i < $attList->getSize(); $i++) { $a = $attList->getDoc($i); echo ' ' . $a->getSummary() . ($is_admin || $login == $a->getLogin() || user_is_assistant($login, $a->getLogin()) || $login == $create_by || user_is_assistant($login, $create_by) ? ' [<a href="docdel.php?blid=' . $a->getId() . '" onclick="return confirm( \'' . $areYouSureStr . '\' );">' . translate('Delete') . '</a>]' : '') . '<br />'; } $num_app = $num_rej = $num_wait = 0; $num_attach = $attList->getSize(); echo ($num_attach == 0 ? ' ' . translate('None') . '<br />' : '') . ' </td> </tr>'; } if (Doc::commentsEnabled()) { echo ' <tr> <td class="aligntop bold">' . translate('Comments') . ':</td> <td>';