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
<?php | |
define('YII_ENABLE_ERROR_HANDLER', false); | |
/** | |
* Class Yii_Library | |
* @package Libraries | |
*/ | |
class Yii_Library |
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
public function actionReadImportFile($id) { | |
$data = Yii::$app->session['import_kuesioner']; | |
$path = \Yii::getAlias('@webroot') . '/uploads/kuesioner/' . $data . ''; | |
try { | |
$inputFileType = \PHPExcel_IOFactory::identify($path); | |
$objReader = \PHPExcel_IOFactory::createReader($inputFileType); | |
libxml_use_internal_errors(true); |
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
public function actionExportExcel($id) { | |
$kuesioner = \app\models\Kuesioner::find()->where(['id' => $id])->one(); | |
$sqlProyek = "SELECT * FROM proyek WHERE id = '" . $kuesioner->proyek . "' "; | |
$rowSqlProyek = Yii::$app->db->createCommand($sqlProyek)->queryOne(); | |
$filename = 'Indosurvey - Export Kuesioner ( ' . $kuesioner->judul_kuesioner . ' ) ' . date('Y-m-d') . '.xlsx'; | |
$columnName = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q']; | |
$column[] = ["No","Judul Kelompok","Pertanyaan","Kolom","Jenis","Opsi","Tanggal dibuat","Tanggal diupdate","Urutan","Min","Max","Default","Keterangan","Wajib","Score", "Pertanyaan Selanjutnya", ""]; |
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
<?php | |
namespace app\components; | |
use yii\web\View; | |
/** | |
* Class Controller | |
* @package app\components | |
* @author chabib nurozak <[email protected]> | |
* @version 1 |
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
<html> | |
<head> | |
<script | |
src="https://code.jquery.com/jquery-3.2.1.min.js" | |
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" | |
crossorigin="anonymous"></script> | |
<script type="text/javascript" src="ss.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
$(".test").terbilang(); |
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
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> | |
<iframe src="http://localhost:8087" height="300" width="200"></iframe> |
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
'use strict'; | |
import {AsyncStorage} from 'react-native'; | |
let Auth = { | |
async getIsLogin(){ | |
try { | |
let isLogin = await AsyncStorage.getItem("@SESSION:isLogin"); | |
return '1' === isLogin; | |
}catch(err){ |
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
<?php | |
/** | |
* Class ApiController | |
* | |
* File Location : application/core/ApiController.php | |
* | |
* @property CI_Input $input | |
* @property CI_Output $output | |
*/ |
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
$JS = <<<JS | |
$('body').on('keydown', 'input, select', function(e) { | |
if (e.key === "Enter") { | |
var self = $(this), form = self.parents('form:eq(0)'), focusable, next; | |
focusable = form.find('input,a,select,button,textarea').filter(':visible'); | |
next = focusable.eq(focusable.index(this)+1); | |
if (next.length) { | |
next.focus(); | |
} else { | |
form.submit(); |
OlderNewer