Пример #1
0
echo $StandCode['bignameid'];
?>
"  >
                            <input  name="SubParts" type="hidden" value="<?php 
echo $StandCode['subnameid'];
?>
"  >
                        </p>
                        <p class="m-top"> <span class=" p_left9">商品品牌:</span>
                            <?php 
//                            $organID = Commonmodel::getOrganID();
//                            $brandNames = Brand::model()->findAll("OrganID = $organID");
//                            var_dump($brandNames);
//                            $brandName = CHtml::listData($brandNames, 'ID', 'BrandName');
//                            var_dump($brandName);
$brandNames = DealergoodsService::codegetbrand($StandCode['code']);
$brandName = $brandNames ? $brandNames : array();
echo CHtml::dropDownList('goodsBrand', 'goodsBrand', $brandName, array('class' => 'select select2 ', 'empty' => '选择商品品牌'));
?>
	
                            <input type="hidden" name="BrandName">
                        </p>

                        <div id="showoe"> 
                            <p class="m-top">
                                <span class="p_left33">OE号:</span>
                                <input type="text"   maxlength="20" name="OENOS[]" maxlength="20" id="oe_id" key="yes" class=" input input3 width250">
                                <span class="add m_left"><a class="jiahao"  onclick="addOENO()">+</a></span><a href="javascript:void(0)" class="add_wz" onclick="addOENO()">添加OE号</a>
                            </p>
                        </div>
                        <!--<p class="fitem showVehicle" id="showOENO" > 显示OENO </p>-->
Пример #2
0
    ?>
                                <span style="color:green">(提示:配件品类有变化)</span>
                            <?php 
}
?>
                            <input type="hidden" name="bignameid" id="bignameid_value"/>
                            <input type="hidden" name="subnameid" id="subnameid_value"/>
                        </p>
                        <p class="m-top"> <span class=" p_left9">商品品牌:</span>
                            <?php 
//                            $organID = Commonmodel::getOrganID();
//                            $brandNames = Brand::model()->findAll("OrganID = $organID");
//                            $brandName = CHtml::listData($brandNames, 'ID', 'BrandName');
//                            $selected = $data['BrandID'];
$selected = $data['BrandID'];
$brandNames = DealergoodsService::codegetbrand($data['StandCode']);
$brandName = $brandNames ? $brandNames : array();
echo CHtml::dropDownList('goodsBrand', $selected, $brandName, array('class' => 'select select2 ', 'empty' => '选择商品品牌'));
?>
	
                            <?php 
if ($edit['Brand']) {
    ?>
                                <span style="color:green">(提示:商品品牌有变化)</span>
                            <?php 
}
?>
                            <input type="hidden" name="BrandName">

                        </p>
<!--                        <p class="m-top">
Пример #3
0
?>
" ></p>
                        <p class="m-top">
                            <span  class="m_left12">配件品类:</span>
                            <input id="cpname-search" type="text" class=" input input3 width250" value="<?php 
echo DealergoodsService::StandCodegetcpname($data->StandCode, 'Name');
?>
"  ></p>
                        <p class="m-top"> <span class=" m_left12">商品品牌:</span>
                            <?php 
//                            $organID = Commonmodel::getOrganID();
//                            $brandNames = Brand::model()->findAll("OrganID = $organID");
//                            $brandName = CHtml::listData($brandNames, 'ID', 'BrandName');
//                            $selected = $data->BrandID;
$selected = $data->BrandID;
$brandNames = DealergoodsService::codegetbrand($data->StandCode);
$brandName = $brandNames ? $brandNames : array();
echo CHtml::dropDownList('goodsBrand', $selected, $brandName, array('class' => 'select select2 ', 'empty' => '选择商品品牌'));
?>
	
                            <input type="hidden" name="BrandName">

                        </p>
                        <div class="m-top" id="showoe"> 
                            <p class="m-top">
                                <span class=" m_left36">OE号:</span>
                                <input type="text"  name="OENOS[]" value="<?php 
echo $data->goodoe[0]['OENO'];
?>
" class=" input input3 width250" onblur="oechange()">
                                <span class="add m_left"><a class="jiahao"  onclick="addOENO()">+</a></span><a href="javascript:;" class="add_wz" onclick="addOENO()">添加OE号</a>