$lc_align = 'right'; $zc_col_count_description++; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; $zc_col_count_description++; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; $zc_col_count_description++; break; } if ($column_list[$col] != 'PRODUCT_LIST_IMAGE') { $lc_text = zen_create_sort_heading($_GET['sort'], $col + 1, $lc_text); } $list_box_contents[0][$col] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => $lc_text); } if ($listing_split->number_of_rows > 0) { $rows = 0; $listing = $db->Execute($listing_split->sql_query); $extra_row = 0; while (!$listing->EOF) { $rows++; if (($rows - $extra_row) / 2 == floor(($rows - $extra_row) / 2)) { $list_box_contents[$rows] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[$rows] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1;
break; case 'LINK_LIST_DESCRIPTION': $lc_text = TABLE_HEADING_LINKS_DESCRIPTION; $lc_align = 'center'; break; case 'LINK_LIST_COUNT': $lc_text = TABLE_HEADING_LINKS_COUNT; $lc_align = ''; break; case 'LINK_LIST_EDIT': $lc_text = ''; $lc_align = ''; break; } if ($column_list[$col] != 'LINK_LIST_IMAGE') { $lc_text = zen_create_sort_heading($HTTP_GET_VARS['sort'], $col + 1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $listing_query = $db->Execute($listing_split->sql_query); while (!$listing_query->EOF) { $rows++; if ($rows / 2 == floor($rows / 2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col = 0, $n = sizeof($column_list); $col < $n; $col++) {