mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
This commit is contained in:
@@ -799,7 +799,7 @@ if (!isset($_GET["notenuebersicht"]))
|
||||
<br><br>
|
||||
<table border='1' width='210'>
|
||||
<tr>
|
||||
<td colspan='2' class='ContentHeader2'>Alle Kreuzerllisten bisher:</td>
|
||||
<td colspan='2' class='ContentHeader2'>Alle Kreuzerllisten dieser Übung:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='180'>Punkte insgesamt möglich:</td>
|
||||
|
||||
@@ -732,7 +732,7 @@ if(isset($_GET['uid']) && $_GET['uid']!='')
|
||||
<br><br>
|
||||
<table border='1' width='210'>
|
||||
<tr>
|
||||
<td colspan='2' class='ContentHeader2'>Alle Kreuzerllisten bisher:</td>
|
||||
<td colspan='2' class='ContentHeader2'>Alle Kreuzerllisten dieser Übung:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='180'>Punkte insgesamt möglich:</td>
|
||||
|
||||
@@ -43,6 +43,7 @@ class preinteressent
|
||||
var $updatevon; // varchar(16)
|
||||
var $maturajahr; // numeric(4,0)
|
||||
var $infozusendung; // date
|
||||
var $kontaktmedium_kurzbz; // varchar(32)
|
||||
|
||||
var $studiengang_kz;
|
||||
var $prioritaet; // smallint
|
||||
@@ -111,6 +112,7 @@ class preinteressent
|
||||
$this->updatevon = $row->updatevon;
|
||||
$this->insertamum = $row->insertamum;
|
||||
$this->insertvon = $row->insertvon;
|
||||
$this->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -151,7 +153,7 @@ class preinteressent
|
||||
{
|
||||
$undo.=" INSERT INTO public.tbl_preinteressent(preinteressent_id, person_id, studiensemester_kurzbz,
|
||||
aufmerksamdurch_kurzbz, firma_id, erfassungsdatum, einverstaendnis, absagedatum, anmerkung,
|
||||
insertamum, insertvon, updateamum, updatevon, maturajahr, infozusendung) VALUES (".
|
||||
insertamum, insertvon, updateamum, updatevon, maturajahr, infozusendung, kontaktmedium_kurzbz) VALUES (".
|
||||
$this->addslashes($row->preinteressent_id).', '.
|
||||
$this->addslashes($row->person_id).', '.
|
||||
$this->addslashes($row->studiensemester_kurzbz).', '.
|
||||
@@ -166,7 +168,8 @@ class preinteressent
|
||||
$this->addslashes($row->updateamum).', '.
|
||||
$this->addslashes($row->updatevon).', '.
|
||||
$this->addslashes($row->maturajahr).', '.
|
||||
$this->addslashes($row->infozusendung).');';
|
||||
$this->addslashes($row->infozusendung).', '.
|
||||
$this->addslashes($row->kontaktmedium_kurzbz).');';
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -297,7 +300,7 @@ class preinteressent
|
||||
//Neuen Datensatz anlegen
|
||||
$qry = "BEGIN;INSERT INTO public.tbl_preinteressent (studiensemester_kurzbz,
|
||||
aufmerksamdurch_kurzbz, firma_id, anmerkung, erfassungsdatum, einverstaendnis, absagedatum,
|
||||
maturajahr, infozusendung, person_id, updateamum, updatevon, insertamum, insertvon) VALUES (".
|
||||
maturajahr, infozusendung, person_id, updateamum, updatevon, insertamum, insertvon, kontaktmedium_kurzbz) VALUES (".
|
||||
$this->addslashes($this->studiensemester_kurzbz).', '.
|
||||
$this->addslashes($this->aufmerksamdurch_kurzbz).', '.
|
||||
$this->addslashes($this->firma_id).', '.
|
||||
@@ -311,7 +314,8 @@ class preinteressent
|
||||
$this->addslashes($this->updateamum).', '.
|
||||
$this->addslashes($this->updatevon).', '.
|
||||
$this->addslashes($this->insertamum).', '.
|
||||
$this->addslashes($this->insertvon).');';
|
||||
$this->addslashes($this->insertvon).', '.
|
||||
$this->addslashes($this->kontaktmedium_kurzbz).');';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -328,7 +332,8 @@ class preinteressent
|
||||
" infozusendung=".$this->addslashes($this->infozusendung).",".
|
||||
" person_id=".$this->addslashes($this->person_id).",".
|
||||
" updatevon=".$this->addslashes($this->updatevon).",".
|
||||
" updateamum=".$this->addslashes($this->updateamum).
|
||||
" updateamum=".$this->addslashes($this->updateamum).','.
|
||||
" kontaktmedium_kurzbz=".$this->addslashes($this->kontaktmedium_kurzbz).
|
||||
" WHERE preinteressent_id='".addslashes($this->preinteressent_id)."'";
|
||||
}
|
||||
|
||||
@@ -409,6 +414,7 @@ class preinteressent
|
||||
$obj->prioritaet = $row->prioritaet;
|
||||
$obj->freigabedatum = $row->freigabedatum;
|
||||
$obj->uebernahmedatum = $row->uebernahmedatum;
|
||||
$obj->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
@@ -475,6 +481,7 @@ class preinteressent
|
||||
$obj->maturajahr = $row->maturajahr;
|
||||
$obj->infozusendung = $row->infozusendung;
|
||||
$obj->person_id = $row->person_id;
|
||||
$obj->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
@@ -686,6 +693,7 @@ class preinteressent
|
||||
$obj->updatevon = $row->updatevon;
|
||||
$obj->insertamum = $row->insertamum;
|
||||
$obj->insertvon = $row->insertvon;
|
||||
$obj->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
|
||||
@@ -290,6 +290,7 @@ if(isset($_POST['save_preinteressent']))
|
||||
$preinteressent->updatevon = $user;
|
||||
$preinteressent->maturajahr = $_POST['maturajahr'];
|
||||
$preinteressent->infozusendung = $_POST['infozusendung'];
|
||||
$preinteressent->kontaktmedium_kurzbz = $_POST['kontaktmedium_kurzbz'];
|
||||
|
||||
if(!$preinteressent->save(false))
|
||||
echo "<b>Fehler beim Speichern der Daten: $preinteressent->errormsg</b>";
|
||||
@@ -651,13 +652,29 @@ foreach ($aufmerksam->result as $row)
|
||||
}
|
||||
echo "</SELECT>";
|
||||
echo '</td>';
|
||||
//Einverstaendnis
|
||||
echo "<td>Einverständnis:</td><td><input type='checkbox' ".($preinteressent->einverstaendnis?'checked':'')." name='einverstaendnis'></td>";
|
||||
|
||||
echo "<td>Kontaktmedium (Woher)</td><td><SELECT name='kontaktmedium_kurzbz'>";
|
||||
|
||||
echo "<option value=''>-- keine Auswahl --</option>";
|
||||
$qry = "SELECT * FROM public.tbl_kontaktmedium ORDER BY beschreibung";
|
||||
|
||||
if($result = pg_query($conn, $qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
if($preinteressent->kontaktmedium_kurzbz==$row->kontaktmedium_kurzbz)
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
echo "<option value='$row->kontaktmedium_kurzbz' $selected>$row->beschreibung</option>";
|
||||
}
|
||||
}
|
||||
echo "</SELECT></td>";
|
||||
|
||||
//Absagedatum
|
||||
echo "<td>Absage</td><td><input type='checkbox' ".($preinteressent->absagedatum!=''?'checked':'')." name='absagedatum'></td>";
|
||||
|
||||
|
||||
echo '</tr><tr>';
|
||||
|
||||
//Erfassungsdatum
|
||||
@@ -670,6 +687,8 @@ echo "<td>Infozusendung am</td><td><input type='text' name='infozusendung' size=
|
||||
//Maturajahr
|
||||
echo "<td>Maturajahr</td><td><input type='text' name='maturajahr' size='4' maxlength='4' value='$preinteressent->maturajahr'></td>";
|
||||
|
||||
//Einverstaendnis
|
||||
echo "<td>Einverständnis:</td><td><input type='checkbox' ".($preinteressent->einverstaendnis?'checked':'')." name='einverstaendnis'></td>";
|
||||
|
||||
echo '</tr><tr>';
|
||||
|
||||
|
||||
@@ -275,11 +275,12 @@ echo '<br>';
|
||||
echo "<table class='liste table-autosort:0 table-stripeclass:alternate table-autostripe'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='table-sortable:default'>ID</th>
|
||||
<th class='table-sortable:numeric'>ID</th>
|
||||
<th class='table-sortable:default'>Nachname</th>
|
||||
<th class='table-sortable:default'>Vorname</th>
|
||||
<th class='table-sortable:default'>StSem</th>
|
||||
<th class='table-sortable:default'>Erf.datum</th>
|
||||
<th class='table-sortable:default'>Geschlecht</th>
|
||||
<th class='table-sortable:default'>E-Mail</th>
|
||||
<th class='table-sortable:default'>Status</th>
|
||||
<th class='table-sortable:default'>Freigabe</th>
|
||||
@@ -327,6 +328,13 @@ foreach ($preinteressent->result as $row)
|
||||
//echo "<td>".$datum_obj->convertISODate($person->gebdatum)."</td>";
|
||||
echo "<td>$row->studiensemester_kurzbz</td>";
|
||||
echo "<td><span style='display: none'>$row->erfassungsdatum</span>".$datum_obj->formatDatum($row->erfassungsdatum,'d.m.Y')."</td>";
|
||||
switch ($person->geschlecht)
|
||||
{
|
||||
case 'm': $geschlecht='männlich'; break;
|
||||
case 'w': $geschlecht='weiblich'; break;
|
||||
default: $geschlecht='';
|
||||
}
|
||||
echo "<td>$geschlecht</td>";
|
||||
//EMail
|
||||
$qry = "SELECT kontakt FROM public.tbl_kontakt WHERE person_id='$person->person_id' AND kontakttyp='email'
|
||||
ORDER BY zustellung DESC LIMIT 1";
|
||||
|
||||
Reference in New Issue
Block a user