<%@ 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/jbpm/processDefined.js?random=<%=new java.util.Date().getTime()%>"></script>


<!-- 数据表格 -->
	<div align="left">
		<div style="overflow:hidden;padding:4px;padding-right:6px">
			<table id="processDefinedGrid" width="100%"></table>
			<div id="processDefinedPager"></div>
			<div id="processToolbar" style="display: none">
				<sec:authorize url="/pages/upload!deployProcess.action"><a class="easyui-linkbutton"  plain="true" icon="icon-add" onClick="itsm.jbpm.processDefined.add_openwindow()"><fmt:message key="setting.deploymentProcess" /></a></sec:authorize>
				<sec:authorize url="/pages/upload!undeployProcess.action"><a class="easyui-linkbutton"  plain="true" icon="icon-cancel" onClick="itsm.jbpm.processDefined.toolbar_delete()"><fmt:message key="common.delete" /></a></sec:authorize>
				<!--  
				<sec:authorize url="/pages/upload!findProcessDefinitions.action"><a class="easyui-linkbutton"  plain="true" icon="icon-search" onClick="search_openwindow()"><fmt:message key="common.search" /></a></sec:authorize>
				-->
			</div>
		</div>
	</div>
	
	<!-- add process -->
	<div id="addProcess" icon="icon-add" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title="<fmt:message key="setting.deploymentProcess" />" style="width:400px;padding:10px;line-height:20px; height:150px;">
	 <form action="upload!deployProcess.action" method="post" enctype="multipart/form-data">
		<table width="80%" border="0" align="center" cellspacing="5">
			<tr>
				<td colspan="2"><input type="file" id="jpdlFile" name="jpdlFile"/></td>
			</tr>
			<tr>
            	<td colspan="2">
                	<div style="padding-top:8px;" align="center">
                	    <a id="link_jbpm_deploy_ok" class="easyui-linkbutton" icon="icon-ok"><fmt:message key="setting.deploymentProcess" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
            	 		<a id="link_add_cancel" class="easyui-linkbutton" icon="icon-no"><fmt:message key="common.cancel" /></a>
                	</div>
        		</td>
        	</tr>			
		</table>
		</form>
	</div>
	
	<!-- find -->
	<div id="searchProcess" class="easyui-window" icon="icon-search" closed="true" collapsible="false" minimizable="false" maximizable="false" modal="true" title="搜索" style="width:350px;height:200px; padding:10px; line-height:20px;">
		<form>
    		<table width="98%" border="0" height="150" align="center" cellspacing="5">
        		<tr>
            		<td width="250px">模糊搜索范围：ID,Key,名称,版本,描述,操作</td>   
            		<td height="20">&nbsp;</td>         		
        		</tr>
        		<tr>
       				<td colspan="2" height="20">
       					请输入关键字：<input name="" required="true" style="width:200px" />
       				</td>
       			</tr>
        		<tr align="center">
            		<td colspan="2" height="20">
                		<div style="padding-top:8px;">
                			<a id="link_search_ok" class="easyui-linkbutton" icon="icon-search"><fmt:message key="common.search" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                			<a id="link_search_cancel" class="easyui-linkbutton" icon="icon-undo"><fmt:message key="common.back" /></a>
                		</div>
       				</td>
        		</tr>
    		</table>
    	</form>
	</div>
