This commit is contained in:
Andreas Österreicher
2009-12-11 10:09:16 +00:00
parent 425a86e12a
commit 5136db2685
7 changed files with 242 additions and 199 deletions
+45 -1
View File
@@ -59,7 +59,7 @@ class fachbereich extends basis_db
*/
public function getAll()
{
$qry = 'SELECT * FROM public.tbl_fachbereich order by fachbereich_kurzbz;';
$qry = 'SELECT * FROM public.tbl_fachbereich ORDER BY fachbereich_kurzbz;';
if(!$this->db_query($qry))
{
@@ -85,6 +85,50 @@ class fachbereich extends basis_db
return true;
}
/**
* Laedt die Institute die als Array uebergeben werden
* @param $kurzbzs Array mit den Instituts-Kurzbezeichnungen
* @param $order Sortierreihenfolge
* @param $aktiv wenn true dann nur aktive sonst alle
* @return true wenn ok, false im Fehlerfall
*/
public function loadArray($kurzbzs, $order=null, $aktiv=true)
{
if(count($kurzbzs)==0)
return true;
$kurzbzs = "'".implode("','",$kurzbzs)."'";
$qry = 'SELECT * FROM public.tbl_fachbereich WHERE fachbereich_kurzbz in('.$kurzbzs.')';
if ($aktiv)
$qry.=' AND aktiv=true';
if($order!=null)
$qry .=" ORDER BY $order";
if(!$this->db_query($qry))
{
$this->errormsg = 'Fehler beim Laden der Datensaetze';
return false;
}
while($row = $this->db_fetch_object())
{
$fachb_obj = new fachbereich();
$fachb_obj->fachbereich_kurzbz = $row->fachbereich_kurzbz;
$fachb_obj->bezeichnung = $row->bezeichnung;
$fachb_obj->farbe = $row->farbe;
$fachb_obj->studiengang_kz = $row->studiengang_kz;
$fachb_obj->ext_id = $row->ext_id;
$fachb_obj->aktiv = ($row->aktiv=='t'?true:false);
$fachb_obj->oe_kurzbz = $row->oe_kurzbz;
$this->result[] = $fachb_obj;
$this->bezeichnung_arr[$row->fachbereich_kurzbz] = $row->bezeichnung;
}
return true;
}
/**
* Laedt einen Fachbereich
* @param $fachb_id ID des zu ladenden Fachbereiches
+110 -84
View File
@@ -390,7 +390,13 @@ function checkldapuser($username,$password)
return(false);
}
//Berechnet die Schnittmenge zweier Strings
/**
* Berechnet die Schnittmenge zweier Strings
*
* @param $str1
* @param $str2
* @return intersected string
*/
function intersect($str1, $str2)
{
if (mb_strlen($str1) > mb_strlen($str2))
@@ -409,6 +415,13 @@ function intersect($str1, $str2)
return $intersect;
}
/**
* Konvertiert Problematische Sonderzeichen in Strings fuer
* Accountnamen und EMail-Aliase
*
* @param $str
* @return bereinigter String
*/
function convertProblemChars($str)
{
$enc = 'UTF-8';
@@ -481,17 +494,12 @@ function xmlclean($string)
return str_replace($mixed, "", $string);
}
// ------------------------------------------------------------------------------------------
// Stringverkuerzen auf bestimmte laenge
// ------------------------------------------------------------------------------------------
/**
* Verkuertzt einen String auf eine bestimmte laenge - beachtet werden Wortzeichen
* @param String der die Zeichenkette enthaelt die verkuertzt werden soll
* @param Laenge des Strings der geliefert werden soll (inkl. der Laenge des Fortsetzungszeichen)
* @return Daten Objekt wenn ok, false im Fehlerfall
*/
/**
* Verkuertzt einen String auf eine bestimmte laenge - beachtet werden Wortzeichen
* @param String der die Zeichenkette enthaelt die verkuertzt werden soll
* @param Laenge des Strings der geliefert werden soll (inkl. der Laenge des Fortsetzungszeichen)
* @return Daten Objekt wenn ok, false im Fehlerfall
*/
function StringCut($str='',$len=0,$checkWortumbruch=false,$fortsetzungszeichen='...')
{
// Plausib
@@ -567,9 +575,15 @@ function StringCut($str='',$len=0,$checkWortumbruch=false,$fortsetzungszeichen='
}
return $vStr;
}
/**
* Prueft ob ein String UTF-8 Kodiert ist
*
* @param $str
* @return true wenn utf8 sonst false
*/
function check_utf8($str="")
{
#return true;
$cStr=$str;
if (strlen($cStr)>3590)
{
@@ -589,80 +603,92 @@ function check_utf8($str="")
return $stati;
}
// ------------------------------------------------------------------------------------------
// Konertierungen
// ------------------------------------------------------------------------------------------
/**
* DB Array Konvertieren zu XML
*
* @param $rows
* @param $root
* @return XML
*/
function array_to_xml($rows,$root='root')
{
if (!count($rows))
return '<'.$root.' />'."\r\n";
$xml_string='';
$xml_string.='<'.$root.'>'."\r\n";
reset($rows);
// ------------------------------------------------------------------------------------------
// DB Array Konvertieren zu XML
// ------------------------------------------------------------------------------------------
function array_to_xml($rows,$root='root')
{
if (!count($rows))
return '<'.$root.' />'."\r\n";
$xml_string='';
$xml_string.='<'.$root.'>'."\r\n";
reset($rows);
for ($i=0;$i<count($rows);$i++)
{
$xml_string.='<row>'."\r\n";
$row=$rows[$i];
@reset($row);
while (@list( $tmp_key, $tmp_value ) = each($row) )
for ($i=0;$i<count($rows);$i++)
{
$xml_string.='<row>'."\r\n";
$row=$rows[$i];
@reset($row);
while (@list( $tmp_key, $tmp_value ) = each($row) )
{
if (!is_numeric($tmp_key))
{
if (!is_numeric($tmp_key))
{
$xml_string.='<'.$tmp_key.'><![CDATA['.trim($tmp_value).']]></'.$tmp_key.'>'."\r\n";
}
elseif (is_numeric($tmp_key))
{
$xml_string.='<row'.$tmp_key.'><![CDATA['.trim($tmp_value).']]></row'.$tmp_key.'>'."\r\n";
}
}
$xml_string.='</row>'."\r\n";
}
$xml_string.='</'.$root.'>'."\r\n";
return $xml_string;
$xml_string.='<'.$tmp_key.'><![CDATA['.trim($tmp_value).']]></'.$tmp_key.'>'."\r\n";
}
elseif (is_numeric($tmp_key))
{
$xml_string.='<row'.$tmp_key.'><![CDATA['.trim($tmp_value).']]></row'.$tmp_key.'>'."\r\n";
}
}
$xml_string.='</row>'."\r\n";
}
$xml_string.='</'.$root.'>'."\r\n";
return $xml_string;
}
/**
* DB Array Konvertieren zu RDF
*
* @param $rows
* @param $root
* @param $rdf_uri
* @return RDF
*/
function array_to_rdf($rows,$root='root',$rdf_uri='rdf')
{
$rdf_server=$_SERVER['SERVER_NAME'];
$rdf_string='';
if (!count($rows))
return $rdf_string.='<'.strtoupper($rdf_uri).':'.$root.' />'."\r\n";
$rdf_string.='<'.strtoupper($rdf_uri).':Seq rdf:about="http://'.$rdf_server.'/'.$root.'/liste">'."\r\n";
reset($rows);
for ($i=0;$i<count($rows);$i++)
{
$rdf_string.='<'.strtoupper($rdf_uri).':li>'."\r\n";
$rdf_string.='<'.strtoupper($rdf_uri).':Description id="'.$i.'" about="http://'.$rdf_server.'/liste'.$i.'">'."\r\n";
$row=$rows[$i];
reset($row);
while (list( $tmp_key, $tmp_value ) = each($row) )
{
if (!is_numeric($tmp_key))
{
$rdf_string.='<'.strtoupper($rdf_uri).':'.$tmp_key.'><![CDATA['.trim($tmp_value).']]></'.strtoupper($rdf_uri).':'.$tmp_key.'>'."\r\n";
}
}
$rdf_string.='</'.strtoupper($rdf_uri).':Description>'."\r\n";
$rdf_string.='</'.strtoupper($rdf_uri).':li>'."\r\n";
}
$rdf_string.='</'.strtoupper($rdf_uri).':Seq>'."\r\n";
return $rdf_string;
}
// ------------------------------------------------------------------------------------------
// DB Array Konvertieren zu RDF
// ------------------------------------------------------------------------------------------
function array_to_rdf($rows,$root='root',$rdf_uri='rdf')
{
##exit(" $root $rdf_uri ");
/**
* Prueft, ob ein String nur aus ganzen Zahlen besteht
*
* @param $mixed
* @return boolean
*/
function isint( $mixed )
{
return ( preg_match( '/^\d*$/' , $mixed) == 1 );
}
$rdf_server=$_SERVER['SERVER_NAME'];
$rdf_string='';
if (!count($rows))
return $rdf_string.='<'.strtoupper($rdf_uri).':'.$root.' />'."\r\n";
# $rdf_string.='<'.strtoupper($rdf_uri).':'.$root.'>'."\r\n";
$rdf_string.='<'.strtoupper($rdf_uri).':Seq rdf:about="http://'.$rdf_server.'/'.$root.'/liste">'."\r\n";
reset($rows);
for ($i=0;$i<count($rows);$i++)
{
$rdf_string.='<'.strtoupper($rdf_uri).':li>'."\r\n";
$rdf_string.='<'.strtoupper($rdf_uri).':Description id="'.$i.'" about="http://'.$rdf_server.'/liste'.$i.'">'."\r\n";
$row=$rows[$i];
reset($row);
while (list( $tmp_key, $tmp_value ) = each($row) )
{
if (!is_numeric($tmp_key))
{
$rdf_string.='<'.strtoupper($rdf_uri).':'.$tmp_key.'><![CDATA['.trim($tmp_value).']]></'.strtoupper($rdf_uri).':'.$tmp_key.'>'."\r\n";
}
}
$rdf_string.='</'.strtoupper($rdf_uri).':Description>'."\r\n";
$rdf_string.='</'.strtoupper($rdf_uri).':li>'."\r\n";
}
# $rdf_string.='</'.strtoupper($rdf_uri).':'.$root.'>'."\r\n";
$rdf_string.='</'.strtoupper($rdf_uri).':Seq>'."\r\n";
return $rdf_string;
}
?>
+7 -6
View File
@@ -20,6 +20,7 @@
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
require_once(dirname(__FILE__).'/basis_db.class.php');
require_once(dirname(__FILE__).'/functions.inc.php');
class lehrveranstaltung extends basis_db
{
@@ -306,7 +307,7 @@ class lehrveranstaltung extends basis_db
}
if(!is_null($aktiv) && !is_bool($aktiv))
{
$this->errormsg = 'Aktivkz muss ein boolscher Wert sein';
$this->errormsg = 'Aktiv muss ein boolscher Wert sein';
return false;
}
if(!is_null($lehre) && !is_bool($lehre))
@@ -495,11 +496,6 @@ class lehrveranstaltung extends basis_db
$this->errormsg = 'Planfaktor ist ungueltig';
return false;
}
if($this->semesterstunden!='' && !is_numeric($this->semesterstunden))
{
$this->errormsg = 'Semesterstunden ist ungueltig';
return false;
}
if($this->planlektoren!='' && !is_numeric($this->planlektoren))
{
$this->errormsg = 'Planlektoren ist ungueltig';
@@ -515,6 +511,11 @@ class lehrveranstaltung extends basis_db
$this->errormsg = 'ECTS darf nicht groesser als 40 sein';
return false;
}
if($this->semesterstunden!='' && !isint($this->semesterstunden))
{
$this->errormsg = 'Semesterstunden muss ein eine gueltige ganze Zahl sein';
return false;
}
$this->errormsg = '';
return true;
}
+14 -15
View File
@@ -113,26 +113,25 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
else
echo ' <ects_angerechnet></ects_angerechnet>';
if($row->organisationsform=='m')
if($row->orgform_kurzbz=='VBB')
{
//Bei Mischformen, die Organisationsform aus dem Status nehmen
//Bei Mischformen, die OrgForm aus dem Status nehmen
$prestudent = new prestudent();
$prestudent->getLastStatus($row->prestudent_id);
switch($prestudent->orgform_kurzbz)
{
case 'BB': $row->organisationsform = 'b'; break;
case 'VZ': $row->organisationsform = 'v'; break;
case 'FST': $row->organisationsform = 'f'; break;
}
$row->orgform_kurzbz=$prestudent->orgform_kurzbz;
}
if($row->organisationsform=='b' || $row->organisationsform=='BB')
echo ' <studienart>Berufbegleitendes Studium/Part-time degree programm</studienart>';
elseif($row->organisationsform=='v' || $row->organisationsform=='VZ')
echo ' <studienart>Vollzeitstudium/Full-time degree programm</studienart>';
else
echo ' <studienart>Fernstudium/Distance study</studienart>';
switch($row->orgform_kurzbz)
{
case 'BB': echo ' <studienart>Berufbegleitendes Studium/Part-time degree programm</studienart>';
break;
case 'VZ': echo ' <studienart>Vollzeitstudium/Full-time degree programm</studienart>';
break;
case 'FST': echo ' <studienart>Fernstudium/Distance study</studienart>';
break;
default: echo ' <studienart></studienart>';
break;
}
if($row->typ=='d')
{
+43 -84
View File
@@ -19423,7 +19423,7 @@
<Left>1361</Left>
<z>0</z>
<Width>1021</Width>
<Height>1214</Height>
<Height>1175</Height>
<dz>0</dz>
<RecalculateSizes>1</RecalculateSizes>
<UseWorkSpaceRecalculateSizes>1</UseWorkSpaceRecalculateSizes>
@@ -21239,11 +21239,11 @@
<Points>
<Point>
<x>2382</x>
<y>1812</y>
<y>1789</y>
</Point>
<Point>
<x>2413</x>
<y>1812</y>
<y>1789</y>
</Point>
<Point>
<x>3032</x>
@@ -21290,11 +21290,11 @@
<Points>
<Point>
<x>1361</x>
<y>1725</y>
<y>1706</y>
</Point>
<Point>
<x>1330</x>
<y>1725</y>
<y>1706</y>
</Point>
<Point>
<x>1118</x>
@@ -21336,16 +21336,16 @@
<WorkSpaceShape2>
<Id>{91BA0243-304A-4001-80BF-C75C622D009C}</Id>
</WorkSpaceShape2>
<NamePositionX>1332</NamePositionX>
<NamePositionY>2535</NamePositionY>
<NamePositionX>1161</NamePositionX>
<NamePositionY>2530</NamePositionY>
<Points>
<Point>
<x>2042</x>
<y>2332</y>
<x>1701</x>
<y>2293</y>
</Point>
<Point>
<x>2042</x>
<y>2363</y>
<x>1701</x>
<y>2324</y>
</Point>
<Point>
<x>1376</x>
@@ -21392,11 +21392,11 @@
<Points>
<Point>
<x>2382</x>
<y>1638</y>
<y>1622</y>
</Point>
<Point>
<x>2413</x>
<y>1638</y>
<y>1622</y>
</Point>
<Point>
<x>4447</x>
@@ -21443,11 +21443,11 @@
<Points>
<Point>
<x>2382</x>
<y>1465</y>
<y>1454</y>
</Point>
<Point>
<x>2413</x>
<y>1465</y>
<y>1454</y>
</Point>
<Point>
<x>6072</x>
@@ -21490,15 +21490,15 @@
<Id>{A32D24AE-207A-4907-ABD5-BB9CBE371A16}</Id>
</WorkSpaceShape2>
<NamePositionX>1696</NamePositionX>
<NamePositionY>2131</NamePositionY>
<NamePositionY>2130</NamePositionY>
<Points>
<Point>
<x>1361</x>
<y>2028</y>
<y>1999</y>
</Point>
<Point>
<x>1330</x>
<y>2028</y>
<y>1999</y>
</Point>
<Point>
<x>1207</x>
@@ -21591,16 +21591,16 @@
<WorkSpaceShape2>
<Id>{33986E60-971D-45AB-863E-3389A4534998}</Id>
</WorkSpaceShape2>
<NamePositionX>2130</NamePositionX>
<NamePositionX>2144</NamePositionX>
<NamePositionY>1735</NamePositionY>
<Points>
<Point>
<x>2382</x>
<y>1985</y>
<y>1957</y>
</Point>
<Point>
<x>2413</x>
<y>1985</y>
<y>1957</y>
</Point>
<Point>
<x>2413</x>
@@ -21647,11 +21647,11 @@
<Points>
<Point>
<x>1361</x>
<y>1422</y>
<y>1412</y>
</Point>
<Point>
<x>1330</x>
<y>1422</y>
<y>1412</y>
</Point>
<Point>
<x>1189</x>
@@ -21749,11 +21749,11 @@
<Points>
<Point>
<x>2382</x>
<y>1291</y>
<y>1286</y>
</Point>
<Point>
<x>2413</x>
<y>1291</y>
<y>1286</y>
</Point>
<Point>
<x>3129</x>
@@ -22156,8 +22156,8 @@
<WorkSpaceShape2>
<Id>{4C98A428-14DD-4587-B44B-5A31CAA42B19}</Id>
</WorkSpaceShape2>
<NamePositionX>1384</NamePositionX>
<NamePositionY>2229</NamePositionY>
<NamePositionX>1414</NamePositionX>
<NamePositionY>2368</NamePositionY>
<Points>
<Point>
<x>2424</x>
@@ -22176,12 +22176,12 @@
<y>2324</y>
</Point>
<Point>
<x>1701</x>
<y>2363</y>
<x>2042</x>
<y>2324</y>
</Point>
<Point>
<x>1701</x>
<y>2332</y>
<x>2042</x>
<y>2293</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -23895,7 +23895,7 @@
<Id>{4C98A428-14DD-4587-B44B-5A31CAA42B19}</Id>
</WorkSpaceShape2>
<NamePositionX>1721</NamePositionX>
<NamePositionY>2093</NamePositionY>
<NamePositionY>2095</NamePositionY>
<Points>
<Point>
<x>2666</x>
@@ -23915,11 +23915,11 @@
</Point>
<Point>
<x>2413</x>
<y>2159</y>
<y>2125</y>
</Point>
<Point>
<x>2382</x>
<y>2159</y>
<y>2125</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -30721,7 +30721,7 @@
<Left>234</Left>
<z>0</z>
<Width>1021</Width>
<Height>1214</Height>
<Height>1175</Height>
<dz>0</dz>
<RecalculateSizes>1</RecalculateSizes>
<UseWorkSpaceRecalculateSizes>1</UseWorkSpaceRecalculateSizes>
@@ -31035,16 +31035,16 @@
<WorkSpaceShape2>
<Id>{744DF66B-0A2B-4220-A1CE-27094A300A0F}</Id>
</WorkSpaceShape2>
<NamePositionX>479</NamePositionX>
<NamePositionY>1757</NamePositionY>
<NamePositionX>474</NamePositionX>
<NamePositionY>1743</NamePositionY>
<Points>
<Point>
<x>574</x>
<y>1718</y>
<y>1679</y>
</Point>
<Point>
<x>574</x>
<y>1749</y>
<y>1710</y>
</Point>
<Point>
<x>574</x>
@@ -31239,16 +31239,16 @@
<WorkSpaceShape2>
<Id>{07671D5F-C98D-435D-9506-BEDB90120E11}</Id>
</WorkSpaceShape2>
<NamePositionX>1065</NamePositionX>
<NamePositionX>1063</NamePositionX>
<NamePositionY>1689</NamePositionY>
<Points>
<Point>
<x>915</x>
<y>1718</y>
<y>1679</y>
</Point>
<Point>
<x>915</x>
<y>1749</y>
<y>1710</y>
</Point>
<Point>
<x>1119</x>
@@ -34417,7 +34417,7 @@
<Company>Technikum Wien</Company>
<Version>2.0</Version>
<CreatedDate>2009-04-17T10:15:21.000+01:00</CreatedDate>
<ModifiedDate>2009-12-09T15:11:57.703+01:00</ModifiedDate>
<ModifiedDate>2009-12-10T10:09:35.000+01:00</ModifiedDate>
<Project>FH-Complete 2.0</Project>
<Description></Description>
</ModelTitlePG83>
@@ -96682,47 +96682,6 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
<PERAttributePG83 ObjectType="2003" CSAOName="PERAttributePG83">
<Id>{3E484EFE-3C40-4442-AA12-51AA56E1FE5F}</Id>
<Name>organisationsform</Name>
<Ordinal>20</Ordinal>
<HistoryID>{C92E5E2A-0C2D-42DA-8D64-0C199FE96D5E}</HistoryID>
<GlobalOrder>0</GlobalOrder>
<RNOffset>1</RNOffset>
<RNLength>17</RNLength>
<IgnoreNC>0</IgnoreNC>
<GenerateCode>1</GenerateCode>
<BeforeScript></BeforeScript>
<AfterScript></AfterScript>
<Notes></Notes>
<Comments></Comments>
<DataTypeParam1>1</DataTypeParam1>
<DataTypeParam2></DataTypeParam2>
<KeepForeignKey>0</KeepForeignKey>
<DefaultValue></DefaultValue>
<NotNull>0</NotNull>
<Migrated>0</Migrated>
<Caption>organisationsform</Caption>
<Unique>0</Unique>
<OriginalName></OriginalName>
<CheckConstraint></CheckConstraint>
<CheckConstraintName></CheckConstraintName>
<KeyConstraintItems/>
<PKForeignKeys/>
<FKForeignKeys/>
<DictType/>
<Domain/>
<DataType>
<Id>{E12D6C2A-E13A-4877-B9C4-AA7BA668C316}</Id>
</DataType>
<UserDataType/>
<IndexItems/>
<Default/>
<CheckConstraints/>
<KeyConstraint/>
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
<PERAttributePG83 ObjectType="2003" CSAOName="PERAttributePG83">
<Id>{3FDA30B7-95F7-4362-BAAF-4744878EC11F}</Id>
<Name>titelbescheidvom</Name>
+11 -1
View File
@@ -306,6 +306,16 @@ if($result = $db->db_query("SELECT is_nullable FROM information_schema.columns W
}
}
if(@$db->db_query("SELECT organisationsform FROM public.tbl_studiengang LIMIT 1"))
{
$qry = "ALTER TABLE public.tbl_studiengang DROP COLUMN organisationsform;";
if(!$db->db_query($qry))
echo '<strong>public.tbl_studiengang: '.$db->db_last_error().'</strong><br>';
else
echo 'public.tbl_studiengang: Spalte organisationsform entfernt!<br>';
}
echo '<br>';
@@ -435,7 +445,7 @@ $tabellen=array(
"public.tbl_standort" => array("standort_kurzbz","adresse_id"),
"public.tbl_student" => array("student_uid","matrikelnr","prestudent_id","studiengang_kz","semester","verband","gruppe","updateamum","updatevon","insertamum","insertvon","ext_id"),
"public.tbl_studentlehrverband" => array("student_uid","studiensemester_kurzbz","studiengang_kz","semester","verband","gruppe","updateamum","updatevon","insertamum","insertvon","ext_id"),
"public.tbl_studiengang" => array("studiengang_kz","kurzbz","kurzbzlang","typ","bezeichnung","english","farbe","email","telefon","max_semester","max_verband","max_gruppe","erhalter_kz","bescheid","bescheidbgbl1","bescheidbgbl2","bescheidgz","bescheidvom","orgform_kurzbz","titelbescheidvom","aktiv","ext_id","zusatzinfo_html","organisationsform","moodle","sprache","testtool_sprachwahl","studienplaetze","oe_kurzbz","lgartcode"),
"public.tbl_studiengang" => array("studiengang_kz","kurzbz","kurzbzlang","typ","bezeichnung","english","farbe","email","telefon","max_semester","max_verband","max_gruppe","erhalter_kz","bescheid","bescheidbgbl1","bescheidbgbl2","bescheidgz","bescheidvom","orgform_kurzbz","titelbescheidvom","aktiv","ext_id","zusatzinfo_html","moodle","sprache","testtool_sprachwahl","studienplaetze","oe_kurzbz","lgartcode"),
"public.tbl_studiensemester" => array("studiensemester_kurzbz","bezeichnung","start","ende","ext_id"),
"public.tbl_variable" => array("name","uid","wert"),
"public.tbl_vorlage" => array("vorlage_kurzbz","bezeichnung","anmerkung"),
+12 -8
View File
@@ -126,13 +126,18 @@
if (isset($_REQUEST['lv_id']) || isset($_REQUEST['neu']))
{
$lv = new lehrveranstaltung();
if (isset($_REQUEST['lv_id']))
//wenn ein Fehler beim Speichern auftritt, dann sollen die alten Daten nochmals
//angezeigt werden.
if(!isset($_POST['schick']))
{
$lvid = $_REQUEST['lv_id'];
if (!$lv->load($lvid))
$htmlstr .= "<br><div class='kopf'>Lehrveranstaltung <b>".$lvid."</b> existiert nicht</div>";
$lv = new lehrveranstaltung();
if (isset($_REQUEST['lv_id']))
{
$lvid = $_REQUEST['lv_id'];
if (!$lv->load($lvid))
$htmlstr .= "<br><div class='kopf'>Lehrveranstaltung <b>".$lvid."</b> existiert nicht</div>";
}
}
$htmlstr .= "<br><div class='kopf'>Lehrveranstaltung</div>\n";
@@ -271,12 +276,11 @@
}
$htmlstr .= "<div class='inserterror'>".$errorstr."</div>\n";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Studiengang - Details</title>
<title>Lehrveranstaltung - Details</title>
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
<script src="../../include/js/mailcheck.js"></script>
<script src="../../include/js/datecheck.js"></script>