<%@ page import="ro.emid.common.constants.AppConstants" %>
<%-- OutputText.jsp --%>


<% if (request.getAttribute("act") != null){
    final String fileName = (String )request.getAttribute("fileName");%>
<script language="javascript">
    opener.updateFileUrl('<%=fileName%>');
    window.close();
</script>
<%}%>


<%-- FileUpload.jsp --%>

<%@ taglib uri="tagLib" prefix="hbj" %>

<hbj:content id="myContext" >
    <hbj:page title="Template for a portal component">

        <hbj:form encodingType="multipart/form-data" >
            <TABLE class="gsapthead" align=center border=0 cellPadding=10 cellSpacing=0 width="100%" height="100%">
                <TBODY>
                    <TR>
                        <Td class="gsapthead" colSpan=2 height=25 noWrap>
                            Selectati fisierul schema:  <br>
                                <hbj:fileUpload  id="myfileupload"
                                                 maxLength="125000"
                                                 size="50"   />

                                <hbj:button
                                        id="OrderConfirm"
                                        text="Upload"
                                        width="125px"
                                        tooltip="Click here to upload selected File"
                                        onClick="onLoadFile"
                                        disabled="false"
                                        />
                    </TR>
                </TBODY>
            </TABLE>
        </hbj:form>
    </hbj:page>
</hbj:content>


<!--<TABLE class="gsapthead" align=center border=0 cellPadding=10 cellSpacing=0 width="100%" height="100%">-->
<!--<form name="zaforma" action="<%=AppConstants.APP_NAME%>?action=uploadFile" method="POST" enctype="multipart/form-data">-->
<!--<TBODY>-->
<!--<TR>-->
<!--<Td class="gsapthead" colSpan=2 height=25 noWrap>-->
<!--<BR>-->
<!--Selectati fisierul schema:<BR>-->
<!--<input size="30" class="gsapinputtext" type="file" name="schema" accept="Accept">-->
<!--<input type="submit" value="GO 4">-->
<!--</TR>-->
<!--</TBODY>-->
<!--</form>-->
<!--</TABLE>-->
<!--</TD>-->
<!--</TR>-->
<!--</TBODY>-->
<!--</TABLE>-->