merge the formfield patch from ooo-build
[ooovba.git] / sd / res / webview / editpic.asp
blob34a4a51e44732ca956dadea3286cadab79eed885
1 <%
2 Option Explicit
3 Response.Expires = 0
4 Response.Buffer = True
5 %>
7 <!-- #include file = "common.inc" -->
11 Dim aPictureArray, nPic, nUpper
13 aPictureArray = File_getDataVirtual( csFilePicture, ".", ";" )
14 nPic = File_readVirtual( "currpic.txt", "." )
15 nUpper = CInt( (UBound(aPictureArray) - 1 ) / 2)
18 <HTML>
19 <HEAD>
20 </HEAD>
21 <BODY>
22 <FORM action="savepic.asp" method=get>
24 if isNumeric(nPic) then
25 if (CInt( nPic ) >= CInt( (UBound(aPictureArray ) - 1 ) / 2 )) then
26 nPic = nUpper
27 end if
28 else
29 nPic = nUpper
30 end if
33 if CInt( nPic ) > 1 then
35 <INPUT type=submit name="Auswahl" value="-"></INPUT>
37 else
39 <INPUT type=button value=" "></INPUT>
41 end if
43 <INPUT type=text name="CurrPic" value="<% = nPic %>" SIZE=3></INPUT>
45 if CInt( nPic ) < CInt( nUpper ) then
47 <INPUT type=submit name="Auswahl" value="+"></INPUT>
49 else
51 <INPUT type=button value=" "></INPUT>
53 end if
55 <INPUT type=submit name="Auswahl" value="$$2"></INPUT>
56 </FORM>
57 </BODY>
58 </HTML>