public function actionDel() { $ID = $_GET['ID']; $bool = DealerGoodsUnit::model()->deleteByPk($ID); echo $bool; }
</p> <p class="fitem"> <label style=" width: 70px">标杆商品号:</label> <input type="text" name="BganGoodsNO" class="width100 input"> <label>商品规格:</label> <input type="text" name="Specifica" class="width100 input"> </p> <div style="height: 5px;"></div> <p class="fitem" style=" float: left"> 商品单位: <?php $organID = Commonmodel::getOrganID(); $UnitNames = DealerGoodsUnit::model()->findAll("OrganID = {$organID}"); $UnitName = CHtml::listData($UnitNames, 'UnitName', 'UnitName'); echo CHtml::dropDownList('Unit', 'Unit', $UnitName, array('class' => 'width112 select easyui-validatebox', 'empty' => '选择商品单位', 'required' => "true")); ?> <!--<input type="text" name="Unit" class="width50 input">--> 长度: <input type="text" name="Length" validType='floatnum' class="easyui-validatebox width50 input"> cm </p> <p class="fitem" style=" float: left"> <label>商品重量:</label> <input type="text" name="Weight" validType='floatnum' class="easyui-validatebox width50 input"> kg </p> <p class="fitem">