This commit is contained in:
Andreas Österreicher
2007-11-27 16:40:46 +00:00
parent cd9de2b5da
commit f5d4c0783f
7 changed files with 501 additions and 7 deletions
+6
View File
@@ -725,6 +725,12 @@ class prestudent extends person
function getLastStatus($prestudent_id)
{
if($prestudent_id=='' || !is_numeric($prestudent_id))
{
$this->errormsg = 'Prestudent_id ist ungueltig';
return false;
}
$qry = "SELECT * FROM public.tbl_prestudentrolle WHERE prestudent_id='$prestudent_id' ORDER BY datum DESC, insertamum DESC, ext_id DESC LIMIT 1";
if($result = pg_query($this->conn, $qry))
{
+4 -4
View File
@@ -211,8 +211,8 @@ class student extends benutzer
$this->studiengang_kz.','.
$this->semester.','.
($this->ext_id_student!=''?$this->ext_id_student:'null').','.
($this->verband!=''?"'".addslashes($this->verband)."'":' ').','.
($this->gruppe!=''?"'".addslashes($this->gruppe)."'":' ').','.
($this->verband!=''?"'".addslashes($this->verband)."'":"' '").','.
($this->gruppe!=''?"'".addslashes($this->gruppe)."'":"' '").','.
$this->addslashes($this->insertamum).','.
$this->addslashes($this->insertvon).');';
}
@@ -227,8 +227,8 @@ class student extends benutzer
' studiengang_kz='.$this->studiengang_kz.','.
' semester='.$this->semester.','.
' ext_id='.($this->ext_id_student!=''?$this->ext_id_student:'null').','.
' verband='.$this->addslashes($this->verband).','.
' gruppe='.$this->addslashes($this->gruppe).
' verband='.($this->verband!=''?"'".addslashes($this->verband)."'":"' '").','.
' gruppe='.($this->gruppe!=''?"'".addslashes($this->gruppe)."'":"' '").
" WHERE student_uid='".addslashes($this->uid)."';";
}