| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 <html> 3 4 <head> 5 <title>List Row Parity Example</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 7 <style type="text/css"> 8 .odd { 9 background-color: yellow; 10 } 11 .even { 12 background-color: green; 13 } 14 15 .box { 16 background-color: silver; 17 padding: 5px; 18 margin-bottom: 10px; 19 } 20 </style> 21 </head> 22 23 <body> 24 25 <div class="box"> 26 <h1 align="center">List Row Parity Example</h1> 27 This example implements odd and even row shading using the $Parity 28 property and CSS. It also demonstrates using the $ListRowNumber 29 property for numbering the elements of a list. 30 <P align="center"> 31 <list:LIST id='ListExample'> 32 <TABLE BORDER="1" CELLPADDING="5"> 33 <list:ITEM> 34 <TR class="{$Parity}"> 35 <TD>{$ListRowNumber}</TD> 36 <TD>{$First}</TD> 37 <TD>{$Last}</TD> 38 </TR> 39 </list:ITEM> 40 </TABLE> 41 <list:DEFAULT> 42 This List is Empty, no table should be displayed here. 43 </list:DEFAULT> 44 </list:LIST> 45 </P> 46 </div> 47 48 </body> 49 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Nov 28 19:36:09 2004 | Cross-referenced by PHPXref 0.5 |