<?php use yii\web\View; use yii\helpers\Url; use yii\helpers\Html; use app\assets\AppAsset; use yii\widgets\LinkPager; AppAsset::register($this); AppAsset::addScript($this, '@web/static/js/jqueryExtend.js'); AppAsset::addScript($this, '@web/static/js/jqueryFnExtend.js'); $this->title = '编辑竞猜问题'; $js = "\n" . 'var url="' . Url::toRoute(['/que/checkinfo'], true) . '?zhi_id=' . $zhi_id . '";'; $js .= "\n" . 'var edit_url="' . Url::toRoute(['/que/edit'], true) . '";'; $js .= "\n" . 'var del_url="' . Url::toRoute(['/que/del'], true) . '";'; $js .= "\n" . 'var check_url="' . Url::toRoute(['/que/check'], true) . '";'; $js .= "\n" . 'var remove_url="' . Url::toRoute(['/que/remove'], true) . '";'; $js .= "\n" . 'var Answer_url="' . Url::toRoute(['/que/answer'], true) . '";'; $js .= "\n" . 'var lottery_url="' . Url::toRoute(['/que/lottery'], true) . '";'; $js .= "\n" . 'var lotteryRe_url="' . Url::toRoute(['/que/lotteryrestart'], true) . '";'; $js .= "\n"; $js .= <<<JS \$(function(){ getTable1(url); }); function getTable1(url,params){ var columns=[[ {field:'ck',checkbox:true }, {field:'type_name',title:'体育类型',width:60,align:'center'}, {field:'group_name',title:'问题形式',width:60,align:'center'}, {field:'que_content',title:'问题',width:400,align:'center'},