<!---- 
    Author 	: Tagor
    Tanggal : 02-10-2014	
    Revisi 	:
-->

	<?php
				//---------Untuk privellege jika dia ada tombol save----------
				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 align="left" valign="middle">
                        	<a href="#" class="easyui-linkbutton" iconCls="icon-document" plain="true" onclick="parent.tab_add('New Region','<?php echo $menu_link; ?>','icon-add','add')">New</a>
						</td>							
						<td height="25" align="right" valign="middle">								
							<span class="form-title">
								<?=$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 class="easyui-panel" style="width:auto;padding:5px;height:525px;">
        	<form id="fm_region" name="fm_region" method="post">
            	<div id="wrapptabs" name="" class="easyui-tabs">
					<div id="tab_addres" title="Address" style="padding:10px;">
                    	<table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td><b>Region Code</b></td>
                            <td width="850" style="padding:1px 0px 2px;">
								<input type="text" name="txt_regioncode" class="easyui-validatebox" value="<?=$RegionCode?>" style="width:850px;text-transform:uppercase;" required readonly />
                            </td>
                        </tr>
                        <tr>
                            <td><b>Region Name</b></td>
                            <td style="padding:1px 0px 2px;">
								<input type="text" name="txt_regionname" class="easyui-validatebox" style="width:850px;" required />
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" style="padding-top:4px;"><b>Description</b></td>
                            <td style="padding:1px 0px 2px;">
								<textarea rows="3" name="txa_description" class="easyui-validatebox" style="width:846px;resize:none;white-space:normal;"></textarea>
                            </td>
                        </tr>
                        </table>
                    </div>
                </div>
            </form>
		</div>
        
        <div id="form-footer" data-options="region:'south',border:false">
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <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="save_data('<?php echo $menu_link?>','#fm_region');" <?php echo $cek_autority_save;?>>Save</a> 								
                         <a href="javascript:void(0)" class="easyui-linkbutton form-button" iconCls="icon-cancel" onclick="parent.tab_close('tt')">Cancel</a>
                    </td>
                </tr>
        </div>
	</div>
</div>