<%@page contentType="text/html;charset=UTF-8" pageEncoding="ISO-8859-1" session="true"%>
<%@page errorPage="Exception.jsp"%>
<%@page import="com.fujitsu.iflow.model.workflow.WFSession"%>
<%@page import="com.fujitsu.iflow.model.workflow.WFObjectFactory"%>


<%
    request.setCharacterEncoding("UTF-8");request.getParameterNames(); //Need dummy call for WL9.1
    WFSession wfSession = (WFSession)session.getAttribute("ModelsessionID");
    if (wfSession == null) {
        %><jsp:include page="PasswordPanel.jsp" flush="true"/><%
        return;
    }
    String[] bcolor = {"evenrow","oddrow"};
    int nextColor = 0;
    session.setAttribute("TabIndex","-1");
%>
<html>
<head><title>Interstage Business Process Manager | Import Package</title>
<jsp:include page="StyleSheet.jsp" flush="true"/>
<script language="javascript" src="styles/clockscripts.js"></script>
</head>
<body class="bodyClass" onLoad="goforit();">
<jsp:include page="Header.jsp" flush="true"/>
<br/><br/>

<script>
function checkFile()
{
   var fileName = document.forms[0].document.value;
   fileName = fileName.replace(/^\s+/,'').replace(/\s+$/,'');
   if(fileName == null || fileName == "")
   {
      alert("Please select a workflow application package");
      return false;
   }
   return true;
}
</script>

<form enctype="multipart/form-data" method="post" action="LoadWFAppPackage.jsp">
<center>
<TABLE border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC" class="tableClass" width="450">
    <tr>
        <td style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FFFFFF', endColorStr='#6699CC', gradientType='1'"><b>Importing from Package</b></td>
    </tr>
    <tr>
            <td bgcolor="#FFFFFF" align="center"><br/> Package :
            <input type="file" name="document" width="300"><br/><br/>
            </td>
    </tr>
    <tr>
        <td valign="middle" align="center" bgcolor="#EEEEEE">
        <input type="submit" value="Import" class="submitClass" onClick="return checkFile()">
        </td>
    </tr>
</table>
</center>
</form>
</body>
</html>
