merge the formfield patch from ooo-build
[ooovba.git] / sd / res / webview / show.asp
blobb66103cc6edfd115a5e171c34c3d134efb670b80
1 <%
2 Option Explicit
3 Response.Expires = 0
4 %>
6 <!-- #include file = "common.inc" -->
8 <%
9 Dim sGifName1, sGifName2, nGifID, aPictureArray
11 nGifID = Session( "GIFID" )
13 ' get current and next picture
14 aPictureArray = File_getDataVirtual( csFilePicture, ".", ";" )
16 ' not last picture or wrong input ?
17 If CInt( nGifID ) < UBound( aPictureArray ) / 2 Then
18 sGifName1 = aPictureArray( ( nGifID - 1 ) * 2 + 1 )
19 sGifName2 = aPictureArray( ( nGifID ) * 2 + 1 )
20 Else
21 nGifID = CInt( UBound( aPictureArray ) / 2 )
22 sGifName1 = aPictureArray( ( nGifID - 1 ) * 2 + 1 )
23 sGifName2 = sGifName1
24 End If
27 <HTML>
29 <HEAD>
30 <TITLE>$$1</TITLE>
31 </HEAD>
33 <BODY bgcolor="white">
34 <table width=100% height=99%>
35 <tr valign=center><td align=center>
36 <IMG src="<% = sGifName1 %>" width=$$4 height=$$5 border=0>
37 <br><IMG src="<% = sGifName2 %>" width=1 height=1 border=0>
38 </td></tr>
39 </table>
40 </BODY>
42 </HTML>