$mod = $i % 2; ?> <tr class="row" ><td><input type="checkbox" name="key" class="key" value="<?php echo $deal["id"]; ?> "></td><td> <?php echo $deal["id"]; ?> </td><td> <a href="javascript:edit_goods ('<?php echo addslashes($deal["id"]); ?> ')"><?php echo msubstr($deal["name"]); ?> </a></td><td> <?php echo get_shop_cate_name($deal["shop_cate_id"]); ?> </td><td> <?php echo get_deal_city_name($deal["city_id"]); ?> </td><td> <?php echo a_get_time_status($deal["time_status"], $deal['id']); ?> </td><td> <?php echo get_buy_type_title($deal["buy_type"]); ?> </td><td> <?php echo get_status($deal["brand_promote"]); ?> </td><td> <?php echo a_get_deal_type($deal["deal_type"], $deal['id']);
} else { foreach ($__LIST__ as $key => $brand) { ++$i; $mod = $i % 2; ?> <tr class="row" ><td><input type="checkbox" name="key" class="key" value="<?php echo $brand["id"]; ?> "></td><td> <?php echo $brand["id"]; ?> </td><td> <?php echo $brand["name"]; ?> </td><td> <?php echo get_shop_cate_name($brand["shop_cate_id"]); ?> </td><td> <?php echo get_status($brand["brand_promote"]); ?> </td><td> <?php echo get_brand_time_status($brand["time_status"], $brand['id']); ?> </td><td> <?php echo get_sort($brand["sort"], $brand['id']); ?> </td><td><a href="javascript:edit('<?php echo $brand["id"]; ?> ')"><?php echo L("EDIT");