<div class="area-sub" id="dealernews_show" style="display:none;z-index: 1002"> <div class="tab-product tab-sub-3 ui-style-gradient"> <div class="tab-hd"> <span id="dealershow1" style="margin-left:30px" class="tab-hd-con current remindspan" onclick="current(1)"><a href="javascript:;">业务提醒</a></span> <!-- <span id="dealershow2" class="tab-hd-con " onclick="current(2)"><a href="javascript:;">待发货的订单</a></span> --> <span id="dealershow2" class="tab-hd-con remindspan" onclick="current(2)" style="border-right: 1px solid #e2e2e2"><a href="javascript:;">系统提醒</a></span> <div style="clear:both"></div> <!--<span class="tab-hd-con bor_right" key="current4"><a href="javascript:;">异常订单</a></span>--> </div> <?php $organID = Yii::app()->user->getOrganID(); ?> <div class="tab-bd dom-display dom-display8"> <div class="tab-bd-con current remindgrid" id="ordershow1"> <?php $this->widget('widgets.default.WGridView', array('dataProvider' => RemindService::getBusinessRemind(array('OrganID' => $organID, 'HandleStatus' => '0,1')), 'pager' => false, 'id' => 'businesslist', 'ajaxUpdate' => true, 'columns' => array(array('name' => '#', 'value' => '$data[NO]', 'headerHtmlOptions' => array('width' => '20px')), array('name' => '提醒时间', 'value' => 'date("Y-m-d H:i:s",$data["CreateTime"])', 'headerHtmlOptions' => array('width' => '150px')), array('name' => '提醒内容', 'type' => 'raw', 'value' => '$data[Content]'), array('name' => '查看处理', 'type' => 'raw', 'value' => '$data[Link]', 'headerHtmlOptions' => array('width' => '100px'))))); ?> <div style="height:30px"><a style="height:30px;line-height: 30px;" class="indexmore" href="<?php echo Yii::app()->createUrl("pap/remind/index"); ?> ">查看更多</a></div> </div> <div class="tab-bd-con remindgrid" style="display: none;" id="ordershow2"> <?php $this->widget('widgets.default.WGridView', array('dataProvider' => RemindService::getSystemRemind(array('OrganID' => $organID, 'ReadStatus' => 0)), 'pager' => false, 'id' => 'systemlist', 'ajaxUpdate' => true, 'columns' => array(array('name' => '#', 'value' => '$data[NO]', 'headerHtmlOptions' => array('width' => '20px')), array('name' => '提醒时间', 'value' => 'date("Y-m-d H:i:s",$data["CreateTime"])', 'headerHtmlOptions' => array('width' => '150px')), array('name' => '提醒类型', 'type' => 'raw', 'value' => '$data[typeName]', 'headerHtmlOptions' => array('width' => '80px')), array('name' => '提醒内容', 'type' => 'raw', 'value' => '$data[Content]'), array('name' => '查看处理', 'type' => 'raw', 'value' => '$data[Link]', 'headerHtmlOptions' => array('width' => '100px'))))); ?> <div style="height:30px"> <a style="height:30px;line-height: 30px;" class="indexmore" href="<?php echo Yii::app()->createUrl("pap/remind/index"); ?> ">查看更多</a>
public function actionGetBusiness() { $params['OrganID'] = Yii::app()->user->getOrganID(); $data = RemindService::getBusinessRemind($params); $this->render('remind', array('data' => $data)); }