示例#1
0
文件: goodslist.php 项目: zwq/unpei
            &nbsp;&nbsp;<label>商品品牌:</label>
            <?php 
echo CHtml::dropDownlist('GoodsBrand', '', CHtml::listData($cate, 'BrandID', 'BrandName'), array('class' => 'width110 select', 'empty' => '请选择品牌', 'id' => 'goodsbrand'));
?>
            &nbsp;&nbsp;&nbsp;&nbsp;<label>商品类别:</label>
            <?php 
echo CHtml::dropDownlist('GoodsCategory', '', CHtml::listData($result, "id", "name"), array('class' => 'width110 select', 'empty' => '请选择类别', 'id' => 'goodscategory'));
?>
            <!--            <label>&nbsp;&nbsp;时间段:</label>
                        <input class="easyui-datebox" type="text" style="width:88px" name="begintime" id="begintime">-<input class="easyui-datebox"  type="text" style="width:88px" name="endtime" id="endtime">&nbsp;-->
            &nbsp;&nbsp;&nbsp;&nbsp;<label>适用车型:&nbsp;&nbsp;</label><input class="width98 input" name="carmodel" id="carmodel">
        </p>
        <p class="form-row">
            <label>&nbsp;&nbsp;配件品类:</label>
            <?php 
$res = Commonmodel::Getcpnames();
$params = array('class' => 'width230 select', 'id' => 'leafCategorysearch');
if (!$res['cpnames']) {
    $params['empty'] = '请添加配件品类';
}
?>
            <?php 
echo CHtml::dropDownlist('leafCategorysearch', $res['firstcpname'], $res['cpnames'], $params);
?>
 
            <label style="margin-left:10px">&nbsp;&nbsp;上/下架: </label>
            <select name="IsSale" class="width100 select" id="issale">
                <option value="">全部</option>
                <option value="0">上架</option>
                <option value="1">下架</option>
            </select>