$mod = $i % 2;
            ?>
<tr class="row" ><td><input type="checkbox" name="key" class="key" value="<?php 
            echo $deal["id"];
            ?>
"></td><td>&nbsp;<?php 
            echo $deal["id"];
            ?>
</td><td>&nbsp;<a href="javascript:edit_goods   ('<?php 
            echo addslashes($deal["id"]);
            ?>
')"><?php 
            echo msubstr($deal["name"]);
            ?>
</a></td><td>&nbsp;<?php 
            echo get_shop_cate_name($deal["shop_cate_id"]);
            ?>
</td><td>&nbsp;<?php 
            echo get_deal_city_name($deal["city_id"]);
            ?>
</td><td>&nbsp;<?php 
            echo a_get_time_status($deal["time_status"], $deal['id']);
            ?>
</td><td>&nbsp;<?php 
            echo get_buy_type_title($deal["buy_type"]);
            ?>
</td><td>&nbsp;<?php 
            echo get_status($deal["brand_promote"]);
            ?>
</td><td>&nbsp;<?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>&nbsp;<?php 
            echo $brand["id"];
            ?>
</td><td>&nbsp;<?php 
            echo $brand["name"];
            ?>
</td><td>&nbsp;<?php 
            echo get_shop_cate_name($brand["shop_cate_id"]);
            ?>
</td><td>&nbsp;<?php 
            echo get_status($brand["brand_promote"]);
            ?>
</td><td>&nbsp;<?php 
            echo get_brand_time_status($brand["time_status"], $brand['id']);
            ?>
</td><td>&nbsp;<?php 
            echo get_sort($brand["sort"], $brand['id']);
            ?>
</td><td><a href="javascript:edit('<?php 
            echo $brand["id"];
            ?>
')"><?php 
            echo L("EDIT");