show.asp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <%
  2. Option Explicit
  3. Response.Expires = 0
  4. %>
  5. <!--
  6. * This file is part of the LibreOffice project.
  7. *
  8. * This Source Code Form is subject to the terms of the Mozilla Public
  9. * License, v. 2.0. If a copy of the MPL was not distributed with this
  10. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  11. *
  12. * This file incorporates work covered by the following license notice:
  13. *
  14. * Licensed to the Apache Software Foundation (ASF) under one or more
  15. * contributor license agreements. See the NOTICE file distributed
  16. * with this work for additional information regarding copyright
  17. * ownership. The ASF licenses this file to you under the Apache
  18. * License, Version 2.0 (the "License"); you may not use this file
  19. * except in compliance with the License. You may obtain a copy of
  20. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
  21. -->
  22. <!-- #include file = "common.inc" -->
  23. <%
  24. Dim sGifName1, sGifName2, nGifID, aPictureArray
  25. nGifID = Session( "GIFID" )
  26. ' get current and next picture
  27. aPictureArray = File_getDataVirtual( csFilePicture, ".", ";" )
  28. ' not last picture or wrong input ?
  29. If CInt( nGifID ) < UBound( aPictureArray ) / 2 Then
  30. sGifName1 = aPictureArray( ( nGifID - 1 ) * 2 + 1 )
  31. sGifName2 = aPictureArray( ( nGifID ) * 2 + 1 )
  32. Else
  33. nGifID = CInt( UBound( aPictureArray ) / 2 )
  34. sGifName1 = aPictureArray( ( nGifID - 1 ) * 2 + 1 )
  35. sGifName2 = sGifName1
  36. End If
  37. %>
  38. <HTML>
  39. <HEAD>
  40. <TITLE>$$1</TITLE>
  41. </HEAD>
  42. <BODY bgcolor="white">
  43. <table width=100% height=99%>
  44. <tr valign=center><td align=center>
  45. <IMG src="<% = sGifName1 %>" width=$$4 height=$$5 border=0>
  46. <br><IMG src="<% = sGifName2 %>" width=1 height=1 border=0>
  47. </td></tr>
  48. </table>
  49. </BODY>
  50. </HTML>