Mercurial > judyates
view perl/meet_the_artist.pl @ 2:670229c4eb4b judyates
[svn r3] corrected address
author | rlm |
---|---|
date | Fri, 19 Feb 2010 11:14:52 -0500 |
parents | 60668cf4f443 |
children | 3f6b44aa6b35 |
line wrap: on
line source
2 @hunt = qw(3 (small)hunting_1.jpg4 (small)hunting_2.jpg5 (small)hunting_3.jpg6 (small)hunting_4.jpg7 (small)hunting_5.jpg8 (small)hunting_6.jpg9 (small)hunting_7.jpg10 (small)hunting_8.jpg11 (small)hunting_9.jpg12 (small)hunting_10.jpg13 (small)hunting_11.jpg14 (small)hunting_12.jpg15 );17 @hunt1 = qw(18 hunting_119 hunting_220 hunting_321 hunting_422 hunting_523 hunting_624 hunting_725 hunting_826 hunting_927 hunting_1028 hunting_1129 hunting_1230 );32 @duck1 = qw(34 stamp00135 stamp00336 stamp00537 stamp00738 stamp00939 stamp01141 );45 @duck = qw(46 stamp001(small).jpg47 stamp003(small).jpg48 stamp005(small).jpg49 stamp007(small).jpg50 stamp009(small).jpg51 stamp011(small).jpg52 );54 &make_page(1,"hunt");55 &make_page(2,"duck");59 sub make_page{62 $page = $_[0];63 $arr = $_[1];65 @names = @{$arr};67 @namess = @{$arr."1"};72 open FILE, ">../Meet the Artist$page.html";73 select FILE;75 print <<HERE;76 <html>77 <title> Biography of Judy Yates</title>78 <head>79 <link rel="stylesheet" type="text/css"80 href="firetest.css"> </link>81 </head>82 <body>83 <span>84 <img src = "./album_pics/3_logo.jpg"></img> <span class = "vcenter"></span>85 </span>86 HERE87 open MENU, "<../menu.html";88 while (<MENU>){print;}89 close MENU;91 print <<HERE;92 <table>97 <table cellpadding="0" cellspacing="0" width="640">99 HERE101 $menux = '<div class = "menu"><ul class = "menu"><li class = "menu"><a class = "menu" href = "./Meet the Artist1.html">Hunting Pics</a></li><li class = "menu"><a class = "menu" href = "./Meet the Artist2.html">Federal Duck Stamp Entries</a></li></ul></div>';102 print "<tr><td>$menux</td></tr></table>";105 $start = 0;106 $end = $#namess;107 print '<table cellpadding="0" cellspacing="20px" width="640">';109 foreach($start..$end){110 #print "\n\n****".($_%3)."****\n\n";111 if (($_%3 )== 0){print '<tr>'; }112 print '<td>';113 $name = $names[$_];114 $namess = $namess[$_];115 print '<a href ="artwork_descriptions/'.$namess.'.html" class = "gallery"> <img class = "gallery" src = "album_pics/'.$name.'" width = "200"></img></a>'."\n";116 print '</td>';117 if (($_%3) == 2){print '</tr>'; }119 }122 print <<THERE;127 </table>130 </table>131 THERE133 if (open TXT, "<../texts/Meet the Artist$page.txt"){134 while (<TXT>){print;}135 close TXT;136 }140 open MENU, "<../menu.html";141 while (<MENU>){print;}142 close MENU;144 print <<THERE;145 </body>146 </html>150 THERE153 }