{if $action == ''}
<!DOCTYPE html>
<html lang="de">
   <head>
     <title>JU & MI Noten bearbeiten</title>
      <link rel="stylesheet" href="../jquery/jquery-ui.css">
      <link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
      <script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
      <!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
      <link href="css/styles.css" rel="stylesheet" />
      <!-- icons in nav-->

      <!-- data Table: https://datatables.net/ -->
       <script src="../bootstrap/data-table/jquery.min.js"></script>
       <link rel="stylesheet" href="../bootstrap/data-table/dataTables.bootstrap5.min.css"></style>
       <link rel="stylesheet" href="../bootstrap/data-table/rowReorder.dataTables.min.css"></style>
       <script type="text/javascript" src="../bootstrap/data-table/jquery.dataTables.min.js"></script>
       <script type="text/javascript" src="../bootstrap/data-table/dataTables.rowReorder.min.js"></script>
       <script type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"></script>
       <link rel="stylesheet" href="../bootstrap/data-table/jumistyle.css"></style>

      <script src="js/all.js" crossorigin="anonymous"></script>
      <script src="../jquery/jquery-3.4.1.min.js"></script>
      <link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">

   </head>
   <body class="sb-nav-fixed">
      <div id="navtop"></div>
      {literal}
      <script>
         $(function(){
           // im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht
           $("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');});
           $("#navleft").load("nav.php");
           $("#footer").load("footer.php");
         });
      </script>
      {/literal}
      <div id="layoutSidenav">
         <!-- Navigation left -->
         <div id="navleft"></div>
         <div id="layoutSidenav_content">
            <main>
            <!--Anwendung-->
            <script type="text/javascript" src="../js/file_upload/vpb_uploader.js"></script>

            <div class="container-fluid">
               <div class="card">
                  <div class="card-header">
                     <i class="fas fa-edit me-1"></i>
                     Noten bearbeiten
                  </div>
                  <div class="card-body">


<!-- https://datatables.net/download/release -->
<table id="myTable" class="table table-striped table-bordered table-responsive table-hover" >
        <thead>
          <tr>
            <th>Titel</th>
            <th class="d-none d-lg-table-cell">Verlag</th>
            <th>Songbook</th>
            <th class="d-none d-lg-table-cell"> Lizenzmenge</th>
            <th class="d-none d-lg-table-cell">Streamlizenz</th>
            <th>Aktion</th>
          </tr>
        </thead>
        <tbody>
        {section name=table_data loop=$table_data}
          <tr>
            <td>{$table_data[table_data].titel}</td>
            <td class="d-none d-lg-table-cell">{$table_data[table_data].verlag}</td>
            <td>{$table_data[table_data].songbook}</td>
            <td class="d-none d-lg-table-cell">{$table_data[table_data].anz_lizenzen}</td>
            <td class="d-none d-lg-table-cell">{$table_data[table_data].streamlizenz_vorh}</td>
            <td>
              <a href="notenupload.php?editjndid={$table_data[table_data].jndid}" class="settings" title="Edit Member" data-toggle="tooltip"><i class="fas fa fa-cog"></i></a>
              &nbsp;
              <a class="btn btn-danger  btn-rounded btn-icon btn-sm" onclick="delNoten({$table_data[table_data].jndid})"><i class="fa fa-trash" style="width:18px;"></i></a>
            </td>
          </tr>
        {/section}
        </tbody>
      </table>


                  </div>
               </div>
            </div>
            <div id="msg"></div>
            </main>
            <!-- footer -->
            <div id="footer"></div>
         </div>
      </div>
   </body>
<script>
$(document).ready(function(){
var table = new DataTable('#myTable', {
    rowReorder: true,
    pageLength: 5,
    language: {
        url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
     search: "",
 lengthMenu:     "_MENU_ Zeilen",
    },
});
});
</script>
</html>
{/if}
