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 | |
//Place in your constructor of your controller | |
//Make sure your model located in application/models | |
foreach(glob(APPPATH."models/"."*.php") as $entry){ | |
$modelname = str_replace(APPPATH."models/","",$entry); //Clear Path To DIR | |
$modelname = str_replace(".php","",$modelname); //Clear file Extenstion | |
$this->load->model($modelname); | |
} |
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
Command to install : | |
npm i -g @vue/cli | |
If ERROR : | |
- Unexpected end of JSON input while parsing near '...2cb19f794d4308c6b2dfd' | |
npm cache clean --force | |
- Missing write access to /usr/lib/node_modules | |
sudo chown -R $USER /usr/lib/node_modules |
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
$upload_data = $this->upload->data(); | |
rename( | |
$upload_data['full_path'], | |
$upload_data['file_path'].'/'.$user_id.'_'.$upload_data['orig_name'] | |
); |
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
/** | |
* @package njr_helper | |
* @subpackage Helper | |
* @author Nur Rachmat <rachmat.nur91@gmail.com> | |
* @version 0.1 | |
* @copyright Copyright © 2017 Nur Rachmat <rachmat.nur91@gmail.com> | |
*/ | |
public function terbilang($satuan) | |
{ | |
$huruf = array ("", "Satu", "Dua", "Tiga", "Empat", "Lima", "Enam", "Tujuh", "Delapan", "Sembilan", "Sepuluh","Sebelas"); |
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
function terbilang(satuan){ | |
var huruf = [" ", "Satu", "Dua", "Tiga", "Empat", "Lima", "Enam", "Tujuh", "Delapan", "Sembilan", "Sepuluh","Sebelas"]; | |
if(satuan == "") | |
return " "; | |
if (satuan < 12) | |
return " " + huruf[Math.floor(satuan)]; | |
else if (satuan < 20) | |
return Terbilang(satuan - 10) + " Belas"; |
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
/** | |
* @package njr_helper | |
* @subpackage Helper | |
* @author Nur Rachmat <rachmat.nur91@gmail.com> | |
* @version 0.1 | |
* @copyright Copyright © 2017 Nur Rachmat <rachmat.nur91@gmail.com> | |
*/ | |
/** | |
* Convert Number to Roman |
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
/** | |
* @package njr_helper | |
* @subpackage Helper | |
* @author Nur Rachmat <rachmat.nur91@gmail.com> | |
* @version 0.1 | |
* @copyright Copyright © 2017 Nur Rachmat <rachmat.nur91@gmail.com> | |
*/ | |
/** | |
* Big Number Converter (Shorter) | |
* @param integer $nominal |
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
/** | |
* @package njr_helper | |
* @subpackage Helper | |
* @author Nur Rachmat <rachmat.nur91@gmail.com> | |
* @version 0.1 | |
* @copyright Copyright © 2017 Nur Rachmat <rachmat.nur91@gmail.com> | |
*/ | |
/** | |
* Show bootstrap label | |
* @param string $msg |
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
/** | |
* @package njr_helper | |
* @subpackage Helper | |
* @author Nur Rachmat <rachmat.nur91@gmail.com> | |
* @version 0.1 | |
* @copyright Copyright © 2017 Nur Rachmat <rachmat.nur91@gmail.com> | |
*/ | |
/** | |
* Show Bootstrap Alert Box | |
* @param string $msg Message to display |
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
insert into bimbingan (mahasiswa_id, dosen_id, jenis_bimbingan, materi_bimbigan, tanggal_bimbingan, catatan_dosen) | |
values (1, 1, 'KP', 'KAKP', '2023-04-01', 'revisi'), | |
(1, 1, 'KP', 'Revisi KAKP', '2023-04-02', 'Perbaiki format penulisan'), | |
(1, 1, 'KP', 'Revisi Penulisan KAKP', '2023-04-03', 'acc'), | |
(4, 1, 'TA', 'Pengajuan Judul', '2023-04-01', 'Ganti judul'), | |
(4, 1, 'TA', 'Pengajuan Ganti Judul Baru', '2023-04-03', 'acc lanjut bab 1'), | |
(4, 1, 'TA', 'Bimbingan BAB 1', '2023-04-04', 'perbaiki latar belakang dan format penulisan'), | |
(4, 1, 'TA', 'Revisi BAB 1', '2023-04-06', 'perbanyak sitasi, gunakan mendeley'), | |
(4, 1, 'TA', 'Revisi BAB 1', '2023-04-10', 'perbaiki rumusan masalah'), | |
(2, 2, 'TA', 'Pengumpulan Data', '2023-05-01', 'Lakukan pengumpulan data lebih terperinci'), |
OlderNewer