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
$('.addPriceRow').click(function(){ | |
new_row = '<tr>'; | |
new_row += '<td>3</td>'; | |
new_row += '<td><button class="btn btn-warning btn-sm" type="button" name="button"> <i class="fa fa-remove"></i> </button></td>'; | |
new_row += '<td>'; | |
new_row += '<select class="form-control satuan_jual" name="id_satuan_jual" style="width:100%">' | |
new_row += '<option></option>'; | |
new_row += '</select>'; | |
new_row += '</td>'; | |
new_row += '<td><input class="form-control qty" type="text" name="" value=""></td>'; |
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
// ===== CONTROLLER::SAVE | |
public function save() | |
{ | |
// Proses validasi | |
if(!$this->validate($this->model->validationRulesIU())){ | |
$validation = \Config\Services::validation(); | |
return redirect()->to('/setting/level')->withInput()->with('validation', $validation); | |
} |
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\Controllers; | |
class Cashier extends BaseController | |
{ | |
protected $model; | |
public function __construct() | |
{ | |
// $this->model = new Hrd_model(); |
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 test_upload_image_proses() | |
{ | |
// Start loading | |
$awal = microtime(true); | |
// Pengolahan file image | |
$inputFileName = base_url('/upload/files/test.png'); | |
$data = file_get_contents($inputFileName); | |
// Menghitung waktu load |