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
#! /bin/bash | |
# May need to run this as sudo! | |
# I have it in /usr/local/bin and run command 'vhost' from anywhere, using sudo. | |
# | |
# Show Usage, Output to STDERR | |
# | |
function show_usage { | |
cat <<- _EOF_ |
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
/** | |
* Checks if a given route is active, if so return a class. | |
* | |
* class="{!! classActivePath('order') !!}" | |
* class="{!! classActivePath('order.index') !!}" | |
* | |
* @return path | |
* @source https://laracasts.com/discuss/channels/general-discussion/best-practice-for-handling-active-menu-item-in-l5/replies/117049 | |
*/ |
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 | |
$fontTypes = array('woff2', 'woff', 'ttf', 'svg', 'eot'); | |
$gFontURL = 'http://fonts.googleapis.com/css?family='; | |
$uaFonts = array( | |
'woff2' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36', | |
'woff' => 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0; GTB7.4; InfoPath.3; SV1; .NET CLR 3.1.76908; WOW64; en-US)', | |
'ttf' => 'Mozilla/5.0 (Linux; U; Android 2.2.1; en-ca; LG-P505R Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', | |
'svg' => 'Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10', |
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 addFile($act=null,$randomKey=null) | |
{ | |
$this->load->model('ManajemenSuratFileModel'); | |
if ($act == 'removeFile') { | |
$token=$this->input->post('token'); //exit(var_dump($token)); | |
$randomKey=$this->input->post('randomKey'); | |
$data = $this->db->get_where('manajemen_surat_file',array('token'=>$token,'random_key'=>$randomKey)); //exit(dump(show_last_query())); |
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
<style type="text/css"> | |
.dropzone { | |
/*margin-top: 100px;*/ | |
border: 2px dashed #0087F7; | |
} | |
</style> | |
<div class="dropzone"> | |
<div class="dz-message"> |
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
-- TUJUAN YANG ISINYA SATU | |
INSERT INTO manajemen_surat_keluar_1 (tgl_diterima, user_terima,random_key,id_surat_keluar_parent,no_agenda,id,id_klasifikasi,isi_ringkas,isi_lengkap,dari,no_surat,no_surat_sistem,no_surat_start,tgl_surat,tgl_catat,status_surat,create_status,iks,is_delete, status) | |
SELECT tgl_diterima, user_terima,random_key,id_surat_keluar_parent,no_agenda,id,id_klasifikasi,index_berkas,isi_lengkap,dari,no_surat_start,no_surat_sistem,no_surat_start,tgl_surat,tgl_catat,status_surat,create_status,iks,is_delete,'1' as status FROM manajemen_surat_keluar | |
WHERE | |
-- manajemen_surat_keluar.dari = '63' | |
date(manajemen_surat_keluar.tgl_surat) = "2019-03-15" | |
AND manajemen_surat_keluar.is_delete = "tidak" AND tujuan != ''; | |
insert into manajemen_surat_tujuan_1 (id, id_instansi, jenis, user_create) |
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
1. IRIN A 22 _1 _1 | |
2. IRIN B 35 _1 _1 | |
3. IRIN C 8 _1 _1 | |
4. IPMT 67 _1 _1 | |
5. Unit ODC 58 - - | |
6.Manager gd PRR 10006 _1 _1 | |
7. IPI 65 _1 _1 | |
8. Inst Logistik 33 _1 -1 | |
9. Inst MIK 11 _1 _1 | |
10. Instalasi Farmasi 13 _1 _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
function disposisi_upload() | |
{ | |
$this->load->library(array('PHPExcel','PHPExcel/IOFactory')); | |
if ($this->input->post('save')) { | |
$type = explode('.', $_FILES["import"]["name"]); // data file | |
$type = strtolower($type[count($type)-1]); // data type like .jpg | |
// exit(dump($type)); | |
$inputFileName = "./assets/upload/".uniqid(rand()).'.'.$type; // hash unik | |
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
<div class="col-xs-12 col-sm-12"> | |
<div class="box"> | |
<div class="box-content"> | |
<h3 class="page-header"><?php echo $title;?></h3> | |
<form class="form-horizontal well" action="<?=base_url('officeaction/disposisi_upload');?>" method="post" enctype="multipart/form-data" role="form"> | |
<div class="form-group"> | |
<div class="col-sm-3"> | |
<td><input type="file" id="import" name="import" multiple="multiple"></td> | |
</div> | |
<div class="col-sm-3"> |
OlderNewer