本文整理汇总了PHP中olc_get_all_get_params函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_get_all_get_params函数的具体用法?PHP olc_get_all_get_params怎么用?PHP olc_get_all_get_params使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_get_all_get_params函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: olc_create_sort_heading
function olc_create_sort_heading($sortby, $colnum, $heading)
{
$sort_prefix = '';
$sort_suffix = '';
if ($sortby) {
$sort_prefix = HTML_A_START . olc_href_link(CURRENT_SCRIPT, olc_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading . '" class="productListing-heading">';
$sort_suffix = (substr($sortby, 0, 1) == $colnum ? substr($sortby, 1, 1) == 'a' ? '+' : '-' : '') . HTML_A_END;
}
return $sort_prefix . $heading . $sort_suffix;
}
示例2: olc_draw_separator
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php
echo HEADING_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo olc_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT);
?>
</td>
<td class="pageHeading" align="right"><?php
echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE, olc_get_all_get_params(array('action'))) . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . HTML_A_END;
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><?php
echo TEXT_SUMMARY_TITLE;
?>
</td>
</tr>
示例3: olc_redirect
if (strlen($pfrom_to_check) > 0 && !(($errorno & 10000) == 10000) && strlen($pto_to_check) > 0 && !(($errorno & 100000) == 100000)) {
if ($pfrom_to_check > $pto_to_check) {
$errorno += 1000000;
$error = 1;
}
}
if (strlen($keywords) > 0) {
if (!olc_parse_search_string(stripslashes($keywords), $search_keywords)) {
$errorno += 10000000;
$error = 1;
}
}
$categories_id = (int) $_GET['categories_id'];
$inc_subcat == $_GET['inc_subcat'];
if ($error == 1) {
olc_redirect(olc_href_link(FILENAME_ADVANCED_SEARCH, 'errorno=' . $errorno . '&' . olc_get_all_get_params(array('x', 'y'))));
} else {
$breadcrumb->add(NAVBAR_TITLE1_ADVANCED_SEARCH, olc_href_link(FILENAME_ADVANCED_SEARCH));
$breadcrumb->add(NAVBAR_TITLE2_ADVANCED_SEARCH, olc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $keywords . '&search_in_description=' . $_GET['search_in_description'] . '&categories_id=' . $categories_id . '&inc_subcat=' . $inc_subcat . '&manufacturers_id=' . $_GET['manufacturers_id'] . '&pfrom=' . $pfrom_to_check . '&pto=' . $pto_to_check . '&dfrom=' . $dfrom_to_check . '&dto=' . $dto_to_check));
require DIR_WS_INCLUDES . 'header.php';
//fsk18 lock
if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
$fsk_lock = ' and p.products_fsk18!=1';
} else {
$fsk_lock = EMPTY_STRING;
}
// create column list
$select_str = PRODUCTS_FIELDS . COMMA . '
m.manufacturers_name';
if (DISPLAY_PRICE_WITH_TAX == TRUE_STRING_S && (isset($pfrom_to_check) && olc_not_null($pfrom_to_check) || isset($pto_to_check) && olc_not_null($pto_to_check))) {
$select_str .= ", SUM(tr.tax_rate) as tax_rate ";
示例4: define
<td class="pageHeading">
<?php
define('AJAX_TITLE', 'Cross-Marketing (X-Sell) Admin');
echo AJAX_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo olc_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
</tr>
<?php
//Medreces insert Filter categories & manufactures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
?>
<tr class="dataTableHeadingRow"><?php
echo olc_draw_form('filter_xsell_products', FILENAME_XSELL_PRODUCTS, $first_entrance ? '' : olc_get_all_get_params());
?>
<td class="dataTableHeadingRow" align="left">Set Filters</td>
<td class="smallText" align="right">
<?php
echo 'to Categories: ' . olc_draw_pull_down_menu('categories_id', olc_get_category_tree(), $CATEGORIES_id);
echo '<br/>to Manufacturers: ' . olc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $MANUFACTURES_id);
?>
</td>
<td class="dataTableContent" align="right"><?php
echo olc_image_submit('button_select.gif', 'GO!!!');
?>
</td>
</form></tr>
<?php
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
示例5: getBuyNowButton
function getBuyNowButton($id, $name)
{
global $PHP_SELF;
return '<a href="' . olc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id=' . $id . '&' . olc_get_all_get_params(array('action')), 'NONSSL') . '">' . olc_image_button('button_buy_now.gif', TEXT_BUY . $name . TEXT_NOW) . '</a>';
}
示例6: array
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_PAYMENT . HTML_B_END);
$contents = array('form' => olc_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . HTML_BR);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($pInfo)) {
$heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . '] ' . olc_datetime_short($pInfo->affiliate_payment_date) . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . olc_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
}
break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
echo ' <td width="25%" valign="top">' . NEW_LINE;
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . NEW_LINE;
}
?>
</tr>
</table></td>
</tr>
<?php
示例7: Project
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(product_reviews_info.php,v 1.47 2003/02/13); www.oscommerce.com
(c) 2003 nextcommerce (product_reviews_info.php,v 1.12 2003/08/17); www.nextcommerce.org
(c) 2004 XT - Commerce; www.xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
// include needed functions
require_once DIR_FS_INC . 'olc_break_string.inc.php';
require_once DIR_FS_INC . 'olc_date_long.inc.php';
require_once DIR_FS_INC . 'olc_image_button.inc.php';
// lets retrieve all $HTTP_GET_VARS keys and values..
$get_params = olc_get_all_get_params(array('reviews_id'));
$get_params = substr($get_params, 0, -1);
//remove trailing &
$reviews_query = olc_db_query("select rd.reviews_text, r.reviews_rating, r.reviews_id, r.products_id, r.customers_name, r.date_added, r.last_modified, r.reviews_read, p.products_id, pd.products_name, p.products_image from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd left join " . TABLE_PRODUCTS . " p on (r.products_id = p.products_id) left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (p.products_id = pd.products_id and pd.language_id = '" . SESSION_LANGUAGE_ID . "') where r.reviews_id = '" . (int) $_GET['reviews_id'] . "' and r.reviews_id = rd.reviews_id and p.products_status = '1'");
if (!olc_db_num_rows($reviews_query)) {
olc_redirect(olc_href_link(FILENAME_REVIEWS));
}
$reviews = olc_db_fetch_array($reviews_query);
$breadcrumb->add(NAVBAR_TITLE_PRODUCT_REVIEWS, olc_href_link(FILENAME_PRODUCT_REVIEWS, $get_params));
olc_db_query(SQL_UPDATE . TABLE_REVIEWS . " set reviews_read = reviews_read+1 where reviews_id = '" . $reviews['reviews_id'] . APOS);
$reviews_text = olc_break_string(htmlspecialchars($reviews['reviews_text']), 60, '-<br/>');
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('PRODUCTS_NAME', $reviews['products_name']);
$smarty->assign('AUTHOR', $reviews['customers_name']);
$smarty->assign('DATE', olc_date_long($reviews['date_added']));
$smarty->assign('REVIEWS_TEXT', nl2br($reviews_text));
示例8: define
define('PRODUCTS_MODEL', 'products_model');
$cPath = 'cPath';
$equal = '=';
// save current session data
$old_session = $_SESSION;
$index_php = 'index.php';
$get_info = $_GET['info'];
$date_format = 'H:i:s';
$SQLSelect_Category = SELECT . "categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '#' and language_id='" . SESSION_LANGUAGE_ID . APOS;
$SQLWhere = " where categories_id = '#' and language_id='" . SESSION_LANGUAGE_ID . APOS;
$sessions_in_db = STORE_SESSIONS == 'mysql';
$session_path = olc_session_save_path() . '/sess_';
$whos_online_row0 = '
onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'"
onmouseout="this.className=\'dataTableRow\'"
onclick="javascript:' . olc_onclick_link(FILENAME_WHOS_ONLINE, olc_get_all_get_params(array('info', 'action')) . 'info=#', NONSSL);
$whos_online_row1 = '
<tr id="#" style="display:inline;" class="dataTableRow"';
$selected = false;
$new_visitors = EMPTY_STRING;
$cart_total = 0;
while ($whos_online = olc_db_fetch_array($whos_online_query)) {
$session_id = $whos_online['session_id'];
$time_online = $current_time - $whos_online['time_entry'];
if ($is_periodic) {
$info = $session_id;
} else {
if (!$get_info || !$info && $get_info == $session_id) {
$info = $session_id;
}
$selected = $session_id == $info;
示例9: olc_redirect
if (!olc_session_is_registered('customer_id')) {
olc_redirect(olc_href_link(FILENAME_LOGIN));
}
$breadcrumb->add(NAVBAR_TITLE_ACCOUNT, olc_href_link(FILENAME_ACCOUNT));
require DIR_WS_INCLUDES . 'header.php';
if (is_object($messageStack)) {
if ($messageStack->size('account') > 0) {
$smarty->assign('error_message', $messageStack->output('account'));
}
}
if ($_GET['products_history']) {
require_once DIR_FS_INC . 'olc_get_product_path.inc.php';
require_once DIR_FS_INC . 'olc_get_products_name.inc.php';
require_once DIR_FS_INC . 'olc_get_products_price_specials.inc.php';
$products_id_par = 'products_id=';
$params = olc_get_all_get_params(array('action')) . 'action=buy_now&BUY' . $products_id_par;
$buy_now_link = HTML_A_START . olc_href_link(basename($PHP_SELF), $params . HASH) . '">' . olc_image_button('button_buy_now.gif', TEXT_BUY . ATSIGN . TEXT_NOW) . HTML_A_END;
$product_link = olc_href_link(FILENAME_PRODUCT_INFO, $products_id_par . HASH);
$cat_path = olc_href_link(FILENAME_DEFAULT, 'cPath=' . HASH);
$img = olc_image(DIR_WS_THUMBNAIL_IMAGES . HASH, ATSIGN);
$tracking_products_history = $_SESSION[TRACKING][PRODUCTS_HISTORY];
$i = 0;
$max = count($tracking_products_history);
while ($i < $max) {
$products_id = $tracking_products_history[$i];
$product_history_query = olc_db_query(SELECT_ALL . TABLE_PRODUCTS . "\n\t\twhere\n\t\tproducts_status = 1 and\n\t\tproducts_id = " . $products_id);
$history_product = olc_db_fetch_array($product_history_query);
if ($history_product['products_status'] != 0) {
$products_name = olc_get_products_name($products_id);
$products_image = $history_product['image'];
$products_price = olc_get_products_price_specials($products_id, $price_special = 1, $quantity = 1, $price_special_info, $products_price_real);
示例10: array
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'confirm':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_CUSTOMER . HTML_B_END);
$contents = array('form' => olc_draw_form('affiliate', FILENAME_AFFILIATE, olc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO . '<br/><br/><b>' . $aInfo->affiliate_firstname . BLANK . $aInfo->affiliate_lastname . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_AFFILIATE, olc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($aInfo)) {
$heading[] = array('text' => HTML_B_START . $aInfo->affiliate_firstname . BLANK . $aInfo->affiliate_lastname . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE, olc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE, olc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=confirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_CONTACT, 'selected_box=affiliate&affiliate=' . $aInfo->affiliate_email_address) . '">' . olc_image_button('button_email.gif', IMAGE_EMAIL) . HTML_A_END);
$affiliate_sales_raw = "select count(*) as count, sum(affiliate_value) as total, sum(affiliate_payment) as payment from " . TABLE_AFFILIATE_SALES . " a left join " . TABLE_ORDERS . " o on (a.affiliate_orders_id=o.orders_id)\n where o.orders_status >= " . AFFILIATE_PAYMENT_ORDER_MIN_STATUS . " and affiliate_id = '" . $aInfo->affiliate_id . APOS;
$affiliate_sales_values = olc_db_query($affiliate_sales_raw);
$affiliate_sales = olc_db_fetch_array($affiliate_sales_values);
$contents[] = array('text' => HTML_BR . TEXT_DATE_ACCOUNT_CREATED . BLANK . olc_date_short($aInfo->date_account_created));
$contents[] = array('text' => EMPTY_STRING . TEXT_DATE_ACCOUNT_LAST_MODIFIED . BLANK . olc_date_short($aInfo->date_account_last_modified));
$contents[] = array('text' => EMPTY_STRING . TEXT_INFO_DATE_LAST_LOGON . BLANK . olc_date_short($aInfo->date_last_logon));
$contents[] = array('text' => EMPTY_STRING . TEXT_INFO_NUMBER_OF_LOGONS . BLANK . $aInfo->number_of_logons);
$contents[] = array('text' => EMPTY_STRING . TEXT_INFO_COMMISSION . BLANK . $aInfo->affiliate_commission_percent . ' %');
$contents[] = array('text' => EMPTY_STRING . TEXT_INFO_COUNTRY . BLANK . $aInfo->countries_name);
$contents[] = array('text' => EMPTY_STRING . TEXT_INFO_NUMBER_OF_SALES . BLANK . $affiliate_sales['count'], EMPTY_STRING);
$contents[] = array('text' => EMPTY_STRING . TEXT_INFO_SALES_TOTAL . BLANK . $currencies->display_price($affiliate_sales['total'], EMPTY_STRING));
$contents[] = array('text' => EMPTY_STRING . TEXT_INFO_AFFILIATE_TOTAL . BLANK . $currencies->display_price($affiliate_sales['payment'], EMPTY_STRING));
}
break;
}
示例11: define
define('SMARTY_TARGET_AREA', MAIN_CONTENT);
}
$smarty->assign(SMARTY_TARGET_AREA, $main_content);
if ($not_IsCheckout) {
require BOXES;
$smarty->display(INDEX_HTML);
}
} else {
if ($IsUserMode) {
$alt1 = IMAGE_BUTTON_CANCEL;
} else {
$alt1 = IMAGE_CANCEL;
}
echo '
<tr>
<td align="right" class="main">' . olc_image_submit($image, $alt) . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, olc_get_all_get_params(array('action', 'validate'))) . '">' . olc_image_button('button_cancel.gif', $alt1) . '</a>
</td>
</tr>
</form>';
}
function display_category_start($category_desc)
{
global $IsUserMode;
if (!$IsUserMode) {
echo '<tr><td> </td></tr>
<tr>
<td class="formAreaTitle">' . $category_desc . '</td>
</tr>
<tr>
<td class="formArea">
<table border="0" cellspacing="2" cellpadding="2">';
示例12: osCommerce
(c) 2002-2003 osCommerce(order_history.php,v 1.4 2003/02/10); www.oscommerce.com
(c) 2003 nextcommerce (order_history.php,v 1.9 2003/08/17); www.nextcommerce.org
(c) 2004 XT - Commerce; www.xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
olc_smarty_init($box_smarty, $cacheid);
$box_content = '';
// include needed functions
require_once DIR_FS_INC . 'olc_get_all_get_params.inc.php';
if (ISSET_CUSTOMER_ID) {
// retreive the last x products purchased
$orders_query = olc_db_query("select distinct op.products_id from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_PRODUCTS . " p where o.customers_id = " . CUSTOMER_ID . " and o.orders_id = op.orders_id and op.products_id = p.products_id and p.products_status = 1\n group by products_id order by o.date_purchased desc limit " . MAX_DISPLAY_PRODUCTS_IN_ORDER_HISTORY_BOX);
if (olc_db_num_rows($orders_query)) {
$product_ids = EMPTY_STRING;
while ($orders = olc_db_fetch_array($orders_query)) {
$product_ids .= $orders['products_id'] . COMMA;
}
$product_ids = substr($product_ids, 0, -1);
$customer_orders_string = '<table border="0" width="100%" cellspacing="0" cellpadding="1">';
$products_query = olc_db_query("select products_id, products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id in (" . $product_ids . ") and language_id = '" . SESSION_LANGUAGE_ID . "' order by products_name");
while ($products = olc_db_fetch_array($products_query)) {
$link = olc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id']) . '">';
$customer_orders_string .= ' <tr>' . ' <td class="infoBoxContents"><a href="' . $link . $products['products_name'] . '</a></td>' . ' <td class="infoBoxContents" align="right" valign="top"><a href="' . olc_href_link(CURRENT_SCRIPT, olc_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products['products_id']) . '">' . olc_image(DIR_WS_ICONS . 'cart.gif', ICON_CART) . '</a></td>' . ' </tr>';
}
$customer_orders_string .= '</table>';
}
}
$box_smarty->assign('BOX_CONTENT', $customer_orders_string);
$box_order_history = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_order_history' . HTML_EXT, $cacheid);
$smarty->assign('box_ORDER_HISTORY', $box_order_history);
示例13: olc_href_link
}
$data_products .= ' </table>';
$smarty->assign('PRODUCTS_BLOCK', $data_products);
$smarty->assign('TOTAL_BLOCK', $total_block);
$smarty->assign('PAYMENT_EDIT', olc_href_link(FILENAME_CHECKOUT_PAYMENT, EMPTY_STRING, SSL));
$history_block = '<table>';
$statuses_query = olc_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh\n\twhere\n\tosh.orders_id = '" . $order_id . "'\n\tand osh.orders_status_id = os.orders_status_id\n\tand os.language_id = '" . SESSION_LANGUAGE_ID . "'\n\torder by osh.date_added");
while ($statuses = olc_db_fetch_array($statuses_query)) {
$history_block .= ' <tr>' . NEW_LINE . ' <td class="main" valign="top">' . olc_date_short($statuses['date_added']) . '</td>' . NEW_LINE . ' <td class="main" valign="top">' . $statuses['orders_status_name'] . '</td>' . NEW_LINE . ' <td class="main" valign="top">' . (empty($statuses['comments']) ? HTML_NBSP : nl2br(htmlspecialchars($statuses['comments']))) . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE;
}
$history_block .= '</table>';
$smarty->assign('HISTORY_BLOCK', $history_block);
if (DOWNLOAD_ENABLED == TRUE_STRING_S) {
include DIR_WS_MODULES . 'downloads.php';
}
$button_back = HTML_A_START . olc_href_link(FILENAME_ACCOUNT_HISTORY, olc_get_all_get_params(array('order_id')), SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END;
/* begin PayPal_Shopping_Cart_IPN */
if (defined('PAYPAL_IPN_DIR')) {
require PAYPAL_IPN_DIR . 'catalog/order_send_money.inc.php';
}
$button_back .= $paypal_confirm;
/* end PayPal_Shopping_Cart_IPN */
$track_code = $order->info['orders_trackcode'];
if ($track_code) {
require_once DIR_FS_INC . 'olc_get_track_code.inc.php';
$TrackURL = olc_get_track_code($order, $track_code);
if ($TrackURL) {
$order_tracking = '
<!--W. Kaiser - Erlaube Sendungstracking -->
<b>' . ENTRY_TRACKCODE . ': ' . $track_code . '</b> ' . ENTRY_TRACKCODE_EXPLAIN . HTML_NBSP . '
<a href="' . $TrackURL . '" target="_blank">' . ENTRY_TRACK_URL_TEXT . '</a>
示例14: olc_db_query
$form_action = 'update';
$product_query = olc_db_query("select\n\t\tp.products_tax_class_id,\n p.products_id,\n pd.products_name,\n p.products_price,\n s.specials_new_products_price,\n s.expires_date from\n " . TABLE_PRODUCTS . " p,\n " . TABLE_PRODUCTS_DESCRIPTION . " pd,\n " . TABLE_SPECIALS . "\n s where p.products_id = pd.products_id\n and pd.language_id = '" . SESSION_LANGUAGE_ID . "'\n and p.products_id = s.products_id\n and s.specials_id = '" . $sID . APOS);
$product = olc_db_fetch_array($product_query);
$sInfo = new objectInfo($product);
} else {
$form_action = 'insert';
$sInfo = new objectInfo(array());
// create an array of products on special, which will be excluded from the pull down menu of products
// (when creating a new product on special)
$specials_array = array();
$specials_query = olc_db_query("select\n p.products_id from\n " . TABLE_PRODUCTS . " p,\n " . TABLE_SPECIALS . " s\n where s.products_id = p.products_id");
while ($specials = olc_db_fetch_array($specials_query)) {
$specials_array[] = $specials['products_id'];
}
}
echo olc_draw_form('specials', FILENAME_SPECIALS, olc_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action, 'post');
if ($is_update) {
echo olc_draw_hidden_field('specials_id', $sID);
}
?>
<td><br/><table border="0" cellspacing="0" cellpadding="2">
<td class="main"><?php
echo TEXT_SPECIALS_PRODUCT;
?>
</td>
<?php
$price = abs($sInfo->products_price);
$new_price = $sInfo->specials_new_products_price;
if ($is_brutto) {
$price_netto = olc_round($price, PRICE_PRECISION);
$new_price_netto = olc_round($new_price, PRICE_PRECISION);
示例15: unset
if ($force_javascript_check) {
unset($_SESSION[$force_javascript_check]);
$_SESSION[$javascript_check_done_text] = false;
$_SESSION[$javascript_text] = false;
}
$have_javascript_support = $_SESSION[$javascript_text] == true;
if (!$have_javascript_support) {
if (isset($_POST[$javascript_text]) || isset($_GET[$use_ajax_text]) || isset($_POST[$use_ajax_text])) {
$have_javascript_support = true;
$_SESSION[$javascript_text] = true;
$_SESSION[$use_ajax_text] = true;
} else {
if ($_SESSION[$javascript_check_done_text]) {
} else {
$_SESSION[$javascript_check_done_text] = true;
$parameters = olc_get_all_get_params();
$pos = strpos($parameters, $force_javascript_check_text);
if ($pos > 0) {
$parameters = substr($parameters, 0, $pos - 1);
}
//Exclude Zend debugger parameters!!!!
$pos = strpos($parameters, "start_debug");
if ($pos === false) {
$pos = strpos($parameters, 'DBGSESSION');
}
if ($pos !== false) {
$parameters = substr($parameters, 0, $pos - 1);
$_SESSION["parameters"] = substr($parameters, $pos - 1);
}
if (strlen($parameters) > 0) {
$parameters = str_replace('force_restart=true', EMPTY_STRING, $parameters);