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 / img-list.tmpl < prev    next >
Text File  |  2009-11-06  |  2KB  |  92 lines

  1. # FILE: img-list.tmpl
  2. # DESCRIPTION: List of clipart images
  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 = "$general->{pagetitle}"#>
  10.  
  11. <html>
  12. <head>
  13. <title>$pagetitle</title>
  14. <style>
  15. <!--
  16. body { font-family: $color->{face}; line-spacing: 0 }
  17. td.nb { font: 10pt $color->{face} }
  18. td.bb { font: 10pt $color->{face}; font-weight: bold }
  19. p { font: 10pt $color->{face}; }
  20. -->
  21. </style>
  22.  
  23.  
  24. <#if $general->{popup} == 1#>
  25.     <script language="JavaScript">
  26.     <!--
  27.         function ins (img) {
  28. #            alert('foo')
  29.             if (typeof window.opener.document.userpass.message.createTextRange != 'undefined') {
  30.                 window.opener.document.userpass.inserter.value = img;
  31.                 if (typeof window.opener.document.userpass.tagname != 'undefined') {
  32.                     window.opener.document.userpass.tagname.value = "$general->{clip_tag}";
  33.                 }
  34.                 window.opener.document.userpass.inserter.click();
  35.             } else {
  36.                 window.opener.document.userpass.message.value += "\\$general->{clip_tag}" + "{" + img + "}";
  37.                 window.opener.document.userpass.message.focus();
  38.             }
  39.             self.close();
  40.         }
  41.     // -->    
  42.     </script>    
  43.     </head>
  44.     <body bgcolor="$color->{bgcolor}" text="$color->{text}"{#if $color->{image}#} background="$color->{image}"#}>
  45.     <font face="$color->{face}" size="$color->{size}">
  46.     
  47.     <p>
  48.     $L{IMAGE_POPUP}
  49.     </p>
  50.     
  51.     <table border=1>
  52.         <#foreach $image (@images)#>
  53.             <#if [$image->{_iteration} % 7] == 1 && $image->{_is_first_element} == 0#></tr><tr>
  54.             <#if $image->{_is_first_element} == 1#><tr>
  55.             <td><a href="#" onClick="ins('$image->{shownfile}'); return false"><img src="$general->{image_url}/$image->{filename}" border=0></a></td>
  56.         <#endloop#>
  57.         </tr>
  58.     </table>        
  59.     
  60.     
  61.     </body>
  62.     </html>
  63.  
  64. <#else#>
  65.     <#insert part () "dynamic_top"#>
  66.     <#if $browser->{dhtml} == 0#><font face="$color->{face}" size="$color->{size}">
  67.  
  68.     <p>
  69.     $L{ILINSTR}
  70.     </p>
  71.     
  72.     <table border=1>
  73.         <tr>
  74.             <td class="bb">$L{ILTAG}</td>
  75.             <td class="bb">$L{ILIMAGE}</td>
  76.         </tr>
  77.         <#foreach $image (@images)#>
  78.             <tr>
  79.                 <td class="nb">\$general->{clip_tag}{$image->{shownfile}}</td>
  80.                 <td><img src="$general->{image_url}/$image->{filename}"></td>
  81.             </tr>
  82.         <#endloop#>
  83.     </table>
  84.     
  85.     <!-- $general->{regexp} -->
  86.     
  87.     <#insert part () "dynamic_bottom"#>
  88.  
  89. <#endif#>
  90.  
  91. <!--END-->
  92.