425 lines
16 KiB
PHP
Executable File
425 lines
16 KiB
PHP
Executable File
<?php
|
|
/* Smarty version 3.1.29, created on 2020-07-24 09:42:23
|
|
from "/srv/www/htdocs-hvf/kurs/bpm/templates/modern/admin/tanimport.html" */
|
|
|
|
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
|
|
'has_nocache_code' => false,
|
|
'version' => '3.1.29',
|
|
'unifunc' => 'content_5f1a90df5d62c0_99204131',
|
|
'file_dependency' =>
|
|
array (
|
|
'7c1dfe7bb6c5018bb0e68799fd8753854847207c' =>
|
|
array (
|
|
0 => '/srv/www/htdocs-hvf/kurs/bpm/templates/modern/admin/tanimport.html',
|
|
1 => 1595482422,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_5f1a90df5d62c0_99204131 ($_smarty_tpl) {
|
|
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
|
<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/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/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/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/css/component.css" />
|
|
<?php echo '<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);
|
|
<?php echo '</script'; ?>
|
|
>
|
|
</head>
|
|
<body>
|
|
<?php if ($_smarty_tpl->tpl_vars['index_error']->value == '1') {?>
|
|
<table width="70%" class="errorTable" align="center">
|
|
<tr>
|
|
<td>
|
|
<img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/images/pflichtfelder/achtung_gross.gif">
|
|
</td>
|
|
<td><b>Achtung!</b><br>
|
|
<?php echo $_smarty_tpl->tpl_vars['index_error_text']->value;?>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<?php }?>
|
|
<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>Roter Button anklicken, um HOGREFE TAN Liste auszuwählen</li>
|
|
<li>Danach "CSV-Hochladen..." klicken</li>
|
|
<li><b>Verfügbare Rest-TANs: <?php echo $_smarty_tpl->tpl_vars['tanimp_anzahltan']->value;?>
|
|
</b></li>
|
|
<li>Importvorlage Hogrefe: <a href="Import_CSV_Hogrefe.xlsx" target='_new'>Import_CSV_Hogrefe.xlsx</a> als CSV-Datei abspeichern.</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ählen…<br>(hier klicken)</span>
|
|
</label>
|
|
</div>
|
|
<?php echo '<script'; ?>
|
|
src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/js/custom-file-input.js"><?php echo '</script'; ?>
|
|
>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100%" align="center" colspan="2">
|
|
<input type="submit" class="button" value="CSV-Hochladen…" name="B1" size="20">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
<td width="30%">
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
<br />
|
|
<br />
|
|
</body>
|
|
</html>
|
|
<?php }
|
|
if ($_smarty_tpl->tpl_vars['action']->value == '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/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/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;
|
|
}
|
|
.row_0 {
|
|
background-color: #FFFFFF;
|
|
}
|
|
.row_1 {
|
|
background-color: #E1E8F1;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/css/component.css" />
|
|
<?php echo '<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);
|
|
<?php echo '</script'; ?>
|
|
>
|
|
</head>
|
|
<body>
|
|
<?php if ($_smarty_tpl->tpl_vars['index_error']->value == '1') {?>
|
|
<table width="70%" class="errorTable" align="center">
|
|
<tr>
|
|
<td>
|
|
<img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/images/pflichtfelder/achtung_gross.gif">
|
|
</td>
|
|
<td><b>Achtung!</b><br>
|
|
<?php echo $_smarty_tpl->tpl_vars['index_error_text']->value;?>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<?php }?>
|
|
<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 align="left" style="padding-left:5px">
|
|
<b>Kurzlink</b>
|
|
</th>
|
|
</tr>
|
|
<?php
|
|
$__section_table_data1_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false;
|
|
$__section_table_data1_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
|
|
$__section_table_data1_0_total = $__section_table_data1_0_loop;
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
|
|
if ($__section_table_data1_0_total != 0) {
|
|
for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_0_iteration <= $__section_table_data1_0_total; $__section_table_data1_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_0_iteration;
|
|
?>
|
|
<tr>
|
|
<td align="center" class="row_<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['zaehler'];?>
|
|
">
|
|
<?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?>
|
|
|
|
</td>
|
|
<td align="center" class="row_<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['zaehler'];?>
|
|
">
|
|
<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['tan'];?>
|
|
|
|
</td>
|
|
<td class="row_<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['zaehler'];?>
|
|
" style="padding-left:5px">
|
|
<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['tinyurl'];?>
|
|
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
if ($__section_table_data1_0_saved) {
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_0_saved;
|
|
}
|
|
?>
|
|
</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ä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ätze importieren
|
|
</td>
|
|
<td width="30%"><font size="1"><input type="radio" name="import" value="1">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="70%">
|
|
|
|
</td>
|
|
<td width="30%">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="70%">
|
|
|
|
</td width="30%">
|
|
<td>
|
|
<input type="submit" value="Abschicken" name="B1" size="20">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</fieldset>
|
|
<br />
|
|
<br />
|
|
</body>
|
|
</html>
|
|
<?php }
|
|
if ($_smarty_tpl->tpl_vars['action']->value == 'csvimp2') {?>
|
|
<html>
|
|
<head>
|
|
<link type="text/css" rel="stylesheet" href="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
|
|
/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>
|
|
<?php if ($_smarty_tpl->tpl_vars['index_error']->value == '1') {?>
|
|
<table width="70%" class="errorTable" align="center">
|
|
<?php
|
|
$__section_table_data2_1_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false;
|
|
$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop));
|
|
$__section_table_data2_1_total = $__section_table_data2_1_loop;
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array());
|
|
if ($__section_table_data2_1_total != 0) {
|
|
for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweis'];?>
|
|
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
if ($__section_table_data2_1_saved) {
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved;
|
|
}
|
|
?>
|
|
</table>
|
|
<?php }?>
|
|
</p>
|
|
<br />
|
|
<br />
|
|
</fieldset>
|
|
</form>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
</body>
|
|
</html>
|
|
<?php }
|
|
}
|
|
}
|