Esempio n. 1
0
 public function actionIndex()
 {
     $this->render('index', array('cpname' => MainbusinessService::organidgetcpname(), 'vehicle' => MainbusinessService::organidgetvehicle(), 'brand' => MainbusinessService::organidgetbrand()));
 }
Esempio n. 2
0
File: index.php Progetto: zwq/unpei
)">删除</a>-->
                            </li>
                        <?php 
    }
    ?>
                    <?php 
}
?>
                </ul>
                <div style="clear:both;"></div>
            </div>
            <p class="m-top m_left20" style="margin-bottom: 5px"><span>主营品牌:</span>
                <!--<span class="add m_left"><a href="javascript:;" class="add_wz alternative" onclick="addbrand()"><span class="jiahao">+</span></a></span>-->
                <!--<a href="javascript:;" class="add_wz alternative" onclick="addbrand()">添加</a></p>-->
                <?php 
$brand = MainbusinessService::organidgetbrand();
$this->widget('widgets.default.WGridView', array('dataProvider' => $brand, 'columns' => array(array('name' => '序号', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1'), array('name' => '品牌名称', 'value' => '$data->BrandName'), array('name' => '拼音', 'value' => '$data->Pinyin'), array('name' => '描述', 'value' => '$data->Description'))));
?>
        </div>

    </div>
</div>

<?php 
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'reminddg', 'options' => array('title' => '操作提示', 'autoOpen' => false, 'width' => '300px', 'height' => 'auto', 'buttons' => array('关闭' => 'js:function(){ $(this).dialog("close");}'))));
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>
<script>
    //添加主营品牌
    function addbrand(){
        window.location.href ="<?php