<?php
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/header.php');
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . '/Auth/nav.php');
?>
<div class="container">
  <div class="card border-primary mb-3">
    <div class="card-header">
      <h3><?php echo $doc->getClientCompany($_GET['id']); ?> <br>Upload (.jpg, .png, .jpeg, .gif, .bmp, .doc, xls, pdf)</h3>
    </div>
    <div class="card-body">
      <div class="row">
        <div class="col-md-12">
          <form action="upload.php" class="dropzone" id="imageUpload" name="imageUpload" style="background-color:#F2F2F2;">
            <div class="form-group">
              <label for="doc_type"><font size="+3"><span class="badge badge-danger">2.</span></font> Dokumententyp</label>
              <select name="doc_type" class="form-control" id="doc_type" required>
                <option value="">Dokumententyp auswählen</option>
                <?php
                foreach ($rowsDropdownDocType as $key => $value) {
                  echo '<option value="' . $value . '">' . $key . '</option>';
                } 
                ?>
              </select>
            </div>
            <div class="form-group">
              <label for="description"><font size="+3"><span class="badge badge-danger">2.</span></font> Dokumentenbeschreibung</label>
              <input type="text" class="form-control" name="description" id="description" value="" placeholder="Dokumentenbeschreibung" required>
              <input type="hidden" name="uuid" id="uuid" value="<?php echo createUUID(); ?>">
              <input type="hidden" name="kunden_id" id="kunden_id" value="<?php echo $_GET['id']; ?>">
              <input type="hidden" name="kunden_uuid" id="kunden_uuid" value="<?php echo $doc->getClientUuidById($_GET['id']); ?>">
              <input type="hidden" name="site" id="site" value="<?php echo $site; ?>">
            </div>
            <p>
              <font size="+3"><span class="badge badge-danger">3.</span></font> Nur ein Bild unter diesen Hinweis reinziehen, da die Dokumentenbeschreibung festgelegt werden muss!<br>
              In diesen Bereich reinklicken funktioniert ebenfalls!
            </p>
          </form>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="form-group col-sm-2">
      </div>
      <div class="form-group col-sm-4">
        
      </div>
      <div class="form-group col-sm-6">
        <button type="button" class="btn btn-default" onclick="window.history.back();">Schliessen &nbsp;<font color="#FF0000"><span aria-hidden="true">&times;</span></font></button>
      </div>
    </div>
  </div>
</div>
<p>&nbsp;</p>
<?php
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/footer.php');
?>
<script type="text/javascript" src="<?php echo HOME_DIR_HTML; ?>/js/dropzone.js"></script>
<script type="text/javascript">
Dropzone.options.imageUpload= {
    resizeWidth: 800,
    maxFilesize: 8,
    acceptedFiles: '.jpg, .png, .jpeg, .gif, .bmp, .doc, .docx, .xls, .xlsx, .pdf'
};
</script>
</body>
</html>
