The autoLoad name cannot be the same as other scripts! Do not use comments, such as // embed the PHP variable: & amp; #39; & quot ;. $ params [& amp; #39; sdate & amp; #39;]. & quot; & amp; #39; & lt; optionvalue =\& quot; 0 \ & quot; & gt; others & lt;/option &
The autoLoad name cannot be the same as other scripts!
Do not use comments, such //
Embedded PHP variable: '". $ params ['sdate']."'
OthersThe Value in HTML must be enclosed in double quotation marks !!!!
Yii: app ()-> clientScript-> registerScript ('autoload ',"
Var status = '". $ params ['type']."';
Var sdate = '". $ params ['sdate']."';
Var edate = '". $ params ['update']."';
Var word = '". Yii: app ()-> request-> getParam ('word ')."';
$ ('# ShopInfo_shop_products'). val (word );
If (status = 'ossub '){
$ ('# Shop_launch_start_time'). val (sdate );
$ ('# Shop_launch_end_time'). val (edate );
$. Fn. yiiGridView. update ('Report-grids ',{
Data: $ ('# form'). serialize ()
});
}
Var currentUser = '". Yii: app ()-> user-> getName ()."';
If (currentUser = 'admin ')
$ ('Others'). InsertAfter (' # ShopInfo_shop_area_id option: LA ');
");
?>