本文整理汇总了PHP中tep_catalog_href_link函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_catalog_href_link函数的具体用法?PHP tep_catalog_href_link怎么用?PHP tep_catalog_href_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_catalog_href_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init_sessions
function init_sessions()
{
extract(tep_load('defs', 'database', 'sessions', 'http_headers'));
if ($cDefs->action != 'direct_management') {
return false;
}
if (!isset($_POST['dm_select']) || $_POST['dm_select'] != 'confirm') {
return false;
}
$db->query("delete from " . TABLE_SESSIONS . " where sesskey = '" . $db->filter($cSessions->id) . "'");
$sql_data_array = array('sesskey' => $cSessions->id, 'ip_long' => $http->ip_string, 'value' => base64_encode(serialize(array())), 'expiry' => $cSessions->get_life());
$db->perform(TABLE_SESSIONS, $sql_data_array);
tep_redirect(tep_catalog_href_link('', $this->options['admin_key'] . '=' . $cSessions->id, 'SSL'));
return true;
}
示例2: tep_catalog_href_link
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php
echo JQUERY_DATEPICKER_I18N_CODE;
?>
']);
</script>
<?php
}
?>
<script type="text/javascript" src="<?php
echo tep_catalog_href_link('ext/flot/jquery.flot.min.js', '', 'SSL');
?>
"></script>
<script type="text/javascript" src="<?php
echo tep_catalog_href_link('ext/flot/jquery.flot.time.min.js', '', 'SSL');
?>
"></script>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script type="text/javascript" src="includes/general.js"></script>
<?php
// TinyMCE <script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
?>
<script src="./ext/tinymce/tinymce.min.js"></script>
<?php
// TinyMCE
/* (strpos($_SERVER['PHP_SELF'],'categories.php')) || (strpos($_SERVER['PHP_SELF'],'banner_manager.php')) ) { ?>
<script>
tinymce.init({
selector:'.htmleditor',
示例3: tep_image
* Copyright (c) 2005 FlinkUX Michael Hammelmann <michael.hammelmann@flinkux.de>
* @package xosC
* @subpackage admin
**/
if ($messageStack->size > 0) {
echo $messageStack->output();
}
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><?php
echo tep_image(DIR_WS_IMAGES . 'xosc-logo-wide.gif', 'xosC', '150', '42');
?>
</td>
<td align="right"><?php
echo '<a href="http://www.flinkux.de" target="_blank">' . tep_image(DIR_WS_IMAGES . 'header_support.gif', HEADER_TITLE_SUPPORT_SITE, '50', '50') . '</a> <a href="' . tep_catalog_href_link() . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_ONLINE_CATALOG, '53', '50') . '</a> <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_administration.gif', HEADER_TITLE_ADMINISTRATION, '50', '50') . '</a>';
?>
</td>
</tr>
<tr class="headerBar">
<td class="headerBarContent"> <?php
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>';
?>
</td>
<td class="headerBarContent" align="right"><?php
echo '<a href="http://www.flinkux.de" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a> | <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> | <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>';
?>
</td>
</tr>
</table>
示例4: install
function install()
{
if (!isset($_GET['active']) || $_GET['active'] != 'true') {
tep_redirect(tep_href_link('ext/modules/payment/moneybookers/activation.php', 'selected_box=modules&set=payment'));
}
// Preparing order status
$check_query = tep_db_query("select orders_status_id from " . TABLE_ORDERS_STATUS . " where orders_status_name = 'Preparing [Moneybookers]' limit 1");
if (tep_db_num_rows($check_query) < 1) {
$status_query = tep_db_query("select max(orders_status_id) as status_id from " . TABLE_ORDERS_STATUS);
$status = tep_db_fetch_array($status_query);
$preparing_status_id = $status['status_id'] + 1;
$languages = tep_get_languages();
foreach ($languages as $lang) {
tep_db_query("insert into " . TABLE_ORDERS_STATUS . " (orders_status_id, language_id, orders_status_name) values ('" . $preparing_status_id . "', '" . $lang['id'] . "', 'Preparing [Moneybookers]')");
}
$flags_query = tep_db_query("describe " . TABLE_ORDERS_STATUS . " public_flag");
if (tep_db_num_rows($flags_query) == 1) {
tep_db_query("update " . TABLE_ORDERS_STATUS . " set public_flag = 0 and downloads_flag = 0 where orders_status_id = '" . $preparing_status_id . "'");
}
} else {
$check = tep_db_fetch_array($check_query);
$preparing_status_id = $check['orders_status_id'];
}
// Transactions order status
$check_query = tep_db_query("select orders_status_id from " . TABLE_ORDERS_STATUS . " where orders_status_name = 'Transaction [Moneybookers]' limit 1");
if (tep_db_num_rows($check_query) < 1) {
$status_query = tep_db_query("select max(orders_status_id) as status_id from " . TABLE_ORDERS_STATUS);
$status = tep_db_fetch_array($status_query);
$transactions_status_id = $status['status_id'] + 1;
$languages = tep_get_languages();
foreach ($languages as $lang) {
tep_db_query("insert into " . TABLE_ORDERS_STATUS . " (orders_status_id, language_id, orders_status_name) values ('" . $transactions_status_id . "', '" . $lang['id'] . "', 'Transaction [Moneybookers]')");
}
$flags_query = tep_db_query("describe " . TABLE_ORDERS_STATUS . " public_flag");
if (tep_db_num_rows($flags_query) == 1) {
tep_db_query("update " . TABLE_ORDERS_STATUS . " set public_flag = 0 and downloads_flag = 0 where orders_status_id = '" . $transactions_status_id . "'");
}
} else {
$check = tep_db_fetch_array($check_query);
$transactions_status_id = $check['orders_status_id'];
}
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Moneybookers eWallet', 'MODULE_PAYMENT_MONEYBOOKERS_STATUS', 'False', 'Do you want to accept Moneybookers eWallet payments?', '6', '3', 'tep_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('E-Mail Address', 'MODULE_PAYMENT_MONEYBOOKERS_PAY_TO', '" . (isset($_GET['email']) ? $_GET['email'] : '') . "', 'The Moneybookers seller e-mail address to accept payments for', '6', '4', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_MONEYBOOKERS_MERCHANT_ID', '" . (isset($_GET['custid']) ? $_GET['custid'] : '') . "', 'The Moneybookers merchant ID assigned to the seller e-mail address', '6', '4', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Secret Word', 'MODULE_PAYMENT_MONEYBOOKERS_SECRET_WORD', '', 'The secret word to verify transactions with', '6', '4', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Store Logo Image', 'MODULE_PAYMENT_MONEYBOOKERS_STORE_IMAGE', '" . tep_catalog_href_link('images/store_logo.png', '', 'SSL') . "', 'The URL of the store logo image to display on the gateway transaction page. This must be served through HTTPS otherwise it will not be shown.', '6', '4', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('iFrame Presentation', 'MODULE_PAYMENT_MONEYBOOKERS_IFRAME', 'True', 'Show the Moneybookers payment pages through an iFrame?', '6', '3', 'tep_cfg_select_option(array(\\'True\\', \\'False\\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Debug E-Mail Address', 'MODULE_PAYMENT_MONEYBOOKERS_DEBUG_EMAIL', '', 'All parameters of an invalid transaction will be sent to this email address.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_MONEYBOOKERS_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_MONEYBOOKERS_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Preparing Order Status', 'MODULE_PAYMENT_MONEYBOOKERS_PREPARE_ORDER_STATUS_ID', '" . $preparing_status_id . "', 'Set the status of prepared orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Transactions Order Status', 'MODULE_PAYMENT_MONEYBOOKERS_TRANSACTIONS_ORDER_STATUS_ID', '" . $transactions_status_id . "', 'Set the status of callback transactions to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_MONEYBOOKERS_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('cURL Program Location', 'MODULE_PAYMENT_MONEYBOOKERS_CURL', '/usr/bin/curl', 'The location to the cURL program application.', '6', '0' , now())");
}
示例5: tep_catalog_href_link
<tr>
<td valign="top"><div id="logo"><img src="<?php
echo DIR_WS_CATALOG . 'includes/templates/images/logo.gif';
?>
" border="0" /></div></td>
<td valign="top" width="100%">
<div id="headername"><?php
echo STORE_FULL_NAME;
?>
</div>
<div id="headerdesc1"><?php
echo ENTRY_REFFERAL_SERVICE;
?>
</div>
<div id="headerdesc2"><b><?php
echo tep_catalog_href_link(FILENAME_DEFAULT);
?>
</b> | E-mail: <b><?php
echo STORE_OWNER_EMAIL_ADDRESS;
?>
</b></b></div>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td colspan="2"><div id="title"><?php
示例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: status_email
function status_email($oID, $payCC)
{
global $languages_id;
$payCC == 1 ? $status = QBI_CC_STATUS_SELECT : ($status = QBI_MO_STATUS_SELECT);
$comments = tep_db_prepare_input('');
$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_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int) $oID . "'");
$customer_notified = '0';
if (QBI_EMAIL_SEND == 1) {
$result = tep_db_query("SELECT orders_status_name FROM " . TABLE_ORDERS_STATUS . " WHERE orders_status_id={$status} AND language_id={$languages_id}");
if ($myrow = tep_db_fetch_array($result)) {
$status_name = $myrow['orders_status_name'];
}
$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" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $status_name);
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) . "')");
}
return;
}
示例8: tep_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td width="250" class="main"><?php
echo TEXT_AUTHORS_PATH;
?>
</td>
<td class="main"><?php
echo tep_draw_separator('pixel_trans.gif', '18', '12') . ' ' . tep_catalog_href_link(FILENAME_AUTHORS, '', 'NONSSL', false) . tep_draw_input_field('authors_path', $aInfo->authors_path, 'size="' . (tep_not_null($aInfo->authors_path) ? strlen($aInfo->authors_path) - 1 : '7') . '"') . '/';
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" align="right"><?php
echo tep_draw_hidden_field('date_added', tep_not_null($aInfo->date_added) ? $aInfo->date_added : date('Y-m-d'));
if (tep_not_null($HTTP_GET_VARS['aID'])) {
示例9: manualOrder
//end if ($action == 'insert_shipping') {
//13. new order email
if ($action == 'new_order_email') {
$order = new manualOrder($_GET['oID']);
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
//loop all the products in the order
$products_ordered_attributes = '';
if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
$products_ordered_attributes .= "\n\t" . $order->products[$i]['attributes'][$j]['option'] . ' ' . $order->products[$i]['attributes'][$j]['value'];
}
}
$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . $products_model . ' = ' . $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']) . $products_ordered_attributes . "\n";
}
//Build the email
$email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . (int) $_GET['oID'] . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . (int) $_GET['oID'], 'SSL') . "\n" . EMAIL_TEXT_DATE_MODIFIED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
$email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n";
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
$email_order .= strip_tags($order->totals[$i]['title']) . ' ' . strip_tags($order->totals[$i]['text']) . "\n";
}
if ($order->content_type != 'virtual') {
$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . $order->delivery['name'] . "\n";
if ($order->delivery['company']) {
$email_order .= $order->delivery['company'] . "\n";
}
$email_order .= $order->delivery['street_address'] . "\n";
if ($order->delivery['suburb']) {
$email_order .= $order->delivery['suburb'] . "\n";
}
$email_order .= $order->delivery['city'] . "\n";
if ($order->delivery['state']) {
示例10: tep_image
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$category_inputs_string .= '<br />' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']');
}
$contents[] = array('text' => '<br />' . TEXT_CATEGORIES_NAME . $category_inputs_string);
$contents[] = array('text' => '<br />' . TEXT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image'));
$contents[] = array('text' => '<br />' . TEXT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', '', 'size="2"'));
$contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath)));
break;
case 'edit_category':
$heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</strong>');
$contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$category_inputs_string = '';
$languages = tep_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$category_inputs_string .= '<br />' . tep_image(tep_catalog_href_link(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], '', 'SSL'), $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', tep_get_category_name($cInfo->categories_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
$contents[] = array('text' => '<br />' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br />' . DIR_WS_CATALOG_IMAGES . '<br /><strong>' . $cInfo->categories_image . '</strong>');
$contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . tep_draw_file_field('categories_image'));
$contents[] = array('text' => '<br />' . TEXT_EDIT_SORT_ORDER . '<br />' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
$contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id)));
break;
case 'delete_category':
$heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_CATEGORY . '</strong>');
$contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=delete_category_confirm&cPath=' . $cPath) . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
$contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO);
$contents[] = array('text' => '<br /><strong>' . $cInfo->categories_name . '</strong>');
if ($cInfo->childs_count > 0) {
$contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_CHILDS, $cInfo->childs_count));
}
示例11: url
<link rel="stylesheet" type="text/css" href="includes/javascript/jquery-ui-1.8.9.custom.css">
</head>
<body style="background-image: url(images/icons/background.png)">
<div id="login_container">
<div id="login_panel">
<div id="login_header"><?php
echo STORE_NAME;
?>
<span id="login_logo"><?php
echo '<a href="http://www.oscmax.com">' . tep_image(DIR_WS_ADMIN . DIR_WS_ICONS . 'logo.png', PROJECT_VERSION, '187', '54') . '</a>';
?>
</span>
</div>
<div id="login_links"><?php
echo ' <a href="http://www.oscmax.com/" target="_blank">' . HEADER_TITLE_AABOX . '</a> | <a href="http://shop.oscmax.com">' . HEADER_TITLE_OSCDOX . '</a> | <a href="http://wiki.oscdox.com">Wiki</a> | <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a> | <a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>';
?>
</div>
<div id="login_body">
<div id="login_input_container">
<div class="messageAlert"><?php
echo TEXT_MAIN;
?>
</div>
<?php
echo '<center><a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"><button type="button" class="login_button" style="display:inline-block;">Back</button></a></center>';
?>
</div>
</div>
</div>
<div id="login_powered_by"><?php
示例12: tep_image
</head>
<body>
<table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">
<tr>
<td>
<table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
<tr class="mainback">
<td>
<table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
<tr class="logo-head" height="50">
<td height="50"><?php
echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50');
?>
</td>
<td align="right" class="nav-head" nowrap><?php
echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a> | <a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a> | <a href="http://www.oscommerce.com" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>';
?>
</td>
</tr>
<tr class="main">
<td colspan="2" align="center" valign="middle">
<?php
echo tep_draw_form('login', FILENAME_PASSWORD_FORGOTTEN, 'action=process');
?>
<table width="280" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="login_heading" valign="top"> <b><?php
echo HEADING_PASSWORD_FORGOTTEN;
?>
</b></td>
</tr>
示例13: tep_href_link
}
</script>
<div class="pp-container">
<div class="pp-header">
<div id="ppAppInfo" style="float: right;">
<?php
echo $OSCOM_PayPal->getTitle() . ' v' . $OSCOM_PayPal->getVersion() . ' <a href="' . tep_href_link('paypal.php', 'action=info') . '">' . $OSCOM_PayPal->getDef('app_link_info') . '</a> <a href="' . tep_href_link('paypal.php', 'action=privacy') . '">' . $OSCOM_PayPal->getDef('app_link_privacy') . '</a>';
?>
</div>
<a href="<?php
echo tep_href_link('paypal.php', 'action=' . $action);
?>
"><img src="<?php
echo tep_catalog_href_link('images/apps/paypal/paypal.png', '', 'SSL');
?>
" /></a>
</div>
<div id="ppAppUpdateNotice" style="padding: 0 12px 0 12px; display: none;">
<div class="pp-panel pp-panel-success">
<?php
echo $OSCOM_PayPal->getDef('update_available_body', array('button_view_update' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_view_update'), tep_href_link('paypal.php', 'action=update'), 'success')));
?>
</div>
</div>
<?php
if ($OSCOM_PayPal->hasAlert()) {
echo $OSCOM_PayPal->getAlerts();
示例14: array
$index = 0;
$order->products = array();
$orders_products_query = tep_db_query("select * from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int) $oID . "'");
while ($orders_products = tep_db_fetch_array($orders_products_query)) {
$manufacturer_string = $orders_products['manufacturers_name'];
if ($orders_products['products_year'] > 0) {
$manufacturer_string .= (tep_not_null($manufacturer_string) ? ', ' : '') . $orders_products['products_year'];
}
$order->products[$index] = array('id' => $orders_products['products_id'], 'qty' => $orders_products['products_quantity'], 'name' => str_replace("'", "'", stripslashes($orders_products['products_name'])), 'manufacturer' => $manufacturer_string, 'model' => $orders_products['products_model'], 'code' => $orders_products['products_code'], 'weight' => $orders_products['products_weight'], 'tax' => $orders_products['products_tax'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'orders_products_id' => $orders_products['orders_products_id']);
$index++;
}
for ($i = 0, $total_weight = 0, $subtotal_sum = 0; $i < sizeof($order->products); $i++) {
$RowStyle = "dataTableContent";
$products_price = tep_round($order->products[$i]['price'] * $order->info['currency_value'], $currencies->currencies[$order->info['currency']]['decimal_places']);
$final_price = $order->products[$i]['final_price'] * $order->products[$i]['qty'];
echo ' <tr class="dataTableRow" align="center">' . "\n" . ' <td class="dataTableContent" align="left">' . ($i + 1) . '. <a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '" target="_blank"><u>' . $order->products[$i]['name'] . '</u></a></td>' . "\n" . ' <td class="dataTableContent">' . $order->products[$i]['manufacturer'] . '</td>' . "\n" . ' <td class="dataTableContent" nowrap="nowrap">' . $order->products[$i]['model'] . '</td>' . "\n" . ' <td class="dataTableContent">' . $order->products[$i]['code'] . '</td>' . "\n" . ' <td class="dataTableContent">' . $order->products[$i]['weight'] . '</td>' . "\n" . ' <td class="dataTableContent" align="center">' . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][qty]', $order->products[$i]['qty'], 'size="2" style="text-align: center;"') . '</td>' . "\n" . ' <td class="dataTableContent" align="right">' . $currencies->currencies[$order->info['currency']]['symbol_left'] . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][price]', (string) $products_price, 'size="6" style="text-align: right;"') . $currencies->currencies[$order->info['currency']]['symbol_right'] . '</td>' . "\n" . ' <td class="dataTableContent" align="center">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . ' <td class="dataTableContent" align="right">' . $currencies->format($final_price, true, $order->info['currency'], $order->info['currency_value']) . ($order->info['currency'] != DEFAULT_CURRENCY ? ' (' . $currencies->format($final_price) . ')' : '') . '</td>' . "\n" . ' </tr>' . "\n";
$total_weight += $order->products[$i]['weight'] * $order->products[$i]['qty'];
$subtotal_sum += round($final_price, $currencies->get_decimal_places(DEFAULT_CURRENCY));
}
?>
</table>
<!-- End Products Listings Block -->
<!-- Begin Order Total Block -->
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td valign="bottom"><a href="<?php
echo tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . '&action=add_products');
?>
"><u><strong><font size="3"><?php
echo TEXT_DATE_ORDER_ADDNEW;
?>
示例15: tep_db_query
<td class="dataTableHeadingContent"><?php
echo TABLE_HEADING_TOTAL;
?>
</td>
</tr>
<?php
for ($i = 0, $total_weight = 0, $n = sizeof($order->products); $i < $n; $i++) {
$product_info_query = tep_db_query("select products_year, manufacturers_id from " . TABLE_PRODUCTS . " where products_id = '" . (int) $order->products[$i]['id'] . "'");
$product_info = tep_db_fetch_array($product_info_query);
$manufacturer_info_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int) $product_info['manufacturers_id'] . "' and languages_id = '" . (int) $languages_id . "'");
$manufacturer_info = tep_db_fetch_array($manufacturer_info_query);
$manufacturer_string = $manufacturer_info['manufacturers_name'];
if ($product_info['products_year'] > 0) {
$manufacturer_string .= (tep_not_null($manufacturer_string) ? ', ' : '') . $product_info['products_year'];
}
echo ' <tr class="dataTableRow" align="center">' . "\n" . ' <td class="dataTableContent" align="left">' . ($i + 1) . '. <a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '" target="_blank"><u>' . $order->products[$i]['name'] . '</u></a></td>' . "\n" . ' <td class="dataTableContent">' . $manufacturer_string . '</td>' . "\n" . ' <td class="dataTableContent"><nobr>' . $order->products[$i]['model'] . '</nobr></td>' . "\n" . ' <td class="dataTableContent">' . $order->products[$i]['code'] . '</td>' . "\n" . ' <td class="dataTableContent">' . $order->products[$i]['weight'] . '</td>' . "\n" . ' <td class="dataTableContent">' . $order->products[$i]['qty'] . '</td>' . "\n" . ' <td class="dataTableContent" align="right"><nobr>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</nobr></td>' . "\n" . ' <td class="dataTableContent">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . ' <td class="dataTableContent" align="right"><nobr><strong>' . $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']) . '</strong></nobr></td>' . "\n" . ' </tr>' . "\n";
$total_weight += $order->products[$i]['weight'] * $order->products[$i]['qty'];
}
?>
<tr>
<td align="right" colspan="9"><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" align="right"><?php
echo ENTRY_TOTAL_WEIGHT;
?>
</td>
<td class="smallText" align="center"><?php
echo $total_weight . ENTRY_TOTAL_WEIGHT_UNITS;
?>
</td>
</tr>