This commit is contained in:
Paminger
2016-07-01 00:27:57 +02:00
parent 075312963e
commit 93422b75b5
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -15,12 +15,12 @@ class Seed_Vorlage
echo "Seeding Standard templates (Vorlage) ";
// OEen ohne Eltern holen
$query = 'SELECT oe_kurzbz FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz IS NULL;';
$oe = $this->db->query($query)->result();
$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/\" } }}');
";
if (! $this->db->simple_query($query)
if (! $this->fhc->db->simple_query($query))
echo "Error adding Template MailRegistration!";
// Insert Vorlagetext
@@ -32,7 +32,7 @@ class Seed_Vorlage
<p>Unter folgenden Link können sie sich direkt für unser Service einloggen: <a title=\"LoginLink\" href=\"{link}{code}\">{link}{code}</a></p>
<p>Mit freundlichen Grüßen,<br>FH Technikum Wien</p>', '$o->oe_kurzbz');
";
if ($this->db->simple_query($query))
if ($this->fhc->db->simple_query($query))
echo 'Added Tamplate MailRegistration for OE:'.$o->oe_kurzbz.' ';
}
+1
View File
@@ -83,6 +83,7 @@ $berechtigungen = array(
array('basis/firma','Firmenverwaltung'),
array('basis/firma:begrenzt','Firmenverwaltung'),
array('basis/infoscreen','Infoscreenverwaltung'),
array('basis/message','Nachrichten'),
array('basis/moodle','basis/moodle'),
array('basis/news','Newsverwaltung'),
array('basis/notiz','Notizen'),