<?php use common\z\ZCommonSessionFun; $role = ZCommonSessionFun::get_role(); $data['data'] = ''; if ($pagination->page < $pagination->pageCount) { $data['data'] = ''; } foreach ($a_models as $key => $row) { if ($row->tax == 1) { $url = Yii::$app->urlManager->createUrl(['answer/step1', 'id' => $row->id]); } else { $url = Yii::$app->urlManager->createUrl(['answer/step2-answer2', 'id' => $row->id]); } $image = common\models\Survey::getImageUrl($row); $is_top_text = ''; $is_top_url = ''; $op0 = Yii::$app->urlManager->createUrl(['survey/recommend', 'id' => $row->id, 'op' => 0]); $op1 = Yii::$app->urlManager->createUrl(['survey/recommend', 'id' => $row->id, 'op' => 1]); $is_top = 0; if ($row->is_top > 0) { $is_top_text = '取消推荐'; $is_top = 0; } else { $is_top_text = '推荐'; $is_top = 1; } $str_recommend = ''; if ($role == 1) { $str_recommend = <<<str \t\t\t\t<a
padding: 0px 5px; float: left; border: 1px solid #ddd; display: inline-block; } .td-3>div>a.a-right{ float: right; } </style> <?php use common\z\ZCommonSessionFun; use common\z\ZCommonFun; use common\models\UsersFriends; use common\models\UserProfile; use common\models\User; $model_SurveyTotal = new common\models\Survey(); $sessionUser = ZCommonSessionFun::get_user_session(); $url_my_test = Yii::$app->urlManager->createUrl(['survey/my']); $url_me_test = Yii::$app->urlManager->createUrl(['my/me-test']); $url_me_message = Yii::$app->urlManager->createUrl(['my/my-message']); $url_create_test = Yii::$app->urlManager->createUrl(['survey/step1']); $url_withdraw = ''; $url_user_setting = Yii::$app->urlManager->createUrl(['user-profile/bind']); $url_logout = Yii::$app->urlManager->createUrl(['login/logout']); $current_id = Yii::$app->controller->id . '/' . Yii::$app->controller->action->id; $current_id = strtolower($current_id); $header_user_menu = ['survey/my', 'my/me-test', 'my/my-message']; foreach ($header_user_menu as $key => $header_user_menu_row) { $header_user_name = 'header_user_name_select' . $key; ${$header_user_name} = ''; if ($header_user_menu_row == $current_id) {