Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet" href="<?php echo base_url() . 'assets/Thema1/css/'; ?>select2/select2.min.css">
- <style type="text/css">
- body { font-family: Verdana; }
- table td {
- padding: 5px;
- }
- /* div.dataTables_wrapper {
- width: 60%;
- margin: 0 auto;
- }*/
- </style>
- <!-- <link rel="stylesheet" href="<?php echo base_url() . 'assets/datepicker/'; ?>smoothness/jquery-ui.css">
- <link rel="stylesheet" href="<?php echo base_url() . 'assets/datepicker/'; ?>jquery-ui.theme.css">-->
- <script>
- $(document).ready(function(){
- $("#txtTglInvoice").datepicker({
- dateFormat : 'dd MM yy'
- })
- })
- </script>
- <script>
- function convertToRupiah (objek) {
- separator = ".";
- a = objek.value;
- b = a.replace(/[^\d]/g,"");
- c = "";
- panjang = b.length;
- j = 0; for (i = panjang; i > 0; i--) {
- j = j + 1; if (((j % 3) == 1) && (j != 1)) {
- c = b.substr(i-1,1) + separator + c; } else {
- c = b.substr(i-1,1) + c; } } objek.value = c;
- }
- </script>
- </head>
- <body>
- <div class="modal fade" id="modal_proses" role="dialog" aria-hidden="true" >
- <div class="modal-dialog" style="width: 99%">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
- <h3 class="modal-title" id="myModalLabel"></h3>
- </div>
- <form id="form_biaya_tps" class="form-horizontal" method="post" action="#">
- <div class="modal-body">
- <table width="100%" border="0">
- <tr>
- <td width="100px"><label class="control-label" for="NoBCF">No BCF</label></td>
- <td width="5px"><label class="control-label" for="titikdua">:</label></td>
- <td width="70px"><input name="txtNoBCF" id="txtNoBCF" class="form-control" type="text" value="<?php echo $nobcf; ?>" readonly></td>
- <td width="3px"></td>
- <td width="100px"><label class="control-label" for="TglBCF">Tgl BCF</label></td>
- <td width="5px"><label class="control-label" for="titikdua">:</label></td>
- <td width="100px"><input name="txtTglBCF" id="txtTglBCF" class="form-control" type="text" value="<?php echo $tglbcf; ?>" readonly></td>
- <td width="3px"></td>
- <td width="100px"><label class="control-label" for="NoBAP">No BAP</label></td>
- <td width="5px"><label class="control-label" for="titikdua">:</label></td>
- <td width="250px"><input name="txtNoBAP" id="txtNoBAP" class="form-control" type="text" value="<?php echo $nobap; ?>" readonly></td>
- <td width="3px"></td>
- <td width="100px"><label class="control-label" for="TglBAP">Tgl BAP</label></td>
- <td width="5px"><label class="control-label" for="titikdua">:</label></td>
- <td width="100px"><input name="txtTglBAP" id="txtTglBAP" class="form-control" type="text" value="<?php echo $tglbap; ?>" readonly></td>
- </tr>
- <tr>
- <td><label class="control-label" for="vessel">Vessel/Voyage</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td colspan="5"><input name="txtVessel" id="txtVessel" class="form-control" type="text" value="<?php echo $vessel; ?>" readonly></td>
- <td></td>
- <td><label class="control-label" for="consignee">Consignee</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td><input name="txtConsignee" id="txtConsignee" class="form-control" type="text" value="<?php echo $consignee; ?>" readonly></td>
- <td></td>
- <td><label class="control-label" for="TPS">TPS</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td><input name="txtTPS" id="txtTPS" class="form-control" type="text" value="<?php echo $tps; ?>" readonly></td>
- </tr>
- <tr>
- <td><label class="control-label" for="invtps">No Invoice TPS</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td colspan="3"><input name="txtInvTPS" id="txtInvTPS" class="form-control" type="text"></td>
- <td></td>
- <td><label class="control-label" for="tglinvoice">Tgl Invoice</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td><input name="txtTglInvoice" id="txtTglInvoice" class="form-control" type="text"></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td><label class="control-label" for="bytps">Biaya TPS</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td colspan="3"><input name="txtBiayaTPS" id="txtBiayaTPS" class="form-control" type="text"></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td><label class="control-label" for="ppn">PPN</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td colspan="3"><input name="txtPPN" id="txtPPN" class="form-control" type="text"></td>
- <td></td>
- <td><label class="control-label" for="ket">Keterangan</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td colspan="3" rowspan="3"><textarea id="txtArea" rows="4" cols="3" name="keterangan" id="keterangan" class="form-control"></textarea></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td><label class="control-label" for="bylaintps">Biaya Lain2 TPS</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td colspan="3"><input name="txtBiayaLainTPS" id="txtBiayaLainTPS" class="form-control" type="text"></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td><label class="control-label" for="totalbytps">Total Biaya TPS</label></td>
- <td><label class="control-label" for="titikdua">:</label></td>
- <td colspan="3"><input name="txtTotalBiayaTPS" id="txtTotalBiayaTPS" class="form-control" type="text"></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- </table>
- <input name="T_IN_ID" id="T_IN_ID" class="form-control" type="hidden" value="<?php echo $T_IN_ID; ?>">
- <br />
- <table border="0" id="tablesgg" style="width: 50%" >
- <thead>
- <tr>
- <th width="10%">Tanggal Bayar</th>
- <th width="10%">Jumlah</th>
- <th width="10%">Keterangan</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- </div>
- </form>
- </div>
- </div>
- </div>
- <script src="<?php echo base_url() . 'assets/Thema1/js/'; ?>select2/select2.full.min.js"></script>
- <script src="<?php echo base_url() . 'assets/Thema1/js/'; ?>select2/select2-active.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- //var T_IN_ID = $("#T_IN_ID").val();
- //alert(T_IN_ID);
- table = $('#tables').DataTable({
- "processing" : true, //Feature control the processing indicator.
- "serverSide" : true, //Feature control DataTables' server-side processing mode.
- "order" : [], //Initial no order.
- "searching" : false,
- "paging" : false,
- "ordering" : false,
- "info" : false,
- "bLengthChange" : false,
- //"scrollX" : true,
- //"lengthMenu" : [20, 40, 60, 80, 100],
- //"pageLength" : 20,
- "ajax": {
- "url": "<?php echo site_url('biaya_tps_asal/c_biaya_tps_asal/get_data_history')?>",
- "type": "POST",
- "data": function ( data ) {
- data.T_IN_ID = $('#T_IN_ID').val();
- }
- },
- //Set column definition initialisation properties.
- "columnDefs": [
- {
- "targets": [0,1], //first column / numbering column
- "orderable": false, //set not orderable
- },
- ],
- });
- });
- $('#modal_proses').on('hidden.bs.modal', function () {
- //alert('tes');
- table.ajax.reload();
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment