<div style='max-height:500px;overflow:auto;min-width:850px;'>
    <table class="table table-hover" style="min-width:850px;">
        <tbody>
            <?php foreach( $ds as  $row  ){ ?>
            <tr>
              <td><img src='{:tomedia($row['thumb'])}' style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$row['goodsname']}</td>
              <td style="width: 80px"><a class="text-primary" href="javascript:;" onclick='biz.selector.set(this, {:json_encode($row);})'>选择</a></td>
            </tr>
            <?php } ?>
            <?php if( count($ds)<=0){ ?>
            <tr> 
                <td colspan='4' align='center'>未找到商品</td>
            </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
