<html>

    <head>
        <title>[% $user->gettext('Bitte w&auml;hlen Sie eine Datei aus') %]</title>	
        <script type="text/javascript" src="includes/js/jquery.min.js"></script>
        <script type="text/javascript" src="includes/js/ajax.js"></script>

        <script type="text/javascript" src="includes/js/jquery-ui.min.js"></script>
        <script type="text/javascript" src="includes/js/fancybox/jquery.fancybox.pack.js"></script>
        <script type="text/javascript" src="includes/js/script.js"></script>

        <link rel="stylesheet" type="text/css" href="styles/[% $CSSTEMPLATE %]/css/screen.css" />

        <link rel="stylesheet" type="text/css" href="styles/[% $CSSTEMPLATE %]/css/jquery-ui.css" media="screen" />  
        <link rel="stylesheet" type="text/css" href="includes/js/fancybox/jquery.fancybox.css" media="screen" /> 
    </head>

    <body  [% if $reload %]onLoad="self.parent.window.location.href = 'index.php?module=employee&event=csvImportEmployees[% $importmode %]';window.close();"[% /if %]>


        <form action="index.php?module=upload&event=SimpleFileUpload" method="POST" enctype="multipart/form-data" id="UploadFileForm" class="form-horizontal form-label-left">

            <input type="hidden" name="mode" value="[% $importmode %]" />
            [% if $user->hasRight(10) %]
                <div class="card panel-info shadow-sm rounded">
                    <div class="card-header">
                        <div class="row">
                            <div class="col-sm-6">
                                <span class="fcs-card-title h4">[% $user->gettext('Datei zum Hochladen') %]</span>
                            </div>
                            <div class="col-sm-6 text-end">
                                <div class="btn-group">
                                    [% if $files %]
                                        <input type="button" class="btn btn-outline-secondary" value="[% $user->gettext('Schlie&szlig;en') %]" onclick="self.parent.$.fancybox.close();"/>
                                    [% /if %]
                                    <input type="submit" class="btn btn-outline-primary" value="[% $user->gettext('Hochladen') %]">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        [% if !$fatalerror %]
                            <div class="form-group row mb-3">
                                <label class="col-lg-4 control-label" for="UploadFile">[% $user->gettext('Datei') %]</label>
                                <div class="col-lg-8">
                                    <input type="file" class="form-control" name="UploadFile" id="UploadFile" />
                                    <span class="help-block">[% $user->gettext('Bitte nur Text/CSV-Dateien bis zu 2 MB hochladen') %]</span>
                                </div>
                            </div>
                        [% /if %]
                    </div>
                </div>
            [% /if %]
        </form>



    </body>
</html>				