4.7 View attachments
We've decided that employees can upload attachments, but can't view them. Therefor we've removed the following part of "detail_cr.htmpl":
<PDM_IF $args.attachments.length != 0 >
               <P>
               <TABLE WIDTH=90%>
               <TR>
                   <TH ALIGN=LEFT COLSPAN=4 class=detailro>Attachments</TD>
               </TR>
            </table>
               <TABLE WIDTH=90% summary="$args.ref_num Request Detail row 5 - Attachments">
               <TR>
                   <TH ALIGN=LEFT class=detailro scope=col>Document</TD>
                   <TH ALIGN=LEFT class=detailro scope=col>Description</TD>
                   <TH ALIGN=LEFT class=detailro scope=col>Attached On</TD>
                   <TH ALIGN=LEFT class=detailro scope=col>Status</TD>
               </TR>
               <SCRIPT>
               <PDM_LIST SOURCE=args.attachments>
                   attdata[++lnkid] = new Object();
                   attdata[lnkid].id = "$args.attachments.id";
                   attdata[lnkid].attmnt_name = unescape('<PDM_FMT ESC_STYLE=JS2>$args.attachments.attmnt_name</PDM_FMT>');
                   attdata[lnkid].orig_file_name = unescape('<PDM_FMT ESC_STYLE=JS2>$args.attachments.orig_file_name</PDM_FMT>');
                   attdata[lnkid].status = "$args.attachments.status";
               <PDM_IF "$args.attachments.link_only" != "1">
                   attdata[lnkid].cgi_path ="$args.attachments.repository.servlet_path";
                   attdata[lnkid].protocol = "servlet";
                   attdata[lnkid].server = "$args.attachments.repository.server";
                   attdata[lnkid].retrieve_path = "$args.attachments.repository.retrieve_path";
                   attdata[lnkid].file_name = "$args.attachments.file_name";
               </PDM_IF>
               document.writeln("<TR>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");

                   var link = "<A HREF=\"javascript:download_exec(attdata[" + lnkid + "])\">";
                   document.write(link + '<PDM_FMT esc_style=c><PDM_FMT JUSTIFY=TRUNCATE WIDTH=40>$args.attachments.attmnt_name</PDM_FMT></PDM_FMT></A>');
               document.writeln("</TD>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
               document.write(unescape('<PDM_FMT JUSTIFY=TRUNCATE WIDTH=40 ESC_STYLE=JS2>$args.attachments.description</PDM_FMT>'));
               document.writeln("</TD>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
               document.write(date_to_string('$args.attachments.created_dt_INT_DATE', 0));
               document.writeln("</TD>");
               document.write("<TD CLASS=detailro ALIGN=left VALIGN=top>");
               if ( "$args.attachments.status" == "INSTALLED" )
                   document.write("Installed");
               else if ( "$args.attachments.status" == "LINK_ONLY" )
                   document.write("Link Only");
               else if ( "$args.attachments.status" == "NOTINSTALLED" )
                   document.write("Not Installed");
               document.writeln("</TD>");
               document.writeln("</TR>");
               </PDM_LIST>
               </SCRIPT>
               </TABLE>
               </P>
</PDM_IF>