Source of template.plp
Back
  1. <:

  2. sub code { :>
  3.     <table width="100%" cellspacing=0 cellpadding=15>
  4.     <tr><td bgcolor="#E0E0E0" style="background-color:#E0E0E0;">
  5.     <font folor=green face="fixedsys,courier new,courier,fixed" style="color:green;">
  6.     <:= shift :>
  7.     </font>
  8.     </td></tr></table>
  9. <: }

  10. sub title {
  11.     print "<h2>$_[0]</h2>";
  12. }

  13. sub item { :>
  14.     <div style="margin-top: 1em; color: black; font-size:larger; font-weight: bold;">
  15.     <:= shift :>
  16.     </div>
  17.     <br>
  18. <: }

  19. :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

  20. <html>
  21. <head><title>PLP - <:= $title :></title>
  22. <STYLE TYPE="text/css"><!--
  23.     body, td  {background-color: white; font-family: arial,helvetica,sans serif;
  24.                font-size: 10pt; color: gray;}
  25.     a         {color: black;}
  26.     a:visited {color: gray; }
  27.     a:Hover   {color: green;}

  28.     .navi     {color: silver; padding-left: 10px; padding-right: 25px;}
  29.     .navi a         {color: yellow; }
  30.     .navi a:visited {color: yellow; }
  31.     .navi a:hover   {color: #FFCC00;}
  32.     .main {color: gray; padding-left: 10px; padding-right: 5px;}
  33. --></STYLE>
  34. </head>

  35. <body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>
  36. <table width=780 cellspacing=0 cellpadding=0 border=0>
  37. <tr>
  38.     <td width=128 valign=top nowrap><img src="/pix/logolinks.gif" width=128 height=149 alt="" border=0></td>
  39.     <td width=629 valign=top nowrap background="/pix/topstripe.gif"><img src="/pix/logorechts.gif" width=159 height=149 alt="" border=0></td>
  40.     <td width=23 valign=top nowrap><img src="/pix/topright.gif" width=23 height=149 alt="" border=0></td>
  41. </tr>
  42. <tr>
  43. <td background="/pix/navback.gif" align=left valign=top class=navi>
  44. <br>
  45. <:
  46.     @pages = (
  47.         [Overview    => '/index.plp'],
  48.         [Download    => '/files.plp'],
  49.         [Installation=> '/install.plp'],
  50.         [Docs        =>'/pod.plp'],
  51.         [Tutorial    => '/tutorial.plp'],
  52.         [Credits     =>'/credits.plp'],
  53. (defined $nosource ? () : (
  54.         ['<br>'],
  55.         ['Page Source'  => "/source$ENV{PLP_NAME}"],
  56. )),
  57.         ['<br>Hosted by:<br>'],
  58.         [Convolution => 'http://www.convolution.nl/'],
  59.     );

  60.     $i = 0;
  61.     for (@pages){
  62.         $i++;
  63.         if (!$_->[1]){
  64.             print $_->[0];
  65.         }elsif ($ENV{PLP_NAME} eq $_->[1]){
  66.             print qq{<strong>$_->[0]</strong><br>\n};
  67.         }else{
  68.             print qq{<a href="$_->[1]">$_->[0]</a><br>\n};
  69.         }
  70.     }
  71. :>
  72. </td>
  73. <td valign="top" align="left" class="main">

  74. <: PLP_END { :>
  75. </td><td background="/pix/mainstripe.gif"></td></tr>

  76. <tr><td><img src="/pix/1.jpg" width=128 height=50 alt=""><br></td>
  77. <td>&nbsp;</td><td><img src="/pix/2.gif" width=23 height=50 alt=""><br></td></tr>
  78. </table>
  79. </body>
  80. </html>
  81. <: } :>