function confirm() { $audience = array(); if ($_GET['global'] == TRUE_STRING_S) { $products_query = olc_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS); while ($products = olc_db_fetch_array($products_query)) { $audience[$products['customers_id']] = '1'; } $customers_query = olc_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'"); while ($customers = olc_db_fetch_array($customers_query)) { $audience[$customers['customers_info_id']] = '1'; } } else { $chosen = $_POST['chosen']; $ids = implode(',', $chosen); $products_query = olc_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id in (" . $ids . RPAREN); while ($products = olc_db_fetch_array($products_query)) { $audience[$products['customers_id']] = '1'; } $customers_query = olc_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'"); while ($customers = olc_db_fetch_array($customers_query)) { $audience[$customers['customers_info_id']] = '1'; } } $confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td class="main"><font color="#ff0000"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, sizeof($audience)) . '</b></font></td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td>' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td class="main"><b>' . $this->title . '</b></td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td>' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td class="main"><tt>' . nl2br($this->content) . '</tt></td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td>' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . olc_draw_form('confirm', FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . NEW_LINE . ' <td align="right">'; if (sizeof($audience) > 0) { if ($_GET['global'] == TRUE_STRING_S) { $confirm_string .= olc_draw_hidden_field('global', TRUE_STRING_S); } else { for ($i = 0, $n = sizeof($chosen); $i < $n; $i++) { $confirm_string .= olc_draw_hidden_field('chosen[]', $chosen[$i]); } } $confirm_string .= olc_image_submit('button_send.gif', IMAGE_SEND) . BLANK; } $confirm_string .= HTML_A_START . olc_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=send') . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . '</a> <a href="' . olc_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . NEW_LINE . ' </tr>' . NEW_LINE . '</table>'; return $confirm_string; }
case 'delete': $heading[] = array('text' => HTML_B_START . TEXT_HEADING_DELETE_BLACKLIST_CARD . HTML_B_END); $contents = array('form' => olc_draw_form('blacklisted', FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $bInfo->blacklist_card_number . HTML_B_END); // $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', '', true) . BLANK . TEXT_DELETE_IMAGE); // if ($mInfo->products_count > 0) { // $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_products') . BLANK . TEXT_DELETE_PRODUCTS); // $contents[] = array('text' => HTML_BR . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count)); // } $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($bInfo)) { $heading[] = array('text' => HTML_B_START . $bInfo->blacklist_card_number . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_DATE_ADDED . BLANK . olc_date_short($bInfo->date_added)); if (olc_not_null($bInfo->last_modified)) { $contents[] = array('text' => TEXT_LAST_MODIFIED . BLANK . olc_date_short($bInfo->last_modified)); } // $contents[] = array('text' => HTML_BR . olc_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name)); // $contents[] = array('text' => HTML_BR . TEXT_PRODUCTS . BLANK . $mInfo->products_count); } 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; }
Copyright (c) 2005 OL-Commerce , 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de) ----------------------------------------------------------------------------- based on: (c) 2003 OSC-Affiliate (affiliate_signup_ok.php, v 1.6 2003/02/23); http://oscaffiliate.sourceforge.net/ Contribution based on: osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 - 2003 osCommerce Copyright (c) 2003 netz-designer Copyright (c) 2005 OL-Commerce , 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de) Copyright (c) 2002 - 2003 osCommerce Released under the GNU General Public License ---------------------------------------------------------------------------*/ require 'includes/application_top.php'; // include needed functions require_once DIR_FS_INC . 'olc_image_button.inc.php'; $breadcrumb->add(NAVBAR_TITLE, olc_href_link(FILENAME_AFFILIATE, '', SSL)); $breadcrumb->add(NAVBAR_TITLE_SIGNUP_OK); require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('LINK_SUMMARY', HTML_A_START . olc_href_link(FILENAME_AFFILIATE_SUMMARY, '', SSL) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END); $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'affiliate_signup_ok' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
</table></td> <?php $heading = array(); $contents = array(); switch ($_GET['action']) { case 'delete': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_REVIEW . HTML_B_END); $contents = array('form' => olc_draw_form('reviews', FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO); $contents[] = array('text' => '<br/><b>' . $rInfo->products_name . 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_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($rInfo)) { $heading[] = array('text' => HTML_B_START . $rInfo->products_name . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($rInfo->date_added)); if (olc_not_null($rInfo->last_modified)) { $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($rInfo->last_modified)); } $contents[] = array('text' => HTML_BR . olc_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)); $contents[] = array('text' => HTML_BR . TEXT_INFO_REVIEW_AUTHOR . BLANK . $rInfo->customers_name); $contents[] = array('text' => TEXT_INFO_REVIEW_RATING . BLANK . olc_image(DIR_WS_CATALOG_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif')); $contents[] = array('text' => TEXT_INFO_REVIEW_READ . BLANK . $rInfo->reviews_read); $contents[] = array('text' => HTML_BR . TEXT_INFO_REVIEW_SIZE . BLANK . $rInfo->reviews_text_size . ' bytes'); $contents[] = array('text' => HTML_BR . TEXT_INFO_PRODUCTS_AVERAGE_RATING . BLANK . number_format($rInfo->average_rating, 2) . '%'); } break; } if (olc_not_null($heading) && olc_not_null($contents)) { echo ' <td width="25%" valign="top">' . NEW_LINE;
echo TEXT_BODY; ?> </td> <td width="90%"><?php $sw = new SPAW_Wysiwyg($control_name = 'newsletter_body', $value = stripslashes($newsletters_data['body']), $lang = EMPTY_STRING, $mode = 'full', $theme = 'default', $width = '100%', $height = '800px', $css_stylesheet = SPAW_STYLESHEET, $dropdown_data = EMPTY_STRING); $sw->show(); ?> </td> </tr> </table> <a href="<?php echo olc_href_link(FILENAME_MODULE_NEWSLETTER); ?> "> <?php echo olc_image_button('button_back.gif', IMAGE_BACK); ?> </a> <right><?php echo olc_image_submit('button_save.gif', IMAGE_SAVE); ?> </right> </form> <?php break; } // end switch ?> </td> </tr> </table>
$_SESSION['delivery_zone'] = $order->billing['country']['iso_code_2']; } // load all enabled payment modules require_once DIR_WS_CLASSES . 'payment.php'; $payment_modules = new payment(); $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_PAYMENT, olc_href_link(FILENAME_CHECKOUT_SHIPPING, EMPTY_STRING, SSL)); $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_PAYMENT, olc_href_link(FILENAME_CHECKOUT_PAYMENT, EMPTY_STRING, SSL)); //W. Kaiser - AJAX $checkout_payment_text = 'checkout_payment'; $smarty->assign('FORM_ACTION', olc_draw_form($checkout_payment_text, olc_href_link(FILENAME_CHECKOUT_CONFIRMATION, EMPTY_STRING, SSL), 'post', 'onsubmit="return check_form_payment(\'' . $checkout_payment_text . '\');"')); //W. Kaiser - AJAX //---PayPal WPP Modification START ---//-- if (!$ec_enabled || $_GET['ec_cancel'] || !($_SESSION['paypal_ec_payer_id'] || $_SESSION['paypal_ec_payer_info'])) { //---PayPal WPP Modification END ---//-- $smarty->assign('ADDRESS_LABEL', olc_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, BLANK, HTML_BR)); $smarty->assign('BUTTON_ADDRESS', HTML_A_START . olc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, EMPTY_STRING, SSL) . '">' . olc_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . HTML_A_END); $smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); require DIR_WS_INCLUDES . 'header.php'; if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) { $smarty->assign('error', '<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice"> <tr class="infoBoxNoticeContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" width="100%" valign="top">' . htmlspecialchars($error['error']) . '</td> </tr> </table></td> </tr> </table>'); } $payment_block .= ' <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
} $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'delete': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_CUSTOMERS_STATUS . HTML_B_END); $contents = array('form' => olc_draw_form('status', FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $cInfo->customers_status_name . HTML_B_END); if ($remove_status) { $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); } break; default: if (is_object($cInfo)) { $heading[] = array('text' => HTML_B_START . $cInfo->customers_status_name . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $customers_status_inputs_string = ''; $languages = olc_get_languages(); for ($i = 0; $i < sizeof($languages); $i++) { $customers_status_inputs_string .= HTML_BR . olc_image(DIR_WS_CATALOG . 'lang/' . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_get_customers_status_name($cInfo->customers_status_id, $languages[$i]['id']); } $contents[] = array('text' => $customers_status_inputs_string); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . BLANK . $cInfo->customers_status_discount . '%'); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INTRO . HTML_BR . ENTRY_OT_XMEMBER . BLANK . $customers_status_ot_discount_flag_array[$cInfo->customers_status_ot_discount_flag]['text'] . LPAREN . $cInfo->customers_status_ot_discount_flag . RPAREN . ' - ' . $cInfo->customers_status_ot_discount . '%'); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . HTML_BR . ENTRY_GRADUATED_PRICES . BLANK . $customers_status_graduated_prices_array[$cInfo->customers_status_graduated_prices]['text'] . LPAREN . $cInfo->customers_status_graduated_prices . RPAREN); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . BLANK . $customers_status_discount_attributes_array[$cInfo->customers_status_discount_attributes]['text'] . LPAREN . $cInfo->customers_status_discount_attributes . RPAREN); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_PAYMENT_UNALLOWED . ':<b> ' . $cInfo->customers_status_payment_unallowed . HTML_B_END); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_SHIPPING_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_SHIPPING_UNALLOWED . ':<b> ' . $cInfo->customers_status_shipping_unallowed . HTML_B_END); } break; }
</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 }
unset($_SESSION['customer_country_id']); unset($_SESSION['customer_zone_id']); unset($_SESSION['comments']); unset($_SESSION['user_info']); unset($_SESSION['customers_status']); unset($_SESSION['selected_box']); unset($_SESSION['navigation']); unset($_SESSION['shipping']); unset($_SESSION['payment']); // GV Code Start unset($_SESSION['gv_id']); unset($_SESSION['cc_id']); // GV Code End $_SESSION['cart']->reset(); $assign_constants = true; // write customers status guest in session again //require(DIR_WS_INCLUDES . 'write_customers_status.php'); if ($_GET['admin_logoff']) { olc_redirect(FILENAME_DEFAULT); } else { include_once DIR_FS_INC . 'olc_create_navigation_links.inc.php'; olc_create_navigation_links(true, false); require DIR_WS_INCLUDES . 'header.php'; //W. Kaiser - AJAX //W. Kaiser - AJAX $smarty->assign('BUTTON_CONTINUE', HTML_A_START . olc_href_link(FILENAME_DEFAULT) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END); $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'logoff' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML); }
</table> </td> </tr> <?php } ?> </table> </td> </tr> <tr> <td> <?php include DIR_WS_MODULES . 'group_prices.php'; ?> </td> </tr> <tr> <td class="main" align="right"> <?php if ($have_vpe) { $have_vpe = TRUE_STRING_S; } else { $have_vpe = FALSE_STRING_S; } // IMAGE_SAVE,'style="cursor:hand" onclick="javascript:return confirm(\''.SAVE_ENTRY.'\')"') . echo olc_draw_hidden_field('products_date_added', $pInfo->products_date_added ? $pInfo->products_date_added : date('Y-m-d')) . olc_image_submit('button_save.gif', IMAGE_SAVE, 'style="cursor:hand" onclick="javascript:return check_product_form(' . $have_vpe . ')"') . ' <a href="' . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END; ?> </td> </tr> </table> </form>
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)); $smarty->assign('RATING', olc_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews['reviews_rating']))); $link = olc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $reviews['products_id'], NONSSL, false, true, false); $smarty->assign('PRODUCTS_LINK', $link); $smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_PRODUCT_REVIEWS, $get_params) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END); $smarty->assign('PRODUCTS_BUTTON_BUY_NOW', HTML_A_START . olc_href_link(FILENAME_DEFAULT, 'action=buy_now&BUYproducts_id=' . $reviews['products_id']) . '">' . olc_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . HTML_A_END); $smarty->assign('IMAGE', HTML_A_START . 'javascript:popupImageWindow(\'' . olc_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $reviews['products_id']) . '\')">' . olc_image(DIR_WS_THUMBNAIL_IMAGES . $reviews['products_image'], $reviews['products_name'], '', '', 'align="center" hspace="5" vspace="5"') . '<br/></a>'); $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'product_reviews_info' . HTML_EXT, SMARTY_CACHE_ID); require BOXES; $smarty->display(INDEX_HTML);
$contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . HTML_BR . olc_draw_input_field('sort_order', $lInfo->sort_order)); if (DEFAULT_LANGUAGE != $lInfo->code) { $contents[] = array($text_text => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT); } $contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'delete': $heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_DELETE_LANGUAGE . HTML_B_END); $contents[] = array($text_text => TEXT_INFO_DELETE_INTRO); $contents[] = array($text_text => '<br/><b>' . $lInfo->name . HTML_B_END); $contents[] = array('align' => 'center', $text_text => HTML_BR . ($remove_language ? HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=deleteconfirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END : EMPTY_STRING) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($lInfo)) { $heading[] = array($text_text => HTML_B_START . $lInfo->name . HTML_B_END); $contents[] = array('align' => 'center', $text_text => HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . HTML_A_END . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_NAME . BLANK . $lInfo->name); $contents[] = array($text_text => TEXT_INFO_LANGUAGE_CODE . BLANK . $lInfo->code); $contents[] = array($text_text => TEXT_INFO_LANGUAGE_CHARSET_INFO . BLANK . $lInfo->language_charset); $lang_dir = 'lang/'; $contents[] = array($text_text => HTML_BR . olc_image(ADMIN_PATH_PREFIX . $lang_dir . $lInfo->directory . SLASH . $lInfo->image, $lInfo->name)); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_DIRECTORY . HTML_BR . $lang_dir . HTML_B_START . $lInfo->directory . HTML_B_END); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . BLANK . $lInfo->sort_order); } break; } if (olc_not_null($heading) && olc_not_null($contents)) { $box = new box(); echo ' <td width="25%" valign="top">' . NEW_LINE; echo $box->infoBox($heading, $contents); echo ' </td>' . NEW_LINE;
<td class="pageHeading" align="right"><?php echo olc_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> </td> <?php if ($_GET['acID'] > 0) { ?> <td class="pageHeading" align="right"><?php echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_STATISTICS, olc_get_all_get_params(array('action'))) . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . HTML_A_END; ?> </td> <?php } else { ?> <td class="pageHeading" align="right"><?php echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_SUMMARY, '') . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . HTML_A_END; ?> </td> <?php } ?> </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 TABLE_HEADING_AFFILIATE_USERNAME . '/<br/>' . TABLE_HEADING_IPADDRESS;
} $address_label .= $paypal_ec_payer_info['ship_city'] . COMMA_BLANK . $paypal_ec_payer_info['ship_state'] . BLANK . $paypal_ec_payer_info['ship_postal_code'] . HTML_BR; $address_label .= $paypal_ec_payer_info['ship_country_name']; } else { $address_label = olc_address_label(CUSTOMER_ID, $sendto, true, BLANK, HTML_BR); } //---PayPal WPP Modification END ---//-- $smarty->assign('ADDRESS_LABEL', $address_label); //---PayPal WPP Modification START ---//-- if ($ec_checkout && $ec_enabled) { $link = olc_href_link(FILENAME_EC_PROCESS, 'clearSess=1', SSL); } else { $link = olc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, EMPTY_STRING, SSL); } //---PayPal WPP Modification END ---//-- $smarty->assign('BUTTON_ADDRESS', HTML_A_START . $link . '">' . olc_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . HTML_A_END); $smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); if ($shipping_modules_count > 0) { //---PayPal WPP Modification START ---//-- if ($ec_enabled) { if (!$ec_checkout) { $smarty->assign('BUTTON_EC_CHECKOUT_TEXT', TEXT_PAYPALWPP_EC_HEADER); $smarty->assign('BUTTON_EC_CHECKOUT_DESCRIPTION_TEXT', TEXT_PAYPALWPP_EC_BUTTON_DESCRIPTION_TEXT); $smarty->assign('BUTTON_EC_CHECKOUT', HTML_A_START . olc_href_link(FILENAME_EC_PROCESS, EMPTY_STRING, SSL) . '">' . '<img border="0" src="' . MODULE_PAYMENT_PAYPAL_EC_BUTTON_URL . '" title="' . TEXT_PAYPALWPP_EC_BUTTON_TEXT . '"></a>'); require_once DIR_WS_CLASSES . 'order_total.php'; // GV Code ICW ADDED FOR CREDIT CLASS SYSTEM $order_total_modules = new order_total(); // GV Code ICW ADDED FOR CREDIT CLASS SYSTEM } } //---PayPal WPP Modification END ---//
switch ($_GET['type']) { case 'yearly': echo olc_banner_graph_yearly($_GET['bID']); break; case 'monthly': echo olc_banner_graph_monthly($_GET['bID']); break; default: case 'daily': echo olc_banner_graph_daily($_GET['bID']); break; } } ?> </td> </tr> <tr> <td><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main" align="right"><?php echo HTML_A_START . olc_href_link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']) . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . HTML_A_END; ?> </td> </tr> </table></td> <?php require DIR_WS_INCLUDES . 'application_bottom.php';
function display() { return array('text' => IMAGE_EXPORT_TYPE . HTML_BR . IMAGE_EXPORT . HTML_BR . HTML_BR . olc_image_submit('button_review_approve.gif', IMAGE_UPDATE) . HTML_A_START . olc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=image_processing') . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); }
$amount = $currencies->format($amount); } if ($_GET['action'] == 'voucherdelete') { $contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . HTML_A_START . olc_href_link('coupon_admin.php', 'action=confirmdelete&cid=' . $_GET['cid'], NONSSL) . '">' . olc_image_button('button_confirm.gif', 'Confirm Delete Voucher') . HTML_A_END . HTML_A_START . olc_href_link('coupon_admin.php', 'cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_cancel.gif', 'Cancel') . HTML_A_END); } else { $prod_details = NONE; if ($cInfo->restrict_to_products) { $prod_details = '<A href="listproducts.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" onclick="javascript:window.open(\'listproducts.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>'; } $cat_details = NONE; if ($cInfo->restrict_to_categories) { $cat_details = '<A href="listcategories.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" onclick="javascript:window.open(\'listcategories.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>'; } $coupon_name_query = olc_db_query("select coupon_name from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cInfo->coupon_id . "' and language_id = '" . SESSION_LANGUAGE_ID . APOS); $coupon_name = olc_db_fetch_array($coupon_name_query); $contents[] = array('text' => COUPON_NAME . ' :: ' . $coupon_name['coupon_name'] . HTML_BR . COUPON_AMOUNT . ' :: ' . $amount . HTML_BR . COUPON_STARTDATE . ' :: ' . olc_date_short($cInfo->coupon_start_date) . HTML_BR . COUPON_FINISHDATE . ' :: ' . olc_date_short($cInfo->coupon_expire_date) . HTML_BR . COUPON_USES_COUPON . ' :: ' . $cInfo->uses_per_coupon . HTML_BR . COUPON_USES_USER . ' :: ' . $cInfo->uses_per_user . HTML_BR . COUPON_PRODUCTS . ' :: ' . $prod_details . HTML_BR . COUPON_CATEGORIES . ' :: ' . $cat_details . HTML_BR . DATE_CREATED . ' :: ' . olc_date_short($cInfo->date_created) . HTML_BR . DATE_MODIFIED . ' :: ' . olc_date_short($cInfo->date_modified) . '<br/><br/>' . '<center><a href="' . olc_href_link('coupon_admin.php', 'action=email&cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_email.gif', 'Email Voucher') . HTML_A_END . HTML_A_START . olc_href_link('coupon_admin.php', 'action=voucheredit&cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_edit.gif', 'Edit Voucher') . HTML_A_END . HTML_A_START . olc_href_link('coupon_admin.php', 'action=voucherdelete&cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_delete.gif', 'Delete Voucher') . HTML_A_END . '<br/><a href="' . olc_href_link('coupon_admin.php', 'action=voucherreport&cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_report.gif', 'Voucher Report') . '</a></center>'); } break; } ?> <td width="25%" valign="top"> <?php $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . NEW_LINE; } ?> </tr> </table></td> <?php require DIR_WS_INCLUDES . 'application_bottom.php';
$customers_id = $cInfo->customers_id; $params = olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $customers_id . '&action='; $is_admin = $customers_id == 1; if (!$is_admin || CUSTOMER_ID == 1) { $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, $params . 'edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . HTML_A_END); } if (true || $cs_id != 0) { $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, $params . 'confirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); } if (!$is_admin) { $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, $params . 'editstatus') . '">' . olc_image_button('button_status.gif', IMAGE_STATUS) . HTML_A_END); // elari cs v3.x changed for added accounting module $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_ACCOUNTING, $params) . '">' . olc_image_button('button_accounting.gif', IMAGE_ACCOUNTING) . HTML_A_END); } // elari cs v3.x changed for added iplog module $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_ORDERS, $params) . '">' . olc_image_button('button_orders.gif', IMAGE_ORDERS) . HTML_A_END . BLANK . HTML_A_START . olc_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . olc_image_button('button_email.gif', IMAGE_EMAIL) . '</a><br/><a href="' . olc_href_link(FILENAME_CUSTOMERS, $params . 'iplog') . '">' . olc_image_button('button_iplog.gif', IMAGE_IPLOG) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_DATE_ACCOUNT_CREATED . BLANK . olc_date_short($cInfo->date_account_created)); $contents[] = array('text' => HTML_BR . TEXT_DATE_ACCOUNT_LAST_MODIFIED . BLANK . olc_date_short($cInfo->date_account_last_modified)); $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_LAST_LOGON . BLANK . olc_date_short($cInfo->date_last_logon)); $contents[] = array('text' => HTML_BR . TEXT_INFO_NUMBER_OF_LOGONS . BLANK . $cInfo->number_of_logons); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY . BLANK . $cInfo->countries_name); $contents[] = array('text' => HTML_BR . TEXT_INFO_NUMBER_OF_REVIEWS . BLANK . $cInfo->number_of_reviews); } if ($action == 'iplog') { $contents[] = array('text' => '<br/><b>IPLOG :'); $customers_log_info_array = olc_get_user_info($customers_id); if (olc_db_num_rows($customers_log_info_array)) { while ($customers_log_info = olc_db_fetch_array($customers_log_info_array)) { $contents[] = array('text' => '<tr>' . NEW_LINE . '<td class="smallText">' . $customers_log_info['customers_ip_date'] . BLANK . $customers_log_info['customers_ip']); } }
</tr> <tr> <td width="142" class="main" style="border: 1px solid; border-color: #cccccc;"><?php echo $memo_values['memo_text']; ?> </td> </tr> <tr> <td><a href="<?php echo olc_href_link(FILENAME_CUSTOMERS, 'cID=' . $_GET['cID'] . '&action=edit&special=remove_memo&mID=' . $memo_values['memo_id']); ?> " onclick="javascript:return confirm('<?php echo DELETE_ENTRY; ?> ')"><?php echo olc_image_button('button_delete.gif', IMAGE_DELETE); ?> </a></td> </tr> </table> <?php } ?> <table width="100%"> <tr> <td class="main"><b><?php echo TEXT_TITLE; ?> </b>:<?php echo olc_draw_input_field('memo_title'); ?>
</table> </td> </tr>'; $radio_buttons++; } $address_content .= ' </table>'; $smarty->assign('BLOCK_ADDRESS', $address_content); } } /* if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) { include(DIR_WS_MODULES . SMARTY_TEMPLATE.PHP); } */ $submit_routine_trailer = '_optional'; $smarty->assign('BUTTON_CONTINUE', olc_draw_hidden_field('action', 'submit') . olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); if ($process) { $smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link($back_file, EMPTY_STRING, SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END); } } $smarty->assign('FORM_ACTION', olc_draw_form(MESSAGE_STACK_NAME, olc_href_link(MESSAGE_STACK_NAME . PHP, EMPTY_STRING, SSL), 'post', 'onsubmit="return check_form' . $submit_routine_trailer . '(\'' . MESSAGE_STACK_NAME . '\');"')); //W. Kaiser - AJAX if ($messageStack->size(MESSAGE_STACK_NAME) > 0) { $smarty->assign('error', $messageStack->output(MESSAGE_STACK_NAME)); } $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . MESSAGE_STACK_NAME . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_draw_input_field('tax_class_title', $tcInfo->tax_class_title)); $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_class_description', $tcInfo->tax_class_description)); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'delete': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_TAX_CLASS . HTML_B_END); $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $tcInfo->tax_class_title . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($tcInfo)) { $heading[] = array('text' => HTML_B_START . $tcInfo->tax_class_title . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($tcInfo->date_added)); $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($tcInfo->last_modified)); $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . $tcInfo->tax_class_description); } 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>
$contents = array(); switch ($action) { case 'delete': $heading[] = array('text' => HTML_B_START . $bInfo->banners_title . HTML_B_END); $contents = array('form' => olc_draw_form('banners', FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $bInfo->banners_title . HTML_B_END); if ($bInfo->banners_image) { $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', 'on', true) . BLANK . TEXT_INFO_DELETE_IMAGE); } $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($bInfo)) { $heading[] = array('text' => HTML_B_START . $bInfo->banners_title . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=new') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_BANNER_MANAGER, $page_parameter . '&bID=' . $bInfo->banners_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_BANNERS_DATE_ADDED . BLANK . olc_date_short($bInfo->date_added)); if (function_exists('imagecreate') && $dir_ok && $banner_extension) { $banner_id = $bInfo->banners_id; $days = '3'; include DIR_WS_INCLUDES . 'graphs/banner_infobox.php'; $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image(DIR_WS_IMAGES . 'graphs/banner_infobox-' . $banner_id . '.' . $banner_extension)); } else { include DIR_WS_FUNCTIONS . 'html_graphs.php'; $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_banner_graph_infoBox($bInfo->banners_id, '3')); } $contents[] = array('text' => olc_image(DIR_WS_IMAGES . 'graph_hbar_blue.gif', 'Blue', '5', '5') . BLANK . TEXT_BANNERS_BANNER_VIEWS . HTML_BR . olc_image(DIR_WS_IMAGES . 'graph_hbar_red.gif', 'Red', '5', '5') . BLANK . TEXT_BANNERS_BANNER_CLICKS); if ($bInfo->date_scheduled) { $contents[] = array('text' => HTML_BR . sprintf(TEXT_BANNERS_SCHEDULED_AT_DATE, olc_date_short($bInfo->date_scheduled))); } if ($bInfo->expires_date) {
} else { $smarty->assign('GLOBAL_NOTIFICATION', '1'); } if ($global['global_product_notifications'] != '1') { $products_check_query = olc_db_query("select count(*) as total from " . TABLE_PRODUCTS_NOTIFICATIONS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS); $products_check = olc_db_fetch_array($products_check_query); if ($products_check['total'] > 0) { $counter = 0; $notifications_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">'; $products_query = olc_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where pn.customers_id = '" . (int) $_SESSION['customer_id'] . "' and pn.products_id = pd.products_id and pd.language_id = '" . SESSION_LANGUAGE_ID . "' order by pd.products_name"); while ($products = olc_db_fetch_array($products_query)) { $notifications_products .= ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="javascript:checkBox(\'products[' . $counter . ']\')"> <td class="main" width="30">' . olc_draw_checkbox_field('products[' . $counter . ']', $products['products_id'], true, 'onclick="javascript:checkBox(\'products[' . $counter . ']\')"') . '</td> <td class="main"><b>' . $products['products_name'] . '</b></td> </tr> '; $counter++; } $notifications_products .= '</table>'; $smarty->assign('PRODUCTS_NOTIFICATION', $notifications_products); } else { } } $smarty->assign('FORM_ACTION', olc_draw_form('account_notifications', olc_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', SSL)) . olc_draw_hidden_field('action', 'process')); $smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_ACCOUNT, '', SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END); $smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'account_notifications' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
$content_query = olc_db_query("SELECT\n\t\t\t\tcontent_id,\n\t\t\t\tcontent_name,\n\t\t\t\tcontent_link,\n\t\t\t\tcontent_file,\n\t\t\t\tcontent_read,\n\t\t\t\tfile_comment\n\t\t\t\tFROM " . TABLE_PRODUCTS_CONTENT . "\n\t\t\t\tWHERE\n\t\t\t\tproducts_id='" . (int) $_GET['products_id'] . "' AND\n\t\t\t\tlanguages_id='" . SESSION_LANGUAGE_ID . APOS); while ($content_data = olc_db_fetch_array($content_query)) { $filename = ''; if ($content_data['content_link'] != '') { $icon = olc_image(DIR_WS_CATALOG . 'admin/images/icons/icon_link.gif'); } else { $icon = olc_image(DIR_WS_CATALOG . 'admin/images/icons/icon_' . str_replace('.', '', strstr($content_file, '.')) . '.gif'); } if ($content_data['content_link'] != '') { $filename = HTML_A_START . $content_data['content_link'] . '" target="new">'; } $filename .= $content_data['content_name']; if ($content_data['content_link'] != '') { $filename .= HTML_A_END; } if ($content_data['content_link'] == '') { $content_file = $content_file; if (eregi('' . HTML_EXT, $content_file) or eregi('.htm', $content_file) or eregi('.txt', $content_file) or eregi('.bmp', $content_file) or eregi('.jpg', $content_file) or eregi('.gif', $content_file) or eregi('.png', $content_file) or eregi('.tif', $content_file)) { //W. Kaiser - AJAX $button = '<a style="cursor:hand" onclick="javascript:ShowInfo(\'' . olc_href_link(FILENAME_MEDIA_CONTENT, 'coID=' . $content_data['content_id']) . '\', \'\')">' . olc_image_button('button_view.gif', TEXT_VIEW) . HTML_A_END; //W. Kaiser - AJAX } else { $button = HTML_A_START . olc_href_link('media/products/' . $content_file) . '">' . olc_image_button('button_download.gif', TEXT_DOWNLOAD) . HTML_A_END; } } $module_content[] = array('ICON' => $icon, 'FILENAME' => $filename, 'DESCRIPTION' => $content_data['file_comment'], 'FILESIZE' => olc_filesize($content_file), 'BUTTON' => $button, 'HITS' => $content_data['content_read']); } $module_smarty->assign(MODULE_CONTENT, $module_content); $module = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . 'products_media' . HTML_EXT, $cacheid); $info_smarty->assign('MODULE_products_media', $module); }
function display() { $customers_statuses_array = olc_get_customers_statuses(); // build Currency Select $curr = ''; $currencies = olc_db_query("SELECT code FROM " . TABLE_CURRENCIES); while ($currencies_data = olc_db_fetch_array($currencies)) { $curr .= olc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . HTML_BR; } return array('text' => EXPORT_STATUS_TYPE . HTML_BR . EXPORT_STATUS . HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, '1') . HTML_BR . CURRENCY . HTML_BR . CURRENCY_DESC . HTML_BR . $curr . EXPORT_TYPE . HTML_BR . EXPORT . HTML_BR . olc_draw_radio_field('export', 'no', false) . EXPORT_NO . HTML_BR . olc_draw_radio_field('export', 'yes', true) . EXPORT_YES . HTML_BR . HTML_BR . olc_image_submit('button_export.gif', IMAGE_UPDATE) . HTML_A_START . olc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=kelkoo') . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); }
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>'; }
// Re-Post all POST'ed variables reset($_POST); while (list($key, $value) = each($_POST)) { if (!is_array($_POST[$key])) { echo olc_draw_hidden_field($key, htmlspecialchars(stripslashes($value))); } } ?> <table border="0" width="100%" cellpadding="0" cellspacing="2"> <tr> <td><?php echo olc_image_submit('button_back.gif', IMAGE_BACK, 'name="back"'); ?> </td> <td align="right"><?php echo HTML_A_START . olc_href_link(FILENAME_MAIL) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . olc_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?> </td> </tr> </table></td> </tr> </table></td> </form></tr> <?php } else { ?> <tr><?php echo olc_draw_form('mail', FILENAME_MAIL, 'action=preview'); ?> <td><table border="0" cellpadding="0" cellspacing="2"> <tr>
$heading[] = array('text' => HTML_B_START . TEXT_HEADING_DELETE_MANUFACTURER . HTML_B_END); $contents = array('form' => olc_draw_form('manufacturers', FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $mInfo->manufacturers_name . HTML_B_END); $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', '', true) . BLANK . TEXT_DELETE_IMAGE); if ($mInfo->products_count > 0) { $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_products') . BLANK . TEXT_DELETE_PRODUCTS); $contents[] = array('text' => HTML_BR . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count)); } $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($mInfo)) { $heading[] = array('text' => HTML_B_START . $mInfo->manufacturers_name . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_DATE_ADDED . BLANK . olc_date_short($mInfo->date_added)); if (olc_not_null($mInfo->last_modified)) { $contents[] = array('text' => TEXT_LAST_MODIFIED . BLANK . olc_date_short($mInfo->last_modified)); } $contents[] = array('text' => HTML_BR . olc_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name)); $contents[] = array('text' => HTML_BR . TEXT_PRODUCTS . BLANK . $mInfo->products_count); } 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; }
$heading[] = array('text' => HTML_B_START . $abInfo->affiliate_banners_title . HTML_B_END); $contents = array('form' => olc_draw_form('affiliate_banners', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $abInfo->affiliate_banners_title . HTML_B_END); if ($abInfo->affiliate_banners_image) { $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', 'on', true) . BLANK . TEXT_INFO_DELETE_IMAGE); } $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . olc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $_GET['abID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($abInfo)) { $sql = "select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $abInfo->affiliate_products_id . "' and language_id = '" . SESSION_LANGUAGE_ID . APOS; $product_description_query = olc_db_query($sql); $product_description = olc_db_fetch_array($product_description_query); $heading[] = array('text' => HTML_B_START . $abInfo->affiliate_banners_title . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=new') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => $product_description['products_name']); $contents[] = array('text' => HTML_BR . TEXT_BANNERS_DATE_ADDED . BLANK . olc_date_short($abInfo->affiliate_date_added)); $contents[] = array('text' => '' . sprintf(TEXT_BANNERS_STATUS_CHANGE, olc_date_short($abInfo->affiliate_date_status_change))); } 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>
<td colspan="4"><?php echo olc_draw_separator(); ?> </td> </tr> <tr> <td align="center" class="dataTableContent" colspan="4"><b><?php echo TEXT_SUMMARY; ?> </b></td> </tr> <tr> <td colspan="4"><?php echo olc_draw_separator(); ?> </td> </tr> <tr> <td align="right" class="dataTableContent" colspan="4"><?php echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_BANNERS, '') . '">' . olc_image_button('button_affiliate_banners.gif', IMAGE_BANNERS) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_CLICKS, '') . '">' . olc_image_button('button_affiliate_clickthroughs.gif', IMAGE_CLICKTHROUGHS) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_SALES, '') . '">' . olc_image_button('button_affiliate_sales.gif', IMAGE_SALES) . HTML_A_END; ?> </td> </tr> </center> </table></td> </tr> </table></td> </tr> </table></td> <?php require DIR_WS_INCLUDES . 'application_bottom.php';