Umstellung auf Basisklasse und Datenbankklasse

This commit is contained in:
Andreas Österreicher
2009-06-18 07:02:35 +00:00
parent 66480938cb
commit a568e68d3c
85 changed files with 6096 additions and 8012 deletions
+7 -7
View File
@@ -305,7 +305,7 @@ class person extends basis_db
}
if($this->geschlecht!='m' && $this->geschlecht!='w' && $this->geschlecht!='u')
{
$this->errormsg = 'Geschlecht muß w, m oder u sein!';
$this->errormsg = 'Geschlecht mu w, m oder u sein!';
return false;
}
@@ -314,15 +314,15 @@ class person extends basis_db
{
if(ereg("([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})",$this->gebdatum, $regs))
{
$day = sprintf('%02s',$regs[1]);
$month = sprintf('%02s',$regs[2]);
$year = substr($regs[3],2,2);
//$day = sprintf('%02s',$regs[1]);
//$month = sprintf('%02s',$regs[2]);
//$year = substr($regs[3],2,2);
}
elseif(ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})",$this->gebdatum, $regs))
{
$day = sprintf('%02s',$regs[3]);
$month = sprintf('%02s',$regs[2]);
$year = substr($regs[1],2,2);
//$day = sprintf('%02s',$regs[3]);
//$month = sprintf('%02s',$regs[2]);
//$year = substr($regs[1],2,2);
}
else
{