This commit is contained in:
cris-technikum
2018-02-12 14:54:25 +01:00
59 changed files with 2417 additions and 85584 deletions
-466
View File
@@ -1,466 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<XMI verified="false" xmi.version="1.2" timestamp="2014-05-22T14:17:07" xmlns:UML="http://schema.omg.org/spec/UML/1.3">
<XMI.header>
<XMI.documentation>
<XMI.exporter>umbrello uml modeller http://umbrello.kde.org</XMI.exporter>
<XMI.exporterVersion>1.6.2</XMI.exporterVersion>
<XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>
</XMI.documentation>
<XMI.metamodel xmi.version="1.3" href="UML.xml" xmi.name="UML"/>
</XMI.header>
<XMI.content>
<UML:Model isSpecification="false" isAbstract="false" isLeaf="false" xmi.id="m1" isRoot="false" name="UML Model">
<UML:Namespace.ownedElement>
<UML:Stereotype visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="folder" name="folder"/>
<UML:Stereotype visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="datatype" name="datatype"/>
<UML:Stereotype visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="public" name="public"/>
<UML:Stereotype visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="bis" name="bis"/>
<UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Logical View" name="Logical View">
<UML:Namespace.ownedElement>
<UML:Package stereotype="folder" visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Datatypes" name="Datatypes">
<UML:Namespace.ownedElement>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="SgZEyuZ8MsOX" name="int"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="thqOZ1UNDKcG" name="char"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="7YsfljvDNSQM" name="bool"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="KzUepsAjXy56" name="float"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="zZRBr3RyZHdI" name="double"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="yXUMxuiGrCuf" name="short"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="32Oa0Rhy089p" name="long"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="AYnhpO0ovU8r" name="unsigned int"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Mq7B0zq30Ce0" name="unsigned short"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="dJydP5QZdDHT" name="unsigned long"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="cFFVhNK3BREB" name="string"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="edwM3rd0SCyI" name="bigint"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="ubiV24mgw2pR" name="bigserial"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="RNMGsr1WSxrT" name="bit"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="pSTFeSWY1C11" name="bit varying"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Emh8oXXDusUk" name="boolean"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="jTHBR8cEY5RC" name="box"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="VvkX8jWMVETI" name="bytea"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="l0VdszOZTdks" name="character varying"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="lM4JQVTvRBSX" name="character"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="uxrQBKiuLDXB" name="cidr"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="BtlcWVUFqYWE" name="circle"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="1z9QAax5XpTi" name="date"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="9BaSM7eXzP7V" name="decimal"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="sbjg7Fu7D4XL" name="double precision"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="eVO9IrpP0PsN" name="inet"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="WWsTv0xlZgSf" name="integer"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="tMm4OJQ0mo92" name="interval"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="gySeNKzsqqLj" name="line"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="oGUNwu0oHmsf" name="lseg"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="4Igo5nrjmJN9" name="macaddr"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="dNzRDJ8zZaMU" name="money"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="VNIm78P9P3wU" name="numeric"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="rnDd4Ykhti64" name="path"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="1E3amO2HjI1q" name="point"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="RRyoUuIJfTwj" name="polygon"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="zfOtNUvMgzwS" name="real"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Nzk4HlsgAqUd" name="smallint"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="ikwNBr69UU0p" name="time without time zone"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="wvBcs53F4lJK" name="time with time zone"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="UAyf0RGjBA6L" name="timestamp without time zone"/>
<UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="qrvRuK92f7eq" name="timestamp with time zone"/>
</UML:Namespace.ownedElement>
</UML:Package>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="W7jgRDGr8PuF" name="serial"/>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="51IG0CBKOtiN" name="Studienordnung">
<UML:Classifier.feature>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="SYtsmgH9b0tQ" type="cFFVhNK3BREB" name="version"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="P0GeSbOrn37K" type="1pNXWzrwoPA2" name="Studiengang_kz"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="THGEKMZDfdy2" type="L1qcyWcXRmkI" name="GueltigVon"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="3EinJkj2SNf3" type="Emh8oXXDusUk" initialValue="true" name="new"/>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="ds4Uckfh3sp6" name="loadStudienordnung">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="CTM5gp05k7vL" type="51IG0CBKOtiN"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="1tz9dH9nvDVx" type="edwM3rd0SCyI" value="" name="Studienordnung_id"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Rv7qb73Ex5iZ" comment="loadStudienordnungSTG->Wenn alles gesetzt ist, sollte das Ergebniss maximal 1 sein.&#xa;Wenn größer 1 -> Error" name="loadStudienordnungSTG">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="VzH4xyrzbqyA" type="51IG0CBKOtiN"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="pLHrE4xDxwMa" type="1pNXWzrwoPA2" value="" name="Studiengang_kz"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="tUqF1F8Z7TD3" type="L1qcyWcXRmkI" value="null" name="studiensemester"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="jkgfaf0S9qf8" type="WWsTv0xlZgSf" value="null" name="semester"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="4niBEtFXzjnB" name="saveStudienordnung">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="2gVBUAIYv0iA" type="51IG0CBKOtiN"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
</UML:Classifier.feature>
</UML:Class>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="1pNXWzrwoPA2" name="Studiengang">
<UML:Classifier.feature>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="YJDHS1TULZPv" name="loadStudiengang">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="J6WGBJSZm74x" type="1pNXWzrwoPA2"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
</UML:Classifier.feature>
</UML:Class>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="D2ntTRvYQDmQ" name="Studienplan">
<UML:Classifier.feature>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="iaj7LTP4ozpz" type="51IG0CBKOtiN" name="Studienordnung"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="4tyrMId12lw0" type="HC249p3ahdi0" name="OrgForm"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="5JD7596s9kI0" type="cFFVhNK3BREB" name="Version"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="Ag6j1GQCRh2D" type="SgZEyuZ8MsOX" name="Regelstudiendauer"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="v7X4AVbvtABG" type="NxjlpR7qGUNk" initialValue="null" name="Lehrveranstaltung"/>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="BWtzNhU4W1VR" name="loadStudienplan">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="lQbFP4gsJEip" type="D2ntTRvYQDmQ"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="TFYsXoH3oX5j" type="edwM3rd0SCyI" value="" name="Studienplan_id"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="rvfqcTzdffRy" name="loadStudienplanSTO">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="ca8HEZDcfCSA" type="D2ntTRvYQDmQ"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="Q8yqVetYIMhk" type="edwM3rd0SCyI" value="" name="Studienordnung_id"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="UzHOxzWmuBbU" type="l0VdszOZTdks" value="null" name="OrgForm"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
</UML:Classifier.feature>
</UML:Class>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="NxjlpR7qGUNk" name="Lehrveranstaltung">
<UML:Classifier.feature>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="213uAePlDX0P" type="WWsTv0xlZgSf" initialValue="null" name="semester"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="4E1jOTtAnaES" type="Emh8oXXDusUk" initialValue="null" name="pflicht"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="w0ZF64U63W1B" type="l0VdszOZTdks" initialValue="null" name="koordinator"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="8QwJvxiz9jiX" type="D2ntTRvYQDmQ" initialValue="null" name="studienplan_id"/>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="1j42F3EOR8hM" name="loadLehrveranstaltung">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="5JEvW0NjtWeq" type="NxjlpR7qGUNk"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="5QLE91jKaOJi" type="edwM3rd0SCyI" value="" name="Lehrveranstaltung_id"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Hhj9f06gk8jx" name="loadLehrveranstaltungStudienplanID">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="MWw5ibstBjVy" type="NxjlpR7qGUNk"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="9vLa31u7PDJW" type="edwM3rd0SCyI" value="" name="Studienplan_id"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="E1rpP8VfpEoU" type="WWsTv0xlZgSf" value="null" name="semester"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Ds9xzqs8lEhm" name="loadLehrveranstaltungOE">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="ucz6Zmgf3uYZ" type="NxjlpR7qGUNk"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="DbtcnB81Cxob" type="l0VdszOZTdks" value="" name="oe_kurzbz"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="vvGmQuamPWq5" name="getLehrveranstaltungenJSON">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="02J4vpboksa8" type="cFFVhNK3BREB"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
</UML:Classifier.feature>
</UML:Class>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="RChGZrGmr3fL" name="LVRegel">
<UML:Classifier.feature>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="8gzJPUHI4EMe" type="edwM3rd0SCyI" initialValue="null" name="lvregel_id"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="kAv7ejDkPC1o" type="l0VdszOZTdks" initialValue="null" name="regeltyp_kurzbz"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="eG4jVRLTTeVM" type="edwM3rd0SCyI" initialValue="null" name="studienplan_lehrveranstaltung_id"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="R5A9xkIfsBnX" type="edwM3rd0SCyI" initialValue="null" name="lvregel_id_parent"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="u0FJAH5mXAT0" type="NxjlpR7qGUNk" initialValue="null" name="lehrveranstaltung_id"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="AkIhumiVaAY1" type="lM4JQVTvRBSX" initialValue="null" name="operator"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="7vqAUr7k8ita" type="cFFVhNK3BREB" initialValue="null" name="parameter"/>
<UML:Attribute visibility="private" isSpecification="false" xmi.id="tHA0AI4hgRII" type="DHjcK6auMrP8" name="studierendendaten"/>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="COOJ6HtBlqd9" name="loadLVRegel">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="LUy7IbGj9uTw" type="RChGZrGmr3fL"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="Raglnt0koiHr" type="edwM3rd0SCyI" value="" name="LVRegel_id"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="6WwSPbyXMFFE" name="loadLVRegelStplLvID">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="zvkX5GWABNId" type="RChGZrGmr3fL"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="wm277KkHi6an" type="edwM3rd0SCyI" value="" name="stpl_lv_id"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="oRgc7wU3gUAn" name="getLVRegelJSON">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="os2VzdIK5EPN" type="RChGZrGmr3fL"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="pd4xYXtMwYw3" name="checkAnmeldung">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="5yMkbkDUzNT7" type="Emh8oXXDusUk"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="UQ68sEtf7vA6" type="edwM3rd0SCyI" value="" name="stpl_lv_id"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="YQOdeoyRP3Ox" name="loadStudierendendaten">
<UML:BehavioralFeature.parameter>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="aGJXoGYGefOV" type="l0VdszOZTdks" value="" name="uid"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation visibility="public" isSpecification="false" isQuery="false" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="fVoJw7b7OKki" name="checkPositiv">
<UML:BehavioralFeature.parameter>
<UML:Parameter kind="return" xmi.id="u8zrVSz8ynRs" type="7YsfljvDNSQM"/>
<UML:Parameter visibility="private" isSpecification="false" xmi.id="OIci70qDwCvX" type="l0VdszOZTdks" value="null" name="uid"/>
</UML:BehavioralFeature.parameter>
</UML:Operation>
</UML:Classifier.feature>
</UML:Class>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="L1qcyWcXRmkI" name="Studiensemester"/>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="HC249p3ahdi0" name="OrgForm"/>
<UML:Class visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="DHjcK6auMrP8" name="Studirendenr"/>
</UML:Namespace.ownedElement>
<XMI.extension xmi.extender="umbrello">
<diagrams>
<diagram showopsig="1" linecolor="#ff0000" snapx="10" showattribassocs="1" snapy="10" linewidth="0" showattsig="1" textcolor="#000000" isopen="0" showpackage="1" showpubliconly="0" showstereotype="1" name="FHComplete" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" canvasheight="886" canvaswidth="1000" localid="-1" snapcsgrid="0" showgrid="0" showops="1" griddotcolor="#000000" backgroundcolor="#ffffff" usefillcolor="1" fillcolor="#ffff00" zoom="103" xmi.id="oCqH2pwcYFsG" documentation="" showscope="1" snapgrid="0" showatts="1" type="1">
<widgets>
<classwidget linecolor="#ff0000" usesdiagramfillcolor="0" linewidth="0" showoperations="1" textcolor="#000000" usesdiagramusefillcolor="0" showpubliconly="0" showpackage="1" x="-1390" showattsigs="601" showstereotype="1" y="-636" showattributes="1" font="DejaVu Sans,9,-1,5,75,0,0,0,0,0" width="1000" isinstance="0" usefillcolor="1" fillcolor="#ffff00" xmi.id="51IG0CBKOtiN" showscope="1" height="112" showopsigs="601"/>
<classwidget linecolor="none" usesdiagramfillcolor="0" linewidth="0" showoperations="1" textcolor="#000000" usesdiagramusefillcolor="0" showpubliconly="0" showpackage="1" x="-1357" showattsigs="601" showstereotype="1" y="-749" showattributes="1" font="DejaVu Sans,9,-1,0,75,0,0,0,0,0" width="233" isinstance="0" usefillcolor="1" fillcolor="#ffff00" xmi.id="1pNXWzrwoPA2" showscope="1" height="35" showopsigs="601"/>
<classwidget linecolor="#ff0000" usesdiagramfillcolor="0" linewidth="0" showoperations="1" textcolor="#000000" usesdiagramusefillcolor="0" showpubliconly="0" showpackage="1" x="-1206" showattsigs="601" showstereotype="1" y="-458" showattributes="1" font="DejaVu Sans,9,-1,5,75,0,0,0,0,0" width="717" isinstance="0" usefillcolor="1" fillcolor="#ffff00" xmi.id="D2ntTRvYQDmQ" showscope="1" height="140" showopsigs="601"/>
<classwidget linecolor="#ff0000" usesdiagramfillcolor="0" linewidth="0" showoperations="1" textcolor="#000000" usesdiagramusefillcolor="0" showpubliconly="0" showpackage="1" x="-1364" showattsigs="601" showstereotype="1" y="-250" showattributes="1" font="DejaVu Sans,9,-1,5,75,0,0,0,0,0" width="786" isinstance="0" usefillcolor="1" fillcolor="#ffff00" xmi.id="NxjlpR7qGUNk" showscope="1" height="126" showopsigs="601"/>
<classwidget linecolor="#ff0000" usesdiagramfillcolor="0" linewidth="0" showoperations="1" textcolor="#000000" usesdiagramusefillcolor="0" showpubliconly="0" showpackage="1" x="-1061" showattsigs="601" showstereotype="1" y="-73" showattributes="1" font="DejaVu Sans,9,-1,5,75,0,0,0,0,0" width="368" isinstance="0" usefillcolor="1" fillcolor="#ffff00" xmi.id="RChGZrGmr3fL" showscope="1" height="210" showopsigs="601"/>
<classwidget linecolor="none" usesdiagramfillcolor="0" linewidth="0" showoperations="1" textcolor="#000000" usesdiagramusefillcolor="0" showpubliconly="0" showpackage="1" x="-905" showattsigs="601" showstereotype="1" y="-745" showattributes="1" font="DejaVu Sans,9,-1,0,75,0,0,0,0,0" width="132" isinstance="0" usefillcolor="1" fillcolor="#ffff00" xmi.id="L1qcyWcXRmkI" showscope="1" height="28" showopsigs="601"/>
<classwidget linecolor="none" usesdiagramfillcolor="0" linewidth="0" showoperations="1" textcolor="#000000" usesdiagramusefillcolor="0" showpubliconly="0" showpackage="1" x="-656" showattsigs="601" showstereotype="1" y="-417" showattributes="1" font="DejaVu Sans,9,-1,0,75,0,0,0,0,0" width="71" isinstance="0" usefillcolor="1" fillcolor="#ffff00" xmi.id="HC249p3ahdi0" showscope="1" height="28" showopsigs="601"/>
</widgets>
<messages/>
<associations>
<assocwidget indexa="1" linecolor="none" usesdiagramfillcolor="0" widgetbid="1pNXWzrwoPA2" indexb="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="0" totalcounta="2" totalcountb="2" widgetaid="51IG0CBKOtiN" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" visibilityA="1" visibilityB="1" usefillcolor="0" fillcolor="#000000" changeabilityA="900" xmi.id="P0GeSbOrn37K" changeabilityB="900" type="510">
<linepath layout="Polyline">
<startpoint startx="-1225" starty="-636"/>
<endpoint endx="-1225" endy="-714"/>
</linepath>
<floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" x="-1337" showstereotype="1" y="-712" text="Studiengang_kz" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" pretext="-" role="710" width="110" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="ORKwll48zSwZ" height="18"/>
</assocwidget>
<assocwidget indexa="1" linecolor="none" usesdiagramfillcolor="0" widgetbid="L1qcyWcXRmkI" indexb="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="0" totalcounta="2" totalcountb="2" widgetaid="51IG0CBKOtiN" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" visibilityA="1" visibilityB="1" usefillcolor="0" fillcolor="#000000" changeabilityA="900" xmi.id="THGEKMZDfdy2" changeabilityB="900" type="510">
<linepath layout="Polyline">
<startpoint startx="-853" starty="-636"/>
<endpoint endx="-853" endy="-717"/>
</linepath>
<floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" x="-930" showstereotype="1" y="-715" text="GueltigVon" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" pretext="-" role="710" width="79" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="HQmtgogMSM4W" height="18"/>
</assocwidget>
<assocwidget indexa="1" linecolor="none" usesdiagramfillcolor="0" widgetbid="51IG0CBKOtiN" indexb="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="0" totalcounta="2" totalcountb="2" widgetaid="D2ntTRvYQDmQ" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" visibilityA="1" visibilityB="1" usefillcolor="0" fillcolor="#000000" changeabilityA="900" xmi.id="iaj7LTP4ozpz" changeabilityB="900" type="510">
<linepath layout="Polyline">
<startpoint startx="-1019" starty="-458"/>
<endpoint endx="-1019" endy="-524"/>
</linepath>
<floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" x="-1130" showstereotype="1" y="-522" text="Studienordnung" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" pretext="-" role="710" width="113" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="qy6mUImsi4mT" height="18"/>
</assocwidget>
<assocwidget indexa="1" linecolor="none" usesdiagramfillcolor="0" widgetbid="HC249p3ahdi0" indexb="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="0" totalcounta="2" totalcountb="2" widgetaid="D2ntTRvYQDmQ" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" visibilityA="1" visibilityB="1" usefillcolor="0" fillcolor="#000000" changeabilityA="900" xmi.id="4tyrMId12lw0" changeabilityB="900" type="510">
<linepath layout="Polyline">
<startpoint startx="-656" starty="-400"/>
<endpoint endx="-656" endy="-400"/>
</linepath>
<floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" x="-719" showstereotype="1" y="-398" text="OrgForm" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" pretext="-" role="710" width="65" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="prbmHWLWw5Pa" height="18"/>
</assocwidget>
<assocwidget indexa="1" linecolor="none" usesdiagramfillcolor="0" widgetbid="NxjlpR7qGUNk" indexb="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" totalcounta="2" totalcountb="2" widgetaid="D2ntTRvYQDmQ" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" visibilityA="1" visibilityB="1" usefillcolor="1" fillcolor="#000000" changeabilityA="900" xmi.id="v7X4AVbvtABG" changeabilityB="900" type="510">
<linepath layout="Polyline">
<startpoint startx="-993" starty="-318"/>
<endpoint endx="-993" endy="-250"/>
</linepath>
<floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" x="-1117" showstereotype="1" y="-270" text="Lehrveranstaltung" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" pretext="-" role="710" width="126" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="t5wKPzqDvuyP" height="18"/>
</assocwidget>
<assocwidget indexa="1" linecolor="none" usesdiagramfillcolor="0" widgetbid="NxjlpR7qGUNk" indexb="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" totalcounta="2" totalcountb="2" widgetaid="RChGZrGmr3fL" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" visibilityA="1" visibilityB="1" usefillcolor="0" fillcolor="#000000" changeabilityA="900" xmi.id="u0FJAH5mXAT0" changeabilityB="900" type="510">
<linepath layout="Polyline">
<startpoint startx="-894" starty="-73"/>
<endpoint endx="-894" endy="-124"/>
</linepath>
<floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" textcolor="none" usesdiagramusefillcolor="1" x="-1036" showstereotype="1" y="-122" text="lehrveranstaltung_id" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" pretext="-" role="710" width="140" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="AkHsm4KbtvLA" height="18"/>
</assocwidget>
</associations>
</diagram>
</diagrams>
</XMI.extension>
</UML:Model>
<UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Use Case View" name="Use Case View">
<UML:Namespace.ownedElement/>
</UML:Model>
<UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Component View" name="Component View">
<UML:Namespace.ownedElement/>
</UML:Model>
<UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Deployment View" name="Deployment View">
<UML:Namespace.ownedElement/>
</UML:Model>
<UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Entity Relationship Model" name="Entity Relationship Model">
<UML:Namespace.ownedElement>
<UML:Entity visibility="public" isSpecification="false" namespace="Entity Relationship Model" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Pv938OUidhEK" name="tbl_person">
<UML:EntityAttribute visibility="private" values="" isSpecification="false" namespace="Pv938OUidhEK" allow_null="0" isAbstract="false" isLeaf="false" attributes="" auto_increment="0" isRoot="false" xmi.id="4YLFyXQNadkq" type="W7jgRDGr8PuF" dbindex_type="1100" initialValue="" name="person_id"/>
</UML:Entity>
<UML:Entity stereotype="public" visibility="public" isSpecification="false" namespace="Entity Relationship Model" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="nMxO39i5g1Kc" name="tbl_benutzer">
<UML:EntityAttribute visibility="public" values="16" isSpecification="false" namespace="nMxO39i5g1Kc" allow_null="0" isAbstract="false" isLeaf="false" attributes="" auto_increment="0" isRoot="false" xmi.id="IxRyyjYUPVbj" type="l0VdszOZTdks" dbindex_type="1100" initialValue="" name="uid"/>
<UML:UniqueConstraint visibility="public" isSpecification="false" namespace="nMxO39i5g1Kc" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="rl5y8zDvJ8HM" isPrimary="1" name="pk_benutzer"/>
</UML:Entity>
<UML:Entity visibility="public" isSpecification="false" namespace="Entity Relationship Model" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Yix7MhxqogVG" name="tbl_student"/>
<UML:Package stereotype="folder" visibility="public" isSpecification="false" namespace="Entity Relationship Model" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="VSWYS4jnR9yv" name="public">
<UML:Namespace.ownedElement>
<UML:Entity stereotype="public" visibility="public" isSpecification="false" namespace="VSWYS4jnR9yv" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="jrTxafyeJXdz" name="tbl_studiengang"/>
</UML:Namespace.ownedElement>
</UML:Package>
<UML:Package stereotype="folder" visibility="public" isSpecification="false" namespace="Entity Relationship Model" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="XBCwKAr1zJza" name="bis">
<UML:Namespace.ownedElement>
<UML:Entity stereotype="bis" visibility="public" isSpecification="false" namespace="XBCwKAr1zJza" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="wxCGSqFycJP2" name="tbl_zgv"/>
</UML:Namespace.ownedElement>
</UML:Package>
<UML:Association visibility="public" isSpecification="false" namespace="Entity Relationship Model" xmi.id="Gzh9Toy4M1Lz" name="">
<UML:Association.connection>
<UML:AssociationEnd changeability="changeable" visibility="public" isNavigable="true" isSpecification="false" xmi.id="g5nrwtJnmwRD" type="Yix7MhxqogVG" name="" aggregation="none"/>
<UML:AssociationEnd changeability="changeable" visibility="public" isNavigable="true" isSpecification="false" relationship="true" xmi.id="QWosq1k61PGU" type="Pv938OUidhEK" name="" aggregation="none"/>
</UML:Association.connection>
</UML:Association>
</UML:Namespace.ownedElement>
<XMI.extension xmi.extender="umbrello">
<diagrams>
<diagram showopsig="1" linecolor="#ff0000" snapx="10" showattribassocs="1" snapy="10" linewidth="0" showattsig="1" textcolor="#000000" isopen="1" showpackage="1" showpubliconly="0" showstereotype="1" name="FH-Complete" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" canvasheight="571" canvaswidth="1430" localid="-1" snapcsgrid="0" showgrid="0" showops="1" griddotcolor="#000000" backgroundcolor="#ffffff" usefillcolor="1" fillcolor="#ffff00" zoom="100" xmi.id="P5FPHtPtCMUb" documentation="" showscope="1" snapgrid="0" showatts="1" type="9">
<widgets>
<entitywidget width="84" showstereotype="1" x="-208" usesdiagramusefillcolor="1" y="97" usesdiagramfillcolor="0" isinstance="0" fillcolor="#a5abff" height="28" linecolor="none" xmi.id="Pv938OUidhEK" textcolor="none" usefillcolor="1" linewidth="none" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0"/>
<entitywidget width="99" showstereotype="1" x="182" usesdiagramusefillcolor="0" y="234" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="42" linecolor="#ff0000" xmi.id="nMxO39i5g1Kc" textcolor="none" usefillcolor="1" linewidth="none" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0"/>
<entitywidget width="92" showstereotype="1" x="-53" usesdiagramusefillcolor="1" y="260" usesdiagramfillcolor="1" isinstance="0" fillcolor="none" height="21" linecolor="none" xmi.id="Yix7MhxqogVG" textcolor="none" usefillcolor="1" linewidth="none" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0"/>
<entitywidget width="123" showstereotype="1" x="99" usesdiagramusefillcolor="0" y="147" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="35" linecolor="#ff0000" xmi.id="jrTxafyeJXdz" textcolor="none" usefillcolor="1" linewidth="none" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0"/>
<entitywidget width="63" showstereotype="1" x="181" usesdiagramusefillcolor="0" y="69" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="35" linecolor="#ff0000" xmi.id="wxCGSqFycJP2" textcolor="none" usefillcolor="1" linewidth="none" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0"/>
</widgets>
<messages/>
<associations>
<assocwidget indexa="1" indexb="1" usesdiagramusefillcolor="80" widgetaid="Yix7MhxqogVG" usesdiagramfillcolor="0" fillcolor="#ffff00" linecolor="none" totalcounta="2" xmi.id="Gzh9Toy4M1Lz" widgetbid="Pv938OUidhEK" totalcountb="2" type="519" textcolor="none" usefillcolor="1" linewidth="none" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0">
<linepath layout="Polyline">
<startpoint startx="-53" starty="260"/>
<endpoint endx="-124" endy="125"/>
</linepath>
</assocwidget>
</associations>
</diagram>
<diagram showopsig="1" linecolor="#ff0000" snapx="10" showattribassocs="1" snapy="10" linewidth="0" showattsig="1" textcolor="#000000" isopen="1" showpackage="1" showpubliconly="0" showstereotype="1" name="public" font="DejaVu Sans,9,-1,0,50,0,0,0,0,0" canvasheight="35" canvaswidth="123" localid="-1" snapcsgrid="0" showgrid="0" showops="1" griddotcolor="#000000" backgroundcolor="#ffffff" usefillcolor="1" fillcolor="#ffff00" zoom="100" xmi.id="Yo6RQXytzURP" documentation="" showscope="1" snapgrid="0" showatts="1" type="9">
<widgets>
<entitywidget width="123" showstereotype="1" x="44" usesdiagramusefillcolor="1" y="-52" usesdiagramfillcolor="1" isinstance="0" fillcolor="none" height="35" linecolor="none" xmi.id="jrTxafyeJXdz" textcolor="none" usefillcolor="1" linewidth="none" font="DejaVu Sans,9,-1,0,75,1,0,0,0,0"/>
</widgets>
<messages/>
<associations/>
</diagram>
</diagrams>
</XMI.extension>
</UML:Model>
</UML:Namespace.ownedElement>
</UML:Model>
</XMI.content>
<XMI.extensions xmi.extender="umbrello">
<docsettings viewid="P5FPHtPtCMUb" uniqueid="QWosq1k61PGU" documentation=""/>
<listview>
<listitem open="1" type="800" id="Views">
<listitem open="1" type="821" id="Component View"/>
<listitem open="1" type="827" id="Deployment View"/>
<listitem open="1" type="836" id="Entity Relationship Model">
<listitem open="0" type="835" id="XBCwKAr1zJza">
<listitem open="1" type="832" id="wxCGSqFycJP2"/>
</listitem>
<listitem open="0" type="834" id="P5FPHtPtCMUb" label="FH-Complete"/>
<listitem open="0" type="835" id="VSWYS4jnR9yv">
<listitem open="1" type="832" id="jrTxafyeJXdz"/>
</listitem>
<listitem open="0" type="834" id="Yo6RQXytzURP" label="public"/>
<listitem open="0" type="832" id="nMxO39i5g1Kc">
<listitem open="1" type="841" id="rl5y8zDvJ8HM"/>
<listitem open="1" type="833" id="IxRyyjYUPVbj"/>
</listitem>
<listitem open="0" type="832" id="Pv938OUidhEK">
<listitem open="0" type="833" id="4YLFyXQNadkq"/>
</listitem>
<listitem open="1" type="832" id="Yix7MhxqogVG"/>
</listitem>
<listitem open="0" type="801" id="Logical View">
<listitem open="0" type="830" id="Datatypes">
<listitem open="1" type="829" id="edwM3rd0SCyI"/>
<listitem open="1" type="829" id="ubiV24mgw2pR"/>
<listitem open="1" type="829" id="RNMGsr1WSxrT"/>
<listitem open="1" type="829" id="pSTFeSWY1C11"/>
<listitem open="1" type="829" id="7YsfljvDNSQM"/>
<listitem open="1" type="829" id="Emh8oXXDusUk"/>
<listitem open="1" type="829" id="jTHBR8cEY5RC"/>
<listitem open="1" type="829" id="VvkX8jWMVETI"/>
<listitem open="1" type="829" id="thqOZ1UNDKcG"/>
<listitem open="1" type="829" id="lM4JQVTvRBSX"/>
<listitem open="1" type="829" id="l0VdszOZTdks"/>
<listitem open="1" type="829" id="uxrQBKiuLDXB"/>
<listitem open="1" type="829" id="BtlcWVUFqYWE"/>
<listitem open="1" type="829" id="1z9QAax5XpTi"/>
<listitem open="1" type="829" id="9BaSM7eXzP7V"/>
<listitem open="1" type="829" id="zZRBr3RyZHdI"/>
<listitem open="1" type="829" id="sbjg7Fu7D4XL"/>
<listitem open="1" type="829" id="KzUepsAjXy56"/>
<listitem open="1" type="829" id="eVO9IrpP0PsN"/>
<listitem open="1" type="829" id="SgZEyuZ8MsOX"/>
<listitem open="1" type="829" id="WWsTv0xlZgSf"/>
<listitem open="1" type="829" id="tMm4OJQ0mo92"/>
<listitem open="1" type="829" id="gySeNKzsqqLj"/>
<listitem open="1" type="829" id="32Oa0Rhy089p"/>
<listitem open="1" type="829" id="oGUNwu0oHmsf"/>
<listitem open="1" type="829" id="4Igo5nrjmJN9"/>
<listitem open="1" type="829" id="dNzRDJ8zZaMU"/>
<listitem open="1" type="829" id="VNIm78P9P3wU"/>
<listitem open="1" type="829" id="rnDd4Ykhti64"/>
<listitem open="1" type="829" id="1E3amO2HjI1q"/>
<listitem open="1" type="829" id="RRyoUuIJfTwj"/>
<listitem open="1" type="829" id="zfOtNUvMgzwS"/>
<listitem open="1" type="829" id="yXUMxuiGrCuf"/>
<listitem open="1" type="829" id="Nzk4HlsgAqUd"/>
<listitem open="1" type="829" id="cFFVhNK3BREB"/>
<listitem open="1" type="829" id="wvBcs53F4lJK"/>
<listitem open="1" type="829" id="ikwNBr69UU0p"/>
<listitem open="1" type="829" id="qrvRuK92f7eq"/>
<listitem open="1" type="829" id="UAyf0RGjBA6L"/>
<listitem open="1" type="829" id="AYnhpO0ovU8r"/>
<listitem open="1" type="829" id="dJydP5QZdDHT"/>
<listitem open="1" type="829" id="Mq7B0zq30Ce0"/>
</listitem>
<listitem open="0" type="807" id="oCqH2pwcYFsG" label="FHComplete"/>
<listitem open="0" type="813" id="NxjlpR7qGUNk">
<listitem open="0" type="815" id="vvGmQuamPWq5"/>
<listitem open="0" type="814" id="w0ZF64U63W1B"/>
<listitem open="0" type="815" id="1j42F3EOR8hM"/>
<listitem open="0" type="815" id="Ds9xzqs8lEhm"/>
<listitem open="0" type="815" id="Hhj9f06gk8jx"/>
<listitem open="0" type="814" id="4E1jOTtAnaES"/>
<listitem open="0" type="814" id="213uAePlDX0P"/>
<listitem open="0" type="814" id="8QwJvxiz9jiX"/>
</listitem>
<listitem open="0" type="813" id="RChGZrGmr3fL">
<listitem open="0" type="815" id="pd4xYXtMwYw3"/>
<listitem open="0" type="815" id="fVoJw7b7OKki"/>
<listitem open="0" type="815" id="oRgc7wU3gUAn"/>
<listitem open="0" type="814" id="u0FJAH5mXAT0"/>
<listitem open="0" type="815" id="COOJ6HtBlqd9"/>
<listitem open="0" type="815" id="6WwSPbyXMFFE"/>
<listitem open="0" type="815" id="YQOdeoyRP3Ox"/>
<listitem open="0" type="814" id="8gzJPUHI4EMe"/>
<listitem open="0" type="814" id="R5A9xkIfsBnX"/>
<listitem open="0" type="814" id="AkIhumiVaAY1"/>
<listitem open="0" type="814" id="7vqAUr7k8ita"/>
<listitem open="0" type="814" id="kAv7ejDkPC1o"/>
<listitem open="0" type="814" id="eG4jVRLTTeVM"/>
<listitem open="0" type="814" id="tHA0AI4hgRII"/>
</listitem>
<listitem open="1" type="813" id="HC249p3ahdi0"/>
<listitem open="1" type="813" id="W7jgRDGr8PuF"/>
<listitem open="0" type="813" id="1pNXWzrwoPA2">
<listitem open="0" type="815" id="YJDHS1TULZPv"/>
</listitem>
<listitem open="0" type="813" id="51IG0CBKOtiN">
<listitem open="0" type="814" id="THGEKMZDfdy2"/>
<listitem open="0" type="815" id="ds4Uckfh3sp6"/>
<listitem open="0" type="815" id="Rv7qb73Ex5iZ"/>
<listitem open="0" type="814" id="3EinJkj2SNf3"/>
<listitem open="0" type="815" id="4niBEtFXzjnB"/>
<listitem open="0" type="814" id="P0GeSbOrn37K"/>
<listitem open="0" type="814" id="SYtsmgH9b0tQ"/>
</listitem>
<listitem open="1" type="813" id="D2ntTRvYQDmQ">
<listitem open="0" type="814" id="v7X4AVbvtABG"/>
<listitem open="0" type="815" id="BWtzNhU4W1VR"/>
<listitem open="0" type="815" id="rvfqcTzdffRy"/>
<listitem open="0" type="814" id="4tyrMId12lw0"/>
<listitem open="0" type="814" id="Ag6j1GQCRh2D"/>
<listitem open="0" type="814" id="iaj7LTP4ozpz"/>
<listitem open="0" type="814" id="5JD7596s9kI0"/>
</listitem>
<listitem open="1" type="813" id="L1qcyWcXRmkI"/>
<listitem open="1" type="813" id="DHjcK6auMrP8"/>
</listitem>
<listitem open="1" type="802" id="Use Case View"/>
</listitem>
</listview>
<codegeneration>
<codegenerator language="PostgreSQL"/>
</codegeneration>
</XMI.extensions>
</XMI>
-628
View File
@@ -1,628 +0,0 @@
<?php
/* Copyright (C) 2009 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at> and
* Gerald Simane-Sequens <gerald.simane-sequens@technikum-wien.at>
*/
/*
* Script zur Pruefung der Datenbank
*
* database.inc.php enthaelt die Struktur der Datenbank. Diese wird mit der Produktivdatenbank
* verglichen und eventuelle Aenderungen werden angezeigt.
*/
require_once('../config/system.config.inc.php');
require_once('database.inc.php');
require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
$db = new basis_db();
$uid=get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if(!$rechte->isBerechtigt('admin'))
die('Sie haben keine Berechtigung fuer diese Seite');
echo '
<html>
<head>
<title>Datenbank Check</title>
<meta http-equiv="Content-Type" content="text/html; charset="UTF-8">
<link rel="stylesheet" href="../skin/vilesci.css" type="text/css">
<link rel="stylesheet" href="../include/js/tablesort/table.css" type="text/css">
<script src="../include/js/tablesort/table.js" type="text/javascript"></script>
<script type="text/javascript">
String.prototype.startsWith = function(str)
{
return (this.match("^"+str)==str)
}
function display(id)
{
if(id.startsWith("table."))
disableTables();
if(id.startsWith("schema."))
disableSchemas();
document.getElementById(id).style.display="block";
return false;
}
function disableSchemas()
{
elem = document.getElementsByTagName("div");
for(i=0;i<elem.length;i++)
{
div = elem[i];
if(div.id && (div.id.startsWith("schema.") || div.id.startsWith("table.") || div.id.startsWith("attrib.")))
{
document.getElementById(div.id).style.display="none";
}
}
}
function disableTables()
{
elem = document.getElementsByTagName("div");
for(i=0;i<elem.length;i++)
{
div=elem[i];
if(div.id && (div.id.startsWith("table.") || div.id.startsWith("attrib.")))
{
document.getElementById(div.id).style.display="none";
}
}
}
</script>
<style>
.box
{
border: 1px solid black;
border: 2px solid #E6E6CC;
float: left;
margin: 10px;
padding: 3px;
}
.boxhead
{
background-color: #F3F3E9;
border:0;
text-align: center;
border-bottom: 1px solid #E6E6CC;
font-weight: bold;
}
</style>
</head>
<body>';
echo '<H2>Datenbank Pr&uuml;fung</H2>';
if(isset($_POST['commit']))
{
if(isset($_POST['qry']))
{
if(!$db->db_query($_POST['qry']))
echo $db->db_last_error();
}
}
$obj=array();
$obj['']=array();
$obj['']['error']=false;
//Schema pruefen
foreach ($schemas as $schema)
{
$obj[$schema['name']]=array();
$obj[$schema['name']]['error']=false;
$qry = "SELECT table_schema FROM information_schema.tables WHERE table_schema='".$schema['name']."'";
if($db->db_query($qry))
{
if(!$db->db_num_rows()>0)
{
$obj[$schema['name']]['qry']='CREATE SCHEMA '.$schema['name'].';';
$obj[$schema['name']]['error']=true;
}
}
}
//var_dump($datatypes);
$tabs=array_keys($tabellen);
//print_r($tabs);
$i=0;
foreach ($tabellen AS $tabelle)
{
if(!isset($tabelle['schemaid']) || $tabelle['schemaid']=='')
{
//Tabelle auslassen, wenn kein Schema angegeben ist
echo 'Tabelle '.$tabelle['name'].' ist keinem Schema zugeordnet!<br>';
continue;
}
$obj[$schemas[$tabelle['schemaid']]['name']]['tables'][$tabelle['name']]=array();
$sql_query2='';
$pk='';
// Tabelle pruefen
$sql_query="SELECT table_name FROM information_schema.tables WHERE table_schema='".$schemas[$tabelle['schemaid']]['name']."' AND table_name='".$tabelle['name']."';";
if (!$db->db_query($sql_query))
echo '<BR><strong>'.$tabs[$i].': '.$db->db_last_error().' </strong><BR>';
else
{
if ($db->db_num_rows()==0)
{
$sql_query= 'CREATE TABLE '.$schemas[$tabelle['schemaid']]['name'].'.'.$tabelle['name']." (";
foreach ($tabelle['attribute'] AS $attribut)
{
if ($datatypes[$attribut['datatypeid']]['name']!='geometry')
{
$sql_query.= $attribut['name'].' ';
if ($attribut['pk'])
$pk.=$attribut['name'].',';
$sql_query.=$datatypes[$attribut['datatypeid']]['name'];
if ($datatypes[$attribut['datatypeid']]['length']==1)
$sql_query.='('.$attribut['datatypeparam1'].')';
if ($datatypes[$attribut['datatypeid']]['length']==2)
$sql_query.='('.$attribut['datatypeparam1'].','.$attribut['datatypeparam2'].')';
if ($attribut['notnull'])
$sql_query.=' NOT NULL';
if ($attribut['unique'])
$sql_query.=' UNIQUE';
if ($attribut['defaultvalue']!="")
$sql_query.=' DEFAULT '.$attribut['defaultvalue'];
if ($attribut['checkconstraint']!="")
$sql_query.=' CHECK ('.$attribut['checkconstraint'].')';
$sql_query.=', ';
}
else
$sql_query2.="SELECT AddGeometryColumn('','".$tabelle['name']."','".$attribut['name']."',-1,'POINT',2);";
}
$sql_query=substr($sql_query,0,-2);
if ($pk!="")
$sql_query.=', CONSTRAINT "pk_'.$schemas[$tabelle['schemaid']]['name'].'_'.$tabelle['name'].'" PRIMARY KEY ('.substr($pk,0,-1).')';
$sql_query.=');';
$obj[$schemas[$tabelle['schemaid']]['name']]['tables'][$tabelle['name']]['qry']=$sql_query;
$obj[$schemas[$tabelle['schemaid']]['name']]['error']=true;
}
else
{
// Attribute pruefen
foreach ($tabelle['attribute'] AS $attribut)
{
$obj[$schemas[$tabelle['schemaid']]['name']]['tables'][$tabelle['name']]['attribute'][$attribut['name']]=array();
$qry_query="SELECT column_name FROM information_schema.columns
WHERE table_schema=".$schemas[$tabelle['schemaid']]['name']."'
AND table_name='".$tabelle['name']."' AND column_name='".$attribut['name']."'; ";
if ($db->db_query($sql_query))
{
if ($db->db_num_rows()==0)
{
$sql_query_nn='';
$sql_query='ALTER TABLE '.$schemas[$tabelle['schemaid']]['name'].'.'.$tabelle['name'].'
ADD COLUMN '.$attribut['name'].' ';
$sql_query.=$datatypes[$attribut['datatypeid']]['name'];
if ($datatypes[$attribut['datatypeid']]['length']==1)
$sql_query.='('.$attribut['datatypeparam1'].')';
if ($datatypes[$attribut['datatypeid']]['length']==2)
$sql_query.='('.$attribut['datatypeparam1'].','.$attribut['datatypeparam2'].')';
if ($attribut['unique'])
$sql_query.=' UNIQUE';
if ($attribut['defaultvalue']!="")
$sql_query.=' DEFAULT '.$attribut['defaultvalue'];
else
$attribut['defaultvalue']=$datatypes[$attribut['datatypeid']]['default'];
if ($attribut['checkconstraint']!="")
$sql_query.=' CHECK ('.$attribut['checkconstraint'].')';
if ($attribut['notnull'])
{
$sql_query_nn.='UPDATE '.$schemas[$tabelle['schemaid']]['name'].'.'.$tabelle['name'].'
SET '.$attribut['name'].'='.$attribut['defaultvalue'].';';
$sql_query_nn.='ALTER TABLE '.$schemas[$tabelle['schemaid']]['name'].'.'.$tabelle['name'].'
ALTER COLUMN '.$attribut['name'].' SET NOT NULL;';
}
$sql_query.=';';
$obj[$schemas[$tabelle['schemaid']]['name']]['tables'][$tabelle['name']]['attribute'][$attribut['name']]['qry']=$sql_query;
$obj[$schemas[$tabelle['schemaid']]['name']]['error']=true;
$obj[$schemas[$tabelle['schemaid']]['name']]['tables'][$tabelle['name']]['error']=true;
}
$obj[$schemas[$tabelle['schemaid']]['name']]['tables'][$tabelle['name']]['attribute'][$attribut['name']]['datatype']=$datatypes[$attribut['datatypeid']]['name'];
$obj[$schemas[$tabelle['schemaid']]['name']]['tables'][$tabelle['name']]['attribute'][$attribut['name']]['attribute']=$attribut;
}
}
}
}
flush();
$i++;
}
// Constraints pruefen
function getTablenameFromAttributIDs($attr)
{
global $tabellen;
global $schemas;
$attributid=null;
foreach ($attr AS $attribut)
$attributid=$attribut;
foreach ($tabellen AS $tabelle)
foreach ($tabelle['attribute'] AS $attribut)
if ($attribut['id']==$attributid)
{
if(isset($tabelle['schemaid']))
return $schemas[$tabelle['schemaid']]['name'].'.'.$tabelle['name'];
else
return 'public.'.$tabelle['name'];
}
return false;
}
function getAttributesnameFromAttributIDs($attr)
{
global $tabellen;
global $schemas;
$attributes='';
foreach ($attr AS $attributid)
foreach ($tabellen AS $tabelle)
foreach ($tabelle['attribute'] AS $attribute)
if ($attribute['id']==$attributid)
$attributes.=$attribute['name'].', ';
return substr($attributes,0,-2);
}
foreach ($relations AS $relation)
{
$sql_query='';
$pk='';
// Auf Foreign Key pruefen
if (count($relation['foreignkeys'])>0)
{
$parentattr='';
$childattr='';
foreach ($relation['foreignkeys'] AS $foreignkey)
{
$sql_query='';
$parenttable=getTablenameFromAttributIDs($foreignkey['attrparent']);
$childtable=getTablenameFromAttributIDs($foreignkey['attrchild']);
$parentattr.=getAttributesnameFromAttributIDs($foreignkey['attrparent']).', ';
$childattr.=getAttributesnameFromAttributIDs($foreignkey['attrchild']).', ';
}
$parentattr = substr($parentattr, 0, -2);
$childattr = substr($childattr, 0, -2);
list($schema, $tablename) = explode(".", $childtable);
$qry = "SELECT 1 FROM information_schema.key_column_usage
WHERE table_schema='".$schema."' AND table_name='".$tablename."' AND constraint_name='".$relation['name']."'";
if($db->db_query($qry))
{
if($db->db_num_rows()==0)
{
$sql_query='ALTER TABLE '.$childtable.' ADD CONSTRAINT '.$relation['name'].' FOREIGN KEY ('.$childattr.') REFERENCES '.$parenttable.' ('.$parentattr.') ';
$sql_query.='ON UPDATE CASCADE ON DELETE RESTRICT;';
if(isset($obj[$schema]) &&
isset($obj[$schema]['tables'][$tablename]) &&
isset($obj[$schema]['tables'][$tablename]['attribute']) &&
isset($obj[$schema]['tables'][$tablename]['attribute'][$childattr]['qry']))
$obj[$schema]['tables'][$tablename]['attribute'][$childattr]['qry'].=$sql_query;
else
$obj[$schema]['tables'][$tablename]['attribute'][$childattr]['qry']=$sql_query;
$obj[$schema]['error']=true;
$obj[$schema]['tables'][$tablename]['error']=true;
}
}
}
flush();
$i++;
}
// Gegenpruefung
//Prueft ob ein Schema in database.inc.php vorhanden ist
function schemaExists($schema)
{
global $schemas;
foreach ($schemas AS $schemata)
{
if($schemata['name']==$schema)
return true;
}
return false;
}
//Prueft ob eine Tabelle in database.inc.php vorhanden ist
function tableExists($schema, $table)
{
global $schemas;
global $tabellen;
foreach ($schemas AS $schemata)
{
if($schemata['name']==$schema)
$schemaid=$schemata['id'];
}
foreach ($tabellen as $tabelle)
{
if($tabelle['name']==$table && $tabelle['schemaid']==$schemaid)
return true;
}
return false;
}
//Prueft ob eine Tabelle in database.inc.php vorhanden ist
function attributExists($schema, $table, $attribut)
{
global $schemas;
global $tabellen;
foreach ($schemas AS $schemata)
{
if($schemata['name']==$schema)
$schemaid=$schemata['id'];
}
foreach ($tabellen as $tabelle)
{
if($tabelle['name']==$table && $tabelle['schemaid']==$schemaid)
{
foreach($tabelle['attribute'] as $attr)
{
if($attr['name']==$attribut)
return true;
}
return false;
}
}
return false;
}
// Schema
$additionalElements='';
$sql_query="SELECT table_schema FROM information_schema.tables
WHERE table_schema != 'pg_catalog'
AND table_schema != 'information_schema'
AND table_schema != 'sync'
AND table_schema != 'papaya'
GROUP BY table_schema";
if ($result=$db->db_query($sql_query))
{
while ($row_schema=$db->db_fetch_object($result))
{
if (!schemaExists($row_schema->table_schema))
{
$additionalElements.='Schema '.$row_schema->table_schema."\n";
}
else
{
//Tabellen
$qry = "SELECT table_name FROM information_schema.tables WHERE table_schema='".$row_schema->table_schema."'";
if ($result_table=$db->db_query($qry))
{
while($row_table = $db->db_fetch_object($result_table))
{
if(!tableExists($row_schema->table_schema, $row_table->table_name))
{
$additionalElements.='Tabelle '.$row_schema->table_schema.'.'.$row_table->table_name."\n";
}
else
{
//Attribute
$qry = "SELECT column_name FROM information_schema.columns
WHERE table_schema='".$row_schema->table_schema."'
AND table_name='".$row_table->table_name."'";
if($result_attrib = $db->db_query($qry))
{
while($row_attrib = $db->db_fetch_object($result_attrib))
{
if(!attributExists($row_schema->table_schema, $row_table->table_name, $row_attrib->column_name))
{
$additionalElements.='Attribut '.$row_schema->table_schema.'.'.$row_table->table_name.'.'.$row_attrib->column_name."\n";
}
else
{
//KEYs Pruefen
}
}
}
}
}
}
}
}
}
$out_schema="\n";
$out_schema_data="\n";
$out_tbl="\n";
$out_tbl_data="\n";
$out_att="\n";
$out_att_data="\n";
function querybox($title, $qry, $id)
{
$ret="\n";
$ret.='<div class="box" id="'.$id.'" style="display: none">';
$ret.='<div class="boxhead">'.$title.'</div>';
if(strlen($qry)>50)
{
$cols=55;
$rows = strlen($qry)/50+1;
if($rows>10)
$rows = 10;
}
else
{
$cols=strlen($qry);
$rows=1;
}
$ret.='<form action="'.$_SERVER['PHP_SELF'].'" method="POST">';
$ret.='<br /><textarea readonly="true" cols="'.$cols.'" rows="'.$rows.'" name="qry">'.$qry.'</textarea>';
$ret.='<br /><br /><input type="submit" value="Commit" name="commit" /></form>';
$ret.='</div>';
return $ret;
}
$out_schema.= '<div class="box" id="schema">';
$out_schema.= '<div class="boxhead">Schema</div>';
$out_schema.= '<table>';
$gesamtqry = '';
$gesamtqry_att='';
foreach ($obj as $schema=>$value)
{
//Schema
$out_schema.= "\n";
$out_schema.= '<tr>';
if($value['error'])
{
if(isset($value['qry']) && $value['qry']!='')
{
$gesamtqry .= $value['qry']."\n";
$out_schema_data.=querybox($schema, $value['qry'], 'schema.'.$schema);
$img = "exclamation.png";
}
else
{
$img = "error_go.png";
}
$out_schema.= '<td><a href="#" onclick="display(\'schema.'.$schema.'\'); return false;"><img src="../skin/images/'.$img.'" /></a></td>';
$out_schema.= '<td><a href="#" onclick="display(\'schema.'.$schema.'\'); return false;">'.$schema.'</a></td>';
}
else
{
$out_schema.= '<td></td>';
$out_schema.= '<td><a href="#" onclick="display(\'schema.'.$schema.'\'); return false;">'.$schema.'</a></td>';
}
$out_schema.= '</tr>';
//Tabelle
if(isset($value['tables']))
{
$out_tbl.= "\n";
$out_tbl.= '<div class="box" id="schema.'.$schema.'" style="display: none">';
$out_tbl.= '<div class="boxhead">'.$schema.'</div>';
$out_tbl.= '<table>';
foreach ($value['tables'] as $tables=>$tabvalue)
{
$out_tbl.= '<tr>';
if(isset($tabvalue['qry']) && $tabvalue['qry']!='')
{
$gesamtqry .= $tabvalue['qry']."\n";
$out_tbl.= '<td><a href="#" onclick="display(\'table.'.$schema.$tables.'\'); return false;"><img src="../skin/images/exclamation.png" /></a></td>';
$out_tbl.= '<td><a href="#" onclick="display(\'table.'.$schema.$tables.'\'); return false;">'.$tables.'</a></td>';
$out_tbl_data.=querybox($tables, $tabvalue['qry'], 'table.'.$schema.$tables);
}
else
{
if(isset($tabvalue['error']) && $tabvalue['error'])
{
$out_tbl.= '<td><a href="#" onclick="display(\'table.'.$schema.$tables.'\'); return false;"><img src="../skin/images/error_go.png" /></a></td>';
$out_tbl.= '<td><a href="#" onclick="display(\'table.'.$schema.$tables.'\'); return false;">'.$tables.'</a></td>';
}
else
{
$out_tbl.= '<td></td>';
$out_tbl.= '<td><a href="#" onclick="display(\'table.'.$schema.$tables.'\'); return false;">'.$tables.'</a></td>';
}
}
$out_tbl.= '</tr>';
//Attribute
if(isset($tabvalue['attribute']))
{
$out_att.= "\n";
$out_att.= '<div class="box" id="table.'.$schema.$tables.'" style="display: none">';
$out_att.= '<div class="boxhead">'.$tables.'</div>';
$out_att.= '<table>';
foreach ($tabvalue['attribute'] as $attrib=>$attvalue)
{
$out_att.= '<tr>';
if(isset($attvalue['qry']) && $attvalue['qry']!='')
{
$gesamtqry_att .= $attvalue['qry']."\n";
$out_att.= '<td><a href="#" onclick="display(\'attrib.'.$schema.$tables.$attrib.'\'); return false;"><img src="../skin/images/exclamation.png" /></a></td>';
$out_att.= '<td><a href="#" onclick="display(\'attrib.'.$schema.$tables.$attrib.'\'); return false;">'.$attrib.'</a></td>';
$out_att_data.=querybox($attrib, $attvalue['qry'], 'attrib.'.$schema.$tables.$attrib);
}
else
{
$out_att.= '<td></td>';
$out_att.= '<td><a href="#" onclick="display(\'attrib.'.$schema.$tables.$attrib.'\'); return false;">'.$attrib.'</a></td>';
$out_att.= '<td>&nbsp;<a href="#" onclick="display(\'attrib.'.$schema.$tables.$attrib.'\'); return false;">'.(isset($attvalue['datatype'])?$attvalue['datatype']:'').($attvalue['attribute']['length']!=''?' ('.$attvalue['attribute']['length'].')':'').'</a></td>';
$out_att.= '<td>&nbsp;<a href="#" onclick="display(\'attrib.'.$schema.$tables.$attrib.'\'); return false;">'.
(isset($attvalue['attribute'])?($attvalue['attribute']['unique']=='1'?'U':''):'').
(isset($attvalue['attribute'])?($attvalue['attribute']['notnull']=='1'?'NN':''):'').
'</a></td>';
}
$out_att.= '</tr>';
}
$out_att.= '</table>';
$out_att.= '</div>';
}
}
$out_tbl.= '</table>';
$out_tbl.= '</div>';
}
}
$out_schema.= '</table>';
$out_schema.= '</div>';
echo '<a href="#" onclick="display(\'schema.gesamtqry\'); return false;"><img src="../skin/images/system-software-update.png" title="Gesamtsystem aktualisieren" alt="Gesamtsystem aktualisieren"></a>&nbsp;&nbsp;';
echo '<a href="#" onclick="display(\'schema.additionalelements\'); return false;"><img src="../skin/images/user-trash-full.png" title="Element die in der DB sind, aber nicht in diesem Script" alt="Element die in der DB sind, aber nicht in diesem Script"><br /></a>';
echo $out_schema;
echo querybox('Gesamtsystem aktualisieren',$gesamtqry.$gesamtqry_att, 'schema.gesamtqry');
echo querybox('Element die in der DB sind, aber nicht in diesem Script',$additionalElements, 'schema.additionalelements');
echo $out_schema_data;
echo $out_tbl;
echo $out_tbl_data;
echo $out_att;
echo $out_att_data;
?>
File diff suppressed because it is too large Load Diff
+71
View File
@@ -127,6 +127,75 @@ if(!$result = @$db->db_query("SELECT 1 FROM public.vw_msg_vars LIMIT 1"))
else
echo '<br>Granted privileges to <strong>vilesci</strong> on public.vw_msg_vars';
}
if(!$result = @$db->db_query("SELECT 1 FROM public.vw_msg_vars_person LIMIT 1"))
{
// CREATE OR REPLACE VIEW public.vw_msg_vars and grants privileges
$qry = '
CREATE OR REPLACE VIEW public.vw_msg_vars_person AS (
SELECT DISTINCT ON(p.person_id) p.person_id,
p.nachname AS "Nachname",
p.vorname AS "Vorname",
p.anrede AS "Anrede",
a.strasse AS "Strasse",
a.ort AS "Ort",
a.plz AS "PLZ",
a.gemeinde AS "Gemeinde",
a.langtext AS "Nation",
ke.kontakt AS "Email",
kt.kontakt AS "Telefon"
FROM public.tbl_person p
LEFT JOIN (
SELECT person_id,
kontakt
FROM public.tbl_kontakt
WHERE zustellung = TRUE
AND kontakttyp = \'email\'
ORDER BY kontakt_id DESC
) ke USING(person_id)
LEFT JOIN (
SELECT person_id,
kontakt
FROM public.tbl_kontakt
WHERE zustellung = TRUE
AND kontakttyp IN (\'telefon\', \'mobil\')
ORDER BY kontakt_id DESC
) kt USING(person_id)
LEFT JOIN (
SELECT person_id,
strasse,
ort,
plz,
gemeinde,
langtext
FROM public.tbl_adresse
LEFT JOIN bis.tbl_nation ON(bis.tbl_nation.nation_code = public.tbl_adresse.nation)
WHERE public.tbl_adresse.heimatadresse = TRUE
ORDER BY adresse_id DESC
) a USING(person_id)
ORDER BY p.person_id ASC
);';
if(!$db->db_query($qry))
echo '<strong>public.vw_msg_vars_person: '.$db->db_last_error().'</strong><br>';
else
echo '<br>public.vw_msg_vars_person view created';
$qry = 'GRANT SELECT ON TABLE public.vw_msg_vars_person TO web;';
if(!$db->db_query($qry))
echo '<strong>public.vw_msg_vars_person: '.$db->db_last_error().'</strong><br>';
else
echo '<br>Granted privileges to <strong>web</strong> on public.vw_msg_vars_person';
$qry = 'GRANT SELECT ON TABLE public.vw_msg_vars_person TO vilesci;';
if(!$db->db_query($qry))
echo '<strong>public.vw_msg_vars_person: '.$db->db_last_error().'</strong><br>';
else
echo '<br>Granted privileges to <strong>vilesci</strong> on public.vw_msg_vars_person';
}
//Spalte anmerkung und rechnungsadresse in tbl_adresse
if(!$result = @$db->db_query("SELECT rechnungsadresse FROM public.tbl_adresse LIMIT 1"))
{
@@ -1082,6 +1151,8 @@ if (!$result = @$db->db_query("SELECT 1 FROM system.tbl_verarbeitungstaetigkeit"
VALUES('lehrauftraege','Lehraufträge','{\'Lehraufträge\',\'Lehraufträge\'}', true);
INSERT INTO system.tbl_verarbeitungstaetigkeit(taetigkeit_kurzbz, bezeichnung, bezeichnung_mehrsprachig, aktiv)
VALUES('datenwartung','Datenwartung','{\'Datenwartung\',\'Datenwartung\'}', true);
INSERT INTO system.tbl_verarbeitungstaetigkeit(taetigkeit_kurzbz, bezeichnung, bezeichnung_mehrsprachig, aktiv)
VALUES('kommunikation','Kommunikation','{\'Kommunikation\',\'Kommunikation\'}', true);
GRANT SELECT, UPDATE, INSERT, DELETE ON system.tbl_verarbeitungstaetigkeit TO vilesci;
GRANT SELECT ON system.tbl_verarbeitungstaetigkeit TO web;
+4 -1
View File
@@ -92,7 +92,10 @@ printValue("php-curl", extension_loaded('curl'));
$returnArray = array();
exec('unoconv --version',$returnArray);
if(isset($returnArray[0]))
$unoconvVersion = explode(' ',$returnArray[0])[1];
{
$hlp = explode(' ',$returnArray[0]);
$unoconvVersion = $hlp[1];
}
else
$unoconvVersion = false;
-11
View File
@@ -1,11 +0,0 @@
INSERT INTO bis.tbl_bundesland VALUES (1,'B','Burgenland');
INSERT INTO bis.tbl_bundesland VALUES (2,'K','Kärnten');
INSERT INTO bis.tbl_bundesland VALUES (3,'','Niederösterreich');
INSERT INTO bis.tbl_bundesland VALUES (4,'','Oberösterreich');
INSERT INTO bis.tbl_bundesland VALUES (5,'S','Salzburg');
INSERT INTO bis.tbl_bundesland VALUES (6,'St','Steiermark');
INSERT INTO bis.tbl_bundesland VALUES (7,'T','Tirol');
INSERT INTO bis.tbl_bundesland VALUES (8,'V','Voralberg');
INSERT INTO bis.tbl_bundesland VALUES (9,'W','Wien');
INSERT INTO bis.tbl_bundesland VALUES (10,'EU','Ausland EU');
INSERT INTO bis.tbl_bundesland VALUES (11,'nichtEU','Ausland nicht EU');
File diff suppressed because it is too large Load Diff
-212
View File
@@ -1,212 +0,0 @@
SET search_path = bis, pg_catalog;
INSERT INTO tbl_nation VALUES ('A', 'I', true, true, 'EU', 'Österreich', 'Österreich', 'Austria', NULL);
INSERT INTO tbl_nation VALUES ('ADN', 'E', NULL, NULL, 'AS', 'Jemen (Süd)', 'Jemen (demokrat. VR/Süd)', 'South Yemen', true);
INSERT INTO tbl_nation VALUES ('AFG', 'E', NULL, NULL, 'AS', 'Afghanistan', 'Afghanistan', 'Afghanistan', NULL);
INSERT INTO tbl_nation VALUES ('AGL', 'E', NULL, NULL, 'AF', 'Angola', 'Angola', 'Angola', NULL);
INSERT INTO tbl_nation VALUES ('AGN', 'E', NULL, NULL, 'AF', 'Guinea (Äquat.)', 'Guinea (Äquatorial-g.)', 'Equatorial Guinea', NULL);
INSERT INTO tbl_nation VALUES ('AL', 'E', NULL, NULL, 'EU', 'Albanien', 'Albanien', 'Albania', NULL);
INSERT INTO tbl_nation VALUES ('AND', 'I', NULL, NULL, 'EU', 'Andorra', 'Andorra', 'Andorra', NULL);
INSERT INTO tbl_nation VALUES ('ARM', 'E', NULL, NULL, 'AS', 'Armenien', 'Armenien', 'Armenia', NULL);
INSERT INTO tbl_nation VALUES ('ASB', 'E', NULL, NULL, 'AS', 'Aserbaidschan', 'Aserbaidschan', 'Azerbaijan', NULL);
INSERT INTO tbl_nation VALUES ('ATB', 'E', NULL, NULL, 'AM', 'Antigua/Barbuda', 'Antigua und Barbuda', 'Antigua and Barbuda', NULL);
INSERT INTO tbl_nation VALUES ('AUS', 'I', NULL, NULL, 'AU', 'Australien', 'Australien', 'Australia', NULL);
INSERT INTO tbl_nation VALUES ('B', 'I', true, true, 'EU', 'Belgien', 'Belgien', 'Belgium', NULL);
INSERT INTO tbl_nation VALUES ('BAN', 'E', NULL, NULL, 'AS', 'Bangladesch', 'Bangladesch', 'Bangladesh', NULL);
INSERT INTO tbl_nation VALUES ('BDS', 'E', NULL, NULL, 'AM', 'Barbados', 'Barbados', 'Barbados', NULL);
INSERT INTO tbl_nation VALUES ('BG', 'H', NULL, NULL, 'EU', 'Bulgarien', 'Bulgarien', 'Bulgaria', NULL);
INSERT INTO tbl_nation VALUES ('BH', 'E', NULL, NULL, 'AM', 'Honduras', 'Honduras', 'Honduras', NULL);
INSERT INTO tbl_nation VALUES ('BHU', 'E', NULL, NULL, 'AS', 'Bhutan', 'Bhutan', 'Bhutan', NULL);
INSERT INTO tbl_nation VALUES ('BLR', 'H', NULL, NULL, 'EU', 'Weißrußland', 'Weißrußland', 'Belarus', NULL);
INSERT INTO tbl_nation VALUES ('BLZ', 'E', NULL, NULL, 'AM', 'Belize', 'Belize', 'Belize', NULL);
INSERT INTO tbl_nation VALUES ('BOL', 'E', NULL, NULL, 'AM', 'Bolivien', 'Bolivien', 'Bolivia', NULL);
INSERT INTO tbl_nation VALUES ('BR', 'E', NULL, NULL, 'AM', 'Brasilien', 'Brasilien', 'Brazil', NULL);
INSERT INTO tbl_nation VALUES ('BRG', 'E', NULL, NULL, 'AM', 'Guyana', 'Guyana', 'Guyana', NULL);
INSERT INTO tbl_nation VALUES ('BRN', 'E', NULL, NULL, 'AS', 'Bahrein', 'Bahrein', 'Bahrain', NULL);
INSERT INTO tbl_nation VALUES ('BRU', 'H', NULL, NULL, 'AS', 'Brunei', 'Brunei', 'Brunei', NULL);
INSERT INTO tbl_nation VALUES ('BS', 'H', NULL, NULL, 'AM', 'Bahamas', 'Bahamas', 'Bahamas', NULL);
INSERT INTO tbl_nation VALUES ('BSH', 'E', NULL, NULL, 'EU', 'Bosnien-Herzeg.', 'Bosnien-Herzegowina', 'Bosnia and Herzegovina', NULL);
INSERT INTO tbl_nation VALUES ('BTS', 'E', NULL, NULL, 'AF', 'Bophutatswana', 'Bophutatswana', 'Bophutatswana', true);
INSERT INTO tbl_nation VALUES ('BUR', 'E', NULL, NULL, 'AS', 'Myanmar (Birma)', 'Myanmar (Birma)', 'Myanmar', NULL);
INSERT INTO tbl_nation VALUES ('C', 'E', NULL, NULL, 'AM', 'Kuba', 'Kuba', 'Cuba', NULL);
INSERT INTO tbl_nation VALUES ('CAM', 'E', NULL, NULL, 'AF', 'Kamerun', 'Kamerun', 'Cameroon', NULL);
INSERT INTO tbl_nation VALUES ('CDN', 'I', NULL, NULL, 'AM', 'Kanada', 'Kanada', 'Canada', NULL);
INSERT INTO tbl_nation VALUES ('CH', 'I', NULL, NULL, 'EU', 'Schweiz', 'Schweiz', 'Switzerland', NULL);
INSERT INTO tbl_nation VALUES ('CHF', 'E', NULL, NULL, 'AS', 'China (VR)', 'China (Volksrepublik)', 'China', NULL);
INSERT INTO tbl_nation VALUES ('CI', 'E', NULL, NULL, 'AF', 'Cote d''Ivoire', 'Cote d''Ivoire', 'Ivory Coast', NULL);
INSERT INTO tbl_nation VALUES ('CL', 'E', NULL, NULL, 'AS', 'Sri Lanka', 'Sri Lanka', 'Sri Lanka', NULL);
INSERT INTO tbl_nation VALUES ('CO', 'E', NULL, NULL, 'AM', 'Kolumbien', 'Kolumbien', 'Columbia', NULL);
INSERT INTO tbl_nation VALUES ('CR', 'E', NULL, NULL, 'AM', 'Kostarika', 'Kostarika', 'Costa Rica', NULL);
INSERT INTO tbl_nation VALUES ('CRO', 'E', NULL, NULL, 'EU', 'Kroatien', 'Kroatien', 'Croatia', NULL);
INSERT INTO tbl_nation VALUES ('CS', 'I', NULL, NULL, 'EU', 'Tschechoslowakei', 'Tschechoslowakei', 'Czechoslovakia', true);
INSERT INTO tbl_nation VALUES ('CSK', 'E', NULL, NULL, 'AF', 'Ciskei', 'Ciskei', 'Ciskei', true);
INSERT INTO tbl_nation VALUES ('CY', 'H', NULL, NULL, 'EU', 'Zypern', 'Zypern', 'Cyprus', NULL);
INSERT INTO tbl_nation VALUES ('D', 'I', true, true, 'EU', 'Deutschland', 'Deutschland', 'Germany', NULL);
INSERT INTO tbl_nation VALUES ('DCH', 'E', NULL, NULL, 'AM', 'Dominikan. Rep.', 'Dominikanische Republik', 'Dominican Republic', NULL);
INSERT INTO tbl_nation VALUES ('DDR', 'I', NULL, NULL, 'EU', 'DDR', 'Deutschland (DDR)', 'German Democratic Rep.', true);
INSERT INTO tbl_nation VALUES ('DJI', 'E', NULL, NULL, 'AF', 'Dschibuti', 'Dschibuti', 'Djibouti', NULL);
INSERT INTO tbl_nation VALUES ('DK', 'I', true, true, 'EU', 'Dänemark', 'Dänemark', 'Denmark', NULL);
INSERT INTO tbl_nation VALUES ('DVK', 'E', NULL, NULL, 'AS', 'Korea (Nord)', 'Korea (demokrat. VR/Nord)', 'Korea (democr.P.Republ.)', NULL);
INSERT INTO tbl_nation VALUES ('DY', 'E', NULL, NULL, 'AF', 'Benin', 'Benin', 'Benin', NULL);
INSERT INTO tbl_nation VALUES ('DZ', 'E', NULL, NULL, 'AF', 'Algerien', 'Algerien', 'Algeria', NULL);
INSERT INTO tbl_nation VALUES ('E', 'I', true, true, 'EU', 'Spanien', 'Spanien', 'Spain', NULL);
INSERT INTO tbl_nation VALUES ('EAK', 'E', NULL, NULL, 'AF', 'Kenia', 'Kenia', 'Kenya', NULL);
INSERT INTO tbl_nation VALUES ('EAT', 'E', NULL, NULL, 'AF', 'Tansania', 'Tansania', 'Tanzania', NULL);
INSERT INTO tbl_nation VALUES ('EAU', 'E', NULL, NULL, 'AF', 'Uganda', 'Uganda', 'Uganda', NULL);
INSERT INTO tbl_nation VALUES ('EC', 'E', NULL, NULL, 'AM', 'Ekuador', 'Ekuador', 'Ecuador', NULL);
INSERT INTO tbl_nation VALUES ('ELD', 'H', NULL, NULL, 'EU', 'Estland', 'Estland', 'Estonia', NULL);
INSERT INTO tbl_nation VALUES ('ERI', 'E', NULL, NULL, 'AF', 'Eritrea', 'Eritrea', 'Eritrea', NULL);
INSERT INTO tbl_nation VALUES ('ES', 'E', NULL, NULL, 'AM', 'El Salvador', 'El Salvador', 'El Salvador', NULL);
INSERT INTO tbl_nation VALUES ('ET', 'E', NULL, NULL, 'AF', 'Ägypten', 'Ägypten', 'Egypt', NULL);
INSERT INTO tbl_nation VALUES ('ETH', 'E', NULL, NULL, 'AF', 'Äthiopien', 'Äthiopien', 'Ethiopia', NULL);
INSERT INTO tbl_nation VALUES ('F', 'I', true, true, 'EU', 'Frankreich', 'Frankreich', 'France', NULL);
INSERT INTO tbl_nation VALUES ('FJI', 'E', NULL, NULL, 'AU', 'Fidschi', 'Fidschi', 'Fiji', NULL);
INSERT INTO tbl_nation VALUES ('FL', 'I', NULL, true, 'EU', 'Liechtenstein', 'Liechtenstein', 'Liechtenstein', NULL);
INSERT INTO tbl_nation VALUES ('GAB', 'E', NULL, NULL, 'AF', 'Gabun', 'Gabun', 'Gabon', NULL);
INSERT INTO tbl_nation VALUES ('GB', 'I', true, true, 'EU', 'GB u. Nordirland', 'Grossbrit. u. Nordirland', 'Great Britain & N.Ireland', NULL);
INSERT INTO tbl_nation VALUES ('GCA', 'E', NULL, NULL, 'AM', 'Guatemala', 'Guatemala', 'Guatemala', NULL);
INSERT INTO tbl_nation VALUES ('GG', 'E', NULL, NULL, 'AS', 'Georgien', 'Georgien', 'Georgia', NULL);
INSERT INTO tbl_nation VALUES ('GH', 'E', NULL, NULL, 'AF', 'Ghana', 'Ghana', 'Ghana', NULL);
INSERT INTO tbl_nation VALUES ('GN', 'E', NULL, NULL, 'AF', 'Guinea', 'Guinea', 'Guinea', NULL);
INSERT INTO tbl_nation VALUES ('GNB', 'E', NULL, NULL, 'AF', 'Guinea-Bissau', 'Guinea-Bissau', 'Guinea-Bissau', NULL);
INSERT INTO tbl_nation VALUES ('GR', 'I', true, true, 'EU', 'Griechenland', 'Griechenland', 'Greece', NULL);
INSERT INTO tbl_nation VALUES ('H', 'H', NULL, NULL, 'EU', 'Ungarn', 'Ungarn', 'Hungary', NULL);
INSERT INTO tbl_nation VALUES ('HV', 'E', NULL, NULL, 'AF', 'Burkina Faso', 'Burkina Faso', 'Burkina Faso', NULL);
INSERT INTO tbl_nation VALUES ('I', 'I', true, true, 'EU', 'Italien', 'Italien', 'Italy', NULL);
INSERT INTO tbl_nation VALUES ('IL', 'H', NULL, NULL, 'AS', 'Israel', 'Israel', 'Israel', NULL);
INSERT INTO tbl_nation VALUES ('IND', 'E', NULL, NULL, 'AS', 'Indien', 'Indien', 'India', NULL);
INSERT INTO tbl_nation VALUES ('IR', 'E', NULL, NULL, 'AS', 'Iran', 'Iran', 'Iran', NULL);
INSERT INTO tbl_nation VALUES ('IRL', 'I', true, true, 'EU', 'Irland', 'Irland', 'Ireland', NULL);
INSERT INTO tbl_nation VALUES ('IRQ', 'E', NULL, NULL, 'AS', 'Irak', 'Irak', 'Iraq', NULL);
INSERT INTO tbl_nation VALUES ('IS', 'I', NULL, true, 'EU', 'Island', 'Island', 'Iceland', NULL);
INSERT INTO tbl_nation VALUES ('IST', 'I', true, true, 'EU', 'Italien(S-Tirol)', 'Italien (Südtirol)', 'Italy', NULL);
INSERT INTO tbl_nation VALUES ('J', 'I', NULL, NULL, 'AS', 'Japan', 'Japan', 'Japan', NULL);
INSERT INTO tbl_nation VALUES ('JA', 'E', NULL, NULL, 'AM', 'Jamaika', 'Jamaika', 'Jamaica', NULL);
INSERT INTO tbl_nation VALUES ('JEM', 'E', NULL, NULL, 'AS', 'Jemen', 'Jemen', 'Yemen', NULL);
INSERT INTO tbl_nation VALUES ('JOR', 'E', NULL, NULL, 'AS', 'Jordanien', 'Jordanien', 'Jordan', NULL);
INSERT INTO tbl_nation VALUES ('KAS', 'E', NULL, NULL, 'AS', 'Kasachstan', 'Kasachstan', 'Kazakhstan', NULL);
INSERT INTO tbl_nation VALUES ('KIR', 'E', NULL, NULL, 'AU', 'Kiribati', 'Kiribati', 'Kiribati', NULL);
INSERT INTO tbl_nation VALUES ('KM', 'E', NULL, NULL, 'AF', 'Komoren', 'Komoren', 'Comoros', NULL);
INSERT INTO tbl_nation VALUES ('KRG', 'E', NULL, NULL, 'AS', 'Kirgistan', 'Kirgistan', 'Kyrgyztan', NULL);
INSERT INTO tbl_nation VALUES ('KT', 'H', NULL, NULL, 'AS', 'Kuwait', 'Kuwait', 'Kuwait', NULL);
INSERT INTO tbl_nation VALUES ('KV', 'E', NULL, NULL, 'AF', 'Kap Verde', 'Kap Verde', 'Cap Verde', NULL);
INSERT INTO tbl_nation VALUES ('L', 'I', true, true, 'EU', 'Luxemburg', 'Luxemburg', 'Luxembourg', NULL);
INSERT INTO tbl_nation VALUES ('LAO', 'E', NULL, NULL, 'AS', 'Laos', 'Laos', 'Laos', NULL);
INSERT INTO tbl_nation VALUES ('LB', 'E', NULL, NULL, 'AF', 'Liberia', 'Liberia', 'Liberia', NULL);
INSERT INTO tbl_nation VALUES ('LIT', 'H', NULL, NULL, 'EU', 'Litauen', 'Litauen', 'Lithuania', NULL);
INSERT INTO tbl_nation VALUES ('LLD', 'H', NULL, NULL, 'EU', 'Lettland', 'Lettland', 'Latvia', NULL);
INSERT INTO tbl_nation VALUES ('LS', 'E', NULL, NULL, 'AF', 'Lesotho', 'Lesotho', 'Lesotho', NULL);
INSERT INTO tbl_nation VALUES ('LT', 'H', NULL, NULL, 'AF', 'Libyen', 'Libyen', 'Libya', NULL);
INSERT INTO tbl_nation VALUES ('M', 'E', NULL, NULL, 'EU', 'Malta', 'Malta', 'Malta', NULL);
INSERT INTO tbl_nation VALUES ('MA', 'E', NULL, NULL, 'AF', 'Marokko', 'Marokko', 'Morocco', NULL);
INSERT INTO tbl_nation VALUES ('MAL', 'E', NULL, NULL, 'AS', 'Malaysia', 'Malaysia', 'Malaysia', NULL);
INSERT INTO tbl_nation VALUES ('MAZ', 'E', NULL, NULL, 'EU', 'Mazedonien', 'Mazedonien (eh.Jug.Rep.)', 'Macedonia', NULL);
INSERT INTO tbl_nation VALUES ('MBK', 'E', NULL, NULL, 'AF', 'Mosambik', 'Mosambik', 'Mozambique', NULL);
INSERT INTO tbl_nation VALUES ('MC', 'I', NULL, NULL, 'EU', 'Monaco', 'Monaco', 'Monaco', NULL);
INSERT INTO tbl_nation VALUES ('MDV', 'E', NULL, NULL, 'AS', 'Malediven', 'Malediven', 'Maldives', NULL);
INSERT INTO tbl_nation VALUES ('MEX', 'E', NULL, NULL, 'AM', 'Mexiko', 'Mexiko', 'Mexico', NULL);
INSERT INTO tbl_nation VALUES ('MGL', 'E', NULL, NULL, 'AS', 'Mongolei', 'Mongolei', 'Mongolia', NULL);
INSERT INTO tbl_nation VALUES ('MIK', 'E', NULL, NULL, 'AU', 'Mikronesien', 'Mikronesien', 'Micronesia', NULL);
INSERT INTO tbl_nation VALUES ('MLD', 'E', NULL, NULL, 'EU', 'Moldova', 'Moldova', 'Moldova', NULL);
INSERT INTO tbl_nation VALUES ('MS', 'E', NULL, NULL, 'AF', 'Mauritius', 'Mauritius', 'Mauritius', NULL);
INSERT INTO tbl_nation VALUES ('MSH', 'E', NULL, NULL, 'AU', 'Marshallinseln', 'Marshallinseln', 'Marshall Islands', NULL);
INSERT INTO tbl_nation VALUES ('MW', 'E', NULL, NULL, 'AF', 'Malawi', 'Malawi', 'Malawi', NULL);
INSERT INTO tbl_nation VALUES ('N', 'I', NULL, true, 'EU', 'Norwegen', 'Norwegen', 'Norway', NULL);
INSERT INTO tbl_nation VALUES ('NAM', 'E', NULL, NULL, 'AF', 'Namibia', 'Namibia', 'Namibia', NULL);
INSERT INTO tbl_nation VALUES ('NEP', 'E', NULL, NULL, 'AS', 'Nepal', 'Nepal', 'Nepal', NULL);
INSERT INTO tbl_nation VALUES ('NIC', 'E', NULL, NULL, 'AM', 'Nikaragua', 'Nikaragua', 'Nicaragua', NULL);
INSERT INTO tbl_nation VALUES ('NIG', 'E', NULL, NULL, 'AF', 'Niger', 'Niger', 'Niger', NULL);
INSERT INTO tbl_nation VALUES ('NL', 'I', true, true, 'EU', 'Niederlande', 'Niederlande', 'Netherlands', NULL);
INSERT INTO tbl_nation VALUES ('NR', 'E', NULL, NULL, 'AU', 'Nauru', 'Nauru', 'Nauru', NULL);
INSERT INTO tbl_nation VALUES ('NZ', 'I', NULL, NULL, 'AU', 'Neuseeland', 'Neuseeland', 'New Zealand', NULL);
INSERT INTO tbl_nation VALUES ('OMN', 'E', NULL, NULL, 'AS', 'Oman', 'Oman', 'Oman', NULL);
INSERT INTO tbl_nation VALUES ('P', 'I', true, true, 'EU', 'Portugal', 'Portugal', 'Portugal', NULL);
INSERT INTO tbl_nation VALUES ('PA', 'E', NULL, NULL, 'AM', 'Panama', 'Panama', 'Panama', NULL);
INSERT INTO tbl_nation VALUES ('PAK', 'E', NULL, NULL, 'AS', 'Pakistan', 'Pakistan', 'Pakistan', NULL);
INSERT INTO tbl_nation VALUES ('PE', 'E', NULL, NULL, 'AM', 'Peru', 'Peru', 'Peru', NULL);
INSERT INTO tbl_nation VALUES ('PI', 'E', NULL, NULL, 'AS', 'Philippinen', 'Philippinen', 'Philippines', NULL);
INSERT INTO tbl_nation VALUES ('PL', 'H', NULL, NULL, 'EU', 'Polen', 'Polen', 'Poland', NULL);
INSERT INTO tbl_nation VALUES ('PNG', 'E', NULL, NULL, 'AU', 'Papua-Neuguinea', 'Papua-Neuguinea', 'Papua New Guinea', NULL);
INSERT INTO tbl_nation VALUES ('PY', 'E', NULL, NULL, 'AM', 'Paraguay', 'Paraguay', 'Paraguay', NULL);
INSERT INTO tbl_nation VALUES ('QTR', 'H', NULL, NULL, 'AS', 'Katar', 'Katar', 'Qatar', NULL);
INSERT INTO tbl_nation VALUES ('R', 'H', NULL, NULL, 'EU', 'Rumänien', 'Rumänien', 'Romania', NULL);
INSERT INTO tbl_nation VALUES ('RA', 'E', NULL, NULL, 'AM', 'Argentinien', 'Argentinien', 'Argentina', NULL);
INSERT INTO tbl_nation VALUES ('RB', 'E', NULL, NULL, 'AF', 'Botswana', 'Botswana', 'Botswana', NULL);
INSERT INTO tbl_nation VALUES ('RC', 'H', NULL, NULL, 'AS', 'China (Taiwan)', 'China (Republik/Taiwan)', 'Taiwan', NULL);
INSERT INTO tbl_nation VALUES ('RCA', 'E', NULL, NULL, 'AF', 'Zentralafr. Rep.', 'Zentralafrikan. Republik', 'Central African Republic', NULL);
INSERT INTO tbl_nation VALUES ('RCB', 'E', NULL, NULL, 'AF', 'Kongo (Republik)', 'Kongo (Republik)', 'Congo (Rep.)', NULL);
INSERT INTO tbl_nation VALUES ('RCH', 'E', NULL, NULL, 'AM', 'Chile', 'Chile', 'Chile', NULL);
INSERT INTO tbl_nation VALUES ('RH', 'E', NULL, NULL, 'AM', 'Haiti', 'Haiti', 'Haiti', NULL);
INSERT INTO tbl_nation VALUES ('RI', 'E', NULL, NULL, 'AS', 'Indonesien', 'Indonesien', 'Indonesia', NULL);
INSERT INTO tbl_nation VALUES ('RIM', 'E', NULL, NULL, 'AF', 'Mauretanien', 'Mauretanien', 'Mauritania', NULL);
INSERT INTO tbl_nation VALUES ('RL', 'E', NULL, NULL, 'AS', 'Libanon', 'Libanon', 'Lebanon', NULL);
INSERT INTO tbl_nation VALUES ('RM', 'E', NULL, NULL, 'AF', 'Madagaskar', 'Madagaskar', 'Madagascar', NULL);
INSERT INTO tbl_nation VALUES ('RMM', 'E', NULL, NULL, 'AF', 'Mali', 'Mali', 'Mali', NULL);
INSERT INTO tbl_nation VALUES ('ROK', 'H', NULL, NULL, 'AS', 'Korea (Süd)', 'Korea (Republik/Süd)', 'Republic of Korea', NULL);
INSERT INTO tbl_nation VALUES ('RSF', 'H', NULL, NULL, 'EU', 'Rußland', 'Rußland', 'Russian Federation', NULL);
INSERT INTO tbl_nation VALUES ('RSM', 'I', NULL, NULL, 'EU', 'San Marino', 'San Marino', 'San Marino', NULL);
INSERT INTO tbl_nation VALUES ('RSR', 'E', NULL, NULL, 'AF', 'Simbabwe', 'Simbabwe', 'Zimbabwe', NULL);
INSERT INTO tbl_nation VALUES ('RU', 'E', NULL, NULL, 'AF', 'Burundi', 'Burundi', 'Burundi', NULL);
INSERT INTO tbl_nation VALUES ('RWA', 'E', NULL, NULL, 'AF', 'Rwanda', 'Rwanda', 'Rwanda', NULL);
INSERT INTO tbl_nation VALUES ('S', 'I', true, true, 'EU', 'Schweden', 'Schweden', 'Sweden', NULL);
INSERT INTO tbl_nation VALUES ('SA', 'E', NULL, NULL, 'AS', 'Saudi-Arabien', 'Saudi-Arabien', 'Saudi Arabia', NULL);
INSERT INTO tbl_nation VALUES ('SCN', 'E', NULL, NULL, 'AM', 'St.Kitts / Nevis', 'Sankt Kitts und Nevis', 'Saint Kitts and Nevis', NULL);
INSERT INTO tbl_nation VALUES ('SD', 'E', NULL, NULL, 'AF', 'Swasiland', 'Swasiland', 'Swaziland', NULL);
INSERT INTO tbl_nation VALUES ('SF', 'I', true, true, 'EU', 'Finnland', 'Finnland', 'Finland', NULL);
INSERT INTO tbl_nation VALUES ('SGP', 'H', NULL, NULL, 'AS', 'Singapur', 'Singapur', 'Singapore', NULL);
INSERT INTO tbl_nation VALUES ('SHR', 'E', NULL, NULL, 'AF', 'Sahara', 'Sahara', 'Sahara', NULL);
INSERT INTO tbl_nation VALUES ('SLM', 'E', NULL, NULL, 'AU', 'Salomonen', 'Salomonen', 'Salomon Islands', NULL);
INSERT INTO tbl_nation VALUES ('SLO', 'E', NULL, NULL, 'EU', 'Slowenien', 'Slowenien', 'Slovenia', NULL);
INSERT INTO tbl_nation VALUES ('SME', 'E', NULL, NULL, 'AM', 'Surinam', 'Surinam', 'Suriname', NULL);
INSERT INTO tbl_nation VALUES ('SN', 'E', NULL, NULL, 'AF', 'Senegal', 'Senegal', 'Senegal', NULL);
INSERT INTO tbl_nation VALUES ('SP', 'E', NULL, NULL, 'AF', 'Somalia', 'Somalia', 'Somalia', NULL);
INSERT INTO tbl_nation VALUES ('SQ', 'H', NULL, NULL, 'EU', 'Slowakei', 'Slowakei', 'Slovakia', NULL);
INSERT INTO tbl_nation VALUES ('STP', 'E', NULL, NULL, 'AF', 'Sao Tome/Princ.', 'Sao Tome und Principe', 'Sao Tome and Principe', NULL);
INSERT INTO tbl_nation VALUES ('SU', 'I', NULL, NULL, 'EU', 'Sowjetunion', 'Sowjetunion', 'Soviet Union', true);
INSERT INTO tbl_nation VALUES ('SUD', 'E', NULL, NULL, 'AF', 'Sudan', 'Sudan', 'Sudan', NULL);
INSERT INTO tbl_nation VALUES ('SY', 'E', NULL, NULL, 'AF', 'Seychellen', 'Seychellen', 'Seychelles', NULL);
INSERT INTO tbl_nation VALUES ('SYR', 'E', NULL, NULL, 'AS', 'Syrien', 'Syrien', 'Syria', NULL);
INSERT INTO tbl_nation VALUES ('T', 'E', NULL, NULL, 'AS', 'Thailand', 'Thailand', 'Thailand', NULL);
INSERT INTO tbl_nation VALUES ('TA', 'E', NULL, NULL, 'AU', 'Tonga', 'Tonga', 'Tonga', NULL);
INSERT INTO tbl_nation VALUES ('TCH', 'H', NULL, NULL, 'EU', 'Tschechien', 'Tschechien', 'Czech Republic', NULL);
INSERT INTO tbl_nation VALUES ('TD', 'E', NULL, NULL, 'AF', 'Tschad', 'Tschad', 'Chad', NULL);
INSERT INTO tbl_nation VALUES ('TDS', 'E', NULL, NULL, 'AS', 'Tadschikistan', 'Tadschikistan', 'Tajikistan', NULL);
INSERT INTO tbl_nation VALUES ('TG', 'E', NULL, NULL, 'AF', 'Togo', 'Togo', 'Togo', NULL);
INSERT INTO tbl_nation VALUES ('TKM', 'E', NULL, NULL, 'AS', 'Turkmenistan', 'Turkmenistan', 'Turkmenistan', NULL);
INSERT INTO tbl_nation VALUES ('TN', 'E', NULL, NULL, 'AF', 'Tunesien', 'Tunesien', 'Tunesia', NULL);
INSERT INTO tbl_nation VALUES ('TR', 'E', NULL, NULL, 'EU', 'Türkei', 'Türkei', 'Turkey', NULL);
INSERT INTO tbl_nation VALUES ('TSK', 'E', NULL, NULL, 'AF', 'Transkei', 'Transkei', 'Transkei', true);
INSERT INTO tbl_nation VALUES ('TT', 'E', NULL, NULL, 'AM', 'Trinidad/Tobago', 'Trinidad und Tobago', 'Trinidad & Tobago', NULL);
INSERT INTO tbl_nation VALUES ('TVL', 'E', NULL, NULL, 'AU', 'Tuvalu', 'Tuvalu', 'Tuvalu', NULL);
INSERT INTO tbl_nation VALUES ('U', 'E', NULL, NULL, 'AM', 'Uruguay', 'Uruguay', 'Uruguay', NULL);
INSERT INTO tbl_nation VALUES ('UBK', 'E', NULL, NULL, 'AS', 'Usbekistan', 'Usbekistan', 'Uzbekistan', NULL);
INSERT INTO tbl_nation VALUES ('UKR', 'H', NULL, NULL, 'EU', 'Ukraine', 'Ukraine', 'Ukraine', NULL);
INSERT INTO tbl_nation VALUES ('USA', 'I', NULL, NULL, 'AM', 'USA', 'Vereinigte St. v. Amerika', 'United States of America', NULL);
INSERT INTO tbl_nation VALUES ('V', 'I', NULL, NULL, 'EU', 'Vatikan', 'Vatikan', 'Vatican', NULL);
INSERT INTO tbl_nation VALUES ('VDA', 'E', NULL, NULL, 'AF', 'Venda', 'Venda', 'Venda', true);
INSERT INTO tbl_nation VALUES ('VE', 'H', NULL, NULL, 'AS', 'V. arab. Emirate', 'Vereinigte arab. Emirate', 'United Arab Emirates', NULL);
INSERT INTO tbl_nation VALUES ('VN', 'E', NULL, NULL, 'AS', 'Vietnam', 'Vietnam', 'Viet Nam', NULL);
INSERT INTO tbl_nation VALUES ('VTU', 'E', NULL, NULL, 'AU', 'Vanuatu', 'Vanuatu', 'Vanuatu', NULL);
INSERT INTO tbl_nation VALUES ('WAG', 'E', NULL, NULL, 'AF', 'Gambia', 'Gambia', 'Gambia', NULL);
INSERT INTO tbl_nation VALUES ('WAL', 'E', NULL, NULL, 'AF', 'Sierra Leone', 'Sierra Leone', 'Sierra Leone', NULL);
INSERT INTO tbl_nation VALUES ('WAN', 'E', NULL, NULL, 'AF', 'Nigeria', 'Nigeria', 'Nigeria', NULL);
INSERT INTO tbl_nation VALUES ('WD', 'E', NULL, NULL, 'AM', 'Dominica', 'Dominica', 'Dominica', NULL);
INSERT INTO tbl_nation VALUES ('WG', 'E', NULL, NULL, 'AM', 'Grenada', 'Grenada', 'Grenada', NULL);
INSERT INTO tbl_nation VALUES ('WL', 'E', NULL, NULL, 'AM', 'Sankt Lucia', 'Sankt Lucia', 'Saint Lucia', NULL);
INSERT INTO tbl_nation VALUES ('WS', 'E', NULL, NULL, 'AU', 'Samoa', 'Samoa', 'Samoa', NULL);
INSERT INTO tbl_nation VALUES ('WV', 'E', NULL, NULL, 'AM', 'St.Vincent/Gren.', 'Sankt Vincent/Grenadinen', 'Saint Vincent/Grenadines', NULL);
INSERT INTO tbl_nation VALUES ('XXX', 'X', NULL, NULL, NULL, 'Stbg. ungeklärt', 'Stbg. ungeklärt', 'unclear', NULL);
INSERT INTO tbl_nation VALUES ('YU', 'E', NULL, NULL, 'EU', 'Jugoslawien', 'Jugoslawien (und Kosovo)', 'Yugoslavia', NULL);
INSERT INTO tbl_nation VALUES ('YV', 'E', NULL, NULL, 'AM', 'Venezuela', 'Venezuela', 'Venezuela', NULL);
INSERT INTO tbl_nation VALUES ('Z', 'E', NULL, NULL, 'AF', 'Sambia', 'Sambia', 'Zambia', NULL);
INSERT INTO tbl_nation VALUES ('ZA', 'E', NULL, NULL, 'AF', 'Südafrika', 'Südafrika', 'South Africa', NULL);
INSERT INTO tbl_nation VALUES ('ZR', 'E', NULL, NULL, 'AF', 'Kongo (Dem.Rep.)', 'Kongo (Demokrat.Republik)', 'Republic of the Congo', NULL);
INSERT INTO tbl_nation VALUES ('ZZZ', 'Z', NULL, NULL, NULL, 'Staatenlos', 'Staatenlos', 'stateless', NULL);
INSERT INTO tbl_nation VALUES ('PAL', 'E', NULL, NULL, 'AS', 'Palau Inseln', 'Palau Inseln', 'Palau Islands', NULL);
INSERT INTO tbl_nation VALUES ('PST', 'E', NULL, NULL, 'AS', 'Palästina', 'Palästina', 'Palestine', NULL);
INSERT INTO tbl_nation VALUES ('NU', 'E', NULL, NULL, 'AU', 'Niue', 'Niue', 'Niue', NULL);
INSERT INTO tbl_nation VALUES ('K', 'E', NULL, NULL, 'AS', 'Kambodscha', 'Königreich Kambodscha', 'Cambodia', NULL);
INSERT INTO tbl_nation VALUES ('SB', 'I', NULL, NULL, 'EU', 'Serbien', 'Republik Serbien', 'Republic of Serbia', NULL);
INSERT INTO tbl_nation VALUES ('SBM', 'I', NULL, NULL, 'EU', 'Serbien/Montenegro', 'Serbien/Montenegro', 'Serbia/Montenegro', NULL);
INSERT INTO tbl_nation VALUES ('MO', 'I', NULL, NULL, 'EU', 'Montenegro', 'Republik Montenegro', 'Republic of Montenegro', NULL);
-284
View File
@@ -1,284 +0,0 @@
-- INSERTS fuer St.Poelten DB
-- Erhalter
INSERT INTO public.tbl_erhalter(erhalter_kz, kurzbz, bezeichnung, dvr, logo, zvr) VALUES(13,'FHSTP', 'Fachhochschule St. Pölten', '','','');
-- OrgForm
INSERT INTO bis.tbl_orgform(orgform_kurzbz, code, bezeichnung) VALUES ('VZ', 1, 'Vollzeit');
INSERT INTO bis.tbl_orgform(orgform_kurzbz, code, bezeichnung) VALUES ('BB', 2, 'Berufsbegleitend');
INSERT INTO bis.tbl_orgform(orgform_kurzbz, code, bezeichnung) VALUES ('VBB', 3, 'Vollzeit und Berufsbeleitend');
INSERT INTO bis.tbl_orgform(orgform_kurzbz, code, bezeichnung) VALUES ('ZGS', 4, 'Zielgruppenspezifisch');
-- Studiengang
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('0','fh','d','Fachhochschule','1','A','1','13','VZ',null);
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('2','sb','d','xxxSozialarbeit- berufsbegleitend','8','C','2','13','VZ','14');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('1','vo','d','xxxVerkehrsinformatik und Verkehrsökologie','8','C','2','13','VZ','15');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('261','mt','b','Bakkalaureatsstudiengang Medientechnik','6','C','2','13','VZ','16');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('323','sa','m','Magisterstudiengang Sozialarbeit','3','C','2','13','VZ','17');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('410','is','b','Bakkalaureatsstudiengang IT Security','6','C','2','13','VZ','18');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('405','bc','b','Bakkalaureatsstudiengang Computersimulation','6','C','2','13','VZ','19');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('403','bm','b','Bachelorstudiengang Medienmanagement','6','C','2','13','VZ','20');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('409','mk','b','Bachelorstudiengang Media- und Kommunikationsberatung','6','C','2','13','VZ','21');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('407','di','b','Diätologie','6','C','2','13','VZ','23');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('408','pt','b','Physiotherapie','6','C','2','13','VZ','24');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('406','bs','b','Bachelorstudiengang Soziale Arbeit','6','C','2','13','VZ','22');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('38','tm','d','Telekommunikation und Medien','8','C','2','13','VZ','10');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('88','mm','d','Medienmanagement','8','C','2','13','VZ','11');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('95','cs','d','Computersimulation','8','C','2','13','VZ','12');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('96','so','d','Sozialarbeit','8','C','2','13','VZ','13');
INSERT INTO public.tbl_studiengang(studiengang_kz, kurzbz, typ, bezeichnung, max_semester, max_verband, max_gruppe, erhalter_kz, orgform_kurzbz, ext_id) VALUES('262','ma','m','Masterstudiengang Telekommunikation und Medien','3','C','2','13','VZ','25');
-- Sprache
INSERT INTO public.tbl_sprache(sprache) VALUES('German');
INSERT INTO public.tbl_sprache(sprache) VALUES('English');
INSERT INTO public.tbl_sprache(sprache) VALUES('Espanol');
-- Fachbereich
INSERT INTO public.tbl_fachbereich(fachbereich_kurzbz, bezeichnung, farbe, studiengang_kz, ext_id, aktiv) VALUES('Dummy','','','0',null,true);
-- Ausbildung
INSERT INTO bis.tbl_ausbildung VALUES (1, 'PhD', 'Universitätsabschluss mit Doktorat als Zweit- oder Drittabschluss oder PhD-Abschluss');
INSERT INTO bis.tbl_ausbildung VALUES (3, 'FH-Master', 'Fachhochschulabschluss auf Diplom- oder Masterebene');
INSERT INTO bis.tbl_ausbildung VALUES (4, 'Univ.-Bachelor', 'Universitäts- oder Hochschulabschluss auf Bachelorebene (einschließlich Kurzstudien)');
INSERT INTO bis.tbl_ausbildung VALUES (5, 'FH-Bachelor', 'Fachhochschulabschluss auf Bachelorebene');
INSERT INTO bis.tbl_ausbildung VALUES (6, 'Akad-Diplom', 'Diplom einer Akademie für Lehrerbildung, Akademie für Sozialarbeit, Medizinisch-technische Akademie, Hebammenakademie, Militärakademie oder einer anderen anerkannten postsekundären Bildungseinrichtung');
INSERT INTO bis.tbl_ausbildung VALUES (8, 'AHS', 'Reifeprüfung an einer allgemeinbildenden höheren Schule');
INSERT INTO bis.tbl_ausbildung VALUES (9, 'BHS', 'Reife- und Diplomprüfung einer berufsbildenden oder lehrer- und erzieherbildenden höheren Schule');
INSERT INTO bis.tbl_ausbildung VALUES (10, 'Lehrabschluss', 'Lehrabschlussprüfung, berufsbildende mittlere Schule oder vergleichbare Berufsausbildung');
INSERT INTO bis.tbl_ausbildung VALUES (11, 'Pflichtschule', 'Pflichtschule');
INSERT INTO bis.tbl_ausbildung VALUES (7, 'tertiär', 'Anderer tertiärer Bildungsabschluss (Kolleg; Meisterprüfung; Universitätslehrgang oder Lehrgang gemäß §14a Abs.3 FHStG, mit dem kein akademischer Grad verbunden war)');
INSERT INTO bis.tbl_ausbildung VALUES (2, 'Univ.-Master', 'Universitäts- oder Hochschulabschluss auf Diplom- oder Masterebene, Doktorat der Medizin bzw. der Human- oder Zahnmedizin oder Doktorat auf Grund von Studienvorschriften aus der Zeit vor dem Inkrafttretendes AHStG BGBl. Nr. 177/1966 oder Abschluss eines Universitätslehrganges oder Lehrganges universitären Charakters (§51 Abs. 2 Z 23 UG 2002 oder §§26 Abs.1 und 28 Abs.1 UniStG) oder eines Lehrganges zur Weiterbildung (§14a Abs.2 FHStG) mit Mastergrad');
-- Studiensemester
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2001', '2001-09-03', '2002-01-31', NULL, 'Wintersemester 2001/2002');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2006', '2006-02-13', '2006-07-01', 9, 'Sommersemester 2006');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2005', '2005-02-14', '2005-07-02', 7, 'Sommersemester 2005');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2004', '2004-02-03', '2004-07-03', 5, 'Sommersemester 2004');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2003', '2003-02-02', '2003-07-02', 3, 'Sommersemester 2003');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2002', '2002-02-01', '2002-07-01', 1, 'Sommersemester 2002');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2009', '2009-02-05', '2009-07-05', 15, 'Sommersemester 2009');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2007', '2007-02-12', '2007-07-01', 11, 'Sommersemester 2007');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('SS2008', '2008-02-04', '2008-07-04', 13, 'Sommersemester 2008');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2009', '2009-09-04', '2010-02-04', 16, 'Wintersemester 2009/2010');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2008', '2008-09-03', '2009-02-03', 14, 'Wintersemester 2008/2009');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2006', '2006-09-04', '2007-02-03', 10, 'Wintersemester 2006/2007');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2005', '2005-09-05', '2006-02-04', 8, 'Wintersemester 2005/2006');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2004', '2004-09-06', '2005-02-05', 6, 'Wintersemester 2004/2005');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2003', '2003-09-02', '2004-02-02', 4, 'Wintersemester 2003/2004');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2002', '2002-09-01', '2003-02-01', 2, 'Wintersemester 2002/2003');
INSERT INTO public.tbl_studiensemester(studiensemester_kurzbz, start, ende, ext_id, bezeichnung) VALUES ('WS2007', '2007-09-01', '2008-02-01', 12, 'Wintersemester 2007/2008');
-- tbl_kontakttyp; Type: TABLE DATA; Schema: public;
SET search_path = public, pg_catalog;
INSERT INTO tbl_kontakttyp VALUES ('email', 'E-Mail');
INSERT INTO tbl_kontakttyp VALUES ('telefon', 'Telefonnummer');
INSERT INTO tbl_kontakttyp VALUES ('mobil', 'Mobiltelefonnummer');
INSERT INTO tbl_kontakttyp VALUES ('fax', 'Faxnummer');
INSERT INTO tbl_kontakttyp VALUES ('so.tel', 'sonstige Telefonnummer');
-- tbl_ausbildung; Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_ausbildung VALUES (1, 'PhD', 'Universitätsabschluss mit Doktorat als Zweit- oder Drittabschluss oder PhD-Abschluss');
INSERT INTO tbl_ausbildung VALUES (3, 'FH-Master', 'Fachhochschulabschluss auf Diplom- oder Masterebene');
INSERT INTO tbl_ausbildung VALUES (4, 'Univ.-Bachelor', 'Universitäts- oder Hochschulabschluss auf Bachelorebene (einschließlich Kurzstudien)');
INSERT INTO tbl_ausbildung VALUES (5, 'FH-Bachelor', 'Fachhochschulabschluss auf Bachelorebene');
INSERT INTO tbl_ausbildung VALUES (6, 'Akad-Diplom', 'Diplom einer Akademie für Lehrerbildung, Akademie für Sozialarbeit, Medizinisch-technische Akademie, Hebammenakademie, Militärakademie oder einer anderen anerkannten postsekundären Bildungseinrichtung');
INSERT INTO tbl_ausbildung VALUES (8, 'AHS', 'Reifeprüfung an einer allgemeinbildenden höheren Schule');
INSERT INTO tbl_ausbildung VALUES (9, 'BHS', 'Reife- und Diplomprüfung einer berufsbildenden oder lehrer- und erzieherbildenden höheren Schule');
INSERT INTO tbl_ausbildung VALUES (10, 'Lehrabschluss', 'Lehrabschlussprüfung, berufsbildende mittlere Schule oder vergleichbare Berufsausbildung');
INSERT INTO tbl_ausbildung VALUES (11, 'Pflichtschule', 'Pflichtschule');
INSERT INTO tbl_ausbildung VALUES (7, 'tertiär', 'Anderer tertiärer Bildungsabschluss (Kolleg; Meisterprüfung; Universitätslehrgang oder Lehrgang gemäß §14a Abs.3 FHStG, mit dem kein akademischer Grad verbunden war)');
INSERT INTO tbl_ausbildung VALUES (2, 'Univ.-Master', 'Universitäts- oder Hochschulabschluss auf Diplom- oder Masterebene, Doktorat der Medizin bzw. der Human- oder Zahnmedizin oder Doktorat auf Grund von Studienvorschriften aus der Zeit vor dem Inkrafttretendes AHStG BGBl. Nr. 177/1966 oder Abschluss eines Universitätslehrganges oder Lehrganges universitären Charakters (§51 Abs. 2 Z 23 UG 2002 oder §§26 Abs.1 und 28 Abs.1 UniStG) oder eines Lehrganges zur Weiterbildung (§14a Abs.2 FHStG) mit Mastergrad');
-- tbl_zeitsperretyp; Type: TABLE DATA; Schema: campus;
SET search_path = campus, pg_catalog;
INSERT INTO tbl_zeitsperretyp VALUES ('ReiseAL', 'Dienstreise Ausland', '00BFFF');
INSERT INTO tbl_zeitsperretyp VALUES ('Amt', 'Behördenweg', 'B3B3B3');
INSERT INTO tbl_zeitsperretyp VALUES ('Schulung', 'Weiterbildung', '99FF99');
INSERT INTO tbl_zeitsperretyp VALUES ('Sonstige', 'Sonstiges', '9966CC');
INSERT INTO tbl_zeitsperretyp VALUES ('Telework', 'Heimarbeit', 'FFCCFF');
INSERT INTO tbl_zeitsperretyp VALUES ('ReiseIL', 'Diensreise Inland', '00D926');
INSERT INTO tbl_zeitsperretyp VALUES ('DienstV', 'Dienstverhinderung', 'B3B364');
INSERT INTO tbl_zeitsperretyp VALUES ('DienstF', 'Dienstfreistellung', '39DFA4');
INSERT INTO tbl_zeitsperretyp VALUES ('Krank', 'Krankheit/Spitalsaufenthalt', 'B3B300');
INSERT INTO tbl_zeitsperretyp VALUES ('ZA', 'Zeitausgleich', 'FFA605');
INSERT INTO tbl_zeitsperretyp VALUES ('Arzt', 'Arztbesuch', '0066FF');
INSERT INTO tbl_zeitsperretyp VALUES ('Konfernz', 'Konferenz/Tagung/Seminar', 'CC6633');
INSERT INTO tbl_zeitsperretyp VALUES ('Urlaub', 'Urlaub', 'FF0000');
-- tbl_lehrfunktion; Type: TABLE DATA; Schema: lehre;
SET search_path = lehre, pg_catalog;
INSERT INTO tbl_lehrfunktion VALUES ('LV-Leitung', 'Lehrveranstaltungsleiter', 1.10);
INSERT INTO tbl_lehrfunktion VALUES ('Betreuung', 'Betreuer', 0.90);
INSERT INTO tbl_lehrfunktion VALUES ('Lektor', 'Lektor', 1.00);
INSERT INTO tbl_lehrfunktion VALUES ('Zweitbetreuung', 'Zweitbetreuung', 0.90);
-- tbl_betriebsmitteltyp; Type: TABLE DATA; Schema: public;
SET search_path = public, pg_catalog;
INSERT INTO tbl_betriebsmitteltyp VALUES ('Zutrittskarte', 'Zutrittskarte', NULL, NULL);
INSERT INTO tbl_betriebsmitteltyp VALUES ('Schluessel', NULL, NULL, NULL);
INSERT INTO tbl_betriebsmitteltyp VALUES ('Laptop', NULL, NULL, NULL);
-- tbl_firmentyp; Type: TABLE DATA; Schema: public;
SET search_path = public, pg_catalog;
INSERT INTO tbl_firmentyp VALUES ('Partnerfirma', '');
INSERT INTO tbl_firmentyp VALUES ('Partneruniversität', '');
INSERT INTO tbl_firmentyp VALUES ('Fachhochschule', 'Fachhochschule');
-- tbl_projekttyp; Type: TABLE DATA; Schema: lehre;
SET search_path = lehre, pg_catalog;
INSERT INTO tbl_projekttyp VALUES ('Bachelor', 'Bachelorarbeit');
INSERT INTO tbl_projekttyp VALUES ('Diplom', 'Diplomarbeit');
INSERT INTO tbl_projekttyp VALUES ('Projekt', 'Projektarbeit');
INSERT INTO tbl_projekttyp VALUES ('Praktikum', 'Berufspraktikum');
INSERT INTO tbl_projekttyp VALUES ('Praxis', 'Praxissemester');
-- tbl_pruefungstyp; Type: TABLE DATA; Schema: lehre;
SET search_path = lehre, pg_catalog;
INSERT INTO tbl_pruefungstyp VALUES ('undefiniert', NULL, false);
INSERT INTO tbl_pruefungstyp VALUES ('Bachelor', 'Bachelorprüfung', true);
INSERT INTO tbl_pruefungstyp VALUES ('Diplom', 'Diplomprüfung', true);
INSERT INTO tbl_pruefungstyp VALUES ('Termin1', '1. Termin', false);
INSERT INTO tbl_pruefungstyp VALUES ('Termin2', '2. Termin', false);
INSERT INTO tbl_pruefungstyp VALUES ('kommPruef', 'kommissionelle Prüfung', false);
-- tbl_erreichbarkeit; Type: TABLE DATA; Schema: campus;
SET search_path = campus, pg_catalog;
INSERT INTO tbl_erreichbarkeit VALUES ('t', 'telefonisch', NULL);
INSERT INTO tbl_erreichbarkeit VALUES ('e', 'eMail', NULL);
INSERT INTO tbl_erreichbarkeit VALUES ('et', 'eMail oder Telefon', NULL);
INSERT INTO tbl_erreichbarkeit VALUES ('n', 'Nicht erreichbar!', 'FF0000');
-- tbl_zeitsperretyp; Type: TABLE DATA; Schema: campus;
SET search_path = campus, pg_catalog;
INSERT INTO tbl_zeitsperretyp VALUES ('ReiseAL', 'Dienstreise Ausland', '00BFFF');
INSERT INTO tbl_zeitsperretyp VALUES ('Amt', 'Behördenweg', 'B3B3B3');
INSERT INTO tbl_zeitsperretyp VALUES ('Schulung', 'Weiterbildung', '99FF99');
INSERT INTO tbl_zeitsperretyp VALUES ('Sonstige', 'Sonstiges', '9966CC');
INSERT INTO tbl_zeitsperretyp VALUES ('Telework', 'Heimarbeit', 'FFCCFF');
INSERT INTO tbl_zeitsperretyp VALUES ('ReiseIL', 'Diensreise Inland', '00D926');
INSERT INTO tbl_zeitsperretyp VALUES ('DienstV', 'Dienstverhinderung', 'B3B364');
INSERT INTO tbl_zeitsperretyp VALUES ('DienstF', 'Dienstfreistellung', '39DFA4');
INSERT INTO tbl_zeitsperretyp VALUES ('Krank', 'Krankheit/Spitalsaufenthalt', 'B3B300');
INSERT INTO tbl_zeitsperretyp VALUES ('ZA', 'Zeitausgleich', 'FFA605');
INSERT INTO tbl_zeitsperretyp VALUES ('Arzt', 'Arztbesuch', '0066FF');
INSERT INTO tbl_zeitsperretyp VALUES ('Konfernz', 'Konferenz/Tagung/Seminar', 'CC6633');
INSERT INTO tbl_zeitsperretyp VALUES ('Urlaub', 'Urlaub', 'FF0000');
-- tbl_berufstaetigkeit Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_berufstaetigkeit VALUES (0, 'nicht berufstätig', 'n.berufstätig');
INSERT INTO tbl_berufstaetigkeit VALUES (2, 'arbeitslos gemeldet mit facheinschlägiger Berufserfahrung', 'fach.arbeitslos');
INSERT INTO tbl_berufstaetigkeit VALUES (3, 'arbeitslos gemeldet sonstige', 'so.arbeitslos');
INSERT INTO tbl_berufstaetigkeit VALUES (6, 'Vollzeit facheinschlägig berufstätig', 'Vz fach');
INSERT INTO tbl_berufstaetigkeit VALUES (7, 'Teilzeit facheinschlägig berufstätig', 'Tz fach');
INSERT INTO tbl_berufstaetigkeit VALUES (9, 'Vollzeit nicht facheinschlägig berufstätig', 'Vz sonst');
INSERT INTO tbl_berufstaetigkeit VALUES (10, 'Teilzeit nicht facheinschlägig berufstätig', 'Tz sonst');
-- tbl_beschaeftigungsart1; Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_beschaeftigungsart1 VALUES (4, 'Dienstverhältnis zur Bildungseinrichtung oder deren Träger (Freier Dienstvertrag)', 'Freier Dienstvertrag');
INSERT INTO tbl_beschaeftigungsart1 VALUES (3, 'Dienstverhältnis zur Bildungseinrichtung oder deren Träger (Echter Dienstvertrag)', 'Echter Dienstvertrag');
INSERT INTO tbl_beschaeftigungsart1 VALUES (1, 'Dienstverhältnis zum Bund', 'DV zum Bund');
INSERT INTO tbl_beschaeftigungsart1 VALUES (6, 'Sonstiges Beschäftigungsverhältnis (inkludiert z.B. Werkverträge)', 'Sonstiges (Werkvertrag)');
INSERT INTO tbl_beschaeftigungsart1 VALUES (5, 'Lehr- oder Ausbildungsverhältnis', 'Lehr-oder Ausbildungsverhältnis');
INSERT INTO tbl_beschaeftigungsart1 VALUES (2, 'Dienstverhältnis zu einer anderen Gebietskörperschaft', 'DV anderen Gebietskörperschaft');
-- tbl_beschaeftigungsart2; Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_beschaeftigungsart2 VALUES (2, 'unbefristet');
INSERT INTO tbl_beschaeftigungsart2 VALUES (1, 'befristet');
-- tbl_beschaeftigungsausmass; Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_beschaeftigungsausmass VALUES (1, 'Vollzeit', 36, 168);
INSERT INTO tbl_beschaeftigungsausmass VALUES (2, '0-15', 0, 15);
INSERT INTO tbl_beschaeftigungsausmass VALUES (3, '16-25', 16, 25);
INSERT INTO tbl_beschaeftigungsausmass VALUES (4, '26-35', 26, 35);
INSERT INTO tbl_beschaeftigungsausmass VALUES (5, 'Karenz', 0, 0);
-- tbl_besqual; Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_besqual VALUES (0, 'Keine');
INSERT INTO tbl_besqual VALUES (1, 'Habilitation');
INSERT INTO tbl_besqual VALUES (2, 'der Habilitation gleichwertige Qualifikation');
INSERT INTO tbl_besqual VALUES (3, 'berufliche Tätigkeit');
-- tbl_hauptberuf; Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_hauptberuf VALUES (0, 'Universität');
INSERT INTO tbl_hauptberuf VALUES (1, 'Fachhochschule');
INSERT INTO tbl_hauptberuf VALUES (2, 'Andere postsekundäre Bildungseinrichtung');
INSERT INTO tbl_hauptberuf VALUES (3, 'Allgemeinbildende höhere Schule');
INSERT INTO tbl_hauptberuf VALUES (4, 'Berufsbildende höhere Schule');
INSERT INTO tbl_hauptberuf VALUES (5, 'Andere Schule');
INSERT INTO tbl_hauptberuf VALUES (6, 'Öffentlicher Sektor');
INSERT INTO tbl_hauptberuf VALUES (7, 'Unternehmenssektor');
INSERT INTO tbl_hauptberuf VALUES (8, 'Freiberuflich tätig');
INSERT INTO tbl_hauptberuf VALUES (9, 'Privater gemeinnütziger Sektor');
INSERT INTO tbl_hauptberuf VALUES (10, 'Außerhochschulische Forschungseinrichtung');
INSERT INTO tbl_hauptberuf VALUES (11, 'Internationale Organisation');
INSERT INTO tbl_hauptberuf VALUES (12, 'Sonstiges');
-- tbl_verwendung; Type: TABLE DATA; Schema: bis;
SET search_path = bis, pg_catalog;
INSERT INTO tbl_verwendung VALUES (1, 'Lehr- und Forschungspersonal (Academic staff)');
INSERT INTO tbl_verwendung VALUES (2, 'Lehr- und Forschungshilfspersonal (Teaching and Research assistants)');
INSERT INTO tbl_verwendung VALUES (3, 'Akademische Dienste für Studierende(Academic Support');
INSERT INTO tbl_verwendung VALUES (5, 'Studiengangsleiter/in');
INSERT INTO tbl_verwendung VALUES (6, 'Leiter/in FH-Kollegium');
INSERT INTO tbl_verwendung VALUES (7, 'Management (School Level Management)');
INSERT INTO tbl_verwendung VALUES (8, 'Verwaltung (School Level Administrative Personnel)');
INSERT INTO tbl_verwendung VALUES (9, 'Hauspersonal, Gebäude-/Haustechnik (Maintainance and Operations Personnel)');
INSERT INTO tbl_verwendung VALUES (4, 'Soziale Dienste und Gesundheitsdienste (Health and Social Support)');
-- tbl_aktivitaet; Type: TABLE DATA; Schema: fue;
SET search_path = fue, pg_catalog;
INSERT INTO tbl_aktivitaet VALUES ('ServiceVO', 'Service (VorOrt)');
INSERT INTO tbl_aktivitaet VALUES ('Service', 'Service');
INSERT INTO tbl_aktivitaet VALUES ('Schulung', 'Schulung die gegeben wird.');
INSERT INTO tbl_aktivitaet VALUES ('Arbeit', 'Arbeit (allgemein)');
INSERT INTO tbl_aktivitaet VALUES ('Besprechung', 'Besprechung');
INSERT INTO tbl_aktivitaet VALUES ('Workshop', 'Workshop');
INSERT INTO tbl_aktivitaet VALUES ('TelefonSupport', 'TelefonSupport');
INSERT INTO tbl_aktivitaet VALUES ('eMailSupport', 'eMailSupport');
-- tbl_projekt; Type: TABLE DATA; Schema: fue;
SET search_path = fue, pg_catalog;
INSERT INTO tbl_projekt VALUES ('Tempus', NULL, 'Tempus', NULL, '2005-09-01', NULL);
INSERT INTO tbl_projekt VALUES ('StPoelten', NULL, 'FH-Complete StPoelten', NULL, '2007-09-01', NULL);
INSERT INTO tbl_projekt VALUES ('FASo', NULL, 'FASonline', NULL, '2007-02-01', NULL);
--
+70
View File
@@ -0,0 +1,70 @@
<?php
/* Copyright (C) 2016 fhcomplete.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
*/
/*
* Dieses Script generiert fuer Testzwecke fuer jedes Abgabe-File einen symbolischen Link auf
* eine Testdatei um im Testsystem korrekte Dateilinks zu haben.
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/functions.inc.php');
require_once('../include/benutzerberechtigung.class.php');
$uid = get_uid();
$db = new basis_db();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if(!$rechte->isBerechtigt('system/developer',null,'suid'))
die($rechte->errormsg);
$anzahl_neu=0;
$anzahl_vorhanden=0;
$qry = "SELECT
tbl_paabgabe.paabgabe_id || '_' || tbl_projektarbeit.student_uid || '.pdf' as filename
FROM
campus.tbl_paabgabe
JOIN lehre.tbl_projektarbeit USING(projektarbeit_id)
WHERE
tbl_paabgabe.abgabedatum is not null";
$path = PAABGABE_PATH;
chdir($path);
if($result = $db->db_query($qry))
{
while($row = $db->db_fetch_object($result))
{
$testfile = 'testfile.pdf';
if(!file_exists($row->filename))
{
$cmd = 'ln -s '.$testfile.' '.$row->filename;
exec($cmd);
echo "<br>\ncreate $row->filename";
$anzahl_neu++;
}
else
{
echo "<br>\nexists $row->filename";
$anzahl_vorhanden++;
}
}
}
echo '<hr>';
echo 'Done';
echo '<br>Neu:'.$anzahl_neu;
echo '<br>Vorhanden:'.$anzahl_vorhanden;
?>