Category: Jquery UI
-
Post Views: 52 The difference between echo(), print(), print_r() echo() is a language structure, no return value The function of print() is basically the same as echo(), and it is also a language structure. The difference is that print has a return value, and always returns 1 print_r is a recursive print for output array objects 2. What is the…
-
Post Views: 10 The implementation code is as follows: // uncheck the sorted line $(#checkout).live(Click, function(e){ if(!$(e.target).parent().hasClass(goods_row) ){ $(#checkout tr).removeClass(select-tr); } }); // sort, select the object to be moved $(#checkout .goods_row).live(Click, function(e){ if(!$(e.target).hasClass(goods_row) && !$(e.target).hasClass(goods_number) ){ var self = $(this); if(self.attr(merge_check) {//Set sales $(#checkout tr).not($(.+self.attr(merge_check))…RemoveClass(select-tr); $(.+self.attr(merge_check)).ToggleClass(select-tr); }Else {//Single product sales $(#checkout tr).not(self).removeClass(select-tr); self.toggleclass(select-tr); } } }); // exchange order…
-
Post Views: 14 The most initial code: $this->widget(zii.widgets.jui.cjuidatepicker, array( name=>mendtime, value=>date(Y-M-D, time()), Language=>yii::app()->getLanguage(), options=>array( showanim=>slidedown, changeyear=>true, changemonth=>true, showweek=>true, autosize=>true, dateformat=>YY-MM-DD, maxdate=>0, Mindate=>-10d, , HtmlOptions=>array( readonly=>readonly, class=>txt, Style=>width:200px ) )); Post-realization: Implementation process: 1. Extension download on the official website of yii:http://www.yiiframework.com/extension/datetimepicker/ 2. Copy the cjuidateTimePicker folder to the protected\extensions directory; 3. tohttps://github.com/trentrichardson/jQuery-Timepicker-Addon下载语言包,因为yii扩展中没有语言包; 4. Look in the file CJUIDateTimePicker.php: $CS->RegisterScriptFile($assets.self::assets_name..js,cclientScript::pos_end); add…
-
Post Views: 7 Now you need to extend the DatePicker, in: https://github.com/trentrichardson/jQuery-Timepicker-AddonThere are plugins that support this extension; The effect is as follows: Now the default is the English interface, the extended function needs to be set to Chinese, and the language setting file needs to be inserted: The result is as follows: