From 7f436e7fd60653b352e54796681537ee525a55b4 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 29 May 2018 22:13:16 +0200 Subject: [PATCH] Major Update --- autoload.inc | 4 +++ js/saimod_mail.js | 32 +++++++++++++++++++++ saimod_mail.php | 28 +++++++++++++++++++ sql/CONTACTS_SELECT.php | 9 ++++++ sql/CONTACTS_SELECT_LIST.php | 9 ++++++ sql/CONTACT_DELETE.php | 9 ++++++ sql/CONTACT_EMAIL_LIST_CONTACT_SELECT.php | 9 ++++++ sql/CONTACT_EMAIL_LIST_DELETE.php | 9 ++++++ sql/CONTACT_EMAIL_LIST_DELETE_LIST.php | 9 ++++++ sql/CONTACT_EMAIL_LIST_SELECT_LIST.php | 9 ++++++ sql/CONTACT_INSERT.php | 9 ++++++ sql/CONTACT_INSERT_EMAIL.php | 9 ++++++ sql/CONTACT_INSERT_EMAIL_NAME.php | 9 ++++++ sql/CONTACT_SELECT.php | 9 ++++++ sql/CONTACT_UPDATE.php | 9 ++++++ sql/DATA_SAIMOD_MAIL.php | 9 ++++++ sql/EMAILS_SELECT.php | 9 ++++++ sql/EMAIL_DELETE.php | 9 ++++++ sql/EMAIL_INSERT.php | 9 ++++++ sql/EMAIL_LISTS_SELECT.php | 9 ++++++ sql/EMAIL_LISTS_SELECT_CONTACT.php | 9 ++++++ sql/EMAIL_LISTS_SELECT_COUNT.php | 9 ++++++ sql/EMAIL_LIST_DELETE.php | 9 ++++++ sql/EMAIL_LIST_INSERT.php | 9 ++++++ sql/EMAIL_LIST_SELECT.php | 9 ++++++ sql/EMAIL_SELECT.php | 9 ++++++ sql/EMAIL_SENT_DELETE.php | 9 ++++++ sql/EMAIL_SENT_DELETE_EMAIL.php | 9 ++++++ sql/EMAIL_SENT_INSERT.php | 9 ++++++ sql/EMAIL_SENT_IS_SENT.php | 9 ++++++ sql/EMAIL_TEMPLATES_SELECT.php | 9 ++++++ sql/EMAIL_TEMPLATE_DELETE.php | 9 ++++++ sql/EMAIL_TEMPLATE_INSERT.php | 9 ++++++ sql/EMAIL_TEMPLATE_SELECT.php | 9 ++++++ sql/EMAIL_TEMPLATE_UPDATE.php | 9 ++++++ sql/EMAIL_UPDATE.php | 9 ++++++ sql/LIST_UPDATE.php | 9 ++++++ sql/SUBSCRIBE.php | 9 ++++++ sql/UNSUBSCRIBE.php | 9 ++++++ sql/autoload.inc | 3 ++ sql/mysql/system_api.sql | 5 ++++ sql/mysql/system_mails.sql | 5 ++++ sql/mysql/system_page.sql | 1 + tpl/menu.tpl | 7 +++++ tpl/saimod_mail.tpl | 34 +++++++++++++++++++++++ tpl/saimod_mail_contact_new_tr.tpl | 13 +++++++++ tpl/saimod_mail_contact_tr.tpl | 13 +++++++++ tpl/saimod_mail_contacts_tr.tpl | 13 +++++++++ tpl/saimod_mail_emails_tr.tpl | 13 +++++++++ tpl/saimod_mail_list_tr.tpl | 13 +++++++++ tpl/saimod_mail_lists_tr.tpl | 13 +++++++++ tpl/saimod_mail_templates_tr.tpl | 13 +++++++++ 52 files changed, 534 insertions(+) create mode 100644 autoload.inc create mode 100644 js/saimod_mail.js create mode 100644 saimod_mail.php create mode 100644 sql/CONTACTS_SELECT.php create mode 100644 sql/CONTACTS_SELECT_LIST.php create mode 100644 sql/CONTACT_DELETE.php create mode 100644 sql/CONTACT_EMAIL_LIST_CONTACT_SELECT.php create mode 100644 sql/CONTACT_EMAIL_LIST_DELETE.php create mode 100644 sql/CONTACT_EMAIL_LIST_DELETE_LIST.php create mode 100644 sql/CONTACT_EMAIL_LIST_SELECT_LIST.php create mode 100644 sql/CONTACT_INSERT.php create mode 100644 sql/CONTACT_INSERT_EMAIL.php create mode 100644 sql/CONTACT_INSERT_EMAIL_NAME.php create mode 100644 sql/CONTACT_SELECT.php create mode 100644 sql/CONTACT_UPDATE.php create mode 100644 sql/DATA_SAIMOD_MAIL.php create mode 100644 sql/EMAILS_SELECT.php create mode 100644 sql/EMAIL_DELETE.php create mode 100644 sql/EMAIL_INSERT.php create mode 100644 sql/EMAIL_LISTS_SELECT.php create mode 100644 sql/EMAIL_LISTS_SELECT_CONTACT.php create mode 100644 sql/EMAIL_LISTS_SELECT_COUNT.php create mode 100644 sql/EMAIL_LIST_DELETE.php create mode 100644 sql/EMAIL_LIST_INSERT.php create mode 100644 sql/EMAIL_LIST_SELECT.php create mode 100644 sql/EMAIL_SELECT.php create mode 100644 sql/EMAIL_SENT_DELETE.php create mode 100644 sql/EMAIL_SENT_DELETE_EMAIL.php create mode 100644 sql/EMAIL_SENT_INSERT.php create mode 100644 sql/EMAIL_SENT_IS_SENT.php create mode 100644 sql/EMAIL_TEMPLATES_SELECT.php create mode 100644 sql/EMAIL_TEMPLATE_DELETE.php create mode 100644 sql/EMAIL_TEMPLATE_INSERT.php create mode 100644 sql/EMAIL_TEMPLATE_SELECT.php create mode 100644 sql/EMAIL_TEMPLATE_UPDATE.php create mode 100644 sql/EMAIL_UPDATE.php create mode 100644 sql/LIST_UPDATE.php create mode 100644 sql/SUBSCRIBE.php create mode 100644 sql/UNSUBSCRIBE.php create mode 100644 sql/autoload.inc create mode 100644 sql/mysql/system_api.sql create mode 100644 sql/mysql/system_mails.sql create mode 100644 sql/mysql/system_page.sql create mode 100644 tpl/menu.tpl create mode 100644 tpl/saimod_mail.tpl create mode 100644 tpl/saimod_mail_contact_new_tr.tpl create mode 100644 tpl/saimod_mail_contact_tr.tpl create mode 100644 tpl/saimod_mail_contacts_tr.tpl create mode 100644 tpl/saimod_mail_emails_tr.tpl create mode 100644 tpl/saimod_mail_list_tr.tpl create mode 100644 tpl/saimod_mail_lists_tr.tpl create mode 100644 tpl/saimod_mail_templates_tr.tpl diff --git a/autoload.inc b/autoload.inc new file mode 100644 index 0000000..b6ff6c1 --- /dev/null +++ b/autoload.inc @@ -0,0 +1,4 @@ +SERVERPATH(),$vars);} + + public static function sai_mod__SAI_saimod_donate_action_update($paten,$value,$paten_goal,$value_goal){ + \SYSTEM\PAGE\text::save('donation_paten', 'donation_paten', 'deDE', ['donation'], $paten); + \SYSTEM\PAGE\text::save('donation_value', 'donation_value', 'deDE', ['donation'], $value); + \SYSTEM\PAGE\text::save('donation_paten_goal', 'donation_paten_goal', 'deDE', ['donation'], $paten_goal); + \SYSTEM\PAGE\text::save('donation_value_goal', 'donation_value_goal', 'deDE', ['donation'], $value_goal); + \SYSTEM\PAGE\text::save('donation_date', 'donation_date', 'deDE', ['donation'], date('d.m.Y * H:i').' Uhr'); + return \SYSTEM\LOG\JsonResult::ok(); + } + public static function menu(){ + return new \SYSTEM\SAI\sai_module_menu( 100, + \SYSTEM\SAI\sai_module_menu::POISITION_LEFT, + \SYSTEM\SAI\sai_module_menu::DIVIDER_LEFT, + \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_donate/tpl/menu.tpl'))->SERVERPATH()));} + public static function right_public(){return false;} + public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);} + + public static function js(){ + return array(new \PSAI('saimod_donate/js/saimod_donate.js'));} +} \ No newline at end of file diff --git a/sql/CONTACTS_SELECT.php b/sql/CONTACTS_SELECT.php new file mode 100644 index 0000000..e44e0b6 --- /dev/null +++ b/sql/CONTACTS_SELECT.php @@ -0,0 +1,9 @@ +SERVERPATH(), + (new \PSAI('/saimod_donate/sql/mysql/system_api.sql'))->SERVERPATH()); + } +} \ No newline at end of file diff --git a/sql/EMAILS_SELECT.php b/sql/EMAILS_SELECT.php new file mode 100644 index 0000000..e44e0b6 --- /dev/null +++ b/sql/EMAILS_SELECT.php @@ -0,0 +1,9 @@ + + + + +   Donate + + \ No newline at end of file diff --git a/tpl/saimod_mail.tpl b/tpl/saimod_mail.tpl new file mode 100644 index 0000000..f86e77a --- /dev/null +++ b/tpl/saimod_mail.tpl @@ -0,0 +1,34 @@ +
+
+

   Donate

+
+
+ + + + + + + + + + + + + + + + + + + + + +
Paten
Value
Paten Goal
Value Goal
+ +
+
+
+ ${donate_box} +
+
\ No newline at end of file diff --git a/tpl/saimod_mail_contact_new_tr.tpl b/tpl/saimod_mail_contact_new_tr.tpl new file mode 100644 index 0000000..c618891 --- /dev/null +++ b/tpl/saimod_mail_contact_new_tr.tpl @@ -0,0 +1,13 @@ + + ${used_code} + ${email} + + ${generated} +  ${redeemed_time} +  ${stored_time} +  ${emailed_time} + ${comment} + + + + \ No newline at end of file diff --git a/tpl/saimod_mail_contact_tr.tpl b/tpl/saimod_mail_contact_tr.tpl new file mode 100644 index 0000000..c618891 --- /dev/null +++ b/tpl/saimod_mail_contact_tr.tpl @@ -0,0 +1,13 @@ + + ${used_code} + ${email} + + ${generated} +  ${redeemed_time} +  ${stored_time} +  ${emailed_time} + ${comment} + + + + \ No newline at end of file diff --git a/tpl/saimod_mail_contacts_tr.tpl b/tpl/saimod_mail_contacts_tr.tpl new file mode 100644 index 0000000..c618891 --- /dev/null +++ b/tpl/saimod_mail_contacts_tr.tpl @@ -0,0 +1,13 @@ + + ${used_code} + ${email} + + ${generated} +  ${redeemed_time} +  ${stored_time} +  ${emailed_time} + ${comment} + + + + \ No newline at end of file diff --git a/tpl/saimod_mail_emails_tr.tpl b/tpl/saimod_mail_emails_tr.tpl new file mode 100644 index 0000000..c618891 --- /dev/null +++ b/tpl/saimod_mail_emails_tr.tpl @@ -0,0 +1,13 @@ + + ${used_code} + ${email} + + ${generated} +  ${redeemed_time} +  ${stored_time} +  ${emailed_time} + ${comment} + + + + \ No newline at end of file diff --git a/tpl/saimod_mail_list_tr.tpl b/tpl/saimod_mail_list_tr.tpl new file mode 100644 index 0000000..c618891 --- /dev/null +++ b/tpl/saimod_mail_list_tr.tpl @@ -0,0 +1,13 @@ + + ${used_code} + ${email} + + ${generated} +  ${redeemed_time} +  ${stored_time} +  ${emailed_time} + ${comment} + + + + \ No newline at end of file diff --git a/tpl/saimod_mail_lists_tr.tpl b/tpl/saimod_mail_lists_tr.tpl new file mode 100644 index 0000000..c618891 --- /dev/null +++ b/tpl/saimod_mail_lists_tr.tpl @@ -0,0 +1,13 @@ + + ${used_code} + ${email} + + ${generated} +  ${redeemed_time} +  ${stored_time} +  ${emailed_time} + ${comment} + + + + \ No newline at end of file diff --git a/tpl/saimod_mail_templates_tr.tpl b/tpl/saimod_mail_templates_tr.tpl new file mode 100644 index 0000000..c618891 --- /dev/null +++ b/tpl/saimod_mail_templates_tr.tpl @@ -0,0 +1,13 @@ + + ${used_code} + ${email} + + ${generated} +  ${redeemed_time} +  ${stored_time} +  ${emailed_time} + ${comment} + + + + \ No newline at end of file