home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / cgi-bin / discus4_00 / source / upload.tmpl < prev    next >
Text File  |  2009-11-06  |  2KB  |  59 lines

  1. # FILE: upload.html
  2. # DESCRIPTION: Image/Attachment Upload Form
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5. # Translation note: This file is drawn from language.conf and should not itself need
  6. # to be translated.
  7.  
  8. <!--BEGIN-->
  9. <#define $pagetitle = "$L{BPIMGUPLOADTITLE3_00}"#>
  10. <#language: $L{UPLOAD_DIMENSIONS_EXCEEDED} = "Your uploaded image exceeded the maximum dimensions of %width x %height.  Please shrink your image to be smaller than these dimensions."#>
  11.  
  12. <html>
  13. <head>
  14. <title>$L{BPIMGUPLOADTITLE3_00}</title>
  15.  
  16. <#insert part () "dynamic_top"#>
  17. $L{BPIMGUPLOADINSTR3_00}
  18. <form action="$script_url/board-post.$cgi_extension" method="post" enctype="multipart/form-data">
  19. <table width=100% border=0 cellpadding=3 cellspacing=0>
  20. <#foreach $attach (@attachments)#>
  21.     <tr bgcolor="<#pick color $attach->{_iteration} from @_ALTCOLOR(7,8)#>">
  22.     <td><font size="$color->{size}" face="$color->{face}">
  23.     <#if $attach->{error} > 0#>
  24.         <b>$L{BI_UPLOAD_ERROR_TITLE}</b>:<br>
  25.         <#if $attach->{error} == 1#>$L{BI_UPLOAD_ERROR_NODATA}
  26.         <#if $attach->{error} == 2#>
  27.             <#define $temp = "$L{BI_UPLOAD_ERROR_BADFORMAT}"#>
  28.             <#replace "%format" with "$attach->{content}" in $temp#>
  29.             $temp
  30.         <#endif#>
  31.         <#if $attach->{error} == 3#>$L{BI_UPLOAD_ERROR_NODATA}
  32.         <#if $attach->{error} == 4#>
  33.             <#define $temp = "$L{BI_UPLOAD_EXCEEDED_MAXLENGTH}"#>
  34.             <#replace "%maxsize" with "$attach->{maxsize}" in $temp#>
  35.             <#replace "%yoursize" with "$attach->{yoursize}" in $temp#>
  36.             $temp
  37.         <#endif#>
  38.         <#if $attach->{error} == 5#>Upload failed due to an unusual internal system error
  39.         <#if $attach->{error} == 6#>
  40.             <#define $temp = "$L{UPLOAD_DIMENSIONS_EXCEEDED}"#>
  41.             <#replace "%width" with "$attach->{width}" in $temp#>
  42.             <#replace "%height" with "$attach->{height}" in $temp#>
  43.             $temp
  44.         <#endif#>
  45.         <p>
  46.     <#endif#>
  47.     $L{BPPROVIDEFILE} <b>$attach->{descr}</b>:<p></p>
  48.     </font>
  49.     <input type="file" name="attach$attach->{_iteration}" size=40></td></tr>
  50. <#endloop#>
  51. </table>
  52. <p></p>
  53. <input type="submit" value="$L{BPIMGUPLOADBUTTON}">
  54. <input type="hidden" name="action" value="imageupload">
  55. <input type="hidden" name="tempfile" value="$general->{tempfile}">
  56. </form>
  57. <#insert part () "dynamic_bottom"#>
  58. <!--END-->
  59.