<?php
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/header.php');
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . '/Auth/nav.php');
?>
<form name="edit" action="<?php echo$_SERVER['PHP_SELF']; ?>" method="post">
<div class="container">
  <input type="hidden" name="uuid" value="<?php echo $_GET['doc_uuid']; ?>">
  <input type="hidden" name="site" value="<?php echo $site; ?>">

  <div class="card border-warning mb-3">
    <div class="card-header">
      <div class="row">
        <div class="form-group col-sm-1">
        </div>
        <div class="form-group col-sm-7">
          <h3><?php echo $doc->getClientCompany($_GET['id']); ?> - Dokument bearbeiten</h3>
        </div>
        <div class="form-group col-sm-4">
          
        </div>
      </div>
    </div>
    
    <div class="card-body">
      <div class="row">
        <div class="form-group col-sm-3">
          <label for="doc_type">Dokumententyp </label>
        </div>
        <div class="form-group col-sm-9">
          <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 . '"';
              if ($row['doc_type']        == $value) {
                echo ' selected';
              }
              echo '>' . $key . '</option>';
            } 
            ?>
          </select>
        </div>
      </div>
      <div class="row">
        <div class="form-group col-sm-3">
          <label for="description">Dokumentenbeschreibung </label>
        </div>
        <div class="form-group col-sm-9">
          <input type="text" name="description" class="form-control" id="description" value="<?php echo showHtmlEntities($row['description']); ?>" required>
        </div>
      </div>
    </div>
  </div>
  
  <?php 
    include ($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/forms/footer.edit.php');
  ?>
  
</div>
</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
<?php
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/footer.php');
?>


</body>
</html>

