From d1070656ac704e55e87d6be21df4380e544c140c Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Fri, 27 Sep 2024 13:38:29 +0200 Subject: [PATCH] CIS4 MENU sql update COMPLETE --- system/dbupdate_3.4/25999_C4_Menu.php | 523 +++++++++++++++++++++++++- 1 file changed, 520 insertions(+), 3 deletions(-) diff --git a/system/dbupdate_3.4/25999_C4_Menu.php b/system/dbupdate_3.4/25999_C4_Menu.php index c74f2efaf..786011b30 100755 --- a/system/dbupdate_3.4/25999_C4_Menu.php +++ b/system/dbupdate_3.4/25999_C4_Menu.php @@ -1,5 +1,7 @@

Erreichbarkeit Student-Support: 

Für Studierende: 
E: studentsupport@technikum-wien.at
WhatsApp: +43 664 889 60 947
R: B2.07

Für Lehrende:
E: teachingsupport@technikum-wien.at
R: A0.05

Pre-Student:
E: 
prestudent@technikum-wien.at
R: B1.14

Erreichbarkeit Moodle-Support:    

Di - Mi       10:00 - 15:00   
Do             12:00 - 16:00


T: +43 1 333 40 77 - 233
E: moodle@technikum-wien.at
R: A0.05


Moodlekurs Study@FHTW 
Moodlekurs FHTW-Infobase Lehrende




           E: tlc@technikum-wien.at


LeitungArbeitsbereichKontakt
Lingo, SylviaLeitung.T. +43 1 3334077 - 4752
M. sylvia.lingo@technikum-wien.at
R. B1.13


Student Support
studentsupport@technikum-wien.at 
ArbeitsbereichKontakt
Czedron, NinaAdministration, interne Kommunikation, Personal, Bestellwesen.T. +43 1 333 40 77 - 4137
M. nina.czedron@technikum-wien.at
R. B1.13
Lang, Julia MariaPre-Student-Support (prestudent@technikum-wien.at):
Qualifikationskurse, Warm- Up Kurse, FiT- Vorqualifizierungen, Ergänzungsprüfungen.
T. +43 1 333 40 77 - 5532
M. julia_maria.lang@technikum-wien.at
R. B1.14

Schreibwerkstatt

T. 
M.
R.
Mühlbacher, Stefan
Pre-Student-Support (prestudent@technikum-wien.at):
Qualifikationskurse, Warm-Up Kurse, FiT-Vorqualifizierungen, Ergänzungsprüfungen.
T. +43 1 333 40 77 - 3610
M. stefan.muehlbacher@technikum-wien.at
R. B1.14
Obručová, Tereza
Lernberatung, Short Tracks, Planung Welcome Days.T. 0664-8205594
M. tereza.obrucova@technikum-wien.at
R. B2.07
Wicker, LarissaStudierenden-Support, Pre-Student-Support, Betreuung der Jahrgangsvertreter*innen.T. 0664-88348182
M. larissa.wicker@technikum-wien.at
R. B2.07


Teaching support
teachingsupport@technikum-wien.at 
ArbeitsbereichKontakt
Kertész, DóraMedien- und hochschuldidaktische Beratung Ansprechpartnerin: Internes Weiterbildungsangebot für Lehrende (Didaktik).T. +43 1 333 40 77 - 6715
M. dora.kertesz@technikum-wien.at
R. A0.05
Lanickova, Katerina
In Karenz
Medien- und hochschuldidaktische Beratung Ansprechpartnerin: Beratungsangebot für Lehrende (Didaktik).T. 43 1 333 40 77 - 5406
M. katerina.lanickova@technikum-wien.at
R. A0.05
Lünenborg, Yasmin Ruth
In Karenz
Medien- und hochschuldidaktische Beratung Ansprechpartnerin: LV-Entwicklung (kollegiale Reflexionsgespräche).T. +43 1 3334077 - 8394
M. yasmin_ruth.luenenborg@technikum-wien.at
R. A0.05
Schnabel, LukasMedien- und hochschuldidaktische Beratung Ansprechpartnerin: LV-Entwicklung (kollegiale Reflexionsgespräche).T. +43 664 820 54 76
M. lukas.schnabel@technikum-wien.at
R. A0.05
Grabher, LinusTeaching Support, Pre-Student-Support.M. linus.grabher@technikum-wien.at
R. A0.05


eLearning Tools | Moodle
moodle@technikum-wien.at
ArbeitsbereichKontakt
Perkovic, PatrickLehrenden- und Studierenden-Support eLearning Tools | Moodle.T. +43 1 333 40 77 - 2209
M. patrick.perkovic@technikum-wien.at
R. A0.05
Kovacevic, SelmaLehrenden- und Studierenden-Support eLearning Tools | Moodle.T. +43 1 333 40 77 - 7236
M. selma.kovacevic@technikum-wien.at
R. A0.05
Bogosavljevic, NikolaLeitung.

Lehrenden- und Studierenden-Support eLearning Tools | Moodle.
T. +43 1 333 40 77 - 3443
M. nikola.bogosavljevic@technikum-wien.at
R. A0.05


Bibliothek
bibliothek@technikum-wien.at 
ArbeitsbereichKontakt
Astfäller, Alexia

Bestellung Print- und e-Medien, Info-Theke, Medien-Erschließung, Publikationsdatenbank, Projekte.

T: +43 1 333 40 77-5428
E: alexia.astfaeller@technikum-wien.at
R: A4.09
Baier, Margit

Leitung.

e-Ressourcen-Pakete, Open Access, Projekte, Planung und Koordination.

T: +43 1 333 40 77-3390
E: margit.baier@technikum-wien.at
R: A4.09
Metz, Sonja

Bestellung Print- und e-Medien, Info-Theke, Medien-Erschließung, Hochschulschriften-Datenbank.

T: +43 1 333 40 77 - 4365
E: sonja.metz@technikum-wien.at
R: A4.09
Deimbacher-Sand, MayaBestellung Print- und e-Medien, Info-Theke, Medien-Erschließung / Field of work: Ordering Print and e-Media, Information Desk, Media Indexing.

T: +43 1 333 40 77-4088
E: maya.deimbacher-sand@technikum-wien.at
R: A4.09

Erreichbarkeit Bibliothek: 

E: bibliothek@technikum-wien.at   

R: A4.09

Öffnungszeiten:

Montag:13:00 Uhr - 18:00 Uhr
Dienstag:10:00 Uhr - 19:00 Uhr
Mittwoch:10:00 Uhr - 18:00 Uhr
Donnerstag:10:00 Uhr - 18:00 Uhr
Freitag:13:00 Uhr - 18:00 Uhr









Mehr Informationen zur Bibliothek unter: https://cis.technikum-wien.at/cms/content.php?content_id=6794 und im Moodle-Kurs https://moodle.technikum-wien.at/course/view.php?id=20218



]]>
'; + if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibung='CIS4_ROOT'")) { if ($db->db_num_rows($result) == 0) { @@ -13,6 +15,11 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun $qry = " + + -- ##################################### CONTENT + + -- CIS4_ROOT + INSERT INTO campus.tbl_content (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) VALUES @@ -20,6 +27,73 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun 'contentmittitel','etw',NOW(),null,null,null,TRUE,FALSE,'CIS4_ROOT' ); + -- MEIN_STUDIUM + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'MEIN_STUDIUM' + ); + + -- PROFIL + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'PROFIL' + ); + + -- NEWS + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'NEWS' + ); + + -- DOKUMENTE + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'DOKUMENTE' + ); + + -- STUDIENBETRIEB + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'STUDIENBETRIEB' + ); + + -- VORLAGEN + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','Unternehmenskommunikation',NOW(),null,null,null,TRUE,FALSE,'VORLAGEN' + ); + + -- TLC + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'contentmittitel','tlc',NOW(),null,null,null,TRUE,FALSE,'TLC' + ); + + -- ##################################### CONTENTSPRACHE + + -- CIS4_ROOT + INSERT INTO campus.tbl_contentsprache (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) VALUES @@ -30,20 +104,463 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun 1,TRUE,'',null,null,null,null,NOW(),null,'Cis40',null ); + -- MEIN_STUDIUM + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the MEIN_STUDIUM + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'MEIN_STUDIUM'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'Mein Studium',null + ); + + -- PROFIL + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the PROFIL + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'PROFIL'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'Profil',null + ); + + -- NEWS + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the NEWS + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'NEWS'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'News',null + ); + + -- DOKUMENTE + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'Dokumente',null + ); + + -- STUDIENBETRIEB + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'Studienbetrieb',null + ); + + -- VORLAGEN + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the VORLAGEN + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'VORLAGEN'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'Vorlagen',null + ); + + -- TLC + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the TLC + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'TLC'), + 1,TRUE, + -- queries the content of the latest german TLC version + (SELECT content FROM campus.tbl_contentsprache WHERE sprache ='German' AND titel='TLC' AND version = ( SELECT MAX(version) FROM campus.tbl_contentsprache WHERE sprache ='German' AND titel='TLC') ), + null,null,null,null,NOW(),null,'TLC',null + ); + + -- ##################################### CONTENTCHILD + + -- CIS4_ROOT childs + INSERT INTO campus.tbl_contentchild (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) VALUES ( -- queries the content_id for the CIS4_ROOT (SELECT content_id from campus.tbl_content WHERE beschreibung = 'CIS4_ROOT'), + -- queries the content_id for the MEIN_STUDIUM + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'MEIN_STUDIUM'), + NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the CIS4_ROOT + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'CIS4_ROOT'), + -- 10882 is the content_id for VPN Neu - Zugang für Student*innen 10882, NOW(), null, null, null, 100 ); - - + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the CIS4_ROOT + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'CIS4_ROOT'), + -- queries the content_id for the NEWS + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'NEWS'), + NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the CIS4_ROOT + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'CIS4_ROOT'), + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), + NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the CIS4_ROOT + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'CIS4_ROOT'), + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'TLC'), + NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the CIS4_ROOT + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'CIS4_ROOT'), + -- 10487 is the content_id for Modul International Skills + 10487, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the CIS4_ROOT + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'CIS4_ROOT'), + -- 10568 is the content_id for Zahlungen + 10568, NOW(), null, null, null, 100 + ); + + -- Mein Studium childs + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the MEIN_STUDIUM + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'MEIN_STUDIUM'), + -- queries the content_id for the PROFIL + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'PROFIL'), + NOW(), null, null, null, 100 + ); + + -- Profil childs + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the PROFIL + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'PROFIL'), + -- 7358 is the content_id for password_aendern + 7358, NOW(), null, null, null, 100 + ); + + -- News childs + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the NEWS + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'NEWS'), + -- 6748 is the content_id for Newsletter FHTW + 6748, NOW(), null, null, null, 100 + ); + + -- Dokumente childs + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), + -- 10246 is the content_id for Allg. FHTW-Glossar + 10246, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), + -- 10339 is the content_id for Hausordnung + 10339, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), + -- 6830 is the content_id for Satzung + 6830, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the DOKUMENTE + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), + -- queries the content_id for the VORLAGEN + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'VORLAGEN'), + NOW(), null, null, null, 100 + ); + + -- Studienbetrieb childs + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7251 is the content_id for Administration + 7251, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7252 is the content_id for Außerordentliche Studierende + 7252, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7253 is the content_id for Berufspraktikum + 7253, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7254 is the content_id for CRM @ FHTW + 7254, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 9328 is the content_id for Datenschutz + 9328, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 10139 is the content_id for Einteilung Studienjahr + 10139, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7255 is the content_id for Formulare + 7255, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 10841 is the content_id for Formulare + 10841, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7256 is the content_id for Internationale BewerberInnen + 7256, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7257 is the content_id for Leistungsstipendium + 7257, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7258 is the content_id for ÖH-Studierendenvertretung + 7258, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 8416 is the content_id for ÖH-Studierendenvertretung + 8416, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7259 is the content_id for Prüfungen/Lehre + 7259, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 10748 is the content_id for Studienbeitrag & ÖH-Beitrag + 10748, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7260 is the content_id for Studieren, Wohnen & Finanzen + 7260, NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the STUDIENBETRIEB + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUDIENBETRIEB'), + -- 7261 is the content_id for Wissenschaftliches Arbeiten + 7261, NOW(), null, null, null, 100 + ); + + -- Vorlagen childs + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the VORLAGEN + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'VORLAGEN'), + -- 7243 is the content_id for FHTW Corporate Identity & Design + 7243, NOW(), null, null, null, 100 + ); + + -- TLC childs + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the TLC + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'TLC'), + -- 9248 is the content_id for Service für Studierende + 9248, NOW(), null, null, null, 100 + ); "; - + // Execute query and ROLLBACK on error or COMMIT if (!$db->db_query($qry)) {