<?php
/*	
 *	Author 	: Wahyu / Tanggal : 29-08-2014	
 *	Revisi 	: Ferry
 */
?>
<div id="cc" class="easyui-layout" data-options="fit:true, border:false">
    <div data-options="region:'west',split:true, border:true" title="" style="width:230px; background-color:#F8F8F8;">
        <div title="" style="padding:10px;overflow:auto;" data-options="selected:true" >				
            <div class="preference_menu">
                <ul>
                    <!--<li><a href="<?php echo site_url('setup/preference_account'); ?>" style="border-top:none;"><img src="<?php echo base_url(); ?>assets/custom/icons/clipboard-invoice.png" alt=""/><span>P/L Account</span></a></li>-->	
                    <li><a href="<?php echo site_url('setup/preference_item'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/clipboard-invoice.png" alt=""/><span>Item Account</span></a></li>	
                    <li><a href="<?php echo site_url('setup/preference_sales'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/moneys.png" alt=""/><span>Sales Account</span></a></li>                   				   
                    <li><a href="<?php echo site_url('setup/preference_purchases'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/sticky-notes.png" alt=""/><span>Purchases Account</span></a></li>	
                    <li><a href="<?php echo site_url('setup/preference_services'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/calculator.png" alt=""/><span>Expense Account</span></a></li>
                    <li><a href="<?php echo site_url('setup/preference_advances'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/calculator.png" alt=""/><span>Adv. Payment Account</span></a></li>
                    <li><a href="<?php echo site_url('setup/preference_expense'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/calculator.png" alt=""/><span>Cash-Bon Account</span></a></li>
                    <li><a href="<?php echo site_url('setup/preference_others'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/money-coin.png" alt=""/><span><b>Others Account</b></span></a></li> 
                    <li><a href="<?php echo site_url('setup/preference_approval'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/property.png" alt=""/><span>Sales Approval Limit</span></a></li>
                    <li><a href="<?php echo site_url('setup/preference_miscellaneous'); ?>"><img src="<?php echo base_url(); ?>assets/custom/icons/folder-stand.png" alt=""/><span>Miscellaneous</span></a></li>
                </ul>
            </div>	
        </div>
    </div>
	
    <div data-options="region:'center',fit:false,plain:true, border:false" style="background:#eee;">
        <div id="wrapptabs" name="" class="easyui-tabs">
            <div id="tab_cashbon" title="Bank Afiliasi Account" style="padding:1px 0 1px 0;background:#EEE;">
                <div style="float:left;padding-left:5px;margin-bottom:5px;width:1116px;height:526px;background:#FFF;border:#95B8E7 1px solid;">
                    <div style="overflow:hidden;padding:1px;">
                        <form id="idpreference_other" action="" method="post" class="preference_form">
                            <input type="hidden" name="jobtitle" value="<?php echo $this->session->userdata('jobtitle'); ?>" />
                            <input type="hidden" name="categoriID" value="1" />

                            <table width="100%" cellspacing="1" cellpadding="1">
                                <tr>
                                    <td valign="middle"><b>Afiliasi Payment</b></td>
                                    <td width="650" height="15" align="left" valign="middle">
                                        <select name="select_afiliasi_payment" class="easyui-combogrid" id="select_afiliasi_payment" style="width:650px;" height='18px;' editable="true"
                                            data-options="
                                                value:'<?php echo  $akun_payment_other; ?>', 
                                                panelWidth: 650,
                                                idField: 'AccountNumber',
                                                textField: 'AccountName',
                                                url: '<?php echo base_url(); ?><?php echo"setup/preference_others"; ?>/get_afiliasi_payment',                
                                                columns: [[
                                                    {field:'AccountName',title:'Account Name',width:650}
                                                ]],
                                                fitColumns: true
                                                ">
                                        </select>		
                                    </td>					
                                </tr>
                                
                                <tr>
                                    <td valign="middle"><b>Afiliasi Receipt</b></td>
                                    <td width="650" height="15" align="left" valign="middle">										 
                                        <select name="select_afiliasi_receipt" class="easyui-combogrid" id="select_afiliasi_receipt"  style="width:650px;" height='18px;' editable="true"
                                            data-options="
                                                value:'<?php echo  $akun_receipt_other; ?>', 
                                                panelWidth: 650,
                                                idField: 'AccountNumber',
                                                textField: 'AccountName',
                                                url: '<?php echo base_url(); ?><?php echo"setup/preference_others"; ?>/get_afiliasi_receipt',                
                                                columns: [[
                                                    {field:'AccountName',title:'Account Name', width:650}
                                                ]],
                                                fitColumns: true
                                            ">
                                        </select>		
                                    </td>
                                </tr>															
                            </table>
                        </form>
                    </div>			
                </div>
				
                <div style="padding:5px;text-align:right;width:1110px;">
                    <a href="javascript:void(0)" class="easyui-linkbutton form-button" iconCls="icon-save" onclick="submit_form();">Save</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton  form-button" iconCls="icon-cancel" onclick="parent.tab_close('tt')">Cancel</a>
               </div>	
            </div>
        </div>
    </div>		
</div>

<script>
function submit_form(){
	custom_data('<?php echo"setup/preference_others"; ?>/proses_post_data_afiliasi','#idpreference_other');
}

function submit_form2(){
	$("#idpreference_other_asset").submit();
}
</script>