This commit is contained in:
Andreas Österreicher
2008-10-06 15:59:18 +00:00
parent 7337bec874
commit 4f6b59bac7
3 changed files with 16 additions and 5 deletions
+5 -3
View File
@@ -42,6 +42,7 @@ class wochenplan
var $grp; // @brief Gruppe (1,2)
var $pers_uid; // @brief Account Name der Person (PK)
var $pers_titelpost; // @brief Titel der Person
var $pers_titelpre; // @brief Titel der Person
var $pers_nachname; // @brief Personendaten
var $pers_vorname; // @brief Personendaten
@@ -171,9 +172,9 @@ class wochenplan
{
$this->link.='&pers_uid='.$this->pers_uid; //Link erweitern
if ($this->type=='student')
$sql_query="SELECT uid, titelpre, nachname, vorname, vornamen, studiengang_kz, semester, verband, gruppe FROM campus.vw_student WHERE uid='$this->pers_uid'";
$sql_query="SELECT uid, titelpre, titelpost, nachname, vorname, vornamen, studiengang_kz, semester, verband, gruppe FROM campus.vw_student WHERE uid='$this->pers_uid'";
else
$sql_query="SELECT uid, titelpre, nachname, vorname, vornamen FROM campus.vw_mitarbeiter WHERE uid='$this->pers_uid'";
$sql_query="SELECT uid, titelpre, titelpost, nachname, vorname, vornamen FROM campus.vw_mitarbeiter WHERE uid='$this->pers_uid'";
//echo $sql_query;
if (!($result=pg_exec($this->conn, $sql_query)))
{
@@ -187,6 +188,7 @@ class wochenplan
}
$this->pers_uid=pg_result($result,0,'"uid"');
$this->pers_titelpre=pg_result($result,0,'"titelpre"');
$this->pers_titelpost=pg_result($result,0,'"titelpost"');
$this->pers_nachname=pg_result($result,0,'"nachname"');
$this->pers_vorname=pg_result($result,0,'"vorname"');
$this->pers_vornamen=pg_result($result,0,'"vornamen"');
@@ -342,7 +344,7 @@ class wochenplan
echo ' <TD valign="bottom">'.$this->crlf;
echo ' <P valign="top">';
if ($this->type=='student' || $this->type=='lektor')
echo '<strong>Person: </strong>'.$this->pers_titelpre.' '.$this->pers_vorname.' '.$this->pers_nachname.' - '.$this->pers_uid.'<br>';
echo '<strong>Person: </strong>'.$this->pers_titelpre.' '.$this->pers_vorname.' '.$this->pers_nachname.' '.$this->pers_titelpost.' - '.$this->pers_uid.'<br>';
if ($this->type=='student' || $this->type=='verband')
{
echo '<strong>Studiengang: </strong>'.$this->stg_kurzbzlang.' - '.$this->stg_bez.'<br>';