From b26901429087fceda17161cd651e4bec18a6faf9 Mon Sep 17 00:00:00 2001 From: blobt <380255922@qq.com> Date: Thu, 12 Sep 2019 23:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddatetimepicker=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=AD=E6=96=87=E8=AF=AD=E9=9F=B3=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/controllers/TestController.php | 6 +- kcadmin/views/category/_form.php | 7 +- .../blobt/web/DatetimepickBootstrapAsset.php | 2 +- vendor/blobt/widgets/Icheck.php | 100 ++++++++++++++++++ vendor/blobt/widgets/Select2.php | 6 ++ 5 files changed, 114 insertions(+), 7 deletions(-) create mode 100644 vendor/blobt/widgets/Icheck.php diff --git a/console/controllers/TestController.php b/console/controllers/TestController.php index 3919bd6..5e95ebf 100644 --- a/console/controllers/TestController.php +++ b/console/controllers/TestController.php @@ -17,11 +17,11 @@ class TestController extends Controller { //Yii::$aa->security->generateRandomString(8); $security = Yii::createObject("yii\base\Security"); $n = 0; - for ($i = 1; $i < 100000; $i++) { + for ($i = 1; $i < 1000; $i++) { //$key = $security->generateRandomString(8); $key = rand(10000000, 99999999); - /*$key = strtolower($key); - $key = str_replace(['_', '-'], 'a', $key);*/ + //$key = strtolower($key); + //$key = str_replace(['_', '-'], 'a', $key); $ret[$key] += 1; } diff --git a/kcadmin/views/category/_form.php b/kcadmin/views/category/_form.php index ef30344..bd61a56 100644 --- a/kcadmin/views/category/_form.php +++ b/kcadmin/views/category/_form.php @@ -5,6 +5,7 @@ use yii\widgets\ActiveForm; use blobt\widgets\DatePicker; use blobt\widgets\Select2; use blobt\widgets\DatetimePicker; +use blobt\widgets\Icheck; /* @var $this yii\web\View */ /* @var $model common\models\Category */ @@ -15,14 +16,14 @@ use blobt\widgets\DatetimePicker;