WEB/Sammlung/P3/template/anzeigen.html

89 lines
2.4 KiB
HTML
Raw Normal View History

2016-10-16 21:53:15 +02:00
<!DOCTYPE html>
<html>
<head>
<title>
Absolventenfeier Main
</title>
<meta charset="UTF-8" />
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="/javascript/index.js"></script>
<style type="text/css">
@import url("/template/template.css");
</style>
</head>
<body>
<h1 id="idSiteHeader" class="clSiteHeader">
Absolventenfeier
</h1>
<div id="idContent" class="clContent">
<h2 id="idContentHeader" class="clContentHeader">
Übersicht
</h2>
<div id="idContentArea" class="clContentArea">
<table id="idList">
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th>Anzahl der Begleitpersonen</th>
<th>Studiengang</th>
<th>Betreuer</th>
<th>Matrikelnr</th>
% for var in inhalt_alle:
<tr id=${var}>
<td>${inhalt_alle[var]['Vorname']}</td>
<td>${inhalt_alle[var]['Nachname']}</td>
<td>${inhalt_alle[var]['Gaeste']}</td>
<td>${inhalt_alle[var]['Studiengang']}</td>
<td>${inhalt_alle[var]['Betreuer']}</td>
<td>${inhalt_alle[var]['Matrikelnummer']}</td>
</tr>
% endfor
</table>
<script type="text/javascript">
$('#idList tr').click(function(){
var cid = $(this).attr('id');
##alert(cid);
myFunction(cid);
});
</script>
<script>
function myFunction(cid) {
var person = prompt("Bitte geben Sie ihr Passwort ein:", "");
var y = new String("")+person;
##alert(person+ cid+ y);
var formString = '<form method="post" action="/bearbeiten_app">';
formString += '<input type="hidden" value="';
formString += cid;
formString += '" id="id_s" name="id_s" />';
formString += '<input type="hidden" value='
formString += y
formString +=' pw="pw" name="pw" />';
##alert (formString);
var formElement = $(formString);
$("body").append(formElement);
$(formElement).submit();
}
</script>
</div>
<div id="idButtonArea" class="clButtonArea">
<a href="/hinzufuegen_app" class="clButton">Neuer Teilnehmer</a>
<a href="/ausschuss_app" class="clButton">Prüfungsausschuss</a>
<a href="./Dokumentation.html" class="clButton">Dokumentation</a>
</div>
</div>
</body>
</html>