FASOnline/Tempus Studentenübersicht ist nun kein Binding mehr

This commit is contained in:
Andreas Österreicher
2007-04-06 11:22:26 +00:00
parent 1ee9475a72
commit 085391ecf2
12 changed files with 965 additions and 279 deletions
+8 -8
View File
@@ -89,9 +89,9 @@ class nation
//Lesen der Daten aus der Datenbank
$qry = "SELECT * FROM bis.tbl_nation";
if($ohnesperre)
$qry .= " where sperre='N'";
$qry .= " WHERE sperre is null";
$qry .=" order by kurztext";
$qry .=" ORDER BY kurztext";
if(!$res = pg_query($this->conn,$qry))
{
@@ -103,12 +103,12 @@ class nation
{
$nation = new nation($this->conn);
$nation->code = $row->code;
$nation->sperre = $row->sperre;
$nation->kontinent = $row->sperre;
$nation->entwland = $row->entwland;
$nation->euflag = $row->euflag;
$nation->ewrflag = $row->ewrflag;
$nation->code = $row->nation_code;
$nation->sperre = ($row->sperre=='t'?true:false);
$nation->kontinent = $row->kontinent;
$nation->entwicklungsstand = $row->entwicklungsstand;
$nation->eu = ($row->eu=='t'?true:false);
$nation->ewr = ($row->ewr=='t'?true:false);
$nation->kurztext = $row->kurztext;
$nation->langtext = $row->langtext;
$nation->engltext = $row->engltext;
+2 -1
View File
@@ -260,7 +260,7 @@ class student extends benutzer
$this->errormsg=pg_errormessage($this->conn);
return false;
}
$num_rows=pg_numrows($erg);
$num_rows=pg_num_rows($erg);
$result=array();
for($i=0;$i<$num_rows;$i++)
{
@@ -271,6 +271,7 @@ class student extends benutzer
$l->titelpre=$row->titelpre;
$l->titelpost=$row->titelpost;
$l->vornamen=$row->vornamen;
$l->vorname=$row->vorname;
$l->nachname=$row->nachname;
$l->gebdatum=$row->gebdatum;
$l->gebort=$row->gebort;