mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
500 lines
17 KiB
PHP
500 lines
17 KiB
PHP
<?php
|
|
$this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails', 'jquery3' => true, 'jqueryui' => true, 'bootstrap' => true, 'fontawesome' => true, 'datatables' => true, 'customCSSs' => 'vendor/BlackrockDigital/startbootstrap-sb-admin-2/dist/css/sb-admin-2.min.css'/*, 'datepickerclass' => 'dateinput'*/));
|
|
?>
|
|
<body>
|
|
|
|
<div id="page-wrapper">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h3 class="page-header">Infocenter - Person Details</h3>
|
|
</div>
|
|
</div>
|
|
<section>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading text-center"><h4>Stammdaten</h4></div>
|
|
<div class="panel-body">
|
|
<!-- </div>
|
|
<div class="row">-->
|
|
<div class="col-md-6">
|
|
<table class="table">
|
|
<tr>
|
|
<td><strong>Vorname</strong></td>
|
|
<td><?php echo $stammdaten->vorname ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Nachname</strong></td>
|
|
<td>
|
|
<?php echo $stammdaten->nachname ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Geburtsdatum</strong></td>
|
|
<td>
|
|
<?php echo date_format(date_create($stammdaten->gebdatum), 'd.m.Y') ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Sozialversicherungsnr</strong></td>
|
|
<td>
|
|
<?php echo $stammdaten->svnr ?></td>
|
|
<tr>
|
|
<td><strong>Staatsbürgerschaft</strong></td>
|
|
<td>
|
|
<?php echo $stammdaten->staatsbuergerschaft ?></td>
|
|
<tr>
|
|
<td><strong>Geschlecht</strong></td>
|
|
<td>
|
|
<?php echo $stammdaten->geschlecht ?></td>
|
|
<tr>
|
|
<td><strong>Geburtsnation</strong></td>
|
|
<td>
|
|
<?php echo $stammdaten->geburtsnation ?></td>
|
|
<tr>
|
|
<td><strong>Geburtsort</strong></td>
|
|
<td><?php echo $stammdaten->gebort ?></td>
|
|
</table>
|
|
</div>
|
|
|
|
<!--<br />
|
|
Berufstätigkeit:-->
|
|
<div class="col-md-6">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="4" class="text-center">Kontakte</th>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-center">Typ</th>
|
|
<th class="text-center">Kontakt</th>
|
|
<th class="text-center">Zustellung</th>
|
|
<th class="text-center">Anmerkung</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($stammdaten->kontakte as $kontakt): ?>
|
|
|
|
<tr>
|
|
<td><?php echo ucfirst($kontakt->kontakttyp); ?></td>
|
|
<td>
|
|
<?php if ($kontakt->kontakttyp === 'email'): ?>
|
|
<a href="mailto:<?php echo $kontakt->kontakt; ?>" target="_top">
|
|
<?php
|
|
endif;
|
|
echo $kontakt->kontakt;
|
|
if ($kontakt->kontakttyp === 'email'):
|
|
?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</td>
|
|
<td class="text-center"><?php echo $kontakt->zustellung === true ? 'X' : ''; ?></td>
|
|
<td><?php echo $kontakt->anmerkung; ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php foreach ($stammdaten->adressen as $adresse): ?>
|
|
<tr>
|
|
<td>
|
|
Adresse
|
|
</td>
|
|
<td>
|
|
<?php echo isset($adresse) ? $adresse->strasse.', '.$adresse->plz.' '.$adresse->ort : '' ?>
|
|
</td>
|
|
<td class="text-center">
|
|
<?php echo $adresse->zustelladresse === true ? 'X' : '' ?>
|
|
</td>
|
|
<td>
|
|
<?php echo ($adresse->heimatadresse === true ? 'Heimatadresse' : '').($adresse->heimatadresse === true && $adresse->rechnungsadresse === true ? ', ' : '').($adresse->rechnungsadresse === true ? 'Rechnungsadresse' : ''); ?>
|
|
</td>
|
|
<tr/>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
|
|
<a name="DokPruef"></a>
|
|
<div class="panel-heading text-center"><h4>Dokumentenprüfung</h4></div>
|
|
<div class="panel-body">
|
|
<div class="col-md-12">
|
|
<table id="doctable" class="table table-striped table-bordered">
|
|
<thead>
|
|
<th>Name</th>
|
|
<th>Typ</th>
|
|
<th>Uploaddatum</th>
|
|
<th>formal geprüft</th>
|
|
<th>nachzureichen</th>
|
|
<th>nachgereicht am</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($dokumente as $dokument):
|
|
$geprueft = isset($dokument->formal_geprueft_amum) ? "checked" : "";
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<a href="../outputAkteContent/<?php echo $dokument->akte_id ?>"><?php echo empty($dokument->titel) ? $dokument->bezeichnung : $dokument->titel ?></a>
|
|
</td>
|
|
<td><?php echo $dokument->dokument_kurzbz ?></td>
|
|
<td><?php echo date_format(date_create($dokument->erstelltam), 'd.m.Y') ?></td>
|
|
<td>
|
|
<input type="checkbox"
|
|
id="prchkbx<?php echo $dokument->akte_id ?>" <?php echo $geprueft ?> />
|
|
<?php echo isset($dokument->formal_geprueft_amum) ? date_format(date_create($dokument->formal_geprueft_amum), 'd.m.Y') : ''; ?>
|
|
</td>
|
|
<td class="text-center">
|
|
<?php echo $dokument->nachgereicht === true ? 'X' : ''; ?>
|
|
</td>
|
|
<td>
|
|
<?php echo isset($dokument->nachgereicht_am) ? date_format(date_create($dokument->nachgereicht_am), 'd.m.Y') : ''; ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading text-center">
|
|
<a name="ZgvPruef"></a>
|
|
<h4>ZGV-Prüfung</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="panel-group">
|
|
<?php
|
|
foreach ($zgvpruefungen as $zgvpruefung): ?>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
Studiengang <?php echo $zgvpruefung->studiengang ?>
|
|
</div>
|
|
<div class="panel-body">
|
|
<form method="post"
|
|
action="../saveZgvPruefung/<?php echo $zgvpruefung->prestudent_id ?>">
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div class="form-group">
|
|
<label>Freigegeben an Studiengang: </label>
|
|
<?php echo isset($zgvpruefung->prestudentstatus->bestaetigtam) ? "ja" : "nein" ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group">
|
|
<label>Letzter Status: </label>
|
|
<?php echo $zgvpruefung->prestudentstatus->status_kurzbz ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group">
|
|
<label>Studiensemester: </label>
|
|
<?php echo $zgvpruefung->prestudentstatus->studiensemester_kurzbz ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group">
|
|
<label>Ausbildungssemester: </label>
|
|
<?php echo $zgvpruefung->prestudentstatus->ausbildungssemester ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div class="form-group">
|
|
<label>ZGV: </label>
|
|
<?php echo $this->widgetlib->widget(
|
|
'Zgv_widget',
|
|
array(DropdownWidget::SELECTED_ELEMENT => $zgvpruefung->zgv_code),
|
|
array('name' => 'zgv', 'id' => 'zgv', 'class' => 'form-control')
|
|
); ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group">
|
|
<label>ZGV Ort: </label>
|
|
<input type="text" class="form-control"
|
|
value="<?php echo $zgvpruefung->zgvort ?>"
|
|
name="zgvort">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group">
|
|
<label>ZGV Datum: </label>
|
|
<input type="text" class="dateinput form-control"
|
|
value="<?php echo empty($zgvpruefung->zgvdatum) ? "" : date_format(date_create($zgvpruefung->zgvdatum), 'd.m.Y') ?>"
|
|
name="zgvdatum">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group">
|
|
<label>ZGV Nation: </label>
|
|
<?php echo $this->widgetlib->widget(
|
|
'Nation_widget',
|
|
array(DropdownWidget::SELECTED_ELEMENT => $zgvpruefung->zgvnation_code),
|
|
array('name' => 'zgvnation', 'id' => 'zgvnation')
|
|
); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- show only master zgv if master studiengang - start -->
|
|
<?php if ($zgvpruefung->studiengangtyp === 'm') : ?>
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div class="form-group"><label>ZGV Master: </label>
|
|
<?php echo $this->widgetlib->widget(
|
|
'Zgvmaster_widget',
|
|
array(DropdownWidget::SELECTED_ELEMENT => $zgvpruefung->zgvmas_code),
|
|
array('name' => 'zgvmas', 'id' => 'zgvmas')
|
|
); ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group"><label>ZGV Master Ort: </label>
|
|
<input type="text" class="form-control"
|
|
value="<?php echo $zgvpruefung->zgvmaort ?>"
|
|
name="zgvmaort">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group"><label>ZGV Master Datum: </label>
|
|
<input type="text" class="dateinput form-control"
|
|
value="<?php echo empty($zgvpruefung->zgvmadatum) ? "" : date_format(date_create($zgvpruefung->zgvmadatum), 'd.m.Y') ?>"
|
|
name="zgvmadatum">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group"><label>ZGV Master Nation: </label>
|
|
<?php echo $this->widgetlib->widget(
|
|
'Nation_widget',
|
|
array(DropdownWidget::SELECTED_ELEMENT => $zgvpruefung->zgvmanation_code),
|
|
array('name' => 'zgvmanation', 'id' => 'zgvmanation')
|
|
); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- show only master zgv if master studiengang - end -->
|
|
<?php endif; ?>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<button type="submit" class="btn btn-default">Speichern</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<?php
|
|
//Prestudenten cannot be abgewiesen or freigegeben if already done
|
|
if (!isset($zgvpruefung->prestudentstatus->bestaetigtam) && $zgvpruefung->prestudentstatus->status_kurzbz != 'Abgewiesener') :
|
|
?>
|
|
<br/>
|
|
<div class="row">
|
|
<form method="post"
|
|
action="../saveAbsage/<?php echo $zgvpruefung->prestudent_id ?>">
|
|
<div class="col-md-12">
|
|
<div class="form-group">
|
|
<label class="d-inline float-left">Absagegrund:</label>
|
|
<select name="statusgrund" class="d-inline float-right">
|
|
<?php foreach ($statusgruende as $statusgrund): ?>
|
|
<option value="<?php echo $statusgrund->statusgrund_id ?>"><?php echo $statusgrund->bezeichnung_mehrsprachig[0] ?></option>
|
|
<?php endforeach ?>
|
|
</select>
|
|
</div>
|
|
<button class="d-inline btn btn-default" type="submit">
|
|
Absage
|
|
</button>
|
|
<a href="../saveFreigabe/<?php echo $zgvpruefung->prestudent_id ?>">
|
|
<button class="btn btn-default">Freigabe an
|
|
Studiengang
|
|
</button>
|
|
</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endforeach // end foreach zgvpruefungen?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<a name="NotizAkt"></a>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading text-center">
|
|
<h4 class="text-center">Notizen & Aktivitäten</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="col-md-6">
|
|
<form method="post" action="../saveNotiz/<?php echo $stammdaten->person_id ?>">
|
|
<div class="form-group">
|
|
<div class="text-center">
|
|
<label>Notiz hinzufügen</label>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Titel: </label><input type="text" class="form-control"
|
|
name="notiztitel"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Text: </label><textarea name="notiz" class="form-control" rows="10"
|
|
cols="32"></textarea>
|
|
</div>
|
|
<button type="submit" class="btn btn-default">Speichern</button>
|
|
</div>
|
|
</form>
|
|
<table id="notiztable" class="table table-bordered table-hover">
|
|
<thead>
|
|
<th>Datum</th>
|
|
<th>Notiz</th>
|
|
<th>User</th>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php foreach ($notizen as $notiz): ?>
|
|
<tr>
|
|
<td><?php echo date_format(date_create($notiz->insertamum), 'd.m.Y H:i:s') ?></td>
|
|
<td><?php echo $notiz->titel ?></td>
|
|
<td><?php echo $notiz->verfasser_uid ?></td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<table id="logtable" class="table table-bordered table-hover">
|
|
<thead>
|
|
<th>Datum</th>
|
|
<th>Aktivität</th>
|
|
<th>User</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($logs as $log): ?>
|
|
<tr>
|
|
<td><?php echo date_format(date_create($log->zeitpunkt), 'd.m.Y H:i:s') ?></td>
|
|
<td><?php echo isset($log->logdata->name) ? $log->logdata->name : '' ?></td>
|
|
<td><?php echo $log->insertvon ?></td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script>
|
|
|
|
$(document).ready(function ()
|
|
{
|
|
//language for datatables
|
|
/* var german =
|
|
{
|
|
"sEmptyTable": "Keine Daten in der Tabelle vorhanden",
|
|
"sInfo": "_START_ bis _END_ von _TOTAL_ Einträgen",
|
|
"sInfoEmpty": "0 bis 0 von 0 Einträgen",
|
|
"sInfoFiltered": "(gefiltert von _MAX_ Einträgen)",
|
|
"sInfoPostFix": "",
|
|
"sInfoThousands": ".",
|
|
"sLengthMenu": "_MENU_ Einträge anzeigen",
|
|
"sLoadingRecords": "Wird geladen...",
|
|
"sProcessing": "Bitte warten...",
|
|
"sSearch": "Suchen",
|
|
"sZeroRecords": "Keine Einträge vorhanden.",
|
|
"oPaginate": {
|
|
"sFirst": "Erste",
|
|
"sPrevious": "Zurück",
|
|
"sNext": "Nächste",
|
|
"sLast": "Letzte"
|
|
},
|
|
"oAria": {
|
|
"sSortAscending": ": aktivieren, um Spalte aufsteigend zu sortieren",
|
|
"sSortDescending": ": aktivieren, um Spalte absteigend zu sortieren"
|
|
},
|
|
select: {
|
|
rows: {
|
|
_: '%d Zeilen ausgewählt',
|
|
0: 'Zum Auswählen auf eine Zeile klicken',
|
|
1: '1 Zeile ausgewählt'
|
|
}
|
|
}
|
|
};*/
|
|
var german = "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json";
|
|
//hack for disabling table pagination if only one page
|
|
var drawCallback = function (settings)
|
|
{
|
|
var pagination = $(this).closest('.dataTables_wrapper').find('.dataTables_paginate');
|
|
pagination.toggle(this.api().page.info().pages > 1);
|
|
};
|
|
|
|
//format for sorting dates in tables
|
|
$.fn.dataTable.moment("DD.MM.YYYY");
|
|
$.fn.dataTable.moment("DD.MM.YYYY HH:mm:ss");
|
|
|
|
//initialise datatables and datepicker
|
|
$("#doctable").DataTable({
|
|
"language": {"url": german},
|
|
"responsive": true,
|
|
"paging": false,
|
|
"searching": false,
|
|
"info": false,
|
|
"order": [[2, "desc"]]
|
|
});
|
|
$("#logtable").DataTable({
|
|
"language": {"url": german},
|
|
"responsive": true,
|
|
"lengthChange": false,
|
|
"info": false,
|
|
"pageLength": 25,
|
|
"order": [[0, "desc"]],
|
|
"drawCallback": drawCallback
|
|
});
|
|
$("#notiztable").DataTable({
|
|
"language": {"url": german},
|
|
"responsive": true,
|
|
"lengthChange": false,
|
|
"info": false,
|
|
"pageLength": 13,
|
|
"order": [[0, "desc"], [2, "asc"]],
|
|
"drawCallback": drawCallback
|
|
});
|
|
$(".dateinput").datepicker({
|
|
"dateFormat": "dd.mm.yy"
|
|
});
|
|
//javascript hack - not nice!
|
|
$("select").addClass('form-control');
|
|
|
|
//add click events to "formal geprüft" checkboxes
|
|
<?php foreach($dokumente as $dokument): ?>
|
|
|
|
if ($("#prchkbx<?php echo $dokument->akte_id; ?>"))
|
|
{
|
|
$("#prchkbx<?php echo $dokument->akte_id; ?>").click(function ()
|
|
{
|
|
window.location = "../saveFormalGeprueft?akte_id=<?php echo $dokument->akte_id; ?>&formal_geprueft=" + this.checked + "&person_id=<?php echo $stammdaten->person_id ?>";
|
|
});
|
|
}
|
|
<?php endforeach ?>
|
|
}
|
|
);
|
|
</script>
|
|
</body>
|
|
<?php $this->load->view('templates/FHC-Footer'); ?>
|