diff --git a/application/config/fhcomplete.php b/application/config/fhcomplete.php index 25d6d9b1d..33257dff7 100755 --- a/application/config/fhcomplete.php +++ b/application/config/fhcomplete.php @@ -192,7 +192,7 @@ $config['fhc_acl'] = array 'public.tbl_vorlage' => 'system/vorlage', 'public.tbl_vorlagestudiengang' => 'system/vorlagestudiengang', 'public.tbl_rt_person' => 'basis/person', - 'public.vw_studiensemester' => 'basis/vw_studiensemester', + 'public.vw_studiensemester' => 'basis/studiensemester', 'system.tbl_app' => 'system/app', 'system.tbl_appdaten' => 'system/appdaten', 'system.tbl_benutzerrolle' => 'basis/benutzerrolle', diff --git a/application/config/roles.php b/application/config/roles.php index 58e34842c..be898ea8f 100755 --- a/application/config/roles.php +++ b/application/config/roles.php @@ -21,7 +21,7 @@ $config['roles'] = array 'basis/fas', 'basis/ferien', 'basis/fhausweis','basis/firma', 'basis/infoscreen', 'basis/moodle', 'basis/moodle','basis/news', 'basis/notiz', 'basis/organisationseinheit', 'basis/ort', 'basis/person', 'basis/planner', - 'basis/service', 'basis/statistik', 'basis/studiengang', 'basis/tempus', + 'basis/service', 'basis/statistik', 'basis/studiengang', 'basis/studiensemester', 'basis/tempus', 'basis/testtool', 'basis/variable', 'basis/vilesci', 'buchung/typen', 'buchung/mitarbeiter', 'inout/incoming', 'inout/outgoing', 'inout/uebersicht', 'lehre', 'lehre/abgabetool', 'lehre/freifach', 'lehre/lehrfach', diff --git a/application/controllers/DBTools.php b/application/controllers/DBTools.php index 3686c635f..2469dcbef 100644 --- a/application/controllers/DBTools.php +++ b/application/controllers/DBTools.php @@ -420,6 +420,8 @@ class DBTools extends FHC_Controller else echo '
Fehler: Recht '.$b.' hinzufügen nicht möglich'; } + else + echo "- $b -"; } } break; @@ -449,8 +451,13 @@ class DBTools extends FHC_Controller else echo '
Fehler: '.$role['rolle_kurzbz'].' -> '.$b.' hinzufügen nicht möglich'; } + else + echo "- $b -"; } } + break; + // **** Default **** + default: echo ' what? roles or permisssions?'; } exit('Succesfully checked!'); diff --git a/application/migrations/010_vorlage.php b/application/migrations/010_vorlage.php index 0314d443c..ee4ee07e9 100755 --- a/application/migrations/010_vorlage.php +++ b/application/migrations/010_vorlage.php @@ -6,6 +6,18 @@ class Migration_Vorlage extends CI_Migration { public function up() { + // Change PK to varchar 32 + $query = "ALTER TABLE public.tbl_vorlage + ALTER COLUMN vorlage_kurzbz TYPE varchar(32); + ALTER TABLE public.tbl_vorlagestudiengang + ALTER COLUMN vorlage_kurzbz TYPE varchar(32); + "; + if ($this->db->simple_query($query)) + echo 'Column public.tbl_vorlage.vorlage_kurzbz altered!'; + else + echo "Error altering vorlage_kurzbz!"; + + if (! @$this->db->simple_query('SELECT attribute FROM public.tbl_vorlage')) { $query = "ALTER TABLE public.tbl_vorlage diff --git a/application/seeds/001_organisation.php b/application/seeds/001_organisation.php index 88a717611..f19599b80 100644 --- a/application/seeds/001_organisation.php +++ b/application/seeds/001_organisation.php @@ -15,8 +15,8 @@ class Seed_Organisation $pre = 'INSERT INTO public.tbl_organisationseinheit VALUES ('; $post = '; '; - $sql = "INSERT INTO public.tbl_organisationseinheittyp VALUES ('Seminar'); "; - $sql .= "INSERT INTO public.tbl_organisationseinheittyp VALUES ('Lehrgang'); "; + //$sql .= "INSERT INTO public.tbl_organisationseinheittyp VALUES ('Seminar'); "; + $sql = "INSERT INTO public.tbl_organisationseinheittyp VALUES ('Lehrgang'); "; $sql .= "INSERT INTO public.tbl_studiengangstyp VALUES ('d', 'Diplom'); "; $sql .= "$pre 'fhstp', NULL, 'Fachhochschule St. Pölten', 'Erhalter', true, true, NULL, NULL, false, NULL, NULL, NULL, NULL)$post"; diff --git a/application/seeds/006_vorlage.php b/application/seeds/006_vorlage.php index ce2b8d08b..56a3d9f52 100644 --- a/application/seeds/006_vorlage.php +++ b/application/seeds/006_vorlage.php @@ -17,32 +17,125 @@ class Seed_Vorlage $query = 'SELECT oe_kurzbz FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz IS NULL;'; $oe = $this->fhc->db->query($query)->result(); - // Insert Template MailRegistration - $query= "INSERT INTO public.tbl_vorlage VALUES ('MailRegistration', 'eMail zur Registrierung', NULL, 'text/html', '{ \"\$schema\": \"http://json-schema.org/draft-03/schema#\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"anrede\": { \"type\": \"string\", \"enum\": [ \"Herr\", \"Frau\" ], \"default\": \"Herr\" }, \"vorname\": { \"type\": \"string\", \"description\": \"Firstname\", \"minLength\": 2, \"default\": \"Vorname\" }, \"nachname\": { \"type\": \"string\", \"description\": \"Surename\", \"minLength\": 2, \"default\": \"Nachname\" }, \"code\": { \"type\": \"string\", \"description\": \"Accesscode\", \"minLength\": 6, \"default\": \"1q2w3e4r5t6z7u8i9o0\" }, \"link\": { \"type\": \"string\", \"description\": \"LoginURL\", \"minLength\": 6, \"default\": \"https://cis.fhcomplete.org/addon/aufnahme/cis/login/\" } }}'); + // ************** Mail Registration Conf ****************** + // Insert Template MailRegistrationConfirmation + $query= "INSERT INTO public.tbl_vorlage VALUES ('MailRegistrationConfirmation', 'eMail zur Bestätigung der Registrierung', NULL, 'text/html', '{ \"\$schema\": \"http://json-schema.org/draft-03/schema#\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"anrede\": { \"type\": \"string\", \"enum\": [ \"Herr\", \"Frau\" ], \"default\": \"Herr\" }, \"vorname\": { \"type\": \"string\", \"description\": \"Firstname\", \"minLength\": 2, \"default\": \"Vorname\" }, \"nachname\": { \"type\": \"string\", \"description\": \"Surename\", \"minLength\": 2, \"default\": \"Nachname\" }, \"code\": { \"type\": \"string\", \"description\": \"Accesscode\", \"minLength\": 6, \"default\": \"1q2w3e4r5t6z7u8i9o0\" }, \"link\": { \"type\": \"string\", \"description\": \"LoginURL\", \"minLength\": 6, \"default\": \"https://bewerbung.fhstp.ac.at/index.php/\" } }}'); "; if (! $this->fhc->db->simple_query($query)) - echo "Error adding Template MailRegistration!"; + echo "Error adding Template MailRegistrationConfirmation!"; - // Insert Vorlagetext + // Insert Vorlagetext for MailRegistration foreach ($oe as $o) { - $query = "INSERT INTO public.tbl_vorlagestudiengang VALUES ('MailRegistration', 0, 1, '

Sehr geehrte/r {anrede} {vorname} {nachname},

-

vielen Dank für Ihre Registrierung an unserer Hochschule. Im Anhang senden wir ihnen den Zugangscode.

-

Code: {code}

-

Unter folgenden Link können sie sich direkt für unser Service einloggen: {link}{code}

-

Mit freundlichen Grüßen,
FH Technikum Wien

', '$o->oe_kurzbz'); + $query = "INSERT INTO public.tbl_vorlagestudiengang VALUES ('MailRegistrationConfirmation', 0, 1, '

Vielen Dank für Ihre Anmeldung!

+

Bitte klicken Sie folgenden Link, um Ihre Anmeldung zu bestätigen:
{link}{code}

+

Ihre Anmeldedaten:
+Code: {code}
+eMail: {eMailAdresse}

+

Mit freundlichen Grüßen,
FH St. Pölten

', '$o->oe_kurzbz'); "; if ($this->fhc->db->simple_query($query)) - echo 'Added Tamplate MailRegistration for OE:'.$o->oe_kurzbz.' '; + echo 'Added Tamplate MailRegistrationConfirmation for OE:'.$o->oe_kurzbz.' '; } - echo PHP_EOL; + // ************** Mail Application Conf ****************** + // Insert Template MailApplicationConfirmation + $query= "INSERT INTO public.tbl_vorlage VALUES ('MailApplicationConfirmation', 'eMail zur Bestätigung der Bewerbung', NULL, 'text/html', '{ \"\$schema\": \"http://json-schema.org/draft-03/schema#\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"anrede\": { \"type\": \"string\", \"enum\": [ \"Herr\", \"Frau\" ], \"default\": \"Herr\" }, \"vorname\": { \"type\": \"string\", \"description\": \"Firstname\", \"minLength\": 2, \"default\": \"Max\" }, \"nachname\": { \"type\": \"string\", \"description\": \"Surename\", \"minLength\": 2, \"default\": \"Mustermann\" }, \"typ\": { \"type\": \"string\", \"description\": \"Studiengangstyp\", \"minLength\": 1, \"default\": \"Bachelor\" }, \"studiengang\": { \"type\": \"string\", \"description\": \"Studiengangsbezeichnung\", \"minLength\": 3, \"default\": \"Medientechnik\" } }}'); + "; + if (! $this->fhc->db->simple_query($query)) + echo "Error adding Template MailApplicationConfirmation!"; + + // Insert Vorlagetext for MailApplicationConfirmation + foreach ($oe as $o) + { + $query = "INSERT INTO public.tbl_vorlagestudiengang VALUES ('MailApplicationConfirmation', 0, 1, '

Sehr geehrter Herr {vorname} {nachname}!

+

Wir freuen uns über Ihre Bewerbung für das Studium {typ} {studiengang} an der FH St. Pölten und bestätigen den Erhalt Ihrer Bewerbungsunterlagen. Ihre Bewerbung wird von uns bearbeitet und die Zugangsvoraussetzungen geprüft. Im Falle von Unklarheiten melden wir uns bei Ihnen.

+

Über die endgültige Aufnahme wird nach Abschluss des Aufnahmeverfahrens entschieden. +Bitte melden Sie sich für einen Aufnahmetermin an, sofern Sie das noch nicht erledigt haben.

+

Bei Fragen stehen wir Ihnen gerne zur Verfügung!

+

Mit freundlichen Grüßen
+Campus Service Center

+ +Fachhochschule St. Pölten GmbH
+Matthias Corvinus-Straße 15,
+3100 St. Pölten
+T: +43/2742/313 228 - 200
+F: +43/2742/313 228 - 339
+M: csc@fhstp.ac.at
+I: www.fhstp.ac.at
+
+FN 146616m, LG St. Pölten, DVR 1028669F
+
+________________________ +
+

Dear Max Mustermann!

+

Thank you for your application for  the degree program Media Technology at the UAS St. Pölten, which we hereby confirm. Your application is currently being processed and the admission requirements checked. We will contact you if something is not clear. +Decisions concerning admission will be made after the application process has been finalized. We would ask you to register for an admission date if you have not already done so.

+

In the event of any questions, please do not hesitate to contact: +

Yours sincerely,
+Campus Service Center

+ +Fachhochschule St. Pölten GmbH
+Matthias Corvinus-Straße 15,
+3100 St. Pölten
+T: +43/2742/313 228 - 200
+F: +43/2742/313 228 - 339
+M: csc@fhstp.ac.at
+I: www.fhstp.ac.at
+
+FN 146616m, LG St. Pölten, DVR 1028669F
', '$o->oe_kurzbz'); + "; + if ($this->fhc->db->simple_query($query)) + echo 'Added Tamplate MailApplicationConfirmation for OE:'.$o->oe_kurzbz.' '; + } + + // ************** Mail Appointment Conf ****************** + // Insert Template MailAppointmentConfirmation + $query= "INSERT INTO public.tbl_vorlage VALUES ('MailAppointmentConfirmation', 'eMail zur Bestätigung des Aufnahmetermins', NULL, 'text/html', '{ \"\$schema\": \"http://json-schema.org/draft-03/schema#\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"anrede\": { \"type\": \"string\", \"enum\": [ \"Herr\", \"Frau\" ], \"default\": \"Herr\" }, \"vorname\": { \"type\": \"string\", \"description\": \"Firstname\", \"minLength\": 2, \"default\": \"Vorname\" }, \"nachname\": { \"type\": \"string\", \"description\": \"Surename\", \"minLength\": 2, \"default\": \"Nachname\" }, \"typ\": { \"type\": \"string\", \"description\": \"Studiengangstyp\", \"minLength\": 1, \"default\": \"Bachelor\" }, \"studiengang\": { \"type\": \"string\", \"description\": \"Studiengangsbezeichnung\", \"minLength\": 3, \"default\": \"Medientechnik\" }, \"orgform\": { \"type\": \"string\", \"description\": \"Organisationsform\", \"minLength\": 2, \"default\": \"Vollzeit\" }, \"termin\": { \"type\": \"string\", \"description\": \"Aufnahmetermin\", \"minLength\": 1, \"default\": \"Dummytermin:11.22.3333, 44:55\" } }}'); + "; + if (! $this->fhc->db->simple_query($query)) + echo "Error adding Template MailAppointmentConfirmation!"; + + // Insert Vorlagetext for MailApplicationConfirmation + foreach ($oe as $o) + { + $query = "INSERT INTO public.tbl_vorlagestudiengang VALUES ('MailAppointmentConfirmation', 0, 1, '

Vielen Dank für Ihre Anmeldung zum Aufnahmetermin des {typ}-Studiengangs {studiengang} ({orgform})!

+

Sie haben folgenden Aufnahmetermin ausgewählt: +{termin}

+

Unser Aufnahmeverfahren besteht aus einem computergestützten, bildungsneutralen Test sowie einem Aufnahmegespräch. Informationen zum genauen Ablauf des Aufnahmetages erhalten Sie ca. eine Woche vor dem Termin per E-Mail. Bitte reservieren Sie sich aber vorerst den ganzen Tag. Die Einteilung ist abhängig von der Anzahl der BewerberInnen.

+

Wir bitten Sie, sich rechtzeitig zu Ihrem ausgewählten Termin am Fachhochschulstandort in der Matthias Corvinus-Straße 15, 3100 St. Pölten am Informationstreffpunkt im Erdgeschoß einzufinden. Die Registrierung zur Testteilnahme erfolgt jeweils 45 Min. vor Testbeginn. +Zur persönlichen Identifikation ist es erforderlich, einen aktuellen Lichtbildausweis (Führerschein oder Pass) vorzulegen.

+

Die Ergebnisse werden erst nach Abschluss des gesamten Aufnahmeverfahrens innerhalb von 14 Tagen nach dem letzten Aufnahmetermin bekannt gegeben.

+

Für die Dauer des Aufnahmeverfahrens steht Ihnen der Parkplatz der FH in der Heinrich-Schneidmadl-Straße kostenlos zur Verfügung (Anfahrtsplan unter: https://www.fhstp.ac.at/de/campus/so-erreichen-sie-uns).

+

Wir wünschen Ihnen viel Erfolg für das Aufnahmeverfahren!

+ +

Bei Fragen stehen wir Ihnen gerne zur Verfügung!
+Mit freundlichen Grüßen,
+Karin Schachenhofer

+ +Fachhochschule St. Pölten GmbH
+Matthias Corvinus-Straße 15,
+3100 St. Pölten
+T: +43/2742/313 228 - 610
+E: bmt@fhstp.ac.at
+I: http://www.fhstp.ac.at
+
+FN 146616m, LG St. Pölten, DVR 1028669F
+

Achtung!
+Antworten Sie nicht direkt auf diese Mail, da diese Mailadresse nur dem Versenden von Mails dient.
+Bitte wenden Sie sich direkt an das zuständige Studiengangssekretariat.', '$o->oe_kurzbz'); + "; + if ($this->fhc->db->simple_query($query)) + echo 'Added Tamplate MailAppointmentConfirmation for OE:'.$o->oe_kurzbz.' '; + } + + echo PHP_EOL; } public function truncate() { - //$this->fhc->db->query('DELETE FROM public.tbl_vorlage;'); + //$this->fhc->db->query("DELETE FROM public.tbl_vorlage WHERE mimetype='text/html';"); } } diff --git a/application/views/system/templatesList.php b/application/views/system/templatesList.php index 3436a0f06..7d2a84844 100644 --- a/application/views/system/templatesList.php +++ b/application/views/system/templatesList.php @@ -27,7 +27,7 @@ MimeType bezeichnung; ?> anmerkung; ?> mimetype; ?> - View + Vorlagenexte bearbeiten