2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<%- $stylevar['lang'] %>" xml:lang="<%- $stylevar['lang'] %>" dir="<%- $stylevar['lang_dir'] %>">
5 <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
6 <title><%-T("New Attachment")%> - <%- $bug['summary'] %></title>
13 <% if ($show['errors']): %>
14 <div class="error" style="text-align: <%- $stylevar['left'] %>">
15 <%-T("The following errors occurred")%>:
16 <%- $message->errorBox %>
20 <form action="attachment.php" method="post" enctype="multipart/form-data" name="newattach">
22 <input name="do" type="hidden" value="insert" />
23 <input name="bugid" type="hidden" value="<%- $bug['bugid'] %>" />
24 <input name="MAX_FILE_SIZE" type="hidden" value="<%- $MAXFILESIZE %>" />
27 <div class="box-head" style="text-align: <%- $stylevar['left'] %>"><%- sprintf(T('New Attachment for Bug #%1$s %2$s'), $bug['bugid'], $bug['summary']) %></div>
29 <div class="box-mid box-margmod-bottom" style="text-align: <%- $stylevar['left'] %>">
30 <div><input name="attachment" type="file" /></div>
31 <div><strong><%-T("Description")%>:</strong> <input name="description" type="text" size="35" value="<%- $input->in['description'] %>" maxlength="250" /></div>
34 <% if ($show['obsoletes']): %>
35 <div class="box-mid box-margmod-bottom" style="text-align: <%- $stylevar['left'] %>">
36 <div><strong><%-T("Mark the Following Attachments Obsolete")%>:</strong>
42 <% if ($show['addcomment']): %>
43 <div class="box-mid" style="text-align: <%- $stylevar['left'] %>">
44 <div><strong><%-T("Add Comment")%>:</strong>
46 <textarea name="comment" rows="10" cols="50" class="textarea"><%- $input->in['comment'] %></textarea>
56 <input name="submit" type="submit" value=" <%-T("Submit")%> " accesskey="s" />
57 <input name="reset" type="reset" value=" <%-T("Reset")%> " accesskey="r" />
58 <script type="text/javascript"> draw_cancel("showreport.php?bugid=<%- $bug['bugid'] %>"); </script>