<!---- 
    Author 	: Herpan / 12-08-2014	
    Revisi 	: Ferry / 27-10-2014
-->

<?php
	if($group_user->DeletePrivillage == 1){
		$cek_autority_delete 		= "";
	}
	else{
		$cek_autority_delete 		= "disabled";
	}
	
	if($group_user->SavePrivillage == 1){
		$cek_autority_save 		= "";
	}
	else{
		$cek_autority_save 		= "disabled";
	}
	//-------------end----------------------------
?>


<div class="easyui-layout" data-options="fit:true,border:false">
    <!-- top view-->
    <div id="form-header" data-options="region:'north',border:false" >
        <div id="form-header-wrapper">
            <table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
                <tr>
                    <td height="26" align="left" valign="middle">
						<a href="#" class="easyui-linkbutton" id="refresh-linkbutton" data-options="plain:true,iconCls:'icon-reload'" onclick="location.reload();">Refresh</a>
                    </td>
                    <td align="right" valign="middle">								
                        <span class="form-title">
                            <?php echo $menu_label; ?>
                        </span>
                    </td>
                </tr>
            </table>		     	
        </div>			
   </div>
   <!-- end top view -->	

   <!-- center view -->
    <div id="form-body-grey" data-options="region:'center',border:false">
        <div id="form-wrapper" class="easyui-panel" style="padding:5px;" fit="true">
        	<form id="fm_terms" name="fm_terms" method="post">
            	<input type="hidden" name="id" id="id" value="<?php echo $detail->TermspaymentID;  ?>">
                
            	<table class="form-detail" width="100%" cellspacing="0" cellpadding="0">
                <tr>
                    <td><b>Net Due In</b></td>
                    <td style="padding:1px 0px 2px;">
                        <input type="text" name="txt_net_due_in" id="txt_net_due_in" class="easyui-numberbox" value="<?php echo $detail->NetDueIn  ?>" style="width:815px;" /> Days
                    </td>
                </tr>
                <tr>
                    <td valign="top" style="padding-top:4px;"><b>Description</b></td>
                    <td style="padding:1px 0px 2px;">
                        <textarea class="textbox" name="txt_description" id="txt_description" rows="4" style="width:846px;resize:none;white-space:normal;"><?php echo $detail->TermDesc  ?></textarea>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td style="padding:1px 0px 2px;">
                        <input type="checkbox" name="chk_cod" id="chk_cod" style="margin-left:0px;" /> Cash On Delivery (C.O.D)
                    </td>
                </tr>
                </table>
            </form>
        </div>
    </div>

    <div id="form-footer" data-options="region:'south',border:false">
    	<table width="100%" cellpadding="0" cellspacing="0">
            <tr>
        	<td>&nbsp;</td>
                <td align="right">
                    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-help" onclick="" plain="true">Help</a>			
                    <a href="javascript:void(0)" class="easyui-linkbutton form-button" iconCls="icon-save" onclick="edit_data('<?php echo $menu_link?>','#fm_terms');" <?php echo $cek_autority_save;?>>Save</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton form-button" iconCls="icon-cancel" onclick="parent.tab_close_this('tt');">Cancel</a>	
                </td>
            </tr>
        </table>
    </div>
</div>