本文整理汇总了PHP中tep_date_long函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_date_long函数的具体用法?PHP tep_date_long怎么用?PHP tep_date_long使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_date_long函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: before_process
function before_process()
{
global $order;
parent::before_process();
$days = 7;
if (is_numeric(MODULE_PAYMENT_PAYMILL_ELV_PRENOTIFICATION_DAYS)) {
$days = MODULE_PAYMENT_PAYMILL_ELV_PRENOTIFICATION_DAYS;
}
$date = tep_date_long(date('Y-m-d', strtotime("+{$days} day")) . ' 00:00:00');
if ($order->info['comments']) {
$order->info['comments'] .= "\n" . SEPA_DRAWN_TEXT . $date;
} else {
$order->info['comments'] = "\n" . SEPA_DRAWN_TEXT . $date;
}
}
示例2: tep_db_query
echo '<span class="main"><strong>' . BOX_HEADING_REVIEWS . '</strong></span><br>';
$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int) $_GET['products_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);
if ($reviews['count'] > 0) {
echo '<span class="main">' . TEXT_CURRENT_REVIEWS . ' ' . $reviews['count'];
echo '<span class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . (int) $_GET['products_id']) . '">' . BOX_REVIEWS_READ_REVIEW . '</a></span><br>';
} else {
echo '<span class="main">' . BOX_REVIEWS_NO_REVIEWS . '</span><br>';
}
echo '<span class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . (int) $_GET['products_id']) . '">' . BOX_REVIEWS_WRITE_REVIEW . '</a></span><br>';
echo '<br><br>';
echo '<span class="main"><strong>' . TAB_EXTRA_INFORMATIONS . '</strong></span><br>';
if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
echo '<span class="main">' . sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])) . '</span>';
} else {
echo '<span class="main">' . sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])) . '</span>';
}
if (isset($_SESSION['customer_id'])) {
$check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int) $_GET['products_id'] . "' and customers_id = '" . (int) $customer_id . "'");
$check = tep_db_fetch_array($check_query);
$notification_exists = $check['count'] > 0 ? true : false;
} else {
$notification_exists = false;
}
if ($notification_exists == true) {
echo '<br><span class="main"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY_REMOVE, tep_get_products_name((int) $_GET['products_id'])) . '</a></span><br>';
} else {
echo '<br><span class="main"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY, tep_get_products_name((int) $_GET['products_id'])) . '</a></span><br>';
}
echo '<span class="main"><a href="' . tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . (int) $_GET['products_id'], 'NONSSL') . '">' . BOX_TELL_A_FRIEND_TEXT . '</a></span><br>';
?>
示例3: tep_db_query
// Now get all downloadable products in that order
$downloads_query = tep_db_query("select date_format(o.date_purchased, '%Y-%m-%d') as date_purchased_day, opd.download_maxdays, op.products_name, opd.orders_products_download_id, opd.orders_products_filename, opd.download_count, opd.download_maxdays from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd where o.customers_id = '" . (int) $customer_id . "' and o.orders_id = '" . (int) $last_order . "' and o.orders_id = op.orders_id and op.orders_products_id = opd.orders_products_id and opd.orders_products_filename != ''");
if (tep_db_num_rows($downloads_query) > 0) {
$xoopsTpl->assign("down", 1);
$i = 0;
while ($downloads = tep_db_fetch_array($downloads_query)) {
$tmp_downloads[$i] = $downloads;
// MySQL 3.22 does not have INTERVAL
list($dt_year, $dt_month, $dt_day) = explode('-', $downloads['date_purchased_day']);
$download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year);
$download_expiry = date('Y-m-d H:i:s', $download_timestamp);
// The link will appear only if:
// - Download remaining count is > 0, AND
// - The file is present in the DOWNLOAD directory, AND EITHER
// - No expiry date is enforced (maxdays == 0), OR
// - The expiry date is not reached
if ($downloads['download_count'] > 0 && file_exists(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']) && ($downloads['download_maxdays'] == 0 || $download_timestamp > time())) {
$tmp_downloads[$i]['link'] = tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']);
$tmp_downloads[$i]['slink'] == 1;
}
$tmp_downloads[$i]['date'] = tep_date_long($download_expiry);
$i++;
}
if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
$xoopsTpl->assign("fahi", 1);
$xoopsTpl->assign("footer_down", sprintf(FOOTER_DOWNLOAD, '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'));
}
}
?>
<!-- downloads_eof //-->
示例4: tep_date_long
<td class="main"><?php
echo '<b>' . TEXT_ORDER_NUMBER . '</b> ' . $history['orders_id'];
?>
</td>
<td class="main" align="right"><?php
echo '<b>' . TEXT_ORDER_STATUS . '</b> ' . $history['orders_status_name'];
?>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="2" cellpadding="4">
<tr>
<td class="main" width="50%" valign="top"><?php
echo '<b>' . TEXT_ORDER_DATE . '</b> ' . tep_date_long($history['date_purchased']) . '<br><b>' . $order_type . '</b> ' . tep_output_string_protected($order_name);
?>
</td>
<td class="main" width="30%" valign="top"><?php
echo '<b>' . TEXT_ORDER_PRODUCTS . '</b> ' . $products['count'] . '<br><b>' . TEXT_ORDER_COST . '</b> ' . strip_tags($history['order_total']);
?>
</td>
<td class="main" width="20%"><?php
echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '">' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>';
?>
</td>
</tr>
</table></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
示例5: str_replace
$news_description = str_replace('<p>', '', $news_description);
$news_description = str_replace(array('<br />', '<br>', '</p>'), "\n", $news_description);
$news_description = trim(preg_replace("/[\r\n]+/", "\n", $news_description));
$news_short_description = tep_cut_string($news_description, 200);
if (strlen($news_description) > 200) {
$news_short_description .= '...';
}
$news_image = '';
if (tep_not_null($listing['news_image'])) {
$news_image = str_replace('news/', 'news/thumbs/', $listing['news_image']);
if (!file_exists(DIR_FS_CATALOG . 'images/' . $news_image)) {
$news_image = '';
}
}
$news_link = tep_href_link(FILENAME_NEWS, 'news_id=' . $listing['news_id'] . ($news_type_id > 0 ? '&tPath=' . $news_type_id : ''));
echo '<br clear="right" />' . "\n" . '<strong><a href="' . $news_link . '">' . $listing['news_name'] . '</a></strong><br />' . "\n" . (tep_not_null($news_image) ? '<a href="' . $news_link . '">' . tep_image(DIR_WS_IMAGES . $news_image, $listing['news_name'], '', '', 'class="one_image"') . '</a>' : '') . ($news_type_id == 0 ? '<a href="' . tep_href_link(FILENAME_NEWS, 'tPath=' . $listing['news_types_id']) . '" class="mediumText">' . $news_type_info['news_types_name'] . '</a>' . "\n" : '') . '<div class="smallText">' . tep_date_long($listing['date_added']) . '</div>' . "\n" . '' . nl2br($news_short_description) . '<br />' . "\n";
}
?>
<br clear="all" /><div id="listing-split">
<div style="float: left;"><?php
echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_RECORDS);
?>
</div>
<div style="text-align: right"><?php
echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_NEWS_RESULTS, tep_get_all_get_params(array('page', 'info', 'x', 'y')));
?>
</div>
</div>
<?php
} else {
echo '<p>' . TEXT_NO_NEWS . '</p>';
示例6: tep_db_prepare_input
case 'update_order':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
$status = tep_db_prepare_input($HTTP_POST_VARS['status']);
$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
$order_updated = false;
$check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $oID . "'");
$check_status = tep_db_fetch_array($check_status_query);
if ($check_status['orders_status'] != $status || tep_not_null($comments)) {
tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int) $oID . "'");
$customer_notified = '0';
if (isset($HTTP_POST_VARS['notify']) && $HTTP_POST_VARS['notify'] == 'on') {
$notify_comments = '';
if (isset($HTTP_POST_VARS['notify_comments']) && $HTTP_POST_VARS['notify_comments'] == 'on') {
$notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n";
}
$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
$customer_notified = '1';
}
tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int) $oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");
$order_updated = true;
}
if ($order_updated == true) {
$messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
} else {
$messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
}
tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit'));
break;
case 'deleteconfirm':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
示例7: Translate
echo '<strong>' . Translate('Bestelnummer') . '</strong> ' . $history['orders_id'];
?>
</td>
<td class="padding3" align="right"><?php
echo '<strong>' . Translate('Status') . '</strong> ' . $history['orders_status_name'];
?>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td>
<table border="0" width="100%" cellspacing="2" cellpadding="4">
<tr>
<td class="main" width="50%" valign="top"><?php
echo '<b>' . Translate('Datum') . '</b> ' . utf8_encode(tep_date_long($history['date_purchased'])) . '<br><b>' . $order_type . '</b> ' . tep_output_string_protected($order_name);
?>
</td>
<td class="main" width="30%" valign="top"><?php
echo '<b>' . Translate('Producten') . '</b> ' . $products['count'] . '<br><b>' . Translate('Bedrag') . '</b> ' . strip_tags($history['order_total']);
?>
</td>
<td class="main" align="right" width="20%"><?php
echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, (isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '" class="button-a"><span>' . Translate('Bekijken') . '</span></a>';
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
示例8: array
$update_status = array('orders_status' => 3);
tep_db_perform(TABLE_ORDERS, $update_status, 'update', "orders_id = '" . $order . "'");
if ($send_email_on_shipping) {
$customer_notified = '1';
} else {
$customer_notified = '0';
}
tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . $order . "', '3', now(), '" . $customer_notified . "', '" . $fedex_comments . "')");
// send email automatically on shipping
if ($send_email_on_shipping) {
$check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $order . "'");
$check_status = tep_db_fetch_array($check_status_query);
if (tep_not_null($trackNum)) {
$email_notify_tracking = sprintf(EMAIL_TEXT_TRACKING_NUMBER) . "\n" . URL_TO_TRACK1 . nl2br(tep_output_string_protected($trackNum)) . "\n\n";
}
$email_txt = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $order, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $email_notify_tracking . sprintf(EMAIL_TEXT_STATUS_UPDATE, 'Shipped');
tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_txt, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
}
// ... and display the new label without manifest entry for express shipments
$ship_type_query = tep_db_query("select shipping_type from " . TABLE_SHIPPING_MANIFEST . " where orders_id = '" . $order . "'");
$ship_type = tep_db_fetch_array($ship_type_query);
if ($service_type < 89) {
$delete_manifest_query = tep_db_query("delete from " . TABLE_SHIPPING_MANIFEST . " where orders_id = '" . $order . "'");
}
tep_redirect('fedex_popup.php?num=' . $trackNum . '&oID=' . $order . '&multiple=' . $shipData[1117]);
} else {
////
// cancel a scheduled shipment
if ($action == 'cancel') {
if (!$order) {
echo ERROR_NO_ORDER_SPECIFIED;
示例9: sprintf
$order->setStatus($status, $process);
$order_updated = true;
$thestatus = sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . "\n\n";
} else {
$thestatus = '';
}
if ($_POST['notify'] == 'on') {
$customer_notified = 1;
if ($_POST['notify_comments'] == 'on') {
if (!empty($comments) || $comments != '') {
$comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments);
} else {
$comments = '';
}
}
$email = 'Dear ' . $check_status['customers_name'] . ',' . "\n\n" . STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' <a href="' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . '">My Order History</a>' . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $comments . $thestatus . "\n" . EMAIL_TEXT_FOOTER;
tep_mail($check_status['customers_name'], $check_status['customers_email_address'], sprintf(EMAIL_TEXT_SUBJECT_UPDATE, $oID), $email, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS);
// # Send a copy to the store admin
tep_mail($check_status['customers_name'], STORE_OWNER_EMAIL_ADDRESS, sprintf(EMAIL_TEXT_SUBJECT_ADMIN, $oID), $email, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS);
// # Update order status history table with current status
$comments = strip_tags(tep_db_input(trim(str_replace(array("Comments:", "\n\n"), "", $comments))));
}
// # get current admin username
$admin_user = !empty($_COOKIE['admin_user']) ? $_COOKIE['admin_user'] : '';
tep_db_query("INSERT INTO " . TABLE_ORDERS_STATUS_HISTORY . " \n\t\t\t\t\t\t\t SET orders_id = '" . (int) $oID . "',\n\t\t\t\t\t\t\t orders_status_id = '" . (int) $status . "',\n\t\t\t\t\t\t\t date_added = NOW(), \n\t\t\t\t\t\t\t customer_notified = '" . $customer_notified . "', \n\t\t\t\t\t\t\t comments = '" . $comments . "',\n\t\t\t\t\t\t\t admin_user = '" . $admin_user . "'\n\t\t\t\t\t\t\t");
// # 1.3 UPDATE PRODUCTS #####
$RunningSubTotal = 0;
$RunningTax = 0;
// # Do pre-check for subtotal field existence
$ot_subtotal_found = false;
foreach ($update_totals as $total_details) {
示例10: elseif
} elseif (tep_not_null($news_params[0])) {
tep_redirect(tep_href_link(FILENAME_ERROR_404));
}
if (tep_not_null($news_path)) {
$news_type_query = tep_db_query("select * from " . TABLE_NEWS_TYPES . " where news_types_status = '1' and news_types_path = '" . tep_db_input(tep_db_prepare_input($news_path)) . "' and language_id = '" . (int) $languages_id . "'");
if (tep_db_num_rows($news_type_query) > 0) {
$news_type_info = tep_db_fetch_array($news_type_query);
$news_type_id = $news_type_info['news_types_id'];
$breadcrumb->add($news_type_info['news_types_name'], tep_href_link(FILENAME_NEWS, 'tPath=' . $news_type_info['news_types_id']));
} else {
tep_redirect(tep_href_link(FILENAME_ERROR_404));
}
} elseif (tep_not_null($news_year)) {
$breadcrumb->add($news_year, tep_href_link(FILENAME_NEWS, 'year=' . $news_year));
if (tep_not_null($news_month)) {
$breadcrumb->add($monthes_array[(int) $news_month], tep_href_link(FILENAME_NEWS, 'year=' . $news_year . '&month=' . $news_month));
}
}
if (tep_not_null($news_id)) {
$news_check_query = tep_db_query("select news_id, news_name, date_added from " . TABLE_NEWS . " where " . ($news_type_id > 0 ? "news_types_id = '" . (int) $news_type_id . "'" : "year(date_added) = '" . (int) $news_year . "' and month(date_added) = '" . (int) $news_month . "'") . " and news_id = '" . (int) $news_id . "' and language_id = '" . (int) $languages_id . "'");
if (tep_db_num_rows($news_check_query) > 0) {
$news_check = tep_db_fetch_array($news_check_query);
$news_depth = 'news';
$content_id = $news_check['news_id'];
$content_type = 'news';
$breadcrumb->add(tep_date_long($news_check['date_added']) . ' - ' . $news_check['news_name'], tep_href_link(FILENAME_NEWS, 'news_id=' . $news_check['news_id'] . ($news_type_id > 0 ? '&tPath=' . $news_type_id : '')));
}
}
unset($HTTP_GET_VARS['nName']);
}
require DIR_WS_INCLUDES . 'application_bottom.php';
示例11: foreach
<td class="dataTableHeadingContent" align="right"><?php
echo TABLE_HEADING_ACTION;
?>
</td>
</tr>
<?php
foreach ($new_versions as $version) {
?>
<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
<td class="dataTableContent"><?php
echo '<a href="' . $version[2] . '" target="_blank">osCommerce Online Merchant v' . $version[0] . '</a>';
?>
</td>
<td class="dataTableContent"><?php
echo tep_date_long(substr($version[1], 0, 4) . '-' . substr($version[1], 4, 2) . '-' . substr($version[1], 6, 2));
?>
</td>
<td class="dataTableContent" align="right"><?php
echo '<a href="' . $version[2] . '" target="_blank">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
?>
</td>
</tr>
<?php
}
?>
</table></rd>
</tr>
</table></td>
</tr>
<?php
示例12: array
<?php
#########################################
# Author : D3W4 & SAHAT #
# Created : May 20, 2010 10:14:58 AM #
#########################################
$email_subject = 'Ihre Bestellung bei JULIE & GRACE über Otto.de';
$email_text_array = array();
$email_text_array[0] = 'Guten Tag ' . $to_name . ',';
$email_text_array[1] = 'vielen Dank für Ihre Bestellung bei JULIE & GRACE über Otto.de.';
$email_text_array[2] = 'Ihre Bestellung vom ' . tep_date_long($order['order_date']) . ' wurde erfolgreich von Otto.de an uns übermittelt.';
//XMAS LATE DELIVERY ($email_text_array[2])
//$email_text_array[2] .= ' <strong>Bitte beachten Sie, dass unsere Lieferzeit derzeit 1-2 Wochen beträgt und wir daher eine Zustellung bis zum 24. Dezember 2010 leider nicht garantieren können.</strong>';
$email_text_array[3] .= 'Wir werden Ihre Bestellung wie folgt ausführen:';
$email_text_array[4] = '';
$total = 0;
if (isset($item_mail)) {
foreach ($item_mail as $p) {
$email_text_array[4] .= $p['order_quantity'] * 1 . ' x ';
$email_text_array[4] .= $p['billing_text'];
$email_text_array[4] .= ' (' . $p['article_number'] . ') = ';
$value = $p['order_quantity'] * $p['price'];
$total += $value;
$tpp = displayCurrency('EUR', $value);
$email_text_array[4] .= $tpp;
$email_text_array[4] .= "\n";
}
}
if (isset($order['shipping_costs']) && $order['shipping_costs'] > 0) {
$total += $order['shipping_costs'];
$email_text_array[4] .= 'Verpackung & Versand: ' . displayCurrency('EUR', $order['shipping_costs']) . "\n";
示例13: tep_href_link
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
echo ' <tr valign="top">' . "\n" . ' <td width="1%" align="right">' . $order->products[$i]['qty'] . '</td>' . "\n" . ' <td width="1%">x</td>' . "\n" . ' <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '">' . $order->products[$i]['name'] . '</a>' . (tep_not_null($order->products[$i]['tracking_number']) && $tracking_numbers_count > 1 ? '<br />' . "\n" . HEADING_TRACKING_NUMBER . ' ' . $order->products[$i]['tracking_number'] : '') . '</td>' . "\n" . ' <td align="right" nowrap="nowrap">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . ' </tr>' . "\n";
}
?>
</table>
</fieldset>
<fieldset>
<legend><?php
echo HEADING_ORDER_HISTORY;
?>
</legend>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<?php
$statuses_query = tep_db_query("select os.orders_status_name, os.orders_status_description, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int) $HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int) DEFAULT_LANGUAGE_ID . "' order by osh.date_added");
while ($statuses = tep_db_fetch_array($statuses_query)) {
echo ' <tr valign="top">' . "\n" . ' <td width="50%">' . tep_date_long($statuses['date_added']) . '</td>' . "\n" . ' <td width="50%">' . $statuses['orders_status_name'] . (tep_not_null($statuses['comments']) ? ' (' . nl2br(tep_output_string_protected($statuses['comments'])) . ')' : (tep_not_null($statuses['orders_status_description']) ? ' (' . tep_output_string_protected($statuses['orders_status_description']) . ')' : '')) . '</td>' . "\n" . ' </tr>' . "\n";
}
?>
</table>
</fieldset>
<?php
if (DOWNLOAD_ENABLED == 'true') {
include DIR_WS_MODULES . 'downloads.php';
}
?>
<div class="buttons">
<div style="text-align: left;"><?php
echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK, 'class="button_back"') . '</a>';
?>
</div>
</div>
示例14: tep_date_long
</tr>
<?php
}
if (CHECKOUT_SHIPPING_DATE == 'true') {
?>
<!-- ship date -->
<tr>
<td class="main"><?php
echo '<b>' . HEADING_SHIPPING_DATE . '</b>';
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo tep_date_long($order->info['delivery_date']);
?>
</td>
</tr>
<!-- eof ship date -->
<?php
}
// end if (CHECKOUT_SHIPPING_DATE != 'true')
?>
</table></td>
<?php
}
?>
<td width="<?php
echo $order->delivery != false ? '70%' : '100%';
示例15: tep_href_link
$template_pinfo['moreinfolabel'] = TEXT_MORE_INFORMATION;
$template_pinfo['moreinfourl'] = tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false);
} else {
$template_pinfo['moreinfolabel'] = '';
$template_pinfo['moreinfourl'] = '';
}
$template_pinfo['moreinfolabel'] = str_replace('%s', $template_pinfo['moreinfourl'], $template_pinfo['moreinfolabel']);
// See if product is not yet available
if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
$template_pinfo['productdatelabel'] = sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available']));
// Modified in v4.5
$template_pinfo['productdate'] = tep_date_long($product_info['products_date_available']);
} else {
$template_pinfo['productdatelabel'] = sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added']));
// Modified in v4.5
$template_pinfo['productdate'] = tep_date_long($product_info['products_date_added']);
}
// Strip out %s values
//$template_pinfo['productdatelabel'] = str_replace('%s.', '', $template['productdatelabel']); // Removed in v4.5
// See if any product reviews
$template_pinfo['reviewsurl'] = tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params());
$template_pinfo['reviewsbutton'] = tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS);
$template_pinfo['addtocartbutton'] = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
// See if any "Also Purchased" items. Feature added in v4.0.6
$sts->start_capture();
if (USE_CACHE == 'true' && empty($SID)) {
echo tep_cache_also_purchased(3600);
} else {
include DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS;
}
$sts->stop_capture('alsopurchased');