Ejemplo n.º 1
0
 */
$this->title = '员工推广详单';
$this->params['breadcrumbs'][] = ['label' => '员工推广成绩排行', 'url' => ['stafftop']];
//Html::a("aaa", ['stafftop']);
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="muser-index">

	<h1><?php 
//echo Html::encode($this->title)
?>
</h1>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'options' => ['class' => 'table-responsive'], 'tableOptions' => ['class' => 'table table-striped'], 'columns' => [['label' => false, 'attribute' => 'headimgurl', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
    $headimgurl = Html::img(U::getUserHeadimgurl($model->headimgurl, 46), ['style' => 'width:46px;']);
    return $headimgurl;
}], ['label' => '昵称', 'attribute' => 'nickname'], ['label' => '关注时间', 'attribute' => 'create_time']]]);
?>

</div>

<?php 
/*
//            'openid',    
//			'nickname',
//			'title',

    <p>
		<?php echo Html::a('Create User', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
Ejemplo n.º 2
0
use app\models\MOffice;
$this->title = '累计推广成绩明细';
$this->params['breadcrumbs'][] = ['label' => '渠道管理', 'url' => ['channellist']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="muser-index">

	<h1><?php 
//echo Html::encode($this->title)
?>
</h1>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'options' => ['class' => 'table-responsive'], 'tableOptions' => ['class' => 'table table-striped'], 'bordered' => false, 'columns' => [['label' => '关注时间', 'attribute' => 'create_time', 'filterType' => GridView::FILTER_DATE, 'format' => 'raw', 'width' => '250px', 'filterWidgetOptions' => ['type' => \kartik\widgets\DatePicker::TYPE_RANGE, 'separator' => '至', 'attribute2' => 'create_time_2', 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'language' => 'zh-CN']]], ['attribute' => 'FromUserName', 'label' => '微信昵称', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
    $nickname = empty($model->user->nickname) ? $model->FromUserName : $model->user->nickname;
    $headimgurl = empty($model->user->headimgurl) ? '' : Html::img(U::getUserHeadimgurl($model->user->headimgurl, 46), ['style' => 'width:46px;']);
    return "{$headimgurl} {$nickname}";
}, 'headerOptions' => array('style' => 'width:30%;')], ['attribute' => 'FromUserName', 'label' => '微信Id'], ['filter' => false, 'attribute' => 'Event', 'label' => false, 'value' => function ($model, $key, $index, $column) {
    return $model->Event == 'unsubscribe' ? '取消关注' : '关注';
}, 'headerOptions' => array('style' => 'width:30%;')]]]);
?>

</div>

<?php 
/*
			[
				'attribute' => 'EventKeyCRC',
			],

Ejemplo n.º 3
0
        id="table-custom-2"
        data-mode="columntoggle"
        class="ui-body-d ui-shadow table-stripe ui-responsive"
        data-column-btn-text="选择要显示的列..."
        data-column-popup-theme="a"
        -->

	    <!-- -->
	    <!--<ul data-role="listview" data-inset="true">-->
        <ul data-role="listview" data-inset="false" class="ui-nodisc-icon ui-alt-icon">
		    <?php 
foreach ($rows as $row) {
    ?>
		    <li>
			    <img src="<?php 
    echo U::getUserHeadimgurl($row['headimgurl'], 96);
    ?>
 ">
			    <h2><?php 
    echo $row['nickname'];
    ?>
</h2>

			    <p><?php 
    echo $row['create_time_new'];
    ?>
</p>

			    <p><?php 
    echo $row['detail'];
    ?>
Ejemplo n.º 4
0
//echo $this->render('_search', ['model' => $searchModel]);
?>
    <p>
		<?php 
//echo Html::a('Create User', ['create'], ['class' => 'btn btn-success'])
?>
		<?php 
echo Html::a('下载 <i class="glyphicon glyphicon-arrow-down"></i>', U::current(['download' => 1]), ['class' => 'btn btn-success', 'data-pjax' => '0']);
?>
    </p>

<?php 
$columns = [['label' => '微信信息', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
    $nicknameStr = $model->nickname;
    $nickname = emoji_unified_to_html($nicknameStr);
    $headimgurl = empty($model->headimgurl) ? "<img style='float:left;' width=48 src='/wx/web/images/wxmpres/headimg-blank.png'>" : Html::img(app\models\U::getUserHeadimgurl($model->headimgurl, 48), ['style' => 'width:46px;']);
    return "{$headimgurl}";
}, 'headerOptions' => array('style' => 'width:5%;')], ['attribute' => 'nickname', 'label' => '', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
    $nicknameStr = $model->nickname;
    /*
        //function emoji_docomo_to_unified(   $text){ return emoji_convert($text, 'docomo_to_unified'); }
        //function emoji_kddi_to_unified(     $text){ return emoji_convert($text, 'kddi_to_unified'); }
        function emoji_softbank_to_unified( $text){ return emoji_convert($text, 'softbank_to_unified'); }
        //function emoji_google_to_unified(   $text){ return emoji_convert($text, 'google_to_unified'); }
    */
    $nickname = emoji_unified_to_html(emoji_softbank_to_unified($nicknameStr));
    $mobiles = $model->getBindMobileNumbers();
    $mobile = empty($mobiles) ? '无' : implode(',', $mobiles);
    //$headimgurl = empty($model->headimgurl) ? '' : Html::img(app\models\U::getUserHeadimgurl($model->headimgurl, 46), ['style'=>'width:46px;']);
    return "<span style='color:#aaa'>昵称 " . $nickname . "<br>地区 " . $model->country . "&nbsp;" . $model->province . "&nbsp;" . $model->city . "<br>绑定手机 " . $mobile . "</span>";
}, 'headerOptions' => array('style' => 'width:18%;')], ['label' => '绑定手机号', 'attribute' => 'mobile', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {