bpm/templates/modern/admin/upload.html
2023-04-25 13:16:13 +02:00

484 lines
16 KiB
HTML
Executable File

{if $action == ''}
<html>
<head>
<link type="text/css" rel="stylesheet" href="../templates/{$global_template}/css/styles_refill.css">
<style>
select{
width:330px;
}
</style>
</head>
<body>
<form action="?action=upload" method='post' name='upload'>
{if $termine_error == '1'}
<table width="70%" class="errorTable" align="center">
<tr>
<td>
<img src="../templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
</td>
<td><b>Achtung!</b><br>
{$termine_error_text}
</td>
</tr>
</table>
<br />
{/if}
<fieldset>
<legend>
<b>Import Testdaten</b>
</legend>
<br />
<br />
<p align="center">
<select name="testtermin" size=15>
{section name=table_data1 loop=$table_data1}
<option value="{$table_data1[table_data1].tm_id}">{$table_data1[table_data1].tm_datum_form} - {$table_data1[table_data1].tm_standort}</option>
{/section}
</select>
</p>
<br />
<p align='center'>
<input type='submit' name='senden' value="Datum wählen">
</p>
<br />
</fieldset>
</form>
<br />
<br />
<br />
<br />
</body>
</html>
{/if}
{if $action == 'upload'}
<html>
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<title>Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl.</title>
<link type="text/css" rel="stylesheet" href="../templates/{$global_template}/css/styles_refill.css">
<style>
.desc{
width:400px;
}
.StandardTable thead th{
background: lightgray;
border: 1px solid #656565;
font-size:12px;
font-family:Arial;
padding-top:5px;
padding-bottom:5px;
padding-left:5px;
padding-right:5px;
}
textarea{
border: 1px solid #888;
height: 6.7em;
width: 48.5em;
}
select{
width:630px;
}
.fieldset1 {
border: 1px solid red;
}
.fieldset2 {
border: ridge green;
display: block;
margin-left: 20px;
margin-right: 20px;
padding-top: 20px;
padding-bottom: 20px;
padding-left: 20px;
padding-right: 20px;
}
.legend1 {
display: block;
padding-left: 20px;
padding-right: 20px;
border: none;
font-size: 30px;
}
.button {
font: bold 11px Arial;
text-decoration: none;
background-color: #EEEEEE;
color: #333333;
padding: 2px 6px 2px 6px;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: 1px solid #CCCCCC;
}
</style>
<link rel="stylesheet" type="text/css" href="../templates/{$global_template}/css/component.css" />
<script type="text/javascript">
(function(e,t,n){
var r=e.querySelectorAll("html")[0];
r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")
})
(document,window,0);
</script>
</head>
<body>
{if $index_error == '1'}
<table width="70%" class="errorTable" align="center">
<tr>
<td>
<img src="../templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
</td>
<td><b>Achtung!</b><br>
{$index_error_text}
</td>
</tr>
</table>
<br />
{/if}
<fieldset>
<legend>
<b>Schritt 1: Dateien auswählen und hochladen</b>
</legend>
<table border="0" width="100%">
<tr>
<td width="30%" valign="top">
<ol>
<li>Die CSV-Dateien können nacheinander hochgeladen werden.</li>
<li>Roter Button anklicken, um die einzelne Datei vom PC auszuwählen</li>
<li>Danach "CSV-Hochladen..." klicken, so dass die Datei unter Schritt 2 angezeigt wird</li>
</ol>
</td>
</td>
<td width="40%">
<form action=?action=csvimp method="POST" enctype="multipart/form-data" name="csvimp">
<table border="0" cellpadding="0" cellspacing="0" width="100%" >
<tr>
<td width="100%"align="center" >
<div>
<input type="file" name="file" id="file-5" class="inputfile inputfile-4" />
<label for="file-5">
<figure>
<svg xmlns="https://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17">
<path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/>
</svg>
</figure>
<span style='float:center;'>CSV-Datei ausw&auml;hlen&hellip;<br>(hier klicken)</span>
</label>
</div>
<script src="../templates/{$global_template}/js/custom-file-input.js"></script>
</td>
</tr>
<tr>
<td width="100%" align="center" colspan="2">
<input type="submit" class="button" value="CSV-Hochladen&hellip;" name="B1" size="20">
</td>
</tr>
</table>
</form>
</td>
<td width="30%">
&nbsp;
</td>
</tr>
</table>
</fieldset>
<br />
<br />
</body>
</html>
{/if}
{if $action == 'csvimp'}
<html>
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<title>Anlagenupload und Ausbildungsstellenwahl BPM (Bachelor of Arts - Public Management) der Hochschulen Ludwigsburg und Kehl.</title>
<link type="text/css" rel="stylesheet" href="../templates/{$global_template}/css/styles_refill.css">
<style>
.desc{
width:400px;
}
th{
background: lightgray;
border: 1px solid #656565;
font-size:11px;
font-family:Arial;
padding-top:5px;
padding-bottom:5px;
padding-left:5px;
padding-right:5px;
}
textarea{
border: 1px solid #888;
height: 6.7em;
width: 48.5em;
}
select{
width:630px;
}
.fieldset1 {
border: 1px solid red;
}
.fieldset2 {
border: ridge green;
display: block;
margin-left: 20px;
margin-right: 20px;
padding-top: 20px;
padding-bottom: 20px;
padding-left: 20px;
padding-right: 20px;
}
.legend1 {
display: block;
padding-left: 20px;
padding-right: 20px;
border: none;
font-size: 30px;
}
.button {
font: bold 11px Arial;
text-decoration: none;
background-color: #EEEEEE;
color: #333333;
padding: 2px 6px 2px 6px;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: 1px solid #CCCCCC;
}
</style>
<link rel="stylesheet" type="text/css" href="../templates/{$global_template}/css/component.css" />
<script type="text/javascript">
(function(e,t,n){
var r=e.querySelectorAll("html")[0];
r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")
})
(document,window,0);
</script>
</head>
<body>
{if $index_error == '1'}
<table width="70%" class="errorTable" align="center">
<tr>
<td>
<img src="../templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
</td>
<td><b>Achtung!</b><br>
{$index_error_text}
</td>
</tr>
</table>
<br />
{/if}
<fieldset>
<legend>
<b>Schritt 2: Daten prüfen</b>
</legend>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th>
<b>#</b>
</th>
<th>
<b>TAN</b>
</th>
<th>
<b>Name</b>
</th>
<th>
<b>Datum</b>
</th>
<th>
<b>Satzergänzung</b>
</th>
<th>
<b>Gemeinsamkeiten</b>
</th>
<!--
<th>
<b>Gemeinsamkeiten</b>
</th>
-->
<th>
<b>Rechenaufgaben</b>
</th>
<th>
<b>Zahlenreihen</b>
</th>
<th>
<b>Rechenzeichen</b>
</th>
<th>
<b>Matrizen</b>
</th>
<!--
<th>
<b>Verbale Intelligenz</b>
</th>
<th>
<b>Numerische Intelligenz</b>
</th>
-->
<th>
<b>Merkfähigkeit verbal</b>
</th>
<th>
<b>Summe Einzeltests</b>
</th>
<th>
<b>Gesamtergebnis</b>
</th>
</tr>
{section name=table_data1 loop=$table_data1}
<tr>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$smarty.section.table_data1.rownum}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].tan}
</td>
<td {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].name}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].datum}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].satzerg_raw}
</td>
<!--
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].analogie_raw}
</td>
-->
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].gemeinsamkeiten_raw}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].rechenaufgaben_raw}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].zahlenreihen_raw}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].rechenzeichen_raw}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].matrizen_raw}
</td>
<!--
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].verb_intelligenz_raw}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].num_intelligenz_raw}
</td>
-->
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].merkf_raw}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{$table_data1[table_data1].summe}
</td>
<td align="center" {if $table_data1[table_data1].bestanden == 1} BGCOLOR="#C8EFD4" {else} BGCOLOR="#FBCFD0" {/if}>
{if $table_data1[table_data1].bestanden == 1}
bestanden
{else}
nicht bestanden
{/if}
</td>
</tr>
{/section}
</table>
<br>
<br>
<form action=?action=csvimp2 method="POST" name="csvimp2">
<table width="100%" border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#E7E8ED">
<tr>
<td width="70%" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
<b><font size="1">Auswahl</font></b>
</td>
<td width="30%" align="left" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
<b><font size="1">Markieren</font></b>
</td>
</tr>
<tr>
<td width="70%"><font size="1">Datens&auml;tze nicht importieren
</td>
<td width="30%"><font size="1"><input type="radio" name="import" value="0" checked>
</td>
</tr>
<tr>
<td width="70%"><font size="1">Datens&auml;tze importieren
</td>
<td width="30%"><font size="1"><input type="radio" name="import" value="1">
</td>
</tr>
<tr>
<td width="70%">
&nbsp;
</td>
<td width="30%">
&nbsp;
</td>
</tr>
<tr>
<td width="70%">
&nbsp;
</td width="30%">
<td>
<input type="submit" value="Abschicken" name="B1" size="20">
</td>
</tr>
</table>
</form>
</fieldset>
<br />
<br />
</body>
</html>
{/if}
{if $action == 'csvimp2'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="../templates/{$global_template}/css/styles_refill.css">
<style>
select{
width:330px;
}
</style>
</head>
<body>
<fieldset>
<legend>
<b>Import beendet</b>
</legend>
<br />
<br />
<p align="center">
Der Import wurde beendet!
<br>
<br>
{if $index_error == '1'}
<table width="70%" class="errorTable" align="center">
{section name=table_data2 loop=$table_data2}
<tr>
<td>
{$table_data2[table_data2].hinweis}
</td>
</tr>
{/section}
</table>
{/if}
</p>
<br />
<br />
</fieldset>
</form>
<br />
<br />
<br />
<br />
</body>
</html>
{/if}