commit 7f436e7fd60653b352e54796681537ee525a55b4 Author: Ulf Gebhardt Date: Tue May 29 22:13:16 2018 +0200 Major Update 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