logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • laurens
    • Posted on Fri 14 Nov 2003

    two minor improvements to this lovely code:

    1) using R6 @sort code, you can sort the attachments a-z 2) turning the names of the attahments in to links, it is easier to check what the file contains you considering deleting. E.g. you have 5 pictures uploaded, but don't remember which is which. Clicking on the link opens the attachment in a new browser window.

    AS:=@If(!@Attachments; @Return("");@Sort(@AttachmentNames)); @If(!@Attachments; @Return(""); "Select Attachments or Pictures to be deleted:" + @Implode("<input type=\"checkbox\" name=\"%%Detach\" value=\""+AS+"\"><a href=\"" + @Text(@DocumentUniqueID) + "/$file/" + AS + "\" target=\"_blank\">"+AS + "</a>"; "<br>"))

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: