mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
This commit is contained in:
@@ -141,35 +141,40 @@ class projektbetreuer
|
||||
|
||||
//Gesamtlaenge pruefen
|
||||
//$this->errormsg='Eine der Gesamtlaengen wurde ueberschritten';
|
||||
|
||||
|
||||
if($this->betreuerart_kurzbz=='')
|
||||
{
|
||||
$this->errormsg = 'Betreuerart muss eingegeben werden';
|
||||
return false;
|
||||
}
|
||||
if(strlen($this->betreuerart_kurzbz)>16)
|
||||
{
|
||||
$this->errormsg = 'betreuerart darf nicht länger als 16 Zeichen sein - person_id/projektarbeit: '.$this->person_id.'/'.$this->projektarbeit_id;
|
||||
$this->errormsg = 'betreuerart darf nicht länger als 16 Zeichen sein';
|
||||
return false;
|
||||
}
|
||||
if(strlen($this->name)>32)
|
||||
{
|
||||
$this->errormsg = 'Name darf nicht länger als 32 Zeichen sein - person_id/projektarbeit: '.$this->person_id.'/'.$this->projektarbeit_id;
|
||||
$this->errormsg = 'Name darf nicht länger als 32 Zeichen sein';
|
||||
return false;
|
||||
}
|
||||
|
||||
if($this->note!='' && !is_numeric($this->note))
|
||||
{
|
||||
$this->errormsg = 'Note muss ein numerischer Wert sein - person_id/projektarbeit: '.$this->person_id.'/'.$this->projektarbeit_id;
|
||||
$this->errormsg = 'Note muss ein numerischer Wert sein';
|
||||
return false;
|
||||
}
|
||||
if(!is_numeric($this->punkte))
|
||||
if($this->punkte!='' && !is_numeric($this->punkte))
|
||||
{
|
||||
$this->errormsg = 'Punkte muß ein numerischer Wert sein - person_id/projektarbeit: '.$this->person_id.'/'.$this->projektarbeit_id;
|
||||
$this->errormsg = 'Punkte muss ein numerischer Wert sein';
|
||||
}
|
||||
if(!is_numeric($this->faktor))
|
||||
if($this->faktor!='' && !is_numeric($this->faktor))
|
||||
{
|
||||
$this->errormsg = 'Faktor muß ein numerischer Wert sein - person_id/projektarbeit: '.$this->person_id.'/'.$this->projektarbeit_id;
|
||||
$this->errormsg = 'Faktor muss ein numerischer Wert sein';
|
||||
return false;
|
||||
}
|
||||
if(!is_numeric($this->stundensatz))
|
||||
if($this->stundensatz!='' && !is_numeric($this->stundensatz))
|
||||
{
|
||||
$this->errormsg = 'Stundensatz muß ein numerischer Wert sein - person_id/projektarbeit: '.$this->person_id.'/'.$this->projektarbeit_id;
|
||||
$this->errormsg = 'Stundensatz muss ein numerischer Wert sein';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ class studiengang
|
||||
var $bescheidbgbl2; // varchar(16)
|
||||
var $bescheidgz; // varchar(16)
|
||||
var $bescheidvom; // Date
|
||||
var $organisationsform; // varchar(1)
|
||||
var $titelbescheidvom; // Date
|
||||
var $ext_id; // bigint
|
||||
|
||||
@@ -124,7 +123,6 @@ class studiengang
|
||||
$this->kuerzel = strtoupper($row->typ.$row->kurzbz);
|
||||
|
||||
$this->telefon=$row->telefon;
|
||||
$this->organisationsform=$row->organisationsform;
|
||||
$this->titelbescheidvom=$row->titelbescheidvom;
|
||||
$this->aktiv=$row->aktiv;
|
||||
}
|
||||
@@ -182,7 +180,6 @@ class studiengang
|
||||
$stg_obj->kuerzel = strtoupper($row->typ.$row->kurzbz);
|
||||
|
||||
$stg_obj->telefon=$row->telefon;
|
||||
$stg_obj->organisationsform=$row->organisationsform;
|
||||
$stg_obj->titelbescheidvom=$row->titelbescheidvom;
|
||||
$stg_obj->aktiv=$row->aktiv;
|
||||
|
||||
@@ -265,7 +262,7 @@ class studiengang
|
||||
//Neuen Datensatz anlegen
|
||||
$qry = 'INSERT INTO public.tbl_studiengang (studiengang_kz, kurzbz, kurzbzlang, bezeichnung, english,
|
||||
typ, farbe, email, telefon, max_verband, max_semester, max_gruppe, erhalter_kz, bescheid, bescheidbgbl1,
|
||||
bescheidbgbl2, bescheidgz, bescheidvom, organisationsform, titelbescheidvom, aktiv, ext_id) VALUES ('.
|
||||
bescheidbgbl2, bescheidgz, bescheidvom, titelbescheidvom, aktiv, ext_id) VALUES ('.
|
||||
$this->addslashes($this->studiengang_kz).', '.
|
||||
$this->addslashes($this->kurzbz).', '.
|
||||
$this->addslashes($this->kurzbzlang).', '.
|
||||
@@ -284,7 +281,6 @@ class studiengang
|
||||
$this->addslashes($this->bescheidbgbl2).', '.
|
||||
$this->addslashes($this->bescheidgz).', '.
|
||||
$this->addslashes($this->bescheidvom).', '.
|
||||
$this->addslashes($this->organisationsform).', '.
|
||||
$this->addslashes($this->titelbescheidvom).', '.
|
||||
$this->addslashes($this->aktiv).', '.
|
||||
$this->addslashes($this->ext_id).');';
|
||||
@@ -318,7 +314,6 @@ class studiengang
|
||||
'bescheidbgbl2='.$this->addslashes($this->bescheidbgbl2).', '.
|
||||
'bescheidgz='.$this->addslashes($this->bescheidgz).', '.
|
||||
'bescheidvom='.$this->addslashes($this->bescheidvom).', '.
|
||||
'organisationsform='.$this->addslashes($this->organisationsform).', '.
|
||||
'titelbescheidvom='.$this->addslashes($this->titelbescheidvom).', '.
|
||||
'ext_id='.$this->addslashes($this->ext_id).', '.
|
||||
'telefon='.$this->addslashes($this->telefon).', '.
|
||||
|
||||
Reference in New Issue
Block a user