<div id='dlgAddInvoice'class="easyui-dialog" style="width:500px;height:380px;padding:10px 20px" closed="true" buttons="#tbAddInvoice"> <form method='post' id='frmAddInvoice'> <? echo my_input("Nomor Faktur",'invoice_number','','col-sm-5'); echo my_input("Tanggal",'invoice_date',date("Y-m-d"),'col-sm-5'); echo my_input("Bulan ke",'idx_month','','col-sm-5'); echo my_input("Jumlah",'amount','','col-sm-5'); ?> </form> </div> <div id='tbAddInvoice'> <?php echo link_button('Save', 'dlgAddInvoice_Save()', 'ok'); ?> <?php echo link_button('Close', 'dlgAddInvoice_Close()', 'no'); ?> </div> <script language="JavaScript"> function dgInvoice_Add(){ $('#dlgAddInvoice').dialog('open').dialog('setTitle','Tambah Faktur'); } function dgInvoice_Edit(){ row = $('#dgInvoice').datagrid('getSelected'); if (row){ $("#invoice_number").val(row.invoice_number); $("#invoice_date").val(row.invoice_date); $("#idx_month").val(row.idx_month); $("#amount").val(row.amount); }
buttons="#tbBayar"> <legend>Pembayaran Cicilan</legend> <? echo form_open('',array("action"=>"","name"=>"frmBayar","id"=>"frmBayar")); echo my_input_date("Tanggal Bayar : ","date_paid",date("m/d/Y")); echo my_input("Nomor Faktur : ","invoice_number",""); echo my_input("Cara Bayar : ","how_paid",""); echo my_input("Jumlah Bayar : ","amount_paid",""); echo "<legend>Perhitungan</legend>"; echo my_input("Denda : ","denda","") .my_input("Bunga : ","bunga","") .my_input("Pokok : ","pokok",""); echo form_close(); echo "<legend>Info</legend>"; echo my_input("Tanggal Tagih : ","invoice_date",""); echo my_input("Hari Telat : ","hari_telat",""); ?> </div> <!-- SEARCH BILLING --> <div class='row' id="divResultBilling" style="display:none"> <table id="divRbItems" class="easyui-datagrid" style="width:auto;height:auto" data-options="iconCls: 'icon-edit', singleSelect: true, toolbar: '#divRbTool',url: ''"> <thead><tr> <th data-options="field:'cust_name'">Pelanggan</th> <th data-options="field:'cust_id'">Kode Pelanggan</th> <th data-options="field:'invoice_number'">Nomor Faktur</th> <th data-options="field:'invoice_date'">Tanggal</th> <th data-options="field:'idx_month'">Bulan Ke</th> <th data-options="field:'amount',width:100,align:'right',editor:'numberbox', formatter: function(value,row,index){
echo my_input('Item Number', 'item_number', $item_number); ?> <?php echo my_input('Description', 'description', $description); ?> <?php echo my_input('Harga Jual', 'retail', $retail); ?> <?php echo my_input('Harga Beli', 'cost_from_mfg', $cost_from_mfg); ?> <?php echo my_input('Satuan', 'unit_of_measure', $unit_of_measure); ?> <?php echo my_input('Category', 'category', $category); ?> <input type='hidden' name='mode' id='mode' value='<?php echo $mode; ?> '> </form> <script language='javascript'> function refresh_aed() { var url="<?php echo base_url(); ?>
<?php echo my_input("Nama Barang", "description"); ?> <?php echo my_input("Category", "category"); ?> <?php echo my_input("Sub Category", "sub_category"); ?> <?php echo my_input("Satuan", "unit_of_measure"); ?> <?php echo my_input("Harga Jual", "retail"); ?> <?php echo my_input("Harga Beli", "cost"); ?> <?php echo my_input("Item Picture", "item_picture"); ?> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary" onclick='save_item();return false'>Save changes</button> </div> </div> </div> </div>
<?php echo link_button('Close', 'dlgDp_Close()', 'cancel'); ?> <?php echo link_button('Save', 'dlgDp_Save()', 'save'); ?> </div> <div id='dlgBunga' class="easyui-dialog" style="width:500px;height:380px;padding:10px 20px" closed="true" buttons="#tbDlgBunga"> <legend>Input Setting Range Bunga</legend> <? echo form_open('',array("action"=>"","name"=>"frmBunga","id"=>"frmBunga")); echo my_input("Jumlah Dari Rp. : ","amount_from",0); echo my_input("Jumlah Sampai Rp. : ","amount_to",0); echo my_input("Percent % : ","bunga_prc",0); echo "<input type='hidden' name='bunga_id' id='bunga_id' value='0'>"; echo form_close(); ?> </div> <div id='tbDlgBunga'> <?php echo link_button('Close', 'dlgBunga_Close()', 'cancel'); ?> <?php echo link_button('Save', 'dlgBunga_Save()', 'save'); ?> </div> <?php echo load_view('gl/select_coa_link');
<div id='dlgAddItem' class="easyui-dialog" style="width:500px;height:380px;padding:10px 20px" closed="true" buttons="#tbAddItem"> <legend>Input data barang diinginkan</legend> <form method='post' id='frmAddItem'> <? echo my_input("Kode Barang",'item_no','','col-sm-5','col-sm-5'); echo link_button("Cari","dlgFindItem_Show()","search"); echo my_input("Nama Barang",'desc','','col-sm-5'); echo my_input("Quantity",'qty','','col-sm-5','col-sm-5'); echo my_input("Harga Jual",'price','','col-sm-5','col-sm-5'); ?> </form> </div> <div id='tbAddItem'> <?php echo link_button('Save', 'dlgAddItem_Save()', 'ok'); ?> <?php echo link_button('Close', 'dlgAddItem_Close()', 'no'); ?> </div> <div id='dlgFindItem'class="easyui-dialog" style="width:600px;height:400px;padding:10px 20px" closed="true" buttons="#tbFindItem"> <table id="dgItemSearch" class="easyui-datagrid" data-options="toolbar: '', singleSelect: true, url: '' "> <thead> <tr> <th data-options="field:'description',width:150">Nama Barang</th> <th data-options="field:'item_number',width:80">Kode Barang</th> <th data-options="field:'retail',width:80">Harga</th> <th data-options="field:'unit_of_measure',width:80">Unit</th>
<?php echo link_button('Save', 'simpan()', 'save'); ?> <?php echo link_button("Find Module", "find_module()", "search"); ?> <?php echo link_button("Daftar Job", "daftar_job()", "reload"); ?> </div> <div class="thumbnail"> <?php echo form_open('', "id='myform'"); echo my_input('Group ID', 'user_group_id', $user_group_id); echo my_input('Group Name', 'user_group_name', $user_group_name); echo my_input('Description', 'description', $description); ?> <p></p><i><p>Silahkan contreng modul-modul yang diijinkan untuk diakses oleh kelompok dibawah ini</p></i> <div id='divDetail' class='thumbnail' style='font-size:small'> <? echo $modules ?> <!-- <ul id="tt" class="easyui-tree" url="<?php echo base_url(); ?> index.php/jobs/list_modules"> </ul> --> </div> <?php
echo my_input('Area', 'area', $area); ?> <?php echo my_dropdown('Sales Agent', 'sales_agent', $sales_agent, $sales_agent_list); ?> <?php echo my_input('Alamat', 'address', $address); ?> <?php echo my_input('Telfon', 'phone', $phone); ?> <?php echo my_input('Tanggal Gabung', 'join_date', $join_date); ?> <?php echo my_input('Target', 'target', $target); ?> <?php echo my_checkbox('Aktif', 'active', $active); ?> <input type='hidden' name='mode' id='mode' value='<?php echo $mode; ?> '> </form> <script language='javascript'> function refresh_aed() {
buttons="#tbProses"> <legend>Proses Kontrak Kredit</legend> <p>Proses ini akan mengubah statur kontrak kredit dan membuatkan nomor kontrak sebagai pengganti Draft Kontrak ini</p> <p>Silahkan isi tanggal penagihan tiap bulannya, maka setelah anda tekan tombol SIMPAN program akan secara otomatis membuat daftar schedule angsuran berdasarkan tenor yang telah disetujui dalam aplikasi kredit.</p> <p></p> <form method='post' id="frmLoan_Proses" name="frmLoan_Proses"> <p> <?php echo my_input_date("Mulai Tanggal : ", "tgl_tagih", $loan_date); ?> <p></p> <?php echo my_input("Isi nomor kontrak : ", "loan_id_new", "01630"); ?> </p> <div class='clear'></div> <p>*tanggal yang dipilih akan menjadi tanggal penagihan bulan-bulan berikutnya</p> <p>*5 digit pertama harap diisi dengan 01630</p> <input type='hidden' id='frmLoan_Proses_loan_id' name='frmLoan_Proses_loan_id'> </form> </div> <div id="tbProses"> <?php echo link_button("Batal", "frmLoan_Proses_Close()", "cancel"); ?> <?php echo link_button("Simpan", "frmLoan_Proses_Save()", "save"); ?>
<legend>Proses Penutupan Kredit</legend> <div class='thumbnail box-gradient'> <? echo my_input("Cari nomor kredit atau nama","txtSearch","","col-sm-4",'col-sm-3'); echo "<input onclick='cmdSearch_Click();return false;' type='button' name='cmdSearch' id='cmdSearch' value='Search' class='btn btn-info'>"; ?> <p><i>Dibawah ini adalah data tagihan berdasarkan pencarian diatas.</i></p> <p><i>*Pelunasan dipercepat dikenakan penalty potongan 2% dari sisa angsuran</i></p> </div> <div class='thumbnail'> <div id='divOutStand'></div> <div id='divLoanDetail'></div> </div> <div id='dlgBayar'class="easyui-dialog" style="width:400px;height:450px;padding:10px 20px" closed="true" buttons="#tbBayar"> <legend>Pembayaran Cicilan</legend> <? echo form_open('',array("action"=>"","name"=>"frmBayar","id"=>"frmBayar")); echo "<table class='table2' style='width:100%'>"; echo "<tr><td>Tanggal Bayar</td><td>".form_input('date_paid',date("m/d/Y"),"class='easyui-datetimebox'")."</td>"; echo "<tr><td>Cara Bayar</td><td>".form_input('how_paid','Cash')."</td>"; echo "<tr><td>Potongan Rp.</td><td>".form_input('discount',0)."</td>"; echo "<tr><td>Jumlah Bayar Rp.</td><td>".form_input('amount_paid',0)."</td>"; echo "<tr><td>Keterangan</td><td>".form_textarea('comment')."</td>"; echo "</table>"; echo form_close(); ?> </div> <div id="tbBayar"> <?php echo link_button("Keluar", "dlgBayar_Close()", "remove"); ?>
<div id='dlgAddCrCard'class="easyui-dialog" style="width:500px;height:380px;padding:10px 20px" closed="true" buttons="#tbAddCrCard"> <? echo form_open('',array("action"=>"","name"=>"frmAddCrCard","id"=>"frmAddCrCard")); echo my_input("Nomor",'card_no','','col-sm-5'); echo my_input("Bank",'card_bank','','col-sm-5'); echo my_input("Expire",'card_expire','','col-sm-5'); echo my_input("Jenis",'card_type','','col-sm-5'); echo my_input("Limit",'card_limit','','col-sm-5'); echo "<input type='hidden' name='frmAddCrCard_id' id='frmAddCrCard_id'>"; echo form_hidden("frmAddCrCard_cust_id",$cust_id); echo form_close(); ?> </div> <div id='tbAddCrCard'> <?php echo link_button('Save', 'dlgAddCrCard_Save()', 'ok'); ?> <?php echo link_button('Close', 'dlgAddCrCard_Close()', 'no'); ?> </div> <script language="JavaScript"> function dlgAddCrCard_Close(){ $('#dlgAddCrCard').dialog('close'); } function dlgAddCrCard_Save(){ var cust_id=$("#cust_id").val(); if(cust_id==""){alert("Isi kode pelanggan ");return false}; url='<?php