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