Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sd / res / webview / show.asp
blobc595167064d8577387b05711c7f241a6c5fb543d
1 <%
2 Option Explicit
3 Response.Expires = 0
4 %>
5 <!--
6 * This file is part of the LibreOffice project.
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/.
12 * This file incorporates work covered by the following license notice:
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 -->
23 <!-- #include file = "common.inc" -->
26 Dim sGifName1, sGifName2, nGifID, aPictureArray
28 nGifID = Session( "GIFID" )
30 ' get current and next picture
31 aPictureArray = File_getDataVirtual( csFilePicture, ".", ";" )
33 ' not last picture or wrong input ?
34 If CInt( nGifID ) < UBound( aPictureArray ) / 2 Then
35 sGifName1 = aPictureArray( ( nGifID - 1 ) * 2 + 1 )
36 sGifName2 = aPictureArray( ( nGifID ) * 2 + 1 )
37 Else
38 nGifID = CInt( UBound( aPictureArray ) / 2 )
39 sGifName1 = aPictureArray( ( nGifID - 1 ) * 2 + 1 )
40 sGifName2 = sGifName1
41 End If
44 <HTML>
46 <HEAD>
47 <TITLE>$$1</TITLE>
48 </HEAD>
50 <BODY bgcolor="white">
51 <table width=100% height=99%>
52 <tr valign=center><td align=center>
53 <IMG src="<% = sGifName1 %>" width=$$4 height=$$5 border=0>
54 <br><IMG src="<% = sGifName2 %>" width=1 height=1 border=0>
55 </td></tr>
56 </table>
57 </BODY>
59 </HTML>