<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../language.jsp" %>

<script>var id='${param.id}';</script>
<script src="../scripts/itsm/knowledge/editKnowledge.js?random=<%=new java.util.Date().getTime()%>"></script>

<div style="padding:10px;" id="editKnowledge_loading"><img src="../images/icons/loading.gif" /></div>
	<!-- 新的面板 start-->
	<div id="editKnowledge_contentPanel" class="easyui-panel" fit="true" border="none" style="padding:3px;display:none">
	<div class="easyui-layout" fit="true">
		<div region="north" border="false" class="panelTop">
			<a id="editKnowledgeBtn" class="easyui-linkbutton" plain="true" icon="icon-save" style="margin-right:15px" ><fmt:message key="common.save" /></a>
			<a class="easyui-linkbutton" plain="true" icon="icon-undo" style="margin-right:15px" id="edit_backToKnowledgeIndex"><fmt:message key="common.returnToList" /></a>
		</div>
		<div region="west" id="editKnowledgePanel" split="true" title="<fmt:message key="common.baseInformation" />" style="width:400px;">
			<!-- 知识基本信息 -->
			  <form>
			<input type="hidden" name="knowledgeDto.kid" id="editKnowledge_kid">
           <div class="lineTableBgDiv" style="width: 98%">
		<table style="width:100%" class="lineTable" cellspacing="0">
            <tr>
              <td style="width:20%;"><fmt:message key="knowledge.label.knowledgeTitle" /></td>
              <td style="width:80%"><input name="knowledgeDto.title" id="editKnowledge_title" style="width:255px"></input></td>
            </tr>
            <tr>
              <td><fmt:message key="knowledge.label.knowledgeSort" /></td>
              <td>
              	<input type=hidden name="knowledgeDto.categoryNo" id="editKnowledge_categoryNo">
              	
              	<input id="editKnowledge_Category"  style="width:255px;cursor:pointer" readonly/>
              	
              	<div id="editKnowledge_CategoryDiv" class="easyui-panel" closed="true"  style="position:absolute;float:left;width:260px;height:300px;background-color:#FFF">
</div>
           	  </td>
           	 </tr> 
            <tr>
              <td><fmt:message key="label.keywords" /></td>
              <td><input id="editKnowledge_keyWords" name="knowledgeDto.keyWords"  style="width:255px" /></td>
            </tr>
              <tr>
              <td><fmt:message key="common.attachment" /></td>
              <td>
            	<input type="file"  name="filedata" id="editKnowledge_uploadAttachments">
           		<div style="padding-top:3px">
             	 <a class="easyui-linkbutton" icon="icon-ok" href="javascript:$('#editKnowledge_uploadAttachments').uploadifyUpload()" ><fmt:message key="label.attachment.upload" /></a>
                </div>
           		<div id="editKnowledge_oldAttachments" style="line-height:25px;color:#555"></div>
              	<div id="editKnowledge_fileQueue"></div>  
              	<input type="hidden" name="knowledgeDto.attachmentStr" id="editKnowledge_attachments"/>
              </td>
              </tr>
          </table>
          </div>
          	<textarea id="editKnowledge_Content" name="knowledgeDto.content" style="display:none"></textarea>
          </form>
		</div>
		<div region="center" title="<fmt:message key="knowledge.label.knowledgeDetails" />" style="padding:3px">
		
		 <textarea id="editKnowledgeCon" style="width:100%;height:340px"></textarea>

		</div>	

	</div>
	
</div>
  <div id="addKnowledgeAttrs" class="easyui-window"  closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title="<fmt:message key="common.edit" /><fmt:message key="knowledge.knowledge" />" style="width:660px;height:510px;padding:10px; line-height:20px;">
  </div>






