You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
2.5 KiB
PHTML
119 lines
2.5 KiB
PHTML
@extends('temp.admin')
|
|
@php
|
|
use NN\Module\DB;
|
|
use NN\Module\Perusahaan as perush;
|
|
$demo = perush::datalogin()['data'][0]->demo;
|
|
|
|
$set = [
|
|
"title" => "Setting"
|
|
, "subtitle" => "Pembagian SHU"
|
|
, "thead" => [
|
|
"#","kode","Nama","Persentase Induk","App"
|
|
]
|
|
];
|
|
|
|
@endphp
|
|
@section("content")
|
|
|
|
@include("temp.temp1", $set)
|
|
|
|
<noscript id="datainternal">{!! json_encode(DB::query_result_object("SELECT kode id, keterangan text FROM dept")) !!}</noscript>
|
|
@endsection
|
|
|
|
@section('script')
|
|
<script>
|
|
|
|
let dataInput = [
|
|
{
|
|
id:'acc',
|
|
text: 'Induk'
|
|
},
|
|
{
|
|
id: 'usp'
|
|
,text : 'USP'
|
|
}
|
|
];
|
|
|
|
var objectForm = {
|
|
title : function(){
|
|
return 'Pembagian SHU';
|
|
},
|
|
table :"shup",
|
|
idform :"containerforms",
|
|
newkode: ``,
|
|
kode: 'kode',
|
|
view: ['kode', 'nama','persen', 'app'],
|
|
custome: {
|
|
},
|
|
oncreate: function(a){
|
|
|
|
},
|
|
onupdate: function(dt){
|
|
|
|
},
|
|
dataSelect: ["*"],
|
|
queryTemp: "SELECT {select} FROM shup || ORDER BY kode ASC",
|
|
validasiForm: [],
|
|
data: [
|
|
{
|
|
title: 'Kode',
|
|
type: 'text',
|
|
name: 'kode',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
,{
|
|
title: 'App',
|
|
type: 'select',
|
|
name: 'app',
|
|
row: 12,
|
|
readonly: true,
|
|
data: dataInput,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
,{
|
|
title: 'Nama',
|
|
type: 'text',
|
|
name: 'nama',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
,{
|
|
title: 'Pesentase Induk (%)',
|
|
type: 'number',
|
|
name: 'persen',
|
|
row: 12,
|
|
readonly: false,
|
|
action: function(){
|
|
|
|
},
|
|
}
|
|
]
|
|
};
|
|
</script>
|
|
@include('temp.crudpinjaman')
|
|
@endsection
|
|
@section('css')
|
|
<style>
|
|
.dataTable tr td:nth-child(1){
|
|
white-space: nowrap;
|
|
max-width: 60px !important;
|
|
min-width: 60px !important;
|
|
width: 60px !important;
|
|
}
|
|
</style>
|
|
<style>
|
|
.dataTable tr td:nth-child(2){
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
@endsection
|