survey/templates/modern/admin/2022-01-12_unzugeordnet.html
2023-03-14 14:47:50 +01:00

87 lines
3.6 KiB
HTML

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>Sitzplan</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../templates/{$global_template}/css/styles_login.css" type="text/css">
<link rel="stylesheet" href="../jquery/jquery-ui.css">
<script src="../jquery/jquery-1.12.4.js"></script>
<script src="../jquery/jquery-ui.js"></script>
<script src="../jquery/globalize.js"></script>
<script src="../jquery/globalize.culture.de-DE.js"></script>
<script src="../jquery/jquery.mousewheel.js"></script>
<style>
.legend1 {
display: block;
padding-left: 30px;
padding-right: 30px;
border: none;
}
fieldset {
margin-left: 2em;
margin-right: 2em;
margin-bottom: 2em;
border: 1px solid #888;
border-right: 1px solid #666;
border-bottom: 1px solid #666;
}
</style>
<script type="text/javascript">
function save_platz(selectObject) {
var reihe_platz = selectObject.value;
var lfd_tid = selectObject.name;
$.ajax({
type: 'POST',
url: 'save_platz.php',
data: {
get_reiheplatz: reihe_platz,
get_lfdtid: lfd_tid
},
success: function (response) {
var iframe = parent.document.getElementById(response);
iframe.src = iframe.src;
window.location.reload();
}
});
}
</script>
</head>
<body>
<fieldset>
<legend class="legend1" align="center">
<b>Nicht zugeordnete Personen</b>
</legend>
<form action=?action=save method="POST" name="save">
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td><b>Name</b></td>
<td><b>Mögliche Sitzplätze</b></td>
</tr>
{section name=table_data1 loop=$table_data1}
<tr>
<td>{$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname} ({$table_data1[table_data1].Anz} {if $table_data1[table_data1].Anz == 1} Person{else} Personen{/if})</td>
<td>
<select name="{$table_data1[table_data1].lfd_haushalt}|{$table_data1[table_data1].tid}" id="{$table_data1[table_data1].lfd_haushalt}|{$table_data1[table_data1].tid}" onchange="save_platz(this);">
<option>Bitte Platz auswählen</option>
{section name=inner loop=$table_data1[table_data1].inner}
<option value="{$table_data1[table_data1].inner[inner].reihe}|{$table_data1[table_data1].inner[inner].platz}">{$table_data1[table_data1].inner[inner].reihe} {if $table_data1[table_data1].inner[inner].platz != ''}/ {$table_data1[table_data1].inner[inner].platz}{/if}</option>
{/section}
<option value="Sonntagschule|">Sonntagschule</option>
<option value="Vorsonntagschule|">Vorsonntagschule</option>
</select>
</td>
</tr>
{/section}
</table>
</form>
</fieldset>
</body>
</html>