<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ include file="../../language.jsp" %>

<script src="../scripts/itsm/config/categoryManage/CICategory.js?random=<%=new java.util.Date().getTime()%>"></script>

<div class="loading" id="configItemCategoryLoading"><img src="../images/icons/loading.gif" /></div>

<div class="easyui-panel content" id="configItemCategoryContent"  fit="true"  border="none">


<div id="${param.categoryCode}CategoryDiv" class="easyui-layout" fit="true">

<div region="east" id="treePanel" split="true" title="<fmt:message key="title.request.CICategory"/>"
	style="width: 200px; padding: 15px; line-height: 20px">

<div id="configureItemCategoryTree_div"></div>

</div>



<div region="center" title="<fmt:message key="title.request.CICategory"/>">

<table style="width: 100%; margin: 0px">

	<tr>
		<td style="width: 50%"><!-- edit panel -->
		<div id="editConfigurationItem" class="easyui-panel" title="<fmt:message key="common.edit"/>" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width: auto; height:auto;">

		<div class="lineTableBgDiv">
		<form id="editConfigurationItemForm">
		<table width="100%" class="lineTable" cellspacing="1">
		
			<tr>
				<td><fmt:message key="label.categoryName"/></td>
				<td>
					<input name="configurationItemsDto.cname" id="edit_cname"  class="easyui-validatebox input" validType="length[1,200]" required="true"/>
				</td>
			</tr>
			
			<tr>
				<td><fmt:message key="label.categoryCode"/></td>
				<td><select class="input" name="configurationItemsDto.categoryType" id="edit_category"></select></td>
			</tr>
			
			<tr>
				<td><fmt:message key="label.categoryIcon"/></td>
				<td>
				
				<input name="configurationItemsDto.iconPath" id="edit_iconPath" type="hidden" />
                <div id="edit_showIconPanel" class="showicon"></div>
                
                
				<input id="editCMUploadIcon" type="file" size="16" name="myFile" onchange="return commonUploadFile('editCMUploadIcon','edit_iconPath','edit_showIconPanel')"/>
				  
				
					
				</td>
			</tr>
		
			<tr>
				<td><fmt:message key="label.categoryDescription"/></td>
				<td>
					<textarea name="configurationItemsDto.description" id="edit_description" class="easyui-validatebox textarea" validType="length[5,200]"></textarea>
				</td>
			</tr>
			
			<tr>
				<td colspan="2">
				
					<sec:authorize url="/pages/event!update.action">
					<input type="hidden" name="configurationItemsDto.cno" id="edit_cno" />
					<a class="easyui-linkbutton" icon="icon-save" id="cicategory_save_data"><fmt:message key="common.save"/></a>
					</sec:authorize>
				</td>
			</tr>
		</table>
		</form>  


	</div>
	
		</div>


		</td>

		<td style="width: 50%"><!-- add panel -->
		<div id="addConfigurationItem" class="easyui-panel" title="<fmt:message key="common.add"/><fmt:message key="common.subCategory"/>" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width: auto; height:auto;">

		
		<div class="lineTableBgDiv">
		<form id="addConfigurationItemForm">
		<table width="100%" class="lineTable" cellspacing="1">
			
			<tr>
				<td><fmt:message key="label.categoryName"/></td>
				<td>
					<input name="configurationItemsDto.cname" id="addCI_cname" class="easyui-validatebox input" validType="length[1,200]" required="true" />
				</td>
			</tr>
			
			<tr>
				<td><fmt:message key="label.categoryCode"/></td>
				<td>
					<select class="input" name="configurationItemsDto.categoryType" id="add_category" ></select>
				</td>
			</tr>
		
			
			<tr>
				<td><fmt:message key="label.categoryIcon"/></td>
				<td>
					<input name="configurationItemsDto.iconPath" id="add_iconPath" type="hidden" /> 
	                <div id="add_showIconPanel" class="showicon"></div>
					<input id="addCMUploadIcon" type="file" size="16" name="myFile" onchange="return commonUploadFile('addCMUploadIcon','add_iconPath','add_showIconPanel')"/>
			
				</td>
			</tr>
			
			<tr>
				<td><fmt:message key="label.categoryDescription"/></td>
				<td>
					<textarea name="configurationItemsDto.description" id="add_description" class="easyui-validatebox textarea" validType="length[5,200]"></textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<sec:authorize url="/pages/event!save.action">
						<input type="hidden" name="configurationItemsDto.parentNo" id="add_parentNo" />
						<a class="easyui-linkbutton" icon="icon-ok" id="cicategory_save_sub"><fmt:message key="common.add"/></a>
					</sec:authorize>
				</td>
			</tr>
		</table>
		</form>
		</div>
		

		</div>


		</td>

	</tr>


</table>

</div>
</div>

</div>