# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos720 src/bos/usr/sbin/snappd/scripts/Home.pl 1.4 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2000,2002 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # #!/usr/bin/perl -T # @(#)87 1.4 src/bos/usr/sbin/snappd/scripts/Home.pl, snapp, bos720 5/31/02 07:49:47 #--------------------------------------------------------------------- #--------Home page for Snapp Program ------------------------------ #--------------------------------------------------------------------- #--------This page is the entry point for the XML -------------- #--------Pages used with the Snapp Program -------------- #--------------------------------------------------------------------- #--------Links to Pages: SRPasswd.pl, SetPage.pl, IPMain.pl ---------- #--------------------------------------------------------------------- #--------------------------------------------------------------------- #--------Tags Used by XML Parser Include: ---------------------- #--------------------------------------------------------------------- #-------- _Some_Number_Of_Tags_ --> Allows ------------- #-------- the Palm to read a Full page * All XML -------------- #-------- Pages must be included in the middle of these ------ #-------- tags to be interpreted on the palm correctly ------ #--------_Number_Value_ --> Sets the Width of the Object ------ #--------_Number_Value_ --> Changes the 'W' value by ------ #-------- _Number_Value_ ------ #--------_Number_Value_ --> Sets the Height of the Object ----- #--------_Number_Value_ --> Changes the 'H' value by ------ #-------- _Number_Value_ ------ #--------_Number_Value_ --> Sets the postion from the left----- #-------- side of the screen ------ #--------_Number_Value_ --> Changes the 'X' value by ------ #-------- _Number_Value_ ------ #--------_Number_Value_ --> Sets the postion from the top ----- #-------- of the screen ------ #--------_Number_Value_ --> Changes the 'Y' value by ------ #-------- _Number_Value_ ------ #--------_title_name_ --> Sets the Title for the ------ #-------- Page being displayed ------ #-------- --> ------ #-------- creates button which will activate a perl page ------ #-------- when presses ------ #-------- --> creates a ------ #-------- label with specified text ------ #--------_text_------ #-------- creates a field which will send back an Object ------ #-------- Tag with the text in the field whenever the next------ #-------- page is displayed. Object Tag is in this format------ #-------- ------ #-------- sets Attribute for Bar/Box to Hollow Bar ------ #-------- sets Attribute for Bar/Box to a Solid One ------ #-------- creates a Bar/Box ------ #-------- creates a line ------ #--------------------------------------------------------------------- $ENV{'PATH'} = '/bin:/usr/bin'; if(`/usr/bin/ls /var/snapp | /usr/bin/grep snapp.markers`) { `/usr/bin/rm /var/snapp/snapp.markers`; } if(`/usr/bin/ls /var/snapp | /usr/bin/grep snapp.message`) { `/usr/bin/rm /var/snapp/snapp.message`; } #---Creates A History File to Keep Track of Where the User has been---------------- system ("/usr/bin/rm /var/snapp/snapp.History /var/snapp/snapp.History.tmp 2>/dev/null"); open (HISTORYFILE, ">>/var/snapp/snapp.History"); print HISTORYFILE "/usr/bin/perl /usr/sbin/snapp/Home.pl\n"; close (HISTORYFILE); #------------------------------------------------------------------------- #--------------- XML Page Creation -------------------------- #------------------------------------------------------------------------- open(OUTFILE,">/var/snapp/snapp.fres.tmp"); if ($#ARGV == 0) { print OUTFILE < @ARGV[0] EOXML } print OUTFILE < Main Screen 100 15 30 15 40 25 25 EOXML close(OUTFILE); system("/usr/bin/cp /var/snapp/snapp.fres.tmp /var/snapp/snapp.fres");