CWS-TOOLING: integrate CWS os150
[LibreOffice.git] / sd / res / webview / editpic.pl
blob834421601b77e6f43f42c952a778a73196d9d891
1 #!/usr/bin/perl
3 require "common.pl";
5 print "Content-type: text/html\n\n";
6 print "<HTML>\n";
8 print "<HEAD>\n";
9 print "<title>editpic.pl</title>";
10 print "</HEAD>\n";
12 print "<BODY>\n";
13 $sCurrPic = join( "", common::File_read( "currpic.txt" ) );
14 @aPictureArray = common::File_read( "picture.txt" );
15 $nPictureArrayLen = @aPictureArray;
16 print "<FORM action=\"savepic.pl\" method=get>\n";
17 if( abs( $sCurrPic ) > 1 )
19 print "<INPUT type=submit name=\"Auswahl\" value=\"-\"></INPUT>\n";
21 else
23 print "<INPUT type=button value=\" \"></INPUT>\n";
25 print "<INPUT type=text name=\"CurrPic\" value=\"";
26 print $sCurrPic;
27 print "\" SIZE=3></INPUT>\n";
28 if( abs( $sCurrPic ) < ( $nPictureArrayLen - 1 ) )
30 print "<INPUT type=submit name=\"Auswahl\" value=\"+\"></INPUT>\n";
32 else
34 print "<INPUT type=button value=\" \"></INPUT>\n";
36 print "<INPUT type=submit name=\"Auswahl\" value=\"$$2\"></INPUT>\n";
37 print "</FORM>\n";
38 print "</BODY>\n";
40 print "</HTML>\n";