本文整理汇总了PHP中Coupon::search方法的典型用法代码示例。如果您正苦于以下问题:PHP Coupon::search方法的具体用法?PHP Coupon::search怎么用?PHP Coupon::search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Coupon
的用法示例。
在下文中一共展示了Coupon::search方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Coupon
<?php
$model = new Coupon();
$columns = array();
if (Yii::app()->user->isSuperadmin()) {
$columns[] = array('name' => 'wlabel_id', 'header' => 'White Label', 'filter' => CHtml::listData(WhiteLabel::model()->findAll(), 'wlabel_id', 'name'), 'value' => '$data->p_whitelabel->name');
}
$columns[] = array('name' => 'coupon_id', 'header' => 'ID');
$columns[] = array('name' => 'headline', 'header' => 'Headline');
$columns[] = array('name' => 'redeemed', 'header' => 'Redeemed');
$columns[] = array('name' => 'redemption_rate', 'header' => 'Redemption Rate');
?>
<div id="tabs-2" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide">
<?php
$this->widget('zii.widgets.grid.CGridView', array('id' => 'user-grid', 'dataProvider' => $model->search($qsForm->dateFrom, $qsForm->dateTo), 'filter' => null, 'columns' => $columns));
?>
<img src="http://chart.apis.google.com/chart?chs=460x240&cht=p3&chco=BBCCED|76A4FB|3399CC|3366CC|224499|008000&chd=s:fUPPb8&chdl=Akif+Quddus|Trey+Brister|Sally+Carson|Joe+Garcia|Phuong+Nguyen|All+Others&chl=50|32|25|24|45|98&chma=|5&chtt=Redemption+Rate+By+Employee&chts=FF0000,18" width="460" height="240" alt="Redemption Rate By Employee" />
<img src="http://chart.apis.google.com/chart?chxs=0,008000,11.5&chxt=x&chs=480x240&cht=p3&chco=BBCCED,76A4FB,3399CC,3072F3,3366CC,008000&chd=s:bNVil4&chdl=Akif+Quddus|Benny+Elder|Vincent+Trisapta|Jon+Hall|Mike+Summer|All+Others&chl=45|21|35|56|61|92&chma=0,0,5&chtt=Promotions+Redeemed+By+Employee&chts=FF0000,18" width="480" height="240" alt="Promotions Redeemed By Employee" />
<div class="clearfix"></div>
<!-- Each Tab Ends -->
</div>