12 include_once
'Services/Form/classes/class.ilFormPropertyGUI.php';
26 $subtpl =
new ilTemplate(
"tpl.billingmail_new_placeholders.html",
false,
false,
"Services/Payment");
27 $subtpl->setVariable(
'TXT_USE_PLACEHOLDERS', $lng->txt(
'mail_nacc_use_placeholder'));
28 $subtpl->setVariable(
'TXT_PLACEHOLDERS_ADVISE', sprintf($lng->txt(
'placeholders_advise'),
'<br />'));
29 $subtpl->setVariable(
'TXT_MAIL_SALUTATION', $lng->txt(
'mail_nacc_salutation'));
30 $subtpl->setVariable(
'TXT_FIRST_NAME', $lng->txt(
'firstname'));
31 $subtpl->setVariable(
'TXT_LAST_NAME', $lng->txt(
'lastname'));
32 $subtpl->setVariable(
'TXT_LOGIN', $lng->txt(
'mail_nacc_login'));
33 $subtpl->setVariable(
'TXT_ILIAS_URL', $lng->txt(
'mail_nacc_ilias_url'));
34 $subtpl->setVariable(
'TXT_CLIENT_NAME', $lng->txt(
'mail_nacc_client_name'));
36 #$subtpl->setVariable('TXT_TRANSACTION', $lng->txt('transaction'));
37 #$subtpl->setVariable('TXT_TRANSACTION_EXTERN', $lng->txt('transaction_extern'));
38 #$subtpl->setVariable('TXT_ORDER_DATE', $lng->txt('order_date'));
40 $a_tpl->setCurrentBlock(
"prop_generic");
41 $a_tpl->setVariable(
"PROP_GENERIC", $subtpl->get());
42 $a_tpl->parseCurrentBlock();
53 switch ($user->getGender())
55 case 'f': $gender_salut = $lng->txt(
'salutation_f');
57 case 'm': $gender_salut = $lng->txt(
'salutation_m');
61 $a_message = str_replace(
'[MAIL_SALUTATION]', $gender_salut, $a_message);
62 $a_message = str_replace(
'[LOGIN]', $user->getLogin(), $a_message);
63 $a_message = str_replace(
'[FIRST_NAME]', $user->getFirstname(), $a_message);
64 $a_message = str_replace(
'[LAST_NAME]', $user->getLastname(), $a_message);
65 $a_message = str_replace(
'[ILIAS_URL]', ILIAS_HTTP_PATH.
'/login.php?client_id='.CLIENT_ID, $a_message);
66 $a_message = str_replace(
'[CLIENT_NAME]', CLIENT_NAME, $a_message);
69 include_once
'./Services/Payment/classes/class.ilShopLinkBuilder.php';
71 $bought_objects_url = $shopLB->buildLink(
'ilShopBoughtObjectsGUI');
72 $shop_url = $shopLB->buildLink(
'ilShopGUI');
74 $a_message = str_replace(
'[SHOP_BOUGHT_OBJECTS_URL]', $bought_objects_url, $a_message);
75 $a_message = str_replace(
'[SHOP_URL]', $shop_url, $a_message);