$subject = replace_data($_arr['zag'], '%site%', ADRESS_SITE); $subject = replace_data($subject, '%number_order%', '' . $_number_order); // отправляем мыло sent_email_new($GLOBALS["mailadmin"], $message, "", $subject, $_user->email); //---------------------------------------------------------// //---------------------------------------------------------// //---------------------------------------------------------// //---------------------------------------------------------// //---------- Отправляем мыло useru ------------------------// //---------------------------------------------------------// // парсим тело письма $_arr = ___findarray('select * from message where id=5'); // елементы для замены $mass_element_for_parsing = array('%number_order%', '%site%', '%order%', '%name%'); // заменяеміе значения $mass_result_for_parsing = array('' . $_number_order, ADRESS_SITE, system::show_tpl(array('result' => mycabinet::get_Order($_number_order)), '/frontend/mycabinet/list_mail.php'), $_user->name); // парсим данные $message = parsing_data($mass_element_for_parsing, $mass_result_for_parsing, nl2br($_arr['text'])); // парсим заголовок письма $subject = replace_data($_arr['zag'], '%site%', ADRESS_SITE); $subject = replace_data($subject, '%number_order%', '' . $_number_order); // отправляем мыло sent_email_new($_user->email, $message, "", $subject, $GLOBALS["mailadmin"]); //---------------------------------------------------------// //---------------------------------------------------------// //---------------------------------------------------------// // очищаем корзину basket::clear_Basket(); $_str .= v::getI18n('message_after_oformleniya_basket'); echo "<meta http-equiv='refresh' content='5;URL=/index.php'>"; } else {
<?php echo system::show_data($obj->created_at); ?> </div> </div> <table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th align="left">Товар</th> <th> </th> <th align="center">Колличество</th> <th align="center">Сумма</th> </tr> <?php echo system::show_tpl(array('result' => mycabinet::get_Order($obj->id), 'status_order' => $status_order), '/frontend/mycabinet/list.php'); ?> </table> <div class="itogo_wrap" style="-moz-border-radius: 0 0 20px 20px; -webkit-border-radius: 0 0 20px 20px; -khtml-border-radius: 0 0 20px 20px; border-radius: 0 0 20px 20px; background:#f2f6f9; overflow:hidden; padding:5px 11px 8px 0; margin:0 0 20px 0"> Итого: <span class="itogo_sum"> <?php echo mycabinet::get_Total_Order($obj->id)->total; ?> </span> <span class="rub"> a </span>