|
|
@ -383,7 +383,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$this->get_lang('MailStudentRequest'), |
|
|
|
$this->get_lang('MailStudentRequest'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_received.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/student_notice_student.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to superior |
|
|
|
// Mail to superior |
|
|
@ -391,7 +391,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$this->get_lang('MailStudentRequest'), |
|
|
|
$this->get_lang('MailStudentRequest'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_superior.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/student_notice_superior.tpl'), |
|
|
|
$data['s'], |
|
|
|
$data['s'], |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
@ -402,7 +402,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$this->get_lang('MailBossAccept'), |
|
|
|
$this->get_lang('MailBossAccept'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_superior_approved.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/superior_accepted_notice_student.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to superior |
|
|
|
// Mail to superior |
|
|
@ -410,7 +410,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$this->get_lang('MailBossAccept'), |
|
|
|
$this->get_lang('MailBossAccept'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_approve_confirmed.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/superior_accepted_notice_superior.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to admin |
|
|
|
// Mail to admin |
|
|
@ -420,7 +420,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$adminId, |
|
|
|
$adminId, |
|
|
|
$this->get_lang('MailBossAccept'), |
|
|
|
$this->get_lang('MailBossAccept'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_approved_info_admin.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/superior_accepted_notice_admin.tpl'), |
|
|
|
$data['s'], |
|
|
|
$data['s'], |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
@ -432,7 +432,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$this->get_lang('MailBossReject'), |
|
|
|
$this->get_lang('MailBossReject'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_superior_disapproved.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/superior_rejected_notice_student.tpl'), |
|
|
|
$data['s'], |
|
|
|
$data['s'], |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
@ -441,7 +441,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$this->get_lang('MailBossReject'), |
|
|
|
$this->get_lang('MailBossReject'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_disapprove_confirmed.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/superior_rejected_notice_superior.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -451,7 +451,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$this->get_lang('MailStudentRequestSelect'), |
|
|
|
$this->get_lang('MailStudentRequestSelect'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_received.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/student_notice_student.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to superior |
|
|
|
// Mail to superior |
|
|
@ -459,7 +459,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$this->get_lang('MailStudentRequestSelect'), |
|
|
|
$this->get_lang('MailStudentRequestSelect'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_superior.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/student_notice_superior.tpl'), |
|
|
|
$data['s'], |
|
|
|
$data['s'], |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
@ -470,7 +470,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$this->get_lang('MailAdminAccept'), |
|
|
|
$this->get_lang('MailAdminAccept'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_approval_admin_accepted_notice_student.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/admin_accepted_notice_student.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to superior |
|
|
|
// Mail to superior |
|
|
@ -478,7 +478,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$this->get_lang('MailAdminAccept'), |
|
|
|
$this->get_lang('MailAdminAccept'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_approval_admin_accepted_notice_superior.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/admin_accepted_notice_superior.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to admin |
|
|
|
// Mail to admin |
|
|
@ -488,7 +488,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$adminId, |
|
|
|
$adminId, |
|
|
|
$this->get_lang('MailAdminAccept'), |
|
|
|
$this->get_lang('MailAdminAccept'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_approval_admin_accepted_notice_admin.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/admin_accepted_notice_admin.tpl'), |
|
|
|
$data['s'], |
|
|
|
$data['s'], |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
@ -499,7 +499,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$this->get_lang('MailAdminReject'), |
|
|
|
$this->get_lang('MailAdminReject'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_approval_admin_rejected_notice_student.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/admin_rejected_notice_student.tpl'), |
|
|
|
$data['s'], |
|
|
|
$data['s'], |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
@ -508,7 +508,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$data['superior']['user_id'], |
|
|
|
$this->get_lang('MailAdminReject'), |
|
|
|
$this->get_lang('MailAdminReject'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_approval_admin_rejected_notice_superior.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/admin_rejected_notice_superior.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to admin |
|
|
|
// Mail to admin |
|
|
@ -518,7 +518,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$adminId, |
|
|
|
$adminId, |
|
|
|
$this->get_lang('MailAdminReject'), |
|
|
|
$this->get_lang('MailAdminReject'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_approval_admin_rejected_notice_admin.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/admin_rejected_notice_admin.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -528,7 +528,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$data['student']['user_id'], |
|
|
|
$this->get_lang('MailStudentRequestNoBoss'), |
|
|
|
$this->get_lang('MailStudentRequestNoBoss'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_received_no_superior.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/student_no_superior_notice_student.tpl'), |
|
|
|
$data['s'] |
|
|
|
$data['s'] |
|
|
|
); |
|
|
|
); |
|
|
|
// Mail to admin |
|
|
|
// Mail to admin |
|
|
@ -538,7 +538,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface |
|
|
|
$data['u'], |
|
|
|
$data['u'], |
|
|
|
$adminId, |
|
|
|
$adminId, |
|
|
|
$this->get_lang('MailStudentRequestNoBoss'), |
|
|
|
$this->get_lang('MailStudentRequestNoBoss'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/advsub_request_no_superior_info_admin.tpl'), |
|
|
|
$tpl->fetch('/advancedsubscription/views/student_no_superior_notice_admin.tpl'), |
|
|
|
$data['s'], |
|
|
|
$data['s'], |
|
|
|
true |
|
|
|
true |
|
|
|
); |
|
|
|
); |
|
|
|