This file contains hidden or 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
/* | |
* Triger timeout button triger with timeout. | |
* @author piter novian [ptr.nov@gmail.com] | |
*/ | |
$this->registerJs(" | |
$(document).ready(function() { | |
$('#tab-project-id').click(function(){ | |
setTimeout(function(){ | |
var idx = $('ul li.active').index(); | |
//alert(idx); |
This file contains hidden or 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
[1]=== .htaccess ===> public_html ==== | |
#Options +FollowSymlinks | |
RewriteEngine On | |
# deal with admin first | |
#RewriteCond %{REQUEST_URI} ^/(admin) | |
#RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L] | |
#RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L] | |
#RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css)/ |
This file contains hidden or 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
<?php | |
Pjax::begin(['id'=>'msg-chat']); | |
//echo "asd"; | |
echo Html::mediaList([ | |
[ | |
//'id'=>'msg-chat', | |
'heading' => false, | |
'body' => false, | |
'imgOptions'=>false, | |
'src' => false, |
This file contains hidden or 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
'value'=>function($model){ | |
$test1='data:image/jpeg;charset=utf-8;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCABkAEsDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+Mjwt8evHmk6anh7WX0/xp4ZRgBoPjGwi1yziHK/6I9z/AKXYSBSVSW0nhdMDbkAV6DB4o/Zw8URK3iP4Y+KvCGoklpLnwH4pgewkY/8AUO8Q6 |
This file contains hidden or 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
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>Grudnik Helpdesk</title> | |
</head> | |
<body style="margin:0px; | |
padding:0px; | |
border: 0 none; | |
font-size: 11px; |
This file contains hidden or 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
1. conf my.ini | |
event_scheduler = ON | |
2. run query procedure | |
BEGIN | |
#conf add mysql.ini | |
#--event-scheduler=ON | |
SET GLOBAL event_scheduler = OFF; | |
SET @@global.event_scheduler = OFF; | |
SET GLOBAL event_scheduler = 0; |
This file contains hidden or 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
SET SESSION GROUP_CONCAT_MAX_LEN = 1000000; |
This file contains hidden or 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
#YII2 Call Procedure | |
#public function getScripts($page, $section){ | |
# return Yii::app()->db->createCommand("CALL your_stored_procedure(:page, :section)") | |
# ->queryAll(array(':page' => $page, ':section' => $section)); | |
#} | |
#$command = Yii::app()->db->createCommand('call my_proc("nice day today")'); | |
#$command->execute(); | |
#$connection = Yii::$app->db; |
This file contains hidden or 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
CREATE DEFINER=`root`@`localhost` PROCEDURE `so_1_ver1.1`() | |
BEGIN | |
SET @sql = NULL; | |
SELECT | |
GROUP_CONCAT(DISTINCT | |
CONCAT( | |
"MAX(case when KD_BARANG_ALIAS = '", | |
KD_BARANG_ALIAS, | |
"' then SO_QTY end) AS ", | |
replace(NM_BARANG, ' ', '') |
NewerOlder