home *** CD-ROM | disk | FTP | other *** search
- #!/usr/local/bin/perl
- #
- # CREATE FRAME PAGES, THE FILMSTRIP PAGES, AND THE CONTENT PAGES.
- #
- #
- use Guppy
- $Pwhere = "http://japan.park.org/Japan/Fujitsu/GJ";
- $Iwhere = "../../i";
- $usefolder = shift(ARGV);
- $readlist = shift(ARGV);
- $path = `pwd`;
-
- system(clear);
-
- unless ($Pwhere) {
- print("The pdocs path has not been established. Please enter its value: ");
- $Pwhere = <STDIN>;
- chop $Pwhere;
- }
- unless ($Iwhere) {
- print("The idocs path has not been established. Please enter its value: ");
- $Iwhere = <STDIN>;
- chop $Iwhere;
- }
- unless (-e "$path/$readfile") {
- die ("Can't find readfile $readfile\n");
- }
-
- print("Running with pdocs as $Pwhere\n\t and idocs as $Iwhere\n\n");
- print("\tIs this correct? (y/n) ");
- $ans = <STDIN>;
- unless ($ans =~ /y/) {
- die ("\tOkay, then change it, buster!\n\n");
- }
-
- &Include("$readlist");
-
-
- sub NAVLINE {
- $Itemp = $Iwhere;
- # print correct navline on each page, remember that different sections have different nav requirements.
- my $now = shift;
- my $locount = shift;
- $Itemp = $Iwhere;
- $Itemp = "../$Iwhere" if ($now eq "pix");
- my $pageURL = $MachineURL.$StateURL;
- $topP = &Guppy::HtmlTarget("pix");
- $topT = &Guppy::HtmlTarget('_top');
- $out = undef;
- $out .= "<TABLE BORDER=0 WIDTH=60%>\n";
- unless ($now eq "pix" || $now eq "anthro") {
- $out .= "<TR>\n<TD ALIGN=CENTER><img src=\"$Itemp/java/classes/images/lowerfiller.gif\" border=0 width=95 height=26></TD></TR>\n";
- }
- $out .= "<TR><TD ALIGN=CENTER VALIGN=TOP><TABLE BORDER=0><TR>\n";
- if ($now eq "pix" || $now eq "anthro") {
- $out .= "<TD ALIGN=CENTER VALIGN=TOP WIDTH=50%>\n";
- $out .= "<applet codebase = \"$Itemp/java/classes/\" code=\"navIcon.class\" width=95 height=54>\n";
- $out .= "<param name=image value = \"sekr\">\n";
- $out .= "<param name=txt value = \"sekrtxt\">\n";
- $out .= "<param name=bakg value = \"lowerfiller\">\n";
- $out .= "<param name=xmin value = \"36\">\n";
- $out .= "<param name=xmax value = \"72\">\n";
- $out .= "<param name=ymin value = \"5\">\n";
- $out .= "<param name=ymax value = \"36\">\n";
- $out .= "<param name=xposimage value = \"0\">\n";
- $out .= "<param name=xpostxt value = \"0\">\n";
- $out .= "<param name=URL value = \"$Pwhere/americas/austral/$default\">\n";
- $out .= "<param name=target value=\"_self\">\n";
- $out .= "<A HREF = \"$Pwhere/americas/austral/$default\">\n";
- $out .= "<img src=\"$Itemp/java/classes/images/sekr.gif\" border=0 width=95 height=26><br>\n";
- $out .= "<img src=\"$Itemp/java/classes/images/sekrtxt.gif\" border=0 width=95 height=28></A>\n";
- $out .= "<P></TD>\n";
- }
- if (($locations[$locount]{'anthro'}) && $now ne "anthro") {
- my $anthro = $locations[$locount]{'anthro'};
- $out .= "<TD ALIGN=CENTER VALIGN=TOP WIDTH=50%>\n";
- $out .= "<center><applet codebase = \"$Itemp/java/classes/\" code=\"navIcon.class\" width=95 height=54>\n";
- $out .= "<param name=image value = \"anthro\">\n";
- $out .= "<param name=txt value = \"anthrotxt\">\n";
- $out .= "<param name=bakg value = \"lowerfiller\">\n";
- $out .= "<param name=xmin value = \"36\">\n";
- $out .= "<param name=xmax value = \"72\">\n";
- $out .= "<param name=ymin value = \"5\">\n";
- $out .= "<param name=ymax value = \"36\">\n";
- $out .= "<param name=xposimage value = \"0\">\n";
- $out .= "<param name=xpostxt value = \"0\">\n";
- $out .= "<param name=URL value = \"$Pwhere/americas/austral/$anthro\">\n";
- $out .= "<param name=target value=\"_self\">\n";
- $out .= "<A HREF = \"$Pwhere/americas/austral/$anthro\">\n";
- $out .= "<img src=\"$Itemp/java/classes/images/anthro.gif\" border=0 width=95 height=26><br>\n";
- $out .= "<img src=\"$Itemp/java/classes/images/anthrotxt.gif\" border=0 width=95 height=28></A></applet>\n";
- $out .= "<P></TD>\n";
- }
- $out .= "</TR></TABLE></TD></TR><TR><TD VALIGN=TOP ALIGN=CENTER>\n<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR>\n";
- $out .= "<TD ALIGN=CENTER><applet codebase = \"$Itemp/java/classes/\" code=\"navIcon.class\" width=95 height=54>\n";
- $out .= "<param name=image value = \"intro\">\n";
- $out .= "<param name=txt value = \"introtxt\">\n";
- $out .= "<param name=bakg value = \"lowerfiller\">\n";
- $out .= "<param name=xmin value = \"36\">\n";
- $out .= "<param name=xmax value = \"72\">\n";
- $out .= "<param name=ymin value = \"5\">\n";
- $out .= "<param name=ymax value = \"36\">\n";
- $out .= "<param name=xposimage value = \"0\">\n";
- $out .= "<param name=xpostxt value = \"0\">\n";
- $out .= "<param name=URL value = \"$Pwhere/intro.html\">\n";
- $out .= "<param name=target value=\"_top\">\n";
- $out .= "<A HREF = \"$Pwhere/intro.html\" TARGET=\"_top\">\n";
- $out .= "<img src=\"$Itemp/java/classes/images/intro.gif\" border=0 width=95 height=26><br>\n";
- $out .= "<img src=\"$Itemp/java/classes/images/introtxt.gif\" border=0 width=95 height=28></A></applet></TD>\n";
-
-
- $out .= "<TD ALIGN=CENTER><applet codebase = \"$Itemp/java/classes/\" code=\"navIcon.class\" width=95 height=54>\n";
- $out .= "<param name=image value = \"home\">\n";
- $out .= "<param name=txt value = \"hometxt\">\n";
- $out .= "<param name=bakg value = \"lowerfiller\">\n";
- $out .= "<param name=xmin value = \"36\">\n";
- $out .= "<param name=xmax value = \"72\">\n";
- $out .= "<param name=ymin value = \"5\">\n";
- $out .= "<param name=ymax value = \"36\">\n";
- $out .= "<param name=xposimage value = \"0\">\n";
- $out .= "<param name=xpostxt value = \"0\">\n";
- $out .= "<param name=URL value = \"$Pwhere/home.html\">\n";
- $out .= "<param name=target value=\"_top\">\n";
- $out .= "<A HREF = \"$Pwhere/home.html\" TARGET=\"_top\">\n";
- $out .= "<img src=\"$Itemp/java/classes/images/home.gif\" border=0 width=95 height=26><br>\n";
- $out .= "<img src=\"$Itemp/java/classes/images/hometxt.gif\" border=0 width=95 height=28></A></applet></TD>\n";
-
-
- $out .= "<TD ALIGN=CENTER><applet codebase = \"$Itemp/java/classes/\" code=\"navIcon.class\" width=95 height=54>\n";
- $out .= "<param name=image value = \"sek\">\n";
- $out .= "<param name=txt value = \"sektxt\">\n";
- $out .= "<param name=bakg value = \"lowerfiller\">\n";
- $out .= "<param name=xmin value = \"36\">\n";
- $out .= "<param name=xmax value = \"72\">\n";
- $out .= "<param name=ymin value = \"5\">\n";
- $out .= "<param name=ymax value = \"36\">\n";
- $out .= "<param name=xposimage value = \"0\">\n";
- $out .= "<param name=xpostxt value = \"0\">\n";
- $out .= "<param name=URL value = \"$Pwhere/sekino/\">\n";
- $out .= "<param name=target value=\"_top\">\n";
- $out .= "<A HREF = \"$Pwhere/sekino/\" TARGET=\"_top\">\n";
- $out .= "<img src=\"$Itemp/java/classes/images/sek.gif\" border=0 width=95 height=26><br>\n";
- $out .= "<img src=\"$Itemp/java/classes/images/sektxt.gif\" border=0 width=95 height=28></A></applet></TD>\n";
-
-
- $out .= "<TD ALIGN=CENTER><applet codebase = \"$Itemp/java/classes/\" code=\"navIcon.class\" width=95 height=54>\n";
- $out .= "<param name=image value = \"amer\">\n";
- $out .= "<param name=txt value = \"amertxt\">\n";
- $out .= "<param name=bakg value = \"lowerfiller\">\n";
- $out .= "<param name=xmin value = \"36\">\n";
- $out .= "<param name=xmax value = \"72\">\n";
- $out .= "<param name=ymin value = \"5\">\n";
- $out .= "<param name=ymax value = \"36\">\n";
- $out .= "<param name=xposimage value = \"0\">\n";
- $out .= "<param name=xpostxt value = \"0\">\n";
- $out .= "<param name=URL value = \"$Pwhere/americas/\">\n";
- $out .= "<param name=target value=\"_top\">\n";
- $out .= "<A HREF = \"$Pwhere/americas/\" TARGET=\"_top\">\n";
- $out .= "<img src=\"$Itemp/java/classes/images/amer.gif\" border=0 width=95 height=26><br>\n";
- $out .= "<img src=\"$Itemp/java/classes/images/amertxt.gif\" border=0 width=95 height=28></A></applet></TD>\n";
- $out .= "</TR><TR>\n";
- $out .= "<TD ALIGN=CENTER><img src=\"$Itemp/java/classes/images/lowerfiller.gif\" border=0 width=95 height=26></TD>\n";
- $out .= "</TR></TABLE></TD></TR></TABLE>\n";
- $out;
- }
-
- $count = 0;
- print ("Creating content pages...\n");
- while ($count<=$#descriptions) {
- my $filename = $descriptions[$count]{'num'};
- $filename .= ".html";
- print ("\tWorking on page $filename...");
- open (FILE, ">/home/aboveb/wex/sites/fujitsu/htdocs/GJ/americas/austral/pictures/$filename") || die("Can't open $filename for write.\n");
- print FILE ("<HTML><HEAD><TITLE>The Great Journey: The Images</TITLE>\n</HEAD><BODY BGCOLOR=\"#000000\" TEXT=\"#FFFFFF\" LINK=\"#BB0000\" ALINK=\"#000000\" VLINK=\"#925656\">\n");
- print FILE ("<CENTER><P><BR>\n");
- if ($count<=26) {
- $header = "PATAGONIA";
- $locount = 0;
- } elsif ($count<=39 && $count>26) {
- $header = "THE SOUTHERN ANDES";
- $locount = 1;
- } elsif ($count<=65 && $count>39) {
- $header = "THE BOLIVAIN ALTIPLANO";
- $locount = 2;
- } elsif ($count>65) {
- $header = "THE PERUVIAN ANDES";
- $locount = 3;
- }
- $default = $locations[$locount]{'default'};
- print FILE ("$header\n<TABLE BORDER=0 HEIGHT=70%><TR><TD ALIGN=CENTER>\n");
- my $image = $descriptions[$count]{'num'};
- $image .= ".jpeg";
- print FILE ("<IMG BORDER=0 HSPACE=0 SRC=\"../$Iwhere/americas/austral/pictures/$image\">\n<BR>\n");
- my $text = $descriptions[$count]{'text'};
- print FILE ("<FONT SIZE=-1>$text</FONT>\n");
- print FILE ("</TD></TR></TABLE>\n");
- print FILE (&NAVLINE("pix",$locount));
- print FILE ("</CENTER><\BODY><\HTML>");
- close (FILE);
- print("\t$filename Done. Yipee!!!\n");
- $count++;
- }
-
- print("\nContent Pages Complete, Starting Filmstip Pages...\n\n");
-
- $count = 0;
- while ($count<=$#locations) {
- my $filename = $locations[$count]{'list'};
- my $title = $locations[$count]{'gif'};
- print("\tWorking on $filename...\n");
- open (FILE, ">/home/aboveb/wex/sites/fujitsu/htdocs/GJ/americas/austral/$filename") || die("Can't open $filename for write.\n");
- print FILE ("<HTML><HEAD><TITLE>The Great Journey: The Images</TITLE>\n</HEAD><BODY BGCOLOR=\"#000000\" TEXT=\"#FFFFFF\" LINK=\"#BB0000\" ALINK=\"#000000\" VLINK=\"#925656\">\n");
- print FILE ("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR>\n");
- print FILE ("<TD VALIGN=TOP><img src=\"$Iwhere/americas/austral/$title\" border=0 alt=\"\" width=108 height=100></TD>\n");
- $i = $locations[$count]{'start'};
- while ($i<=($locations[$count]{'end'})) {
- print FILE ("<TD VALIGN=TOP><a href=\"pictures/$i.html\" target=\"pix\"><img BORDER=0 ALIGN=LEFT HSPACE=0 src=\"$Iwhere/americas/austral/smallpix/$i.gif\" alt=\"\" width=108 height=100></a></TD>\n");
- $i++;
- }
- print FILE ("<TD NOWRAP>more REPORTS....</TD>\n");
- $more = 0;
- while ($more<4) {
- unless ($more == $count) {
- $url = $locations[$more]{'url'};
- $image = $locations[$more]{'image'};
- print FILE ("<TD><a href=\"$url\" target=\"_top\"><img src=\"$Iwhere/americas/austral/$image\" border=0 alt=\"\" width=108 height=100></a></TD>\n");
- }
- $more++;
- }
- print FILE ("</TR></TABLE>\n<\BODY><\HTML>");
- close (FILE);
- print("\t$filename Done! I'm not dead yet... I'm getting better...\n");
- $count++;
- }
-
- print ("\nFilmstrip Pages Complete, Starting Frame Pages...\n\n");
-
- $count = 0;
- while ($count<=$#locations) {
- my $filename = $locations[$count]{'url'};
- my $header = $locations[$count]{'name'};
- print ("\tWorking on $filename...\n");
- my $list = $locations[$count]{'list'};
- my $default = $locations[$count]{'default'};
- open (FILE, ">/home/aboveb/wex/sites/fujitsu/htdocs/GJ/americas/austral/$filename") || die("Can't open $filename for write.\n");
- print FILE ("<HTML>\n<HEAD><TITLE>$header</TITLE></HEAD>\n<FRAMESET rows=\"*,120\">\n<FRAME NAME=\"pix\" MARGINWIDTH=0 MARGINHEIGHT=0 SRC=\"$default\">\n");
- print FILE ("<FRAME NAME=\"list\" MARGINWIDTH=0 MARGINHEIGHT=0 noresize SRC=\"$list\">\n");
- print FILE ("</FRAMESET></HTML>");
- close (FILE);
- $count++;
- print("\t$filename Done. It's like there's a party in my mouth, and everyone's invited!!!\n");
- }
-
- print ("\nFrame Pages Done, Starting Anthro Pages...\n\n");
-
- $count = 0;
- while ($count<=$#locations) {
- if ($locations[$count]{'anthro'}) {
- my $filename = $locations[$count]{'anthro'};
- my $header = $locations[$count]{'name'};
- $default = $locations[$count]{'default'};
- my $x = $count+1;
- my $readfile = "anthro$x.html";
- print ("\tWorking on $filename...\n");
- open (FILE, ">/home/aboveb/wex/sites/fujitsu/htdocs/GJ/americas/austral/$filename") || die("Can't open $filename for write.\n");
- open (READ, "/home/aboveb/wex/sites/fujitsu/pdocs/americas/reports/austral/$readfile") || die("Can't open $readfile for read.\n");
- while ($line = <READ>) {
- print FILE ("$line");
- }
- print FILE ("<CENTER>\n");
- print FILE (&NAVLINE("anthro",$count));
- print FILE ("</CENTER>\n</BODY></HTML>");
- print("\t$filename Done... \'cause we are the champions of the world, my friend...\n");
- }
- $count++;
- }
-
- print ("\nAnthro Pages Done, Starting Default Content Pages...\n\n");
-
- $count = 0;
- while ($count<=$#locations) {
- my $filename = $locations[$count]{'default'};
- my $x = $count+1;
- my $readfile = "section$x.eng";
- print ("\tWorking on $filename...\n");
- my $header = $locations[$count]{'name'};
- open (FILE, ">/home/aboveb/wex/sites/fujitsu/htdocs/GJ/americas/austral/$filename") || die("Can't open $filename for write.\n");
- open (READ, "/home/aboveb/wex/sites/fujitsu/pdocs/americas/reports/austral/$readfile") || die("Can't open $readfile for read.\n");
- print FILE ("<HTML><HEAD><TITLE>The Great Journey: $header</TITLE>\n</HEAD><BODY BGCOLOR=\"#000000\" TEXT=\"#FFFFFF\" LINK=\"#BB0000\" ALINK=\"#000000\" VLINK=\"#925656\">\n");
- print FILE (" <P><CENTER><FONT SIZE=+1>SEKINO'S REPORT</FONT></CENTER>\n<BLOCKQUOTE>");
- while ($line = <READ>) {
- print FILE ("$line");
- }
- print FILE ("<FONT SIZE=+1><CENTER>CLICK ON SLIDES</FONT>\n");
- print FILE (&NAVLINE("def",$count));
- print FILE ("</BLOCKQUOTE></CENTER>\n<\BODY><\HTML>");
- close (FILE);
- print("\t$filename Done. I can't believe it's not butter!\n");
- $count++;
- }
-
- print("\nDefault Content Pages Done.\n\nYou're finished, kido, I'm going to Disneyland!!!!!!\n\n\n");
-
- exit(0);
-