mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -23,8 +23,8 @@ class InfocenterDetails extends VileSci_Controller
|
||||
$this->load->model('person/notiz_model', 'NotizModel');
|
||||
$this->load->model('crm/prestudent_model', 'PrestudentModel');
|
||||
$this->load->model('crm/prestudentstatus_model', 'PrestudentstatusModel');
|
||||
$this->load->model('crm/akte_model', 'AkteModel');
|
||||
$this->load->model('crm/statusgrund_model', 'StatusgrundModel');
|
||||
$this->load->model('crm/akte_model', 'AkteModel');
|
||||
|
||||
$this->load->library('DmsLib');
|
||||
$this->load->library('WidgetLib');
|
||||
@@ -55,13 +55,31 @@ class InfocenterDetails extends VileSci_Controller
|
||||
if(!isset($stammdaten->retval))
|
||||
return null;
|
||||
|
||||
$dokumente = $this->AkteModel->loadWhere(array('person_id' => $person_id));
|
||||
/* $dokumente = $this->AkteModel->loadWhere(array('person_id' => $person_id));
|
||||
|
||||
if ($dokumente->error)
|
||||
{
|
||||
show_error($dokumente->retval);
|
||||
}
|
||||
|
||||
var_dump($dokumente->retval);*/
|
||||
|
||||
$dokumente = $this->AkteModel->getAktenWithDokInfo($person_id, null, false);
|
||||
|
||||
if ($dokumente->error)
|
||||
{
|
||||
show_error($dokumente->retval);
|
||||
}
|
||||
|
||||
$dokumente_nachgereicht = $this->AkteModel->getAktenWithDokInfo($person_id, null, true);
|
||||
|
||||
if ($dokumente_nachgereicht->error)
|
||||
{
|
||||
show_error($dokumente->retval);
|
||||
}
|
||||
|
||||
//var_dump($dokumente->retval);die();
|
||||
|
||||
$logs = $this->personloglib->getLogs($person_id, $this::APP);
|
||||
|
||||
$notizen = $this->NotizModel->getNotiz($person_id);
|
||||
@@ -74,6 +92,7 @@ class InfocenterDetails extends VileSci_Controller
|
||||
$data = array (
|
||||
'stammdaten' => $stammdaten->retval,
|
||||
'dokumente' => $dokumente->retval,
|
||||
'dokumente_nachgereicht' => $dokumente_nachgereicht->retval,
|
||||
'logs' => $logs,
|
||||
'notizen' => $notizen->retval
|
||||
);
|
||||
@@ -109,6 +128,16 @@ class InfocenterDetails extends VileSci_Controller
|
||||
$zgvpruefungen[] = $prestudent->retval[0];
|
||||
}
|
||||
|
||||
//Interessenten come first
|
||||
usort($zgvpruefungen, function ($a, $b){
|
||||
if($a->prestudentstatus->status_kurzbz === 'Interessent')
|
||||
return -1;
|
||||
else if($b->prestudentstatus->status_kurzbz === 'Interessent')
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
});
|
||||
|
||||
//TODO replace with widget
|
||||
$statusgruende = $this->StatusgrundModel->load()->retval;
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ class Akte_model extends DB_Model
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getAktenAccepted
|
||||
*/
|
||||
@@ -116,7 +116,7 @@ class Akte_model extends DB_Model
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getAktenAcceptedDms
|
||||
*/
|
||||
@@ -173,4 +173,34 @@ class Akte_model extends DB_Model
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* gets Akten together with Documenttype info, mainly bezeichnung fields
|
||||
* @param $person_id
|
||||
* @param null $dokument_kurzbz
|
||||
* @param bool $nachgereicht if true, retrieves only nachgereichte Dokumente. if false, only not nachgereichte. default: null, all Dokumente
|
||||
* @return array
|
||||
*/
|
||||
public function getAktenWithDokInfo($person_id, $dokument_kurzbz = null, $nachgereicht = null)
|
||||
{
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
$this->addSelect('public.tbl_akte.*, bezeichnung_mehrsprachig, dokumentbeschreibung_mehrsprachig, public.tbl_dokument.bezeichnung as dokument_bezeichnung', 'ausstellungsdetails');
|
||||
$this->addJoin('public.tbl_dokument', 'dokument_kurzbz');
|
||||
|
||||
$where = array();
|
||||
$where['person_id'] = $person_id;
|
||||
if(isset($dokument_kurzbz))
|
||||
$where['dokument_kurzbz'] = $dokument_kurzbz;
|
||||
if(is_bool($nachgereicht))
|
||||
$where['nachgereicht'] = $nachgereicht;
|
||||
|
||||
$dokumente = $this->loadWhere($where);
|
||||
|
||||
if($dokumente->error)
|
||||
return error($dokumente->retval);
|
||||
|
||||
return success($dokumente->retval);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,60 +2,75 @@
|
||||
|
||||
$filterWidgetArray = array(
|
||||
'query' => '
|
||||
SELECT *
|
||||
FROM (
|
||||
SELECT p.person_id AS "PersonId",
|
||||
p.vorname AS "Vorname",
|
||||
p.nachname AS "Nachname",
|
||||
p.gebdatum AS "Gebdatum",
|
||||
(SELECT zeitpunkt
|
||||
FROM system.tbl_log
|
||||
WHERE app = \'aufnahme\'
|
||||
AND person_id = p.person_id
|
||||
ORDER BY zeitpunkt DESC
|
||||
LIMIT 1) AS "LastAction",
|
||||
(SELECT insertvon
|
||||
FROM system.tbl_log
|
||||
WHERE app = \'aufnahme\'
|
||||
AND person_id = p.person_id
|
||||
ORDER BY zeitpunkt DESC
|
||||
LIMIT 1) AS "User/Operator",
|
||||
(SELECT pss.studiensemester_kurzbz
|
||||
FROM public.tbl_prestudentstatus pss
|
||||
INNER JOIN public.tbl_prestudent ps USING(prestudent_id)
|
||||
WHERE pss.status_kurzbz = \'Interessent\'
|
||||
AND pss.bestaetigtam IS NULL
|
||||
AND pss.bestaetigtvon IS NULL
|
||||
AND ps.person_id = p.person_id
|
||||
ORDER BY pss.datum DESC, pss.insertamum DESC, pss.ext_id DESC
|
||||
LIMIT 1) AS "Studiensemester",
|
||||
(SELECT pss.bewerbung_abgeschicktamum
|
||||
FROM public.tbl_prestudentstatus pss
|
||||
INNER JOIN public.tbl_prestudent ps USING(prestudent_id)
|
||||
WHERE pss.status_kurzbz = \'Interessent\'
|
||||
AND pss.bestaetigtam IS NULL
|
||||
AND pss.bestaetigtvon IS NULL
|
||||
AND ps.person_id = p.person_id
|
||||
ORDER BY pss.datum DESC, pss.insertamum DESC, pss.ext_id DESC
|
||||
LIMIT 1) AS "SendDate"
|
||||
FROM public.tbl_person p
|
||||
WHERE p.aktiv = TRUE
|
||||
AND p.person_id IN (
|
||||
SELECT person_id
|
||||
FROM public.tbl_prestudent
|
||||
INNER JOIN public.tbl_prestudentstatus USING(prestudent_id)
|
||||
WHERE status_kurzbz = \'Interessent\'
|
||||
AND bestaetigtam IS NULL
|
||||
AND bestaetigtvon IS NULL)
|
||||
GROUP BY 1, 2, 4, 5, 6, 7
|
||||
ORDER BY "LastAction" DESC
|
||||
) tbl_infocenter
|
||||
WHERE "Studiensemester" IN (
|
||||
SELECT studiensemester_kurzbz
|
||||
FROM public.tbl_studiensemester
|
||||
WHERE (NOW() >= start AND NOW() <= ende)
|
||||
OR start > NOW()
|
||||
)
|
||||
SELECT
|
||||
p.person_id AS "PersonId",
|
||||
p.vorname AS "Vorname",
|
||||
p.nachname AS "Nachname",
|
||||
p.gebdatum AS "Gebdatum",
|
||||
(
|
||||
SELECT zeitpunkt
|
||||
FROM system.tbl_log
|
||||
WHERE app = \'aufnahme\'
|
||||
AND person_id = p.person_id
|
||||
ORDER BY zeitpunkt DESC
|
||||
LIMIT 1
|
||||
) AS "LastAction",
|
||||
(
|
||||
SELECT insertvon
|
||||
FROM system.tbl_log
|
||||
WHERE app = \'aufnahme\'
|
||||
AND person_id = p.person_id
|
||||
ORDER BY zeitpunkt DESC
|
||||
LIMIT 1
|
||||
) AS "User/Operator",
|
||||
(
|
||||
SELECT
|
||||
pss.studiensemester_kurzbz
|
||||
FROM
|
||||
public.tbl_prestudentstatus pss
|
||||
INNER JOIN public.tbl_prestudent ps USING(prestudent_id)
|
||||
WHERE pss.status_kurzbz = \'Interessent\'
|
||||
AND pss.bestaetigtam IS NULL
|
||||
AND pss.bestaetigtvon IS NULL
|
||||
AND ps.person_id = p.person_id
|
||||
ORDER BY pss.datum DESC, pss.insertamum DESC, pss.ext_id DESC
|
||||
LIMIT 1
|
||||
) AS "Studiensemester",
|
||||
(
|
||||
SELECT pss.bewerbung_abgeschicktamum
|
||||
FROM
|
||||
public.tbl_prestudentstatus pss
|
||||
INNER JOIN public.tbl_prestudent ps USING(prestudent_id)
|
||||
WHERE pss.status_kurzbz = \'Interessent\'
|
||||
AND pss.bestaetigtam IS NULL
|
||||
AND pss.bestaetigtvon IS NULL
|
||||
AND ps.person_id = p.person_id
|
||||
ORDER BY pss.datum DESC, pss.insertamum DESC, pss.ext_id DESC
|
||||
LIMIT 1
|
||||
) AS "SendDate"
|
||||
FROM public.tbl_person p
|
||||
WHERE
|
||||
EXISTS(
|
||||
SELECT 1
|
||||
FROM public.tbl_prestudent
|
||||
WHERE person_id=p.person_id
|
||||
AND \'Interessent\' = (SELECT status_kurzbz FROM public.tbl_prestudentstatus
|
||||
WHERE prestudent_id=tbl_prestudent.prestudent_id
|
||||
ORDER BY datum DESC, insertamum DESC, ext_id DESC
|
||||
LIMIT 1
|
||||
)
|
||||
AND EXISTS (SELECT 1 FROM public.tbl_prestudentstatus
|
||||
WHERE prestudent_id=tbl_prestudent.prestudent_id
|
||||
AND status_kurzbz=\'Interessent\' AND bestaetigtam IS NULL and bestaetigtvon IS NULL
|
||||
AND studiensemester_kurzbz IN (
|
||||
SELECT studiensemester_kurzbz
|
||||
FROM public.tbl_studiensemester
|
||||
WHERE (NOW() >= start AND NOW() <= ende)
|
||||
OR start > NOW()
|
||||
)
|
||||
)
|
||||
)
|
||||
ORDER BY "LastAction" DESC
|
||||
',
|
||||
'hideHeader' => false,
|
||||
'hideSave' => false,
|
||||
|
||||
@@ -1,113 +1,110 @@
|
||||
<?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'*/));
|
||||
$this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails', 'jquery3' => true, 'bootstrap' => true, 'fontawesome' => true, 'bootstrapdatepicker' => true, 'datatables' => true, 'customCSSs' => 'vendor/BlackrockDigital/startbootstrap-sb-admin-2/dist/css/sb-admin-2.min.css'));
|
||||
?>
|
||||
<body>
|
||||
|
||||
<div id="page-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-lg-12">
|
||||
<h3 class="page-header">Infocenter - Person Details</h3>
|
||||
</div>
|
||||
</div>
|
||||
<section>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-lg-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): ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<table class="table">
|
||||
<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>
|
||||
<td><strong>Vorname</strong></td>
|
||||
<td><?php echo $stammdaten->vorname ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php foreach ($stammdaten->adressen as $adresse): ?>
|
||||
<tr>
|
||||
<td><strong>Nachname</strong></td>
|
||||
<td>
|
||||
Adresse
|
||||
</td>
|
||||
<?php echo $stammdaten->nachname ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Geburtsdatum</strong></td>
|
||||
<td>
|
||||
<?php echo isset($adresse) ? $adresse->strasse.', '.$adresse->plz.' '.$adresse->ort : '' ?>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<?php echo $adresse->zustelladresse === true ? 'X' : '' ?>
|
||||
</td>
|
||||
<?php echo date_format(date_create($stammdaten->gebdatum), 'd.m.Y') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Sozialversicherungsnr</strong></td>
|
||||
<td>
|
||||
<?php echo ($adresse->heimatadresse === true ? 'Heimatadresse' : '').($adresse->heimatadresse === true && $adresse->rechnungsadresse === true ? ', ' : '').($adresse->rechnungsadresse === true ? 'Rechnungsadresse' : ''); ?>
|
||||
</td>
|
||||
<tr/>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?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>
|
||||
<div class="col-lg-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 ? '<span class="glyphicon glyphicon-ok"></span>' : ''; ?></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 ? '<span class="glyphicon glyphicon-ok"></span>' : '' ?>
|
||||
</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>
|
||||
@@ -116,49 +113,76 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
</section>
|
||||
<section>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-default">
|
||||
|
||||
<a name="DokPruef"></a>
|
||||
<a name="DokPruef"></a><!-- anchor for jumping to the section -->
|
||||
<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" : "";
|
||||
<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_bezeichnung ?></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' : ''; */
|
||||
?>
|
||||
<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>
|
||||
</td>
|
||||
<td>
|
||||
<?php /*echo isset($dokument->nachgereicht_am) ? date_format(date_create($dokument->nachgereicht_am), 'd.m.Y') : ''; */
|
||||
?>
|
||||
</td>-->
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if (count($dokumente_nachgereicht) > 0):?>
|
||||
<br/>
|
||||
<p>Nachzureichende Dokumente:</p>
|
||||
<table id="nachgdoctable" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<th>Typ</th>
|
||||
<th>Eintragsdatum</th>
|
||||
<th>Nachzureichen am</th>
|
||||
<th>Anmerkung</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($dokumente_nachgereicht as $dokument):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $dokument->dokument_bezeichnung ?></td>
|
||||
<td><?php echo date_format(date_create($dokument->erstelltam), 'd.m.Y') ?></td>
|
||||
<td>
|
||||
<?php echo isset($dokument->nachgereicht_am) ? date_format(date_create($dokument->nachgereicht_am), 'd.m.Y') : ''; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $dokument->anmerkung; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -176,34 +200,36 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
<div class="panel-group">
|
||||
<?php
|
||||
foreach ($zgvpruefungen as $zgvpruefung): ?>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Studiengang <?php echo $zgvpruefung->studiengang ?>
|
||||
<h4 class="panel-title">
|
||||
<a data-toggle="collapse" href="#collapse<?php echo $zgvpruefung->studiengang ?>">Studiengang <?php echo $zgvpruefung->studiengang ?></a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapse<?php echo $zgvpruefung->studiengang ?>" class="panel-collapse collapse<?php echo $zgvpruefung->prestudentstatus->status_kurzbz === 'Interessent' ? 'in' : '' ?>">
|
||||
<div class="panel-body">
|
||||
<form method="post"
|
||||
action="../saveZgvPruefung/<?php echo $zgvpruefung->prestudent_id ?>">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="col-lg-4">
|
||||
<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="col-lg-3">
|
||||
<div class="form-group">
|
||||
<label>Letzter Status: </label>
|
||||
<?php echo $zgvpruefung->prestudentstatus->status_kurzbz ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="col-lg-2">
|
||||
<div class="form-group">
|
||||
<label>Studiensemester: </label>
|
||||
<?php echo $zgvpruefung->prestudentstatus->studiensemester_kurzbz ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="col-lg-3">
|
||||
<div class="form-group">
|
||||
<label>Ausbildungssemester: </label>
|
||||
<?php echo $zgvpruefung->prestudentstatus->ausbildungssemester ?>
|
||||
@@ -211,7 +237,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="col-lg-4">
|
||||
<div class="form-group">
|
||||
<label>ZGV: </label>
|
||||
<?php echo $this->widgetlib->widget(
|
||||
@@ -221,7 +247,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-lg-3">
|
||||
<div class="form-group">
|
||||
<label>ZGV Ort: </label>
|
||||
<input type="text" class="form-control"
|
||||
@@ -229,7 +255,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
name="zgvort">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="col-lg-2">
|
||||
<div class="form-group">
|
||||
<label>ZGV Datum: </label>
|
||||
<input type="text" class="dateinput form-control"
|
||||
@@ -237,7 +263,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
name="zgvdatum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="col-lg-3">
|
||||
<div class="form-group">
|
||||
<label>ZGV Nation: </label>
|
||||
<?php echo $this->widgetlib->widget(
|
||||
@@ -251,7 +277,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
<!-- show only master zgv if master studiengang - start -->
|
||||
<?php if ($zgvpruefung->studiengangtyp === 'm') : ?>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="col-lg-4">
|
||||
<div class="form-group"><label>ZGV Master: </label>
|
||||
<?php echo $this->widgetlib->widget(
|
||||
'Zgvmaster_widget',
|
||||
@@ -260,21 +286,21 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-lg-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="col-lg-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="col-lg-3">
|
||||
<div class="form-group"><label>ZGV Master Nation: </label>
|
||||
<?php echo $this->widgetlib->widget(
|
||||
'Nation_widget',
|
||||
@@ -287,7 +313,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
<!-- show only master zgv if master studiengang - end -->
|
||||
<?php endif; ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-lg-12">
|
||||
<button type="submit" class="btn btn-default">Speichern</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -301,7 +327,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
<div class="row">
|
||||
<form method="post"
|
||||
action="../saveAbsage/<?php echo $zgvpruefung->prestudent_id ?>">
|
||||
<div class="col-md-12">
|
||||
<div class="col-lg-12">
|
||||
<div class="form-group">
|
||||
<label class="d-inline float-left">Absagegrund:</label>
|
||||
<select name="statusgrund" class="d-inline float-right">
|
||||
@@ -321,11 +347,10 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endforeach // end foreach zgvpruefungen?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -336,64 +361,68 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
<section>
|
||||
<a name="NotizAkt"></a>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-lg-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="row">
|
||||
<div class="col-lg-6">
|
||||
<form method="post" action="../saveNotiz/<?php echo $stammdaten->person_id ?>">
|
||||
<div class="form-group">
|
||||
<label>Titel: </label><input type="text" class="form-control"
|
||||
name="notiztitel"/>
|
||||
<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>
|
||||
<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>
|
||||
</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>
|
||||
<?php foreach ($notizen as $notiz): ?>
|
||||
<tr data-toggle="tooltip"
|
||||
title="<?php echo isset($notiz->text) ? $notiz->text : '' ?>">
|
||||
<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-lg-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 data-toggle="tooltip"
|
||||
title="<?php echo isset($log->logdata->message) ? $log->logdata->message : '' ?>">
|
||||
<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>
|
||||
@@ -455,11 +484,19 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
"paging": false,
|
||||
"searching": false,
|
||||
"info": false,
|
||||
"order": [[2, "desc"]]
|
||||
"order": [[2, "desc"], [1, "asc"]]
|
||||
});
|
||||
$("#nachgdoctable").DataTable({
|
||||
"language": {"url": german},
|
||||
"responsive": true,
|
||||
"paging": false,
|
||||
"searching": false,
|
||||
"info": false,
|
||||
"order": [[2, "asc"], [1, "desc"]]
|
||||
});
|
||||
$("#logtable").DataTable({
|
||||
"language": {"url": german},
|
||||
"responsive": true,
|
||||
"responsive": false,
|
||||
"lengthChange": false,
|
||||
"info": false,
|
||||
"pageLength": 25,
|
||||
@@ -468,7 +505,7 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
});
|
||||
$("#notiztable").DataTable({
|
||||
"language": {"url": german},
|
||||
"responsive": true,
|
||||
"responsive": false,
|
||||
"lengthChange": false,
|
||||
"info": false,
|
||||
"pageLength": 13,
|
||||
@@ -476,7 +513,8 @@ $this->load->view('templates/FHC-Header', array('title' => 'InfocenterDetails',
|
||||
"drawCallback": drawCallback
|
||||
});
|
||||
$(".dateinput").datepicker({
|
||||
"dateFormat": "dd.mm.yy"
|
||||
"language": "de",
|
||||
"format": "dd.mm.yyyy"
|
||||
});
|
||||
//javascript hack - not nice!
|
||||
$("select").addClass('form-control');
|
||||
|
||||
@@ -12,6 +12,7 @@ $jquery3 = isset($jquery3) ? $jquery3 : false;
|
||||
$jqueryui = isset($jqueryui) ? $jqueryui : false;
|
||||
$bootstrap = isset($bootstrap) ? $bootstrap : false;
|
||||
$fontawesome = isset($fontawesome) ? $fontawesome : false;
|
||||
$bootstrapdatepicker = isset($bootstrapdatepicker) ? $bootstrapdatepicker : false;
|
||||
$datatables = isset($datatables) ? $datatables : false;
|
||||
$tablesorter = isset($tablesorter) ? $tablesorter : false;
|
||||
|
||||
@@ -94,6 +95,8 @@ function _generateJSsInclude($JSs)
|
||||
if ($bootstrap === true) _generateCSSsInclude('vendor/components/bootstrap/css/bootstrap.min.css');
|
||||
// font awesome CSS
|
||||
if ($fontawesome === true) _generateCSSsInclude('vendor/components/font-awesome/css/font-awesome.min.css');
|
||||
// bootstrap datepicker CSS
|
||||
if ($bootstrapdatepicker === true) _generateCSSsInclude('vendor/eternicode/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css');
|
||||
// datatables CSS
|
||||
if ($datatables === true)
|
||||
{
|
||||
@@ -114,6 +117,11 @@ function _generateJSsInclude($JSs)
|
||||
if ($jqueryui === true) _generateJSsInclude('vendor/components/jqueryui/jquery-ui.min.js');
|
||||
// bootstrap JS
|
||||
if ($bootstrap === true) _generateJSsInclude('vendor/components/bootstrap/js/bootstrap.min.js');
|
||||
// bootstrap datepicker JS
|
||||
if ($bootstrapdatepicker === true){
|
||||
_generateJSsInclude('vendor/eternicode/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js');
|
||||
_generateJSsInclude('vendor/eternicode/bootstrap-datepicker/dist/locales/bootstrap-datepicker.de.min.js');
|
||||
}
|
||||
// datatables JS
|
||||
if ($datatables === true)
|
||||
{
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
*/
|
||||
/**
|
||||
* Menue Addon fuer die Darstellung der Freifaecher
|
||||
*
|
||||
* Es wird eine Link-Liste mit allen aktuellen Freifaechern erstellt
|
||||
*
|
||||
* Es wird eine Link-Liste mit allen aktuellen Freifaechern erstellt
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/menu_addon.class.php');
|
||||
require_once(dirname(__FILE__).'/../../include/functions.inc.php');
|
||||
@@ -32,9 +32,9 @@ class menu_addon_freifaecher extends menu_addon
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
|
||||
$this->link=false;
|
||||
|
||||
|
||||
$sprache = getSprache();
|
||||
$stsem = new studiensemester();
|
||||
$stsem = $stsem->getAktOrNext();
|
||||
@@ -48,14 +48,14 @@ class menu_addon_freifaecher extends menu_addon
|
||||
$this->items[] = array('title'=>$row->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>'<span '.(!$row->aktiv?' style="" ':' style=""').'>'.(!$row->aktiv?' <img src="../skin/images/ampel_rot.png" height="8px" height="8px"> ':' <img src="../skin/images/ampel_gruen.png" height="8px"> ').' '.$this->CutString($row->bezeichnung_arr[$sprache], 21, '...').'</span>'
|
||||
'name'=>'<span '.(!$row->aktiv?' style="" ':' style=""').'>'.(!$row->aktiv?' <img src="../skin/images/ampel_rot.png" height="8px" height="8px"> ':' <img src="../skin/images/ampel_gruen.png" height="8px"> ').' '.CutString($row->bezeichnung_arr[$sprache], 21, '...').'</span>'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
$this->block.= '<script language="JavaScript" type="text/javascript">';
|
||||
$this->block.= ' parent.content.location.href="../cms/news.php?studiengang_kz=0&semester=0"';
|
||||
$this->block.= '</script>';
|
||||
|
||||
|
||||
$this->output();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ class menu_addon_lehrveranstaltungen extends menu_addon
|
||||
}
|
||||
$this->block.= '<tr>';
|
||||
$this->block.= ' <td class="tdwrap"><ul style="margin: 0px; padding: 0px; ">';
|
||||
$this->block.= "<li style='padding: 0px;'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id\" target=\"content\">".$this->CutString($row->bezeichnung_arr[$sprache], $cutlength, '...').' '.$row->lehrform_kurzbz."</a></li>";
|
||||
$this->block.= "<li style='padding: 0px;'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id\" target=\"content\">".CutString($row->bezeichnung_arr[$sprache], $cutlength, '...').' '.$row->lehrform_kurzbz."</a></li>";
|
||||
$this->block.= ' </ul></td>';
|
||||
$this->block.= '</tr>';
|
||||
}
|
||||
|
||||
@@ -331,9 +331,9 @@ class menu_addon_lehrveranstaltungen_studienplan extends menu_addon
|
||||
else
|
||||
$bold='';
|
||||
if(!$row->lehrauftrag && defined('CIS_LEHRVERANSTALTUNG_MODULE_LINK') && !CIS_LEHRVERANSTALTUNG_MODULE_LINK)
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; color:#b2b2b2; $bold'>".$this->CutString($row->bezeichnung_arr[$sprache], 21, '...').' '.$row->lehrform_kurzbz."</li>";
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; color:#b2b2b2; $bold'>".CutString($row->bezeichnung_arr[$sprache], 21, '...').' '.$row->lehrform_kurzbz."</li>";
|
||||
else
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; $bold'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id&studiensemester_kurzbz=$studiensemester_kurzbz\" target=\"content\">".$this->CutString($row->bezeichnung_arr[$sprache], 21, '...').' '.$row->lehrform_kurzbz."</a></li>";
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; $bold'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id&studiensemester_kurzbz=$studiensemester_kurzbz\" target=\"content\">".CutString($row->bezeichnung_arr[$sprache], 21, '...').' '.$row->lehrform_kurzbz."</a></li>";
|
||||
|
||||
if(isset($row->childs))
|
||||
$this->printTree($row->childs, $sprache, $studiensemester_kurzbz);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
/**
|
||||
* Menue Addon zur Anzeige der zugeordneten LVs
|
||||
*
|
||||
*
|
||||
* Zeigt eine Liste mit den Lehrfächern an zu denen der Lektor oder Student zugeordnet ist.
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/menu_addon.class.php');
|
||||
@@ -34,15 +34,15 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
|
||||
$sprache = getSprache();
|
||||
$user = get_uid();
|
||||
|
||||
|
||||
$is_lector=check_lektor($user);
|
||||
|
||||
|
||||
$p = new phrasen($sprache);
|
||||
$cutlength=21;
|
||||
|
||||
|
||||
//Meine LVs Student
|
||||
if(!$is_lector)
|
||||
{
|
||||
@@ -57,34 +57,34 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
$stsem_array = array();
|
||||
array_push($stsem_array, $stsem);
|
||||
array_push($stsem_array, $stsemobj->getNextFrom($stsem));
|
||||
|
||||
|
||||
if(defined('CIS_MEINELV_ANZAHL_SEMESTER_PAST'))
|
||||
$end = CIS_MEINELV_ANZAHL_SEMESTER_PAST;
|
||||
else
|
||||
$end = 1;
|
||||
|
||||
|
||||
for($i=0; $i<$end; $i++)
|
||||
{
|
||||
$stsem = $stsemobj->getPreviousFrom($stsem);
|
||||
array_unshift($stsem_array, $stsem);
|
||||
}
|
||||
|
||||
|
||||
foreach($stsem_array as $stsem)
|
||||
{
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
lehrfach.bezeichnung, lehrfach.lehrveranstaltung_id as lehrfach_id, vw_student_lehrveranstaltung.lehrveranstaltung_id,
|
||||
vw_student_lehrveranstaltung.studiengang_kz, vw_student_lehrveranstaltung.semester
|
||||
FROM
|
||||
campus.vw_student_lehrveranstaltung
|
||||
JOIN lehre.tbl_lehrveranstaltung as lehrfach ON(vw_student_lehrveranstaltung.lehrfach_id=lehrfach.lehrveranstaltung_id)
|
||||
WHERE
|
||||
uid=".$this->db_add_param($user)."
|
||||
WHERE
|
||||
uid=".$this->db_add_param($user)."
|
||||
AND studiensemester_kurzbz=".$this->db_add_param($stsem)."
|
||||
AND vw_student_lehrveranstaltung.lehre=true
|
||||
AND vw_student_lehrveranstaltung.lehreverzeichnis<>''
|
||||
ORDER BY
|
||||
AND vw_student_lehrveranstaltung.lehre=true
|
||||
AND vw_student_lehrveranstaltung.lehreverzeichnis<>''
|
||||
ORDER BY
|
||||
vw_student_lehrveranstaltung.studiengang_kz, vw_student_lehrveranstaltung.semester, lehrfach.bezeichnung";
|
||||
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
$stsementry=array();
|
||||
@@ -92,13 +92,13 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
{
|
||||
$lv_obj = new lehrveranstaltung();
|
||||
$lv_obj->load($row->lehrfach_id);
|
||||
|
||||
|
||||
if($row->studiengang_kz==0 && $row->semester==0) // Freifach
|
||||
{
|
||||
$stsementry[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>'FF '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
'name'=>'FF '.CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -127,9 +127,9 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
else
|
||||
{
|
||||
echo "Fehler Semester beim Auslesen der LV";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Eigenen LV des eingeloggten Lektors anzeigen
|
||||
if($is_lector)
|
||||
{
|
||||
@@ -140,39 +140,39 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
$stsem_array[]=$stsemobj->getPreviousFrom($stsem);
|
||||
$stsem_array[]=$stsem;
|
||||
$stsem_array[]=$stsemobj->getNextFrom($stsem);
|
||||
|
||||
|
||||
$this->items[] = array('title'=>$p->t("lvaliste/titel"),
|
||||
'target'=>'content',
|
||||
'link'=>'private/profile/lva_liste.php',
|
||||
'name'=>$p->t("lvaliste/titel"));
|
||||
|
||||
|
||||
foreach($stsem_array as $stsem)
|
||||
{
|
||||
|
||||
$qry = "SELECT
|
||||
distinct tbl_lehrveranstaltung.bezeichnung, tbl_lehrveranstaltung.studiengang_kz,
|
||||
tbl_lehrveranstaltung.semester, tbl_lehrveranstaltung.lehreverzeichnis, tbl_lehrveranstaltung.lehrveranstaltung_id,
|
||||
|
||||
$qry = "SELECT
|
||||
distinct tbl_lehrveranstaltung.bezeichnung, tbl_lehrveranstaltung.studiengang_kz,
|
||||
tbl_lehrveranstaltung.semester, tbl_lehrveranstaltung.lehreverzeichnis, tbl_lehrveranstaltung.lehrveranstaltung_id,
|
||||
tbl_lehrveranstaltung.orgform_kurzbz, lehrfach.lehrveranstaltung_id as lehrfach_id, lehrfach.bezeichnung as lf_bezeichnung
|
||||
FROM
|
||||
FROM
|
||||
lehre.tbl_lehrveranstaltung
|
||||
JOIN lehre.tbl_lehreinheit USING(lehrveranstaltung_id)
|
||||
JOIN lehre.tbl_lehreinheitmitarbeiter USING(lehreinheit_id)
|
||||
JOIN lehre.tbl_lehrveranstaltung as lehrfach ON(tbl_lehreinheit.lehrfach_id=lehrfach.lehrveranstaltung_id)
|
||||
WHERE
|
||||
WHERE
|
||||
mitarbeiter_uid=".$this->db_add_param($user)."
|
||||
AND tbl_lehreinheit.studiensemester_kurzbz=".$this->db_add_param($stsem)."
|
||||
ORDER BY tbl_lehrveranstaltung.studiengang_kz, tbl_lehrveranstaltung.semester, lehrfach.bezeichnung";
|
||||
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
$stsementry=array();
|
||||
while($row = $this->db_fetch_object($result))
|
||||
{
|
||||
$lv_obj = new lehrveranstaltung();
|
||||
$lv_obj->load($row->lehrfach_id);
|
||||
|
||||
|
||||
if($row->studiengang_kz==0 AND $row->semester==0)
|
||||
{
|
||||
$stsementry[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
@@ -180,19 +180,19 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>'FF '.$this->CutString($row->lehreverzeichnis, $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$stg_obj = new studiengang();
|
||||
$stg_obj->load($row->studiengang_kz);
|
||||
$kurzbz = $stg_obj->kuerzel.'-'.$row->semester.' '.$row->orgform_kurzbz;
|
||||
|
||||
|
||||
$stsementry[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(count($stsementry)>0)
|
||||
{
|
||||
@@ -207,7 +207,7 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
else
|
||||
echo "Fehler beim Auslesen des Lehrfaches";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -216,7 +216,7 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
}
|
||||
$this->output();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new menu_addon_meinelvkompatibel();
|
||||
?>
|
||||
|
||||
@@ -101,7 +101,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$row->studiensemester_kurzbz,
|
||||
'name'=>'FF '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
'name'=>'FF '.CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -109,7 +109,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$row->studiensemester_kurzbz,
|
||||
'name'=>strtoupper($row->typ.$row->kurzbz).$row->semester.' '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
'name'=>strtoupper($row->typ.$row->kurzbz).$row->semester.' '.CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -192,7 +192,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id,
|
||||
'name'=>'FF '.$this->CutString($row->lehreverzeichnis, $cutlength, '...')
|
||||
'name'=>'FF '.CutString($row->lehreverzeichnis, $cutlength, '...')
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -203,7 +203,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$titel,
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$row->studiensemester_kurzbz,
|
||||
'name'=>$kurzbz.' '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
'name'=>$kurzbz.' '.CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -251,7 +251,8 @@
|
||||
"components/font-awesome": "^4.7",
|
||||
"moment/moment": "^2.20",
|
||||
"datatables/datatables": "^1.10",
|
||||
"datatables/plugins": "^3.3"
|
||||
"datatables/plugins": "^3.3",
|
||||
"eternicode/bootstrap-datepicker": "^1.7"
|
||||
},
|
||||
"require-dev": {
|
||||
"squizlabs/php_codesniffer": "2.*"
|
||||
|
||||
Generated
+57
-2
@@ -4,8 +4,8 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "28942746c1b00b590a3d3cb43cd21606",
|
||||
"content-hash": "2c99452d2bf338a1d1e3462197ab25b7",
|
||||
"hash": "b386e8ea62cfd8c96c6697729860cc5a",
|
||||
"content-hash": "65e7f00446fd7f602e914089cedaa931",
|
||||
"packages": [
|
||||
{
|
||||
"name": "BlackrockDigital/startbootstrap-sb-admin-2",
|
||||
@@ -775,6 +775,61 @@
|
||||
],
|
||||
"time": "2015-02-27 09:45:49"
|
||||
},
|
||||
{
|
||||
"name": "eternicode/bootstrap-datepicker",
|
||||
"version": "v1.7.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/uxsolutions/bootstrap-datepicker.git",
|
||||
"reference": "4c12834aae54782ca41d9409d6334193f200124d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/uxsolutions/bootstrap-datepicker/zipball/4c12834aae54782ca41d9409d6334193f200124d",
|
||||
"reference": "4c12834aae54782ca41d9409d6334193f200124d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"components/bootstrap": ">=2.0, <4.0",
|
||||
"components/jquery": ">=1.7.1, <4.0.0",
|
||||
"robloach/component-installer": "*"
|
||||
},
|
||||
"type": "component",
|
||||
"extra": {
|
||||
"component": {
|
||||
"scripts": [
|
||||
"js/bootstrap-datepicker.js"
|
||||
],
|
||||
"styles": [
|
||||
"dist/css/bootstrap-datepicker.css",
|
||||
"dist/css/bootstrap-datepicker3.css"
|
||||
],
|
||||
"files": [
|
||||
"js/locales/bootstrap-datepicker.*.js"
|
||||
]
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Andrew Rowls",
|
||||
"email": "eternicode@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Community",
|
||||
"homepage": "https://github.com/uxsolutions/bootstrap-datepicker/contributors"
|
||||
}
|
||||
],
|
||||
"description": "A datepicker for Bootstrap",
|
||||
"keywords": [
|
||||
"bootstrap",
|
||||
"datepicker"
|
||||
],
|
||||
"time": "2017-07-06 12:14:34"
|
||||
},
|
||||
{
|
||||
"name": "fgelinas/timepicker",
|
||||
"version": "0.3.3",
|
||||
|
||||
@@ -234,5 +234,5 @@ define('CIS_DOKUMENTE_STUDIENBEITRAG_TYPEN', serialize(array("Studiengebuehr")))
|
||||
define('CIS_LVMENUE_CUTLENGTH', 21);
|
||||
|
||||
// Gibt an, auf welche Seite TicketIds ala #1234 im Jahresplan verlinkt werden zB zur Verlinkung in Bugtracker
|
||||
define('JAHRESPLAN_TICKET_LINK','https://bug.technikum-wien.at/otrs/index.pl?Action=AgentTicketZoom;TicketID=');
|
||||
define('JAHRESPLAN_TICKET_LINK','https://bug.technikum-wien.at/otrs/index.pl?Action=AgentTicketZoom;TicketNumber=');
|
||||
?>
|
||||
|
||||
@@ -29,8 +29,8 @@ require_once('../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../include/lehreinheit.class.php');
|
||||
require_once('../../include/zeitwunsch.class.php');
|
||||
require_once('../../include/wochenplan.class.php');
|
||||
require_once('../../include/reservierung.class.php');
|
||||
require_once('../../include/log.class.php');
|
||||
require_once('../../include/reservierung.class.php');
|
||||
require_once('../../include/log.class.php');
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
||||
echo '<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>';
|
||||
@@ -93,7 +93,7 @@ if (isset($_GET['new_ort']))
|
||||
$new_ort=$_GET['new_ort'];
|
||||
if (isset($_GET['kollisionsanzahl']))
|
||||
$kollisionsanzahl=$_GET['kollisionsanzahl'];
|
||||
else
|
||||
else
|
||||
$kollisionsanzahl=0;
|
||||
if (isset($_GET['ort']))
|
||||
$ort=$_GET['ort'];
|
||||
@@ -224,7 +224,7 @@ if ($aktion=='stpl_move' || $aktion=='stpl_single_search' || $aktion=='stpl_set'
|
||||
}
|
||||
$name_stpl_idx='x'.++$j.'stundenplan_id0';
|
||||
}
|
||||
|
||||
|
||||
//ReservierungsIDs
|
||||
$i=0;
|
||||
$name_res_id='reservierung_id'.$i;
|
||||
@@ -233,7 +233,7 @@ if ($aktion=='stpl_move' || $aktion=='stpl_single_search' || $aktion=='stpl_set'
|
||||
$res_id[]=$_GET[$name_res_id];
|
||||
$name_res_id='reservierung_id'.++$i;
|
||||
}
|
||||
|
||||
|
||||
// Mehrfachauswahl uebernehmen
|
||||
$j=0;
|
||||
$name_res_idx='x'.$j.'reservierung_id0';
|
||||
@@ -259,7 +259,7 @@ if ($aktion=='stpl_move' || $aktion=='stpl_set')
|
||||
$undo='';
|
||||
$sql='';
|
||||
$moved=array();
|
||||
|
||||
|
||||
foreach ($stpl_id as $stundenplan_id)
|
||||
{
|
||||
$moved[]=$stundenplan_id;
|
||||
@@ -332,9 +332,9 @@ if ($aktion=='stpl_move' || $aktion=='stpl_set')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//UNDO Befehl schreiben
|
||||
if($undo!='' && $error_msg=='' && $sql!='')
|
||||
if($undo!='' && $error_msg=='' && $sql!='' && $kollision_msg=='')
|
||||
{
|
||||
$log = new log();
|
||||
$log->executetime = date('Y-m-d H:i:s');
|
||||
@@ -344,14 +344,14 @@ if ($aktion=='stpl_move' || $aktion=='stpl_set')
|
||||
$log->mitarbeiter_uid = $uid;
|
||||
if(!$log->save(true))
|
||||
$error_msg.='Fehler: '.$log->errormsg;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
// ****************** STPL Delete *******************************
|
||||
elseif ($aktion=='stpl_delete_single' || $aktion=='stpl_delete_block')
|
||||
{
|
||||
$lehrstunde=new lehrstunde();
|
||||
|
||||
|
||||
if($rechte->isBerechtigt('lehre/lvplan',null,'uid'))
|
||||
{
|
||||
//Einzelne Stunden entfernen
|
||||
@@ -363,7 +363,7 @@ elseif ($aktion=='stpl_delete_single' || $aktion=='stpl_delete_block')
|
||||
$error_msg.=$lehrstunde->errormsg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Loeschen von mehreren Stunden
|
||||
if(isset($stpl_idx))
|
||||
{
|
||||
@@ -373,7 +373,7 @@ elseif ($aktion=='stpl_delete_single' || $aktion=='stpl_delete_block')
|
||||
$error_msg.=$lehrstunde->errormsg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(isset($res_id))
|
||||
{
|
||||
foreach ($res_id as $reservierung_id)
|
||||
@@ -397,7 +397,7 @@ elseif ($aktion=='stpl_delete_single' || $aktion=='stpl_delete_block')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Loeschen von mehreren Reservierungen
|
||||
if(isset($res_idx))
|
||||
{
|
||||
@@ -459,7 +459,7 @@ elseif ($aktion=='lva_single_set')
|
||||
|
||||
for ($j=0;$j<$lva[$i]->stundenblockung;$j++)
|
||||
{
|
||||
|
||||
|
||||
if (!$lva[$i]->save_stpl($new_datum,$new_stunde+$j,$new_ort,$db_stpl_table,$uid))
|
||||
$error_msg.='Error: '.$lva[$i]->errormsg;
|
||||
}
|
||||
@@ -481,18 +481,18 @@ elseif ($aktion=='lva_multi_set')
|
||||
$ferien->getAll($stg_kz);
|
||||
else
|
||||
$ferien->getAll(0);
|
||||
|
||||
|
||||
// Ende holen
|
||||
if (!$result_semester=$db->db_query("SELECT * FROM public.tbl_studiensemester WHERE studiensemester_kurzbz=".$db->db_add_param($semester_aktuell).";"))
|
||||
die ($db->db_last_error());
|
||||
if ($db->db_num_rows()>0)
|
||||
{
|
||||
$row = $db->db_fetch_object();
|
||||
$row = $db->db_fetch_object();
|
||||
$ende = $row->ende;
|
||||
}
|
||||
else
|
||||
$error_msg.="Fatal Error: Ende Datum ist nicht gesetzt ($semester_aktuell)!";
|
||||
|
||||
|
||||
$ende=mktime(0,0,1,substr($ende,5,2),substr($ende,8,2),substr($ende,0,4));
|
||||
$anz_lvas=count($lva_id);
|
||||
// Arrays intitialisieren
|
||||
@@ -510,7 +510,7 @@ elseif ($aktion=='lva_multi_set')
|
||||
$lvas.=' OR lehreinheit_id='.$id;
|
||||
$lvas=substr($lvas,3);
|
||||
$sql_query.=$lvas;
|
||||
|
||||
|
||||
if(!$result_lva = $db->db_query($sql_query))
|
||||
$error_msg.=$db->db_last_error();
|
||||
$num_rows_lva=$db->db_num_rows($result_lva);
|
||||
@@ -533,7 +533,7 @@ elseif ($aktion=='lva_multi_set')
|
||||
$offenestunden=$os;
|
||||
else
|
||||
$error_msg.='Offene Stunden sind nicht eindeutig!';
|
||||
|
||||
|
||||
//Blockung
|
||||
$blk=$block[0];
|
||||
$block=array_unique($block);
|
||||
@@ -630,7 +630,7 @@ if ($error_msg=='' && ($kollision_msg=='' || $kollisionsanzahl>0))
|
||||
}
|
||||
else
|
||||
$db->db_query('ROLLBACK;');
|
||||
|
||||
|
||||
$error_msg.=$kollision_msg;
|
||||
|
||||
// Stundenplan erstellen
|
||||
@@ -686,17 +686,17 @@ while ($begin<=$ende)
|
||||
else
|
||||
$error_msg.=$wunsch->errormsg;
|
||||
}
|
||||
|
||||
|
||||
// Stundenplan einer Woche laden
|
||||
if (! $stdplan->load_week($datum,$db_stpl_table, $alle_unr_mitladen))
|
||||
$error_msg.=$stdplan->errormsg;
|
||||
|
||||
|
||||
//Raumvorschlag setzen
|
||||
|
||||
|
||||
if ($aktion=='lva_single_search' || $aktion=='lva_multi_search')
|
||||
if (! $stdplan->load_lva_search($datum,$lva_id,$db_stpl_table, $aktion))
|
||||
$error_msg.=$stdplan->errormsg;
|
||||
|
||||
|
||||
if ($aktion=='stpl_single_search')
|
||||
{
|
||||
if(isset($stpl_id))
|
||||
@@ -704,13 +704,13 @@ while ($begin<=$ende)
|
||||
if (! $stdplan->load_stpl_search($datum,$stpl_id,$db_stpl_table))
|
||||
$error_msg.=$stdplan->errormsg;
|
||||
}
|
||||
else
|
||||
else
|
||||
$error_msg.='Derzeit gibt es keinen Raumvorschlag fuer Reservierungen';
|
||||
}
|
||||
|
||||
// Stundenplan der Woche drucken
|
||||
$stdplan->draw_week_xul($semesterplan,$uid,$zeitwunsch, $ignore_kollision, $kollision_student, $max_kollision);
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -724,7 +724,7 @@ while ($begin<=$ende)
|
||||
if ($error_msg!='')
|
||||
echo "alert('".str_replace("'",'"',str_replace(chr(10),'\n',htmlspecialchars($error_msg)))."');";
|
||||
?>
|
||||
|
||||
|
||||
top.document.getElementById("statusbarpanel-text").setAttribute("label","<?php echo str_replace(chr(10),' ',htmlspecialchars($PHP_SELF.$error_msg)); ?>");
|
||||
</script>
|
||||
</window>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
require_once(dirname(__FILE__).'/basis_db.class.php');
|
||||
require_once(dirname(__FILE__).'/authentication.class.php');
|
||||
require_once(dirname(__FILE__).'/betriebsmittelperson.class.php');
|
||||
require_once(dirname(__FILE__).'/personlog.class.php');
|
||||
|
||||
// Auth: Benutzer des Webportals
|
||||
/**
|
||||
@@ -1081,9 +1082,9 @@ function cutString($string, $limit, $placeholderSign = '', $keepFileextension =
|
||||
}
|
||||
}
|
||||
|
||||
function PersonLog($ci, $person_id, $logtype_kurzbz, $logdata, $app, $oe_kurzbz = null, $user=null)
|
||||
function PersonLog($person_id, $logtype_kurzbz, $logdata, $app, $oe_kurzbz = null, $user=null)
|
||||
{
|
||||
$ci->load->library('PersonLogLib');
|
||||
$ci->personloglib->log($person_id, $logtype_kurzbz, $logdata, $app, $oe_kurzbz, $user);
|
||||
$personlog = new personlog();
|
||||
$personlog->log($person_id, $logtype_kurzbz, $logdata, $app, $oe_kurzbz, $user);
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/* Copyright (C) 2018 fhcomplete.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/basis_db.class.php');
|
||||
|
||||
class personlog extends basis_db
|
||||
{
|
||||
public $new; // boolean
|
||||
public $logs = array(); // lehreinheit Objekt
|
||||
|
||||
//Tabellenspalten
|
||||
public $log_id; // Serial
|
||||
public $person_id;
|
||||
public $zeitpunkt; // timestamp
|
||||
public $app; // varchar(32)
|
||||
public $oe_kurzbz; // varchar(32)
|
||||
public $logtype_kurzbz; // varchar(32)
|
||||
public $logdata;
|
||||
public $insertvon;
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
*/
|
||||
public function __construct($log_id=null)
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function log($person_id, $logtype_kurzbz, $logdata, $app='core', $oe_kurzbz='null', $user=null)
|
||||
{
|
||||
$qry = "INSERT INTO system.tbl_log(person_id, zeitpunkt, app, oe_kurzbz,
|
||||
logtype_kurzbz, logdata, insertvon) VALUES(".
|
||||
$this->db_add_param($person_id).','.
|
||||
$this->db_add_param(date('Y-m-d H:i:s')).','.
|
||||
$this->db_add_param($app).','.
|
||||
$this->db_add_param($oe_kurzbz).','.
|
||||
$this->db_add_param($logtype_kurzbz).','.
|
||||
$this->db_add_param(json_encode($logdata)).','.
|
||||
$this->db_add_param($user).')';
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Speichern des Logeintrages';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -56,7 +56,7 @@ echo '
|
||||
ret = ret + now.getMilliseconds();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
function RefreshImage()
|
||||
{
|
||||
path=document.getElementById("personimage").src;
|
||||
@@ -130,7 +130,7 @@ if($uid!='')
|
||||
$qry = "SELECT person_id, true as mitarbeiter FROM campus.vw_mitarbeiter WHERE uid='".addslashes($uid)."'
|
||||
UNION
|
||||
SELECT person_id, false as mitarbeiter FROM campus.vw_student WHERE uid='".addslashes($uid)."'";
|
||||
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($row = $db->db_fetch_object($result))
|
||||
@@ -138,10 +138,10 @@ if($uid!='')
|
||||
$is_mitarbeiter = ($row->mitarbeiter=='t'?true:false);
|
||||
$person_id = $row->person_id;
|
||||
}
|
||||
else
|
||||
else
|
||||
die('UID wurde nicht gefunden');
|
||||
}
|
||||
else
|
||||
else
|
||||
die('Fehler beim Ermitteln der UID');
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ if(isset($_POST['saveperson']))
|
||||
$person = new person();
|
||||
if(!$person->load($person_id))
|
||||
die('Person konnte nicht geladen werden');
|
||||
|
||||
|
||||
$person->anrede = $anrede;
|
||||
$person->titelpre = $titelpre;
|
||||
$person->titelpost = $titelpost;
|
||||
@@ -177,32 +177,32 @@ if(isset($_POST['saveperson']))
|
||||
$person->updatevon = $user;
|
||||
$person->kurzbeschreibung = $kurzbeschreibung;
|
||||
$person->new = false;
|
||||
|
||||
|
||||
if($person->save())
|
||||
{
|
||||
$msg = '<h3>Personendaten wurden erfolgreich gespeichert</h3>';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$msg = "<h3>Fehler beim Speichern der Personendaten: $person->errormsg</h3>";
|
||||
$error_person_save=true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(isset($_GET['deleteimage']))
|
||||
{
|
||||
if(!$rechte->isBerechtigt('student/stammdaten', null, 'su') && !$rechte->isBerechtigt('mitarbeiter/stammdaten', null, 'su'))
|
||||
die('Sie haben keine Berechtigung fuer diese Aktion');
|
||||
|
||||
|
||||
$person = new person();
|
||||
if(!$person->load($person_id))
|
||||
die('Person konnte nicht geladen werden');
|
||||
|
||||
|
||||
$person->foto='';
|
||||
if(!$person->save())
|
||||
die('Fehler beim Speichern:'.$person->errormsg);
|
||||
|
||||
|
||||
$akte = new akte();
|
||||
if($akte->getAkten($person_id, 'Lichtbil'))
|
||||
{
|
||||
@@ -213,21 +213,21 @@ if(isset($_GET['deleteimage']))
|
||||
echo 'Fehler beim Löschen des Bildes: '.$hlp->errormsg;
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
die('Fehler beim Laden der Akten:'.$akte->errormsg);
|
||||
}
|
||||
|
||||
|
||||
$msg = '<h3>Bild wurde erfolgreich entfernt</h3>';
|
||||
}
|
||||
if(isset($_POST['savebenutzer']))
|
||||
{
|
||||
if(!$rechte->isBerechtigt('student/stammdaten', null, 'su') && !$rechte->isBerechtigt('mitarbeiter/stammdaten', null, 'su'))
|
||||
die('Sie haben keine Berechtigung fuer diese Aktion');
|
||||
|
||||
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($uid);
|
||||
|
||||
|
||||
if(checkalias($alias) || $alias=='')
|
||||
{
|
||||
$benutzer->alias = $alias;
|
||||
@@ -235,17 +235,17 @@ if(isset($_POST['savebenutzer']))
|
||||
$benutzer->new = false;
|
||||
$benutzer->updateamum = date('Y-m-d H:i:s');
|
||||
$benutzer->updatevon = $user;
|
||||
|
||||
|
||||
if($benutzer->save())
|
||||
{
|
||||
$msg = '<h3>Daten wurden erfolgreich gespeichert</h3>';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$msg = "<h3>Fehler beim Speichern: $benutzer->errormsg";
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$msg = "<h3>Alias ist ungueltig $alias</h3>";
|
||||
$error_benutzer_save=true;
|
||||
@@ -256,11 +256,11 @@ if(isset($_POST['savemitarbeiter']))
|
||||
{
|
||||
if(!$rechte->isBerechtigt('mitarbeiter/stammdaten', null, 'su'))
|
||||
die('Sie haben keine Berechtigung fuer diese Aktion');
|
||||
|
||||
|
||||
$mitarbeiter = new mitarbeiter();
|
||||
if(!$mitarbeiter->load($uid))
|
||||
die('Mitarbeiter konnte nicht geladen werden');
|
||||
|
||||
|
||||
$mitarbeiter->personalnummer = $personalnummer;
|
||||
$mitarbeiter->telefonklappe = $telefonklappe;
|
||||
$mitarbeiter->kurzbz = $kurzbz;
|
||||
@@ -275,10 +275,10 @@ if(isset($_POST['savemitarbeiter']))
|
||||
$mitarbeiter->new = false;
|
||||
$mitarbeiter->updateamum = date('Y-m-d H:i:s');
|
||||
$mitarbeiter->updatevon = $user;
|
||||
|
||||
|
||||
if($mitarbeiter->save())
|
||||
$msg = '<h3>Daten wurden erfolgreich gespeichert</h3>';
|
||||
else
|
||||
else
|
||||
{
|
||||
$msg = "<h3>Fehler beim Speichern der Daten: $mitarbeiter->errormsg</h3>";
|
||||
$error_mitarbeiter_save = true;
|
||||
@@ -294,10 +294,10 @@ if(isset($_POST['savestudent']))
|
||||
$studiengang = new studiengang();
|
||||
if(!$studiengang->load($student->studiengang_kz))
|
||||
die('Fehler beim Laden des Studienganges');
|
||||
|
||||
|
||||
if(!$rechte->isBerechtigt('student/stammdaten', $studiengang->oe_kurzbz, 'su'))
|
||||
die('Sie haben keine Berechtigung fuer diese Aktion');
|
||||
|
||||
|
||||
$student->matrikelnr = $matrikelnummer;
|
||||
$student->semester = $semester;
|
||||
$student->verband = $verband;
|
||||
@@ -305,14 +305,14 @@ if(isset($_POST['savestudent']))
|
||||
$student->updateamum = date('Y-m-d H:i:s');
|
||||
$student->updatevon = $user;
|
||||
$student->new = false;
|
||||
|
||||
|
||||
if($student->save(null, false))
|
||||
$msg = '<h3>Daten wurden erfolgreich gespeichert</h3>';
|
||||
else
|
||||
else
|
||||
{
|
||||
$msg = "<h3>Fehler beim Speichern der Daten: $student->errormsg</h3>";
|
||||
$error_student_save = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$person = new person();
|
||||
@@ -348,7 +348,12 @@ if(!$error_person_save)
|
||||
|
||||
$akte = new akte();
|
||||
if($akte->getAkten($person_id, 'Lichtbil'))
|
||||
$dms_id_lichtbild = $akte->result[0]->dms_id;
|
||||
{
|
||||
if(isset($akte->result[0]))
|
||||
{
|
||||
$dms_id_lichtbild = $akte->result[0]->dms_id;
|
||||
}
|
||||
}
|
||||
|
||||
// PERSON
|
||||
echo "<table><tr><td>
|
||||
@@ -387,9 +392,9 @@ foreach ($nation->nation as $row_nation)
|
||||
{
|
||||
if($row_nation->code == $geburtsnation)
|
||||
$selected = 'selected';
|
||||
else
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
|
||||
echo "<option value='$row_nation->code' $selected>$row_nation->kurztext</option>";
|
||||
}
|
||||
echo "</SELECT>
|
||||
@@ -413,9 +418,9 @@ foreach ($nation->nation as $row_nation)
|
||||
{
|
||||
if($row_nation->code == $staatsbuergerschaft)
|
||||
$selected = 'selected';
|
||||
else
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
|
||||
echo "<option value='$row_nation->code' $selected>$row_nation->kurztext</option>";
|
||||
}
|
||||
echo "
|
||||
@@ -432,9 +437,9 @@ if($result_sprache = $db->db_query($qry))
|
||||
{
|
||||
if($row_sprache->sprache == $sprache)
|
||||
$selected = 'selected';
|
||||
else
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
|
||||
echo "<option value='$row_sprache->sprache' $selected>$row_sprache->sprache</option>";
|
||||
}
|
||||
}
|
||||
@@ -518,10 +523,10 @@ if(isset($uid) && $uid!='')
|
||||
$qry = "SELECT * FROM public.tbl_benutzer WHERE uid='".addslashes($uid)."'";
|
||||
if(!$result_benutzer = $db->db_query($qry))
|
||||
die('Fehler beim Auslesen der Benutzerdaten');
|
||||
|
||||
|
||||
if(!$row_benutzer = $db->db_fetch_object($result_benutzer))
|
||||
die('Fehler beim Auslesen der Benutzerdaten');
|
||||
|
||||
|
||||
echo "
|
||||
<form action='".$_SERVER['PHP_SELF']."?person_id=$person_id&uid=$uid' method='POST'>
|
||||
<table>
|
||||
@@ -534,20 +539,20 @@ if(isset($uid) && $uid!='')
|
||||
</tr>
|
||||
</table>
|
||||
</form>";
|
||||
|
||||
|
||||
|
||||
|
||||
echo '<br><a href="../../content/pdfExport.php?xsl=AccountInfo&xml=accountinfoblatt.xml.php&uid='.$uid.'" >AccountInfoBlatt erstellen</a>';
|
||||
echo '<br><a href="../stammdaten/betriebsmittel_frameset.php?searchstr='.$uid.'" >Betriebsmittel verwalten</a>';
|
||||
|
||||
|
||||
|
||||
echo "</fieldset></td></tr>";
|
||||
|
||||
|
||||
if($is_mitarbeiter)
|
||||
{
|
||||
$mitarbeiter = new mitarbeiter();
|
||||
if(!$mitarbeiter->load($uid))
|
||||
die('Mitarbeiter konnte nicht geladen werden');
|
||||
|
||||
|
||||
if(!$error_mitarbeiter_save)
|
||||
{
|
||||
$personalnummer = $mitarbeiter->personalnummer;
|
||||
@@ -562,7 +567,7 @@ if(isset($uid) && $uid!='')
|
||||
$anmerkung = $mitarbeiter->anmerkung;
|
||||
$bismelden = $mitarbeiter->bismelden;
|
||||
}
|
||||
|
||||
|
||||
//MITARBEITER
|
||||
echo "<tr><td>
|
||||
<fieldset>
|
||||
@@ -588,7 +593,7 @@ if(isset($uid) && $uid!='')
|
||||
<tr>
|
||||
<td>Buero</td>
|
||||
<td><SELECT name='ort_kurzbz'><option value=''>-- keine Auswahl --</option>";
|
||||
|
||||
|
||||
$ort = new ort();
|
||||
$ort->getAll();
|
||||
foreach ($ort->result as $row_ort)
|
||||
@@ -596,11 +601,11 @@ if(isset($uid) && $uid!='')
|
||||
if($row_ort->ort_kurzbz==$ort_kurzbz)
|
||||
$selected = 'selected';
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
$selected = '';
|
||||
|
||||
echo "<option value='$row_ort->ort_kurzbz' $selected>$row_ort->ort_kurzbz</option>";
|
||||
}
|
||||
|
||||
|
||||
echo "</SELECT></td>
|
||||
<td>Standort</td>
|
||||
<td><SELECT name='standort_id'><option value=''>-- keine Auswahl --</option>";
|
||||
@@ -611,9 +616,9 @@ if(isset($uid) && $uid!='')
|
||||
{
|
||||
if($row_standort->standort_id == $standort_id)
|
||||
$selected = 'selected';
|
||||
else
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
|
||||
echo "<option value='$row_standort->standort_id' $selected>$row_standort->kurzbz</option>";
|
||||
}
|
||||
}
|
||||
@@ -635,9 +640,9 @@ if(isset($uid) && $uid!='')
|
||||
{
|
||||
if($row_ausbildung->ausbildungcode == $ausbildungcode)
|
||||
$selected = 'selected';
|
||||
else
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
|
||||
echo "<option value='$row_ausbildung->ausbildungcode' $selected>$row_ausbildung->ausbildungbez</option>";
|
||||
}
|
||||
}
|
||||
@@ -651,12 +656,12 @@ if(isset($uid) && $uid!='')
|
||||
</td></tr>
|
||||
";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$student = new student();
|
||||
if(!$student->load($uid))
|
||||
die('Fehler beim Laden des Studenten');
|
||||
|
||||
|
||||
if(!$error_student_save)
|
||||
{
|
||||
$semester = $student->semester;
|
||||
@@ -664,7 +669,7 @@ if(isset($uid) && $uid!='')
|
||||
$gruppe = $student->gruppe;
|
||||
$matrikelnummer = $student->matrikelnr;
|
||||
}
|
||||
|
||||
|
||||
//STUDENT
|
||||
echo "<tr><td>
|
||||
<fieldset>
|
||||
@@ -698,4 +703,4 @@ echo "</table>";
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -118,6 +118,7 @@ if(isset($radio_1) && isset($radio_2) && $radio_1>=0 && $radio_2>=0)
|
||||
$sql_query_upd1.="UPDATE public.tbl_preinteressent SET person_id=".$db->db_add_param($radio_2, FHC_INTEGER)." WHERE person_id=".$db->db_add_param($radio_1, FHC_INTEGER).";";
|
||||
$sql_query_upd1.="UPDATE public.tbl_personfunktionstandort SET person_id=".$db->db_add_param($radio_2, FHC_INTEGER)." WHERE person_id=".$db->db_add_param($radio_1, FHC_INTEGER).";";
|
||||
$sql_query_upd1.="UPDATE public.tbl_notizzuordnung SET person_id=".$db->db_add_param($radio_2, FHC_INTEGER)." WHERE person_id=".$db->db_add_param($radio_1, FHC_INTEGER).";";
|
||||
$sql_query_upd1.="UPDATE system.tbl_log SET person_id=".$db->db_add_param($radio_2, FHC_INTEGER)." WHERE person_id=".$db->db_add_param($radio_1, FHC_INTEGER).";";
|
||||
$sql_query_upd1.="UPDATE wawi.tbl_konto SET person_id=".$db->db_add_param($radio_2, FHC_INTEGER)." WHERE person_id=".$db->db_add_param($radio_1, FHC_INTEGER).";";
|
||||
$sql_query_upd1.="DELETE FROM public.tbl_person WHERE person_id=".$db->db_add_param($radio_1, FHC_INTEGER).";";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user