-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c96763
commit eaa4db9
Showing
1,068 changed files
with
8,011 additions
and
8,408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* Implement jQuery EasyUI v.1.5.4 GPL Edition on Yii2 | ||
* since : v.2.0.0-alpha4 | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* date : 2018-02-25 | ||
* website : sheillendra.com | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,10 @@ | |
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : sheillendra.com | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @link http://www.sheillendra.com/ | ||
* @copyright Copyright (c) 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,20 @@ | |
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : www.anjani.co.id | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
||
use Yii; | ||
use yii\web\AssetBundle; | ||
|
||
class JEasyUIAsset extends AssetBundle { | ||
public $sourcePath = '@sheillendra/jeasyui/assets/jquery-easyui-1.10.15'; | ||
class JEasyUIAsset extends AssetBundle | ||
{ | ||
public $sourcePath = '@sheillendra/jeasyui/assets/jquery-easyui-1.10.18'; | ||
public $css = [ | ||
'themes/default/easyui.css', | ||
'themes/icon.css', | ||
|
@@ -35,12 +38,18 @@ class JEasyUIAsset extends AssetBundle { | |
] | ||
]; | ||
|
||
public function init() { | ||
public function init() | ||
{ | ||
$themeCookies = filter_input(INPUT_COOKIE, 'jeasyui-theme'); | ||
$themes = ['black', 'bootstrap', 'default', 'gray', 'material', 'metro', | ||
//'metro-blue', 'metro-gray', 'metro-green', 'metro-orange', 'metro-red', | ||
//'ui-cupertino', 'ui-dark-hive', 'ui-pepper-grinder','ui-sunny' | ||
'material-blue', 'material-teal' | ||
$themes = [ | ||
'black', | ||
'bootstrap', | ||
'default', | ||
'gray', | ||
'material', | ||
'material-blue', | ||
'material-teal', | ||
'metro', | ||
]; | ||
if ($themeCookies && in_array($themeCookies, $themes)) { | ||
$this->css[0] = "themes/$themeCookies/easyui.css"; | ||
|
@@ -49,5 +58,4 @@ public function init() { | |
} | ||
parent::init(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* Implement jQuery EasyUI GPL Edition on Yii2 | ||
* since : v.0.0.2 | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* date : 2017-05-28 | ||
* website : www.anjani.co.id | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/** | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
||
use Yii; | ||
use yii\web\AssetBundle; | ||
|
||
/** | ||
* @author Qiang Xue <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
class ProfileAsset extends AssetBundle { | ||
|
||
public $sourcePath = '@sheillendra/jeasyui/assets/dist'; | ||
//public $basePath = '@webroot/dist/jeasyui'; | ||
//public $baseUrl = '@web/dist/jeasyui'; | ||
public $css = [ | ||
'css/profile.css', | ||
]; | ||
public $js = [ | ||
'js/profile.js' | ||
]; | ||
public $depends = [ | ||
'sheillendra\jeasyui\assets\YiiEasyUIAsset' | ||
]; | ||
|
||
public function init() { | ||
parent::init(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright (c) 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright (c) 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright (c) 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright (c) 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2 | ||
* since : v.0.0.1 | ||
* author : sheillendra | ||
* email : [email protected] | ||
* contact : +6281242126699 (whatsapp, viber) | ||
* date : 2014-10-04 | ||
* website : https://esppd.fly.dev/ | ||
*/ | ||
|
||
namespace sheillendra\jeasyui\assets; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
window.yii.profile = (function ($) { | ||
var profilePasswordForm; | ||
var oldPasswordInput; | ||
var newPasswordInput; | ||
var repeatPasswordInput; | ||
|
||
return { | ||
isActive: false, | ||
init: function () { | ||
var profileEl = $('#profile-index'); | ||
profileEl.layout({ | ||
fit: true, | ||
border: false | ||
}).layout('add', { | ||
region: 'center', | ||
border: true, | ||
content: '<div id="profile-center"></div>' | ||
}); | ||
|
||
var profileTab = $('#profile-center').tabs({ | ||
tabPosition: 'left', | ||
border: false, | ||
fit: true | ||
}); | ||
|
||
profilePasswordForm = $('<form id="eselon-form" method="post" style="padding: 10px"></form>'); | ||
profileTab.tabs('add', { | ||
title: 'Ganti Password', | ||
content: profilePasswordForm, | ||
selected: true, | ||
}); | ||
|
||
profileTab.tabs('add', { | ||
title: 'Foto', | ||
content: '<div style="padding: 10px">Fitur ini belum terbuka</div>', | ||
}); | ||
|
||
oldPasswordInput = $('<input id="old-password" name="oldPassword"/>'); | ||
profilePasswordForm.append(oldPasswordInput); | ||
oldPasswordInput.passwordbox({ | ||
label: 'Password Saat ini: ', | ||
labelPosition: 'top', | ||
width: 300, | ||
required: true | ||
}); | ||
|
||
newPasswordInput = $('<input id="new-password" name="newPassword"/>'); | ||
profilePasswordForm.append(newPasswordInput); | ||
newPasswordInput.passwordbox({ | ||
label: 'Password baru: ', | ||
labelPosition: 'top', | ||
width: 300, | ||
required: true, | ||
validType: "diffTo['#old-password']" | ||
}); | ||
|
||
repeatPasswordInput = $('<input name="repeatPassword"/>'); | ||
profilePasswordForm.append(repeatPasswordInput); | ||
repeatPasswordInput.passwordbox({ | ||
label: 'Ulangi Password baru: ', | ||
labelPosition: 'top', | ||
width: 300, | ||
required: true, | ||
validType: "equalTo['#new-password']" | ||
}); | ||
|
||
profilePasswordForm.append('<br><br>'); | ||
submitProfilePasswordForm = $('<div></div>'); | ||
profilePasswordForm.append(submitProfilePasswordForm); | ||
|
||
submitProfilePasswordForm.linkbutton({ | ||
iconCls: 'icon-disk', | ||
text: 'Simpan', | ||
onClick: function () { | ||
yii.easyui.showMainMask(); | ||
profilePasswordForm.form('submit'); | ||
} | ||
}); | ||
|
||
profilePasswordForm.form({ | ||
url: yii.easyui.ajaxAuthToken({ | ||
r: 'jeasyui/change-password', | ||
}, true), | ||
iframe: false, | ||
success: function (data) { | ||
yii.easyui.hideMainMask(); | ||
data = JSON.parse(data); | ||
if(data.success){ | ||
window.location.reload(); | ||
} else { | ||
$.messager.alert('Ganti Password', data.message, 'error'); | ||
} | ||
}, | ||
onSubmit: function (params) { | ||
var isValid = $(this).form('validate'); | ||
if (!isValid) { | ||
yii.easyui.hideMainMask(); // hide progress bar while the form is invalid | ||
} | ||
return isValid; | ||
} | ||
}); | ||
|
||
} | ||
}; | ||
})(window.jQuery); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.