kemaskini notis lelong fasa 1
This commit is contained in:
@@ -254,6 +254,13 @@
|
||||
</ul>
|
||||
</li>
|
||||
{{-- end laporan --}}
|
||||
|
||||
{{-- Kemaskini Notis --}}
|
||||
<li class="{{ (request()->is('jananotis/*')) ? 'active' : '' }}">
|
||||
<a href="{{url('jananotis/kemaskininotis')}}">Kemaskini Notis Lelong</a>
|
||||
</li>
|
||||
{{-- end Kemaskini Notis --}}
|
||||
|
||||
|
||||
|
||||
@endhasrole
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/css/select2.min.css" rel="stylesheet"/>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/js/select2.min.js"></script>
|
||||
<script src="https://cdn.ckeditor.com/4.16.2/standard/ckeditor.js"></script>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-12 mx-auto card">
|
||||
<h3 class="pt-3">Kemaskini Notis Lelong</h3>
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form action="{{route('jananotis.store')}}" method="POST" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="jbg" class="col-sm-2 col-form-label">Format Notis</label>
|
||||
<div class="col-sm-4" id="para2">
|
||||
<textarea name="para2" rows="10" cols="100" id="article-ckeditor" required>
|
||||
{{$tetapan->para2}}
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#caw').select2({
|
||||
width: '100%',
|
||||
placeholder: "Pilih Cawangan",
|
||||
allowClear: true
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$("input[name=fasa]").change(function(){
|
||||
|
||||
if($("#fasa1").is(':checked')){
|
||||
$("#jbg").val('').prop("readonly", false);
|
||||
}
|
||||
if($("#fasa2").is(':checked')){
|
||||
$("#jbg").val('12').prop("readonly", true);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
@@ -298,7 +298,11 @@
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
|
||||
<script>
|
||||
CKEDITOR.replace( 'article-ckeditor' );
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -253,11 +253,11 @@
|
||||
// if(index%2 ==0 ) //even-0-2-4
|
||||
// {
|
||||
$(this).html("<input type='text' name='harga2[]' id=harga2"+index+" value="+la+" />");
|
||||
}
|
||||
else //odd-1-3-5-7
|
||||
{
|
||||
$(this).html("<input type='text' name='harga[]' id=harga"+index+" value="+la+" />");
|
||||
}
|
||||
// }
|
||||
// else //odd-1-3-5-7
|
||||
// {
|
||||
// $(this).html("<input type='text' name='harga[]' id=harga"+index+" value="+la+" />");
|
||||
// }
|
||||
})
|
||||
$("#hideform").show();
|
||||
$("#btnkemaskini").hide();
|
||||
@@ -292,19 +292,19 @@
|
||||
let newhargaasas = harga1 + (harga2);
|
||||
count++;
|
||||
$('#harga2'+index).val(newhargaasas.toFixed(2));
|
||||
}
|
||||
else
|
||||
{
|
||||
let harga1 = parseInt(hargaasasbaru);
|
||||
let harga2 = parseInt(jeniskarat[indexarray]['dariharga916']);
|
||||
let newhargaasas = (harga1 + (harga2))/2.72;;
|
||||
count++;
|
||||
$('#harga'+index).val(newhargaasas.toFixed(2));
|
||||
}
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// let harga1 = parseInt(hargaasasbaru);
|
||||
// let harga2 = parseInt(jeniskarat[indexarray]['dariharga916']);
|
||||
// let newhargaasas = (harga1 + (harga2))/2.72;;
|
||||
// count++;
|
||||
// $('#harga'+index).val(newhargaasas.toFixed(2));
|
||||
// }
|
||||
|
||||
if(count == maxcolumn)
|
||||
{
|
||||
count = 0;
|
||||
// if(count == maxcolumn)
|
||||
// {
|
||||
// count = 0;
|
||||
indexarray++;
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user