[ Index ]

PHP Cross Reference of Web Application Component Toolkit

title

Body

[close]

/examples/tags/list/templates/source/ -> listroweven.html (source)

   1  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
   2  <html>
   3  
   4      <head>
   5          <title>ListRowEven and ListRowOdd Example</title>
   6          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   7          <style type="text/css">
   8          .box {
   9              background-color: silver;
  10              padding: 5px;
  11              margin-bottom: 10px;
  12          }
  13          </style>
  14      </head>
  15  
  16      <body>
  17  
  18      <div class="box">
  19          <h1 align="center">ListRowEven and ListRowOdd Example</h1>
  20          This example implements odd and even row shading using the 
  21          $ListRowEven and $ListRowOdd properties without using CSS.
  22          It also demonstrates using the $ListRowNumber
  23          property for numbering the elements of a list.
  24          <P align="center">
  25          <list:LIST id='ListExample'>
  26            <TABLE BORDER="1" CELLPADDING="5">
  27              <list:ITEM>
  28                  <core:optional for="ListRowEven">
  29                    <TR bgcolor="green">
  30                      <TD>{$ListRowNumber}</TD>
  31                      <TD>{$First}</TD>
  32                      <TD>{$Last}</TD>
  33                    </TR>
  34                  </core:optional>
  35                  <core:optional for="ListRowOdd">
  36                    <TR bgcolor="yellow">
  37                      <TD>{$ListRowNumber}</TD>
  38                      <TD>{$First}</TD>
  39                      <TD>{$Last}</TD>
  40                    </TR>
  41                  </core:optional>
  42              </list:ITEM>
  43            </TABLE>
  44            <list:DEFAULT>
  45              This List is Empty, no table should be displayed here.
  46            </list:DEFAULT>
  47          </list:LIST>
  48          </P>
  49      </div>
  50  
  51  </body>
  52  </html>


Generated: Sun Nov 28 19:36:09 2004 Cross-referenced by PHPXref 0.5