211 lines
11 KiB
HTML
211 lines
11 KiB
HTML
{if $action == ''}
|
|
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
{if $create_edit == ''}
|
|
<title>JU & MI Noten erfassen</title>
|
|
{else}
|
|
<title>JU & MI Noten bearbeiten</title>
|
|
{/if}
|
|
|
|
<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-->
|
|
<script src="js/all.js" crossorigin="anonymous"></script>
|
|
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
|
|
<script src="../jquery/jquery-3.4.1.min.js"></script>
|
|
<!-- jQuery UI CSS
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
|
-->
|
|
<script src="../jquery/jquery-ui.js"></script>
|
|
<!--<script type="text/javascript" charset="utf-8" language="javascript" src="../js/file_upload/DT_bootstrap.js"></script>-->
|
|
<script type="text/javascript" src="../js/file_upload/vpb_uploader.js"></script>
|
|
<script type="text/javascript">$(document).ready(function()
|
|
{
|
|
// Call the main function
|
|
new vpb_multiple_file_uploader
|
|
({
|
|
vpb_form_id: "form_id", // Form ID
|
|
autoSubmit: true,
|
|
vpb_server_url: "../controller/admin_notenupload.php"
|
|
});
|
|
});
|
|
</script>
|
|
<link href = "../jquery/jquery-ui-themes-1.13.2/jquery-ui.css" rel = "stylesheet">
|
|
<style>
|
|
body {
|
|
font-family:Verdana, Geneva, sans-serif;
|
|
}
|
|
span{
|
|
color:red;
|
|
cursor:pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<!--<body onload="if(document.erfassen)document.erfassen.{$umfrageerf_focus}.focus();return false;">-->
|
|
<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>
|
|
<div class="container-fluid">
|
|
<form name="form_id" id="form_id" action="javascript:void(0);" enctype="multipart/form-data">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<i class="fas fa-edit me-1"></i>
|
|
{if $create_edit == ''}
|
|
Noten erfassen
|
|
{else}
|
|
Noten bearbeiten
|
|
{/if}
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<div class="col-12 col-md-4">Titel:</div>
|
|
<div class="col-12 col-md-8">
|
|
<input type="text" id="titel" class="form-control rounded-right" value="{$notenupload_titel}" required>
|
|
</div>
|
|
</div>
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<div class="col-12 col-md-4">LiedNr:</div>
|
|
<div class="col-12 col-md-8">
|
|
<input type="text" id="liednr" class="form-control rounded-right" value="{$notenupload_liednr}">
|
|
</div>
|
|
</div>
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<div class="col-12 col-md-4">Verlag:</div>
|
|
<div class="col-12 col-md-8">
|
|
<input type="text" id="verlag" class="form-control rounded-right" value="{$notenupload_verlag}">
|
|
</div>
|
|
</div>
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<div class="col-12 col-md-4">Anzahl Lizenzen:</div>
|
|
<div class="col-12 col-md-8">
|
|
<input type="number" id="anz_lizenzen" class="form-control rounded-right" value="{$notenupload_anz_lizenzen}" required>
|
|
</div>
|
|
</div>
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<div class="col-8 col-md-4">Streamlizenz:</div>
|
|
<div class="col-4 col-md-8">
|
|
<label><input class="form-check-input" type="radio" name="streamlizenz" {if $notenupload_streamlizenz == '1'}checked{/if} value="1" id="streamlizenz"> Ja</label><br>
|
|
<label><input class="form-check-input" type="radio" name="streamlizenz" {if $notenupload_streamlizenz == '0'}checked{/if} value="0" id="streamlizenz"> Nein</label><br>
|
|
<label><input class="form-check-input" type="radio" name="streamlizenz" {if $notenupload_streamlizenz == '2'}checked{/if} value="2" id="streamlizenz"> ungeklärt</label><br>
|
|
</div>
|
|
</div>
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<div class="col-12 col-md-4">Bemerkung:</div>
|
|
<div class="col-12 col-md-8">
|
|
<div class="form-group">
|
|
<textarea id="bemerkung">{$notenupload_bemerkung}</textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{if $create_edit != ''}
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<div class="col-12 col-md-4">Dateien:</div>
|
|
<div class="col-12 col-md-8">
|
|
<div class="form-group">
|
|
<table class="table table-striped table-bordered" id="curdoks">
|
|
<thead>
|
|
<tr>
|
|
<th style="color:blue; text-align:center;">Datei</th>
|
|
<th class="d-none d-lg-table-cell" style="color:blue; text-align:center;">Uploaddatum</th>
|
|
<th style="color:blue; text-align:center;">Aktion</th>
|
|
<tr>
|
|
</thead>
|
|
<tbody>
|
|
{section name=table_data loop=$table_data}
|
|
<tr>
|
|
<td>
|
|
{if $table_data[table_data].file_exists == 1}
|
|
<a href="{$table_data[table_data].filename}" target="_new">{$table_data[table_data].originalname}</a>
|
|
{else}
|
|
{$table_data[table_data].originalname}
|
|
{/if}
|
|
</td>
|
|
<td class="d-none d-lg-table-cell">{$table_data[table_data].uploaddatum}</td>
|
|
<td><a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="delNotenFile({$table_data[table_data].id})"><i class="fa fa-trash" style="width:18px;"></i></a></td>
|
|
</tr>
|
|
{/section}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="row mt-2 mt-sm-4 mb-2 mb-sm-4">
|
|
<label for="formFile" class="form-label">
|
|
<div class="col-12 col-md-4">PDF:</div>
|
|
<div class="col-12col-md-8">
|
|
<input class="form-control" type="file" name="vasplus_multiple_files" id="vasplus_multiple_files" multiple="multiple">
|
|
</div>
|
|
</label>
|
|
</div>
|
|
<table class="table table-striped table-bordered" id="add_files">
|
|
<thead>
|
|
<tr>
|
|
<th style="color:blue; text-align:center;">Datei</th>
|
|
<th style="color:blue; text-align:center;">Status</th>
|
|
<th style="color:blue; text-align:center;">Größe</th>
|
|
<th style="color:blue; text-align:center;">Aktion</th>
|
|
<tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p align='center'>
|
|
{if $create_edit != ''}
|
|
<input type="hidden" id="jndid" value="{$create_edit}">
|
|
{else}
|
|
<input type="hidden" id="jndid" value="-1">
|
|
{/if}
|
|
<button class="col-6 btn btn-primary btn-sm mt-3" id="save">Speichern</button>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="msg"></div>
|
|
</form>
|
|
</center>
|
|
</main>
|
|
<script src="../tinymce/js/tinymce/tinymce.min.js"></script>
|
|
<script>
|
|
tinymce.init({
|
|
selector: 'textarea#bemerkung',
|
|
height: 200,
|
|
// skin: 'bootstrap',
|
|
plugins: 'lists, link',
|
|
toolbar: 'h1 h2 bold italic strikethrough blockquote bullist numlist backcolor | link | removeformat help',
|
|
menubar: false,
|
|
});
|
|
</script>
|
|
<!-- Livesearchscript muss nach den Textfelder sitzen-->
|
|
<script src="../js/components/admin_notenupload.js"></script>
|
|
<!-- footer -->
|
|
<div id="footer"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{/if}
|