[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * Common Template - tpl_tabular_display.php 4 * 5 * This file is used for generating tabular output where needed, based on the supplied array of table-cell contents. 6 * 7 * @package templateSystem 8 * @copyright Copyright 2003-2005 Zen Cart Development Team 9 * @copyright Portions Copyright 2003 osCommerce 10 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 11 * @version $Id: tpl_list_box_content.php 2926 2006-02-01 05:47:29Z drbyte $ 12 */ 13 14 //print_r($list_box_contents); 15 $cell_scope = (!isset($cell_scope) || empty($cell_scope)) ? 'col' : $cell_scope; 16 $cell_title = (!isset($cell_title) || empty($cell_title)) ? 'list' : $cell_title; 17 18 ?> 19 <table width="100%" border="1" cellspacing="0" cellpadding="0"> 20 <?php 21 for($row=0; $row<sizeof($list_box_contents); $row++) { 22 $params = ""; 23 if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params']; 24 ?> 25 <tr <?php echo $params; ?>> 26 <?php 27 for($col=0;$col<sizeof($list_box_contents[$row]);$col++) { 28 $r_params = ""; 29 $cell_type = ($row==0) ? 'th' : 'td'; 30 if (isset($list_box_contents[$row][$col]['params'])) $r_params .= ' ' . $list_box_contents[$row][$col]['params']; 31 if ($cell_type=='th') $r_params .= ' scope="' . $cell_scope . '" id="' . $cell_title . '-Cell-' . $row . ' - ' . $col.'"'; 32 if (isset($list_box_contents[$row][$col]['text'])) { 33 ?> 34 <?php echo '<' . $cell_type . $r_params . '>'; ?><?php echo $list_box_contents[$row][$col]['text'] ?><?php echo '</' . $cell_type . '>'; ?> 35 <?php 36 } 37 } 38 ?> 39 </tr> 40 <?php 41 } 42 ?> 43 </table>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |