function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     if (olc_not_null($parameters) && substr($parameters, -1) != '&') {
         $parameters .= '&';
     }
     // calculate number of pages needing links
     $num_pages = ceil($query_numrows / $max_rows_per_page);
     $pages_array = array();
     for ($i = 1; $i <= $num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($num_pages > 1) {
         $display_links = olc_draw_form('pages', CURRENT_SCRIPT, '', 'get');
         if ($current_page_number > 1) {
             $display_links .= HTML_A_START . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number - 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $display_links .= sprintf(TEXT_RESULT_PAGE, olc_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onchange="this.form.submit();"'), $num_pages);
         if ($current_page_number < $num_pages && $num_pages != 1) {
             $display_links .= '&nbsp;&nbsp;<a href="' . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number + 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . HTML_A_END;
         } else {
             $display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
         }
         if ($parameters != '') {
             if (substr($parameters, -1) == '&') {
                 $parameters = substr($parameters, 0, -1);
             }
             $pairs = explode('&', $parameters);
             while (list(, $pair) = each($pairs)) {
                 list($key, $value) = explode('=', $pair);
                 $display_links .= olc_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         if (SID) {
             $display_links .= olc_draw_hidden_field(session_name(), session_id());
         }
         $display_links .= '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
    include 'orders_edit_products.php';
} elseif ($_GET['edit_action'] == 'shipping') {
    include 'orders_edit_shipping.php';
} elseif ($_GET['edit_action'] == 'options') {
    include 'orders_edit_options.php';
}
?>

<!-- Bestellung Sichern Anfang //-->
<br/><br/>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableRow">
<td class="dataTableContent" align="right">
<?php 
echo TEXT_SAVE_ORDER;
echo olc_draw_form('save_order', FILENAME_ORDERS_EDIT, 'action=save_order', 'post');
echo olc_draw_hidden_field('customers_status_id', $address[customers_status]);
echo olc_draw_hidden_field('orders_id', $_GET['oID']);
echo olc_image_submit('button_save.gif', TEXT_BUTTON_SAVE_ORDER, 'style="cursor:hand" ');
?>
</form>
</td>
</tr>
<tr><td><?php 
echo olc_draw_separator();
?>
</td></tr>
</table>
<br/><br/>
<!-- Bestellung Sichern Ende //-->
@
<p>
  Bitte geben Sie in die folgenden Felder die <font color=
  "Blue><b>Speicherorte</b></font> des
  <b>PHPMyAdmin</b>-<font color=
  "Blue"><b>Struktur</b></font>-Dumps der aktuellen
  <font color="Red"><b>OL-Commerce</b></font>- und der
  <font color="Red"><b>Import</b></font>-Datenbank, sowie
  den Speicherort des <b>PHPMyAdmin</b>-<font color=
  "Blue"><b>Daten</b></font>-Dumps der aktuellen
  <font color="Red"><b>Import</b></font>-Datenbank ein.
  <b><a target="_blank" href=
  "../olc_installer/automatischer_daten_import.html">Hilfe</a></b>
</p>
';
            $main_content .= olc_draw_form('xxc_import', $PHP_SELF, 'post', 'enctype="multipart/form-data"') . olc_draw_hidden_field('action', 'process') . '
  <table border="0">
    <tr>
      <td valign="top" class="main" class="main">
        <b>Speicherort des....<br/><br/></b>
      </td>
      <td valign="top" class="main">
        (' . $file_size . ')
      </td>
    </tr>
    <tr>
      <td valign="top" class="main">
        <font color="Blue"><b>Struktur</b></font>-Dumps
        der <font color=
        "Red"><b>OL-Commerce</b></font>-Datenbank:&nbsp;
      </td>
示例#4
0
    ?>
</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>
                <td colspan="2"><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
<?php 
    $customers = array();
    $customers[] = array('id' => '', 'text' => TEXT_SELECT_CUSTOMER);
    $customers[] = array('id' => '***', 'text' => TEXT_ALL_CUSTOMERS);
    $customers[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_CUSTOMERS);
    // Customers Status 1.x
    //    $customers_statuses_array = olc_get_customers_statuses();
                } else {
                    $parameters = 'basket_id=' . $basket_id;
                    $cart_content = EMPTY_STRING;
                }
                $link = olc_href_link(CURRENT_SCRIPT, $parameters);
                $date = $basket['basket_date_added'];
                $date = substr($date, 6, 2) . DOT . substr($date, 4, 2) . DOT . substr($date, 0, 4);
                $module_content[] = array('show_order_details' => $show_order_details, 'BOX_SELECT' => olc_draw_radio_field('cart_select[]', $basket_id, $selected), 'NAME' => $basket['basket_name'], 'DATE' => $date, 'BOX_DELETE' => olc_draw_checkbox_field('cart_delete[]', $basket_id), 'LINK' => $link);
            }
        } else {
            $error_message = olc_get_smarty_config_variable($smarty, 'shopping_cart', 'text_no_saved_cart');
        }
        $cart_restore_text = 'cart_restore';
        if ($error_message) {
            $module_smarty->assign('ERROR_MESSAGE', $error_message);
        } else {
            $module_smarty->assign(MODULE_CONTENT, $module_content);
            if ($bid) {
                $MODULE_order_details_text = 'MODULE_order_details';
                $module_smarty->assign($MODULE_order_details_text, $smarty->_tpl_vars[$MODULE_order_details_text]);
                $smarty->assign($MODULE_order_details_text, EMPTY_STRING);
            }
        }
        $module_smarty->assign('FORM_ACTION', olc_draw_form($cart_restore_text, $cart_restore_text . PHP . '?process=true'));
        $module_smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
        $main_content = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . $cart_restore_text . HTML_EXT, $cache_id);
        $smarty->assign(MAIN_CONTENT, $main_content);
        require BOXES;
        $smarty->display(INDEX_HTML);
    }
}
} 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);
    ?>
</td>
                    <td align="right"><?php 
    echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_CONTACT) . '">' . 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_AFFILIATE_CONTACT, 'action=preview');
    ?>
            <td><table border="0" cellpadding="0" cellspacing="2">
              <tr>
                <td colspan="2"><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
<?php 
    $affiliate = array();
    $affiliate[] = array('id' => '', 'text' => TEXT_SELECT_AFFILIATE);
    $affiliate[] = array('id' => '***', 'text' => TEXT_ALL_AFFILIATES);
    //    $affiliate[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_AFFILIATES);
    $mail_query = olc_db_query("select affiliate_email_address, affiliate_firstname, affiliate_lastname from " . TABLE_AFFILIATE . " order by affiliate_lastname");
    while ($affiliate_values = olc_db_fetch_array($mail_query)) {
<?php

/* -----------------------------------------------------------------------------------------
$Id: add_a_quickie.php,v 1.2 2004/02/17 16:20:07 fanta2k Exp $

OL-Commerce Version 5.x/AJAX
http://www.ol-commerce.com, http://www.seifenparadies.de

Copyright (c) 2004 OL-Commerce, 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de)
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
(c) 2002-2003 osCommerce(add_a_quickie.php,v 1.10 2001/12/19); www.oscommerce.com

Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contribution:
Add A Quickie v1.0 Autor  Harald Ponce de Leon

Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
olc_smarty_init($box_smarty, $cacheid);
$box_content = olc_draw_form('quick_add', olc_href_link('index' . PHP), 'get');
$box_smarty->assign('FORM_ACTION', $box_content);
$box_smarty->assign('INPUT_FIELD', olc_draw_hidden_field('action', 'buy_now') . olc_draw_input_field('BUYproducts_model', EMPTY_STRING, 'size=10'));
$box_smarty->assign('SUBMIT_BUTTON', olc_image_submit('button_buy_now.gif', BOX_HEADING_ADD_PRODUCT_ID));
$box_add_a_quickie = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_add_a_quickie' . HTML_EXT, $cacheid);
$smarty->assign('box_ADD_A_QUICKIE', $box_add_a_quickie);
//get all auction templates
$auctionssql = SELECT . "predef_id, quantity, title, subtitle, c.name catname, cat1, startprice, binprice, duration,\n\tt.name typename FROM " . TABLE_AUCTION_PREDEFINITION . " p, " . TABLE_EBAY_CATEGORIES . " c, " . TABLE_EBAY_AUCTIONTYPE . " t\n\twhere\n\tp.cat1 = c.id and\n\tp.auction_type = t.id " . $ordersql;
$myauctions = olc_db_query($auctionssql);
/* define Table Heading */
$heading = array(array($name_text => AUCTIONS_TEXT_AUCTION_PREDEF_ID, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $predef_id_text, $sort0), $link_text => $file . $predef_id_text), array($name_text => AUCTIONS_TEXT_AUCTION_AMOUNT, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $product_id_text, $sort0), $link_text => $file . $product_id_text), array($name_text => AUCTIONS_TEXT_AUCTION_CAT, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $cat1_text, $sort0), $link_text => $file . $cat1_text), array($name_text => AUCTIONS_TEXT_AUCTION_START_PRICE, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $startprice_text, $sort0), $link_text => $file . $startprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_BUYNOW_PRICE, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $binprice_text, $sort0), $link_text => $file . $binprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_PREDEF_DURATION, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $duration_text, $sort0), $link_text => $file . $duration_text), array($name_text => AUCTIONS_TEXT_AUCTION_PREDEF_TYPE, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $typename_text, $sort0), $link_text => $file . $typename_text, array($name_text => HTML_NBSP)));
/* print table heading */
$main_content .= tableheading($heading);
$i = 0;
while ($auctions_values = olc_db_fetch_array($myauctions)) {
    /* define content array */
    $i++;
    if ($i % 2 == 0) {
        $class = $dataTableRow_1_text;
    } else {
        $class = $dataTableRow_text;
    }
    $startprice = $auctions_values[$startprice_text];
    $startprice = $startprice == 0 ? DASH : olc_format_price($startprice, 1, 1, 1);
    $binprice = $auctions_values[$binprice_text];
    $binprice = $binprice == 0 ? DASH : olc_format_price($binprice, 1, 1, 1);
    $content = array($cssclass_text => $class, $values_text => array(array($value_text => $auctions_values[$predef_id_text], $link_text => $getItem_text . $auctions_values[$predef_id_text], $linkattribute_text => $target_blank_text), array($value_text => $auctions_values[$quantity_text] . $x_text . $auctions_values[$title_text] . HTML_BR . $auctions_values[$subtitle_text]), array($value_text => $auctions_values[$catname_text] . HTML_BR . "(" . $auctions_values[$cat1_text] . RPAREN, $attributes_text => $align_right_text), array($value_text => $startprice, $attributes_text => $align_right_text), array($value_text => $binprice, $attributes_text => $align_right_text), array($value_text => $auctions_values[$duration_text] . AUCTIONS_TEXT_AUCTION_DURATION_DAYS), array($value_text => $auctions_values[$typename_text], $attributes_text => $align_right_text), array($value_text => olc_draw_form('edit_form', FILENAME_AUCTIONS_NEW) . olc_draw_hidden_field('id', $auctions_values[$predef_id_text]) . olc_draw_submit_button('edit', AUCTIONS_TEXT_AUCTION_PREDEF_ACCEPT) . '
		</form>', $attributes_text => $align_right_text)));
    /* print content table */
    $main_content .= tablecontent($content);
}
$page_header_title = AUCTIONS_TEXT_HEADER;
$page_header_subtitle = AUCTIONS_TEXT_SUB_HEADER_PREDEF;
$page_header_icon_image = HEADING_MODULES_ICON;
$show_column_right = true;
$no_left_menu = false;
require PROGRAM_FRAME;
        $contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . HTML_BR . olc_draw_pull_down_menu('address_format_id', olc_get_address_formats()));
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'edit':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_COUNTRY . HTML_B_END);
        $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . olc_draw_input_field('countries_name', $cInfo->countries_name));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . HTML_BR . olc_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . HTML_BR . olc_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . HTML_BR . olc_draw_pull_down_menu('address_format_id', olc_get_address_formats(), $cInfo->address_format_id));
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_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_COUNTRY . HTML_B_END);
        $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $cInfo->countries_name . HTML_B_END);
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_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->countries_name . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . $cInfo->countries_name);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . BLANK . $cInfo->countries_iso_code_2);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . BLANK . $cInfo->countries_iso_code_3);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_ADDRESS_FORMAT . BLANK . $cInfo->address_format_id);
        }
        break;
}
        $resultstring = AUCTIONS_TEXT_AUCTION_LIST_STATUS_FAILED;
    }
    if ($resultstring) {
        $main_content = "<span class='smallText'>" . $resultstring . "</span><br/>";
    }
}
$orderby = "auction_id";
//Default order field
require_once DIR_WS_FUNCTIONS . 'list_sorting.php';
//show all auctions not ended and not sheduled
$mynewstarttime = toGMT(date(AUCTIONS_DATE_FORMAT));
$auctionssql = SELECT_ALL . TABLE_AUCTION_LIST . " where ended !=1 AND starttime <= '" . $mynewstarttime . "' " . $ordersql;
$myauctions = olc_db_query($auctionssql);
$main_content .= '
<p align="right">
' . olc_draw_form('pickup_form', $PHP_SELF) . olc_draw_submit_button('pickup', AUCTIONS_TEXT_AUCTION_LIST_STATUS_GET) . '
</form>
</p>
';
/* define Table Heading */
$heading = array(array($name_text => AUCTIONS_TEXT_AUCTION_AMOUNT, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $auction_title_text, $sort0), $link_text => $file . $auction_title_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_EBAY_ID, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $auction_id_text, $sort0), $link_text => $file . $auction_id_text), array($name_text => AUCTIONS_TEXT_AUCTION_START_PRICE, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $startprice_text, $sort0), $link_text => $file . $startprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_BUYNOW_PRICE, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $buynowprice_text, $sort0), $link_text => $file . $buynowprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_START_TIME, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $starttime_text, $sort0), $link_text => $file . $starttime_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_END_TIME, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $endtime_text, $sort0), $link_text => $file . $endtime_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_BIDS, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $bidcount_text, $sort0), $link_text => $file . $bidcount_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_HIGHEST_BID, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $bidprice_text, $sort0), $link_text => $file . $bidprice_text));
/* print table heading */
$main_content = tableheading($heading);
$i = 0;
while ($auctions_values = olc_db_fetch_array($myauctions)) {
    $mybidcount = $auctions_values[$bidcount_text];
    if ($mybidcount == 0) {
        $currentprice = DASH;
    } else {
        $currentprice = olc_format_price($auctions_values[$bidprice_text], 1, 1, 1);
    }
	<tr>
	<td align="right" colspan="2"><?php 
    echo HTML_A_START . olc_href_link(FILENAME_BANNER_MANAGER, 'action=new') . '">' . olc_image_button('button_new_banner.gif', IMAGE_NEW_BANNER) . HTML_A_END;
    ?>
</td>
	</tr>
	</table></td>
	</tr>
	</table></td>
	<?php 
    $heading = array();
    $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) . '&nbsp;<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';
									</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);
            if ($cInfo->customers_id) {
                $cid_db = $cInfo->customers_id;
            }
            $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_CUSTOMER . HTML_B_END);
            $contents = array('form' => olc_draw_form('customers', FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cid_db . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO . '<br/><br/><b>' . $cInfo->customers_firstname . BLANK . $cInfo->customers_lastname . HTML_B_END);
            if ($cInfo->number_of_reviews > 0) {
                $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_reviews', 'on', true) . BLANK . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
            }
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        case 'editstatus':
            if ($cId != 1) {
                $customers_history_query = olc_db_query(SELECT . "new_value, old_value, date_added, customer_notified from " . TABLE_CUSTOMERS_STATUS_HISTORY . " where customers_id = '" . $cId_db . "' order by customers_status_history_id desc");
                $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_STATUS_CUSTOMER . HTML_B_END);
                $contents = array('form' => olc_draw_form('customers', FILENAME_CUSTOMERS, olc_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=statusconfirm'));
                $contents[] = array('text' => HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, $cInfo->customers_status));
                $contents[] = array('text' => '
				<table nowrap="nowrap" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
						<b>' . TABLE_HEADING_NEW_VALUE . '</b>
					</td>
					<td style="border-bottom: 1px solid; border-color: #000000;" nowrap="nowrap" class="smallText" align="center">
						<b>' . TABLE_HEADING_DATE_ADDED . '</b>
					</td>
			</tr>
			');
                if (olc_db_num_rows($customers_history_query)) {
                    while ($customers_history = olc_db_fetch_array($customers_history_query)) {
                        $contents[] = array('text' => '<tr>' . NEW_LINE . '<td class="smallText">' . $customers_statuses_array[$customers_history['new_value']]['text'] . '</td>' . NEW_LINE . '<td class="smallText" align="center">' . olc_datetime_short($customers_history['date_added']) . '</td>' . NEW_LINE . '<td class="smallText" align="center">');
    }
    if (!$manufacturers_id) {
        $products_id = $_GET['products_id'];
        if ($products_id) {
            $manufacturers_query = olc_db_query("select manufacturers_id from " . TABLE_PRODUCTS . " where products_id = " . $products_id);
            if (olc_db_num_rows($manufacturers_query)) {
                $products_data = olc_db_fetch_array($manufacturers_query);
                $manufacturers_id = $products_data['manufacturers_id'];
            }
        } else {
            $manufacturers_id = $_GET['filter_id'];
        }
    }
    $form_name_text = 'manufacturers';
    if (USE_AJAX) {
        $onchange = "make_AJAX_Request_POST('" . $form_name_text . "','" . FILENAME_DEFAULT . "')";
    } else {
        $onchange = 'this.form.submit()';
    }
    $box_content = olc_draw_form($form_name_text, olc_href_link(FILENAME_DEFAULT, EMPTY_STRING, NONSSL, false), 'get');
    $box_content .= olc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $manufacturers_id, 'onchange="' . $onchange . '" size="' . MAX_MANUFACTURERS_LIST . QUOTE) . olc_hide_session_id() . '
</form>
';
    $box_smarty->assign('BOX_CONTENT', $box_content);
    $box_manufacturers = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_manufacturers' . HTML_EXT, $cacheid);
} else {
    if (IS_AJAX_PROCESSING) {
        $box_manufacturers = HTML_NBSP;
    }
}
$smarty->assign('box_MANUFACTURERS', $box_manufacturers);
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . BLANK . olc_draw_input_field('customers_status_discount', $cInfo->customers_status_discount));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . BLANK . olc_draw_pull_down_menu('customers_status_discount_attributes', $customers_status_discount_attributes_array, $cInfo->customers_status_discount_attributes));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INTRO . '<br/> ' . ENTRY_OT_XMEMBER . BLANK . olc_draw_pull_down_menu('customers_status_ot_discount_flag', $customers_status_ot_discount_flag_array, $cInfo->customers_status_ot_discount_flag) . HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . BLANK . olc_draw_input_field('customers_status_ot_discount', $cInfo->customers_status_ot_discount));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . HTML_BR . ENTRY_GRADUATED_PRICES . BLANK . olc_draw_pull_down_menu('customers_status_graduated_prices', $customers_status_graduated_prices_array, $cInfo->customers_status_graduated_prices));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_PAYMENT_UNALLOWED . BLANK . olc_draw_input_field('customers_status_payment_unallowed', $cInfo->customers_status_payment_unallowed));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_SHIPPING_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_SHIPPING_UNALLOWED . BLANK . olc_draw_input_field('customers_status_shipping_unallowed', $cInfo->customers_status_shipping_unallowed));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_FSK18_INTRO . HTML_BR . ENTRY_CUSTOMERS_FSK18 . BLANK . olc_draw_pull_down_menu('customers_fsk18', $customers_fsk18_array, $cInfo->customers_fsk18));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_FSK18_DISPLAY_INTRO . HTML_BR . ENTRY_CUSTOMERS_FSK18_DISPLAY . BLANK . olc_draw_pull_down_menu('customers_fsk18_display', $customers_fsk18_display_array, $cInfo->customers_fsk18_display));
     if (DEFAULT_CUSTOMERS_STATUS_ID != $cInfo->customers_status_id) {
         $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT);
     }
     $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' => TEXT_INFO_INSERT_INTRO);
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_draw_input_field('tax_class_title'));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_class_description'));
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'edit':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_TAX_CLASS . HTML_B_END);
        $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
        $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) . '&nbsp;<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) . '&nbsp;<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)) {
    }
    if ($error == false) {
        $check_customer_query = olc_db_query("select customers_password from " . TABLE_CUSTOMERS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
        $check_customer = olc_db_fetch_array($check_customer_query);
        if (olc_validate_password($password_current, $check_customer['customers_password'])) {
            olc_db_query(SQL_UPDATE . TABLE_CUSTOMERS . " set customers_password = '******' where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
            olc_db_query(SQL_UPDATE . TABLE_CUSTOMERS_INFO . " set customers_info_date_account_last_modified = now() where customers_info_id = '" . (int) $_SESSION['customer_id'] . APOS);
            $messageStack->add_session('account', SUCCESS_PASSWORD_UPDATED, 'success');
            olc_redirect(olc_href_link(FILENAME_ACCOUNT));
        } else {
            $error = true;
            $messageStack->add('account_password', ERROR_CURRENT_PASSWORD_NOT_MATCHING);
        }
    }
}
$breadcrumb->add(NAVBAR_TITLE_1_ACCOUNT_PASSWORD, olc_href_link(FILENAME_ACCOUNT));
$breadcrumb->add(NAVBAR_TITLE_2_ACCOUNT_PASSWORD, olc_href_link(FILENAME_ACCOUNT_PASSWORD));
require DIR_WS_INCLUDES . 'header.php';
if ($messageStack->size('account_password') > 0) {
    $smarty->assign('error', $messageStack->output('account_password'));
}
$smarty->assign('FORM_ACTION', olc_draw_form('account_password', olc_href_link(FILENAME_ACCOUNT_PASSWORD), 'post', 'onsubmit="return check_form(account_password);"') . olc_draw_hidden_field('action', 'process'));
$smarty->assign('INPUT_ACTUAL', olc_draw_password_field('password_current') . HTML_NBSP . (olc_not_null(ENTRY_PASSWORD_CURRENT_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CURRENT_TEXT . '</span>' : ''));
$smarty->assign('INPUT_NEW', olc_draw_password_field('password_new') . HTML_NBSP . (olc_not_null(ENTRY_PASSWORD_NEW_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_NEW_TEXT . '</span>' : ''));
$smarty->assign('INPUT_CONFIRM', olc_draw_password_field('password_confirmation') . HTML_NBSP . (olc_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>' : ''));
$smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_ACCOUNT) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
$smarty->assign('BUTTON_SUBMIT', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'account_password' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
            if ($last_name != '') {
                $first_name = $_POST['first_name'];
                $fon = $_POST['fon'];
                $fax = $_POST['fax'];
                require_once $dir . 'includes/functions/address_validation.php';
                //IsValidAddress('81', $postcode, $city, $street, $last_name, $fon, $fax, $message);
                IsValidAddress('81', $postcode, $city, $street_address, $last_name, $first_name, $fon, $fax, $message);
                $build_input = false;
            }
        }
    }
}
echo '<html><body><p align="center"><b><font size="4" color="#FF0000">Online Adress-Validierung</font></b></p>';
//W. Kaiser - AJAX
//echo '<form method="POST" action="check_address.php">';
echo olc_draw_form('check_address', olc_href_link('check_address.php'));
//W. Kaiser - AJAX
echo '<table border="0" align="center">';
show_input_field('last_name', 'last_name', $build_input, $last_name);
show_input_field('Vorame', 'first_name', $build_input, $first_name);
show_input_field('Strasse', 'street', $build_input, $street);
show_input_field('Postleitzahl', 'postcode', $build_input, $postcode);
show_input_field('Ort', 'city', $build_input, $city);
show_input_field('Fon', 'fon', $build_input, $fon);
show_input_field('Fax', 'fax', $build_input, $fax);
if (!$build_input) {
    echo '<tr>
				<td colspan="2"><br/><hr/>' . str_replace(HTML_NBSP, '', $message) . '<br/><br/><hr/>
			</td>
		</tr>
	';
        $heading[] = array('text' => HTML_B_START . TEXT_HEADING_EDIT_MANUFACTURER . HTML_B_END);
        $contents = array('form' => olc_draw_form('manufacturers', FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_EDIT_INTRO);
        $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_NAME . HTML_BR . olc_draw_input_field('manufacturers_name', $mInfo->manufacturers_name, $field_size));
        $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_IMAGE . HTML_BR . olc_draw_file_field('manufacturers_image') . HTML_BR . $mInfo->manufacturers_image);
        $manufacturer_inputs_string = '';
        $languages = olc_get_languages();
        for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
            $manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', olc_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']), $field_size);
        }
        $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . 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;
    case 'delete':
        $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));
</td>
                    <td class="smallText" align="right"><?php 
    echo $reviews_split->display_links($reviews_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </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'));
?>
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td class="columnLeft2" nowrap="nowrap" valign="top"><table border="0" cellspacing="1" cellpadding="1" class="columnLeft" nowrap="nowrap">
<!-- left_navigation //-->
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr><?php 
echo olc_draw_form('year', FILENAME_BANNER_STATISTICS, '', 'get');
?>
            <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="main" align="right"><?php 
echo TITLE_TYPE . BLANK . olc_draw_pull_down_menu('type', $type_array, $_GET['type'] ? $_GET['type'] : 'daily', 'onchange="this.form.submit();"');
?>
<noscript><input type="submit" value="GO"></noscript><br/>
<?php 
switch ($_GET['type']) {
            }
        }
        ?>
								</table>
<?php 
        break;
        // end default page
    // end default page
    case 'edit':
        $newsletters_query = olc_db_query("SELECT\n                                   title,body,cc\n                                  FROM " . TABLE_MODULE_NEWSLETTER . "\n                                  WHERE newsletter_id='" . $id_get . APOS);
        $newsletters_data = olc_db_fetch_array($newsletters_query);
    case 'safe':
    case 'new':
        // action for NEW newsletter!
        $customers_status = olc_get_customers_statuses();
        echo olc_draw_form('edit_newsletter', FILENAME_MODULE_NEWSLETTER, 'action=save', 'post') . olc_draw_hidden_field('id', $id_get);
        ?>
									<br/><br/>
									<table class="main" width="100%" border="0">
										<tr>
										  <td width="10%"><?php 
        echo TEXT_TITLE;
        ?>
</td>
										  <td width="90%">
										  	<?php 
        echo olc_draw_textarea_field('title', 'soft', '100%', '3', $newsletters_data['title']);
        ?>
										  </td>
										</tr>
										<tr>
?>
              <p>
                <div align = "left">
                <p><b>Trenne EP Datei</b></p>
                <p>
                  <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000000">
                  <p></p>
                  <input name="usrfl" type="file" size="50">
                  <input type="submit" name="buttonsplit" value="Trenne Datei"><br/>
                </p>
              </div>

             </form>

          <?php 
echo olc_draw_form('edit_attributes', 'easypopulate.php', EMPTY_STRING, 'post');
//<FORM ENCTYPE="multipart/form-data" ACTION="easypopulate.php" METHOD=POST>
?>
              <p>
                <div align = "left">
                <p><b>Importiere aus Temp Verzeichnis (<?php 
echo $tempdir;
?>
)</b></p>
		<p class="smallText">
		<INPUT TYPE="text" name="localfile" size="50">
                  <input type="submit" name="buttoninsert" value="In db einfügen"><br/>
                </p>
              </div>

             </form>
     $heading[] = array('text' => HTML_B_START . TEXT_HEADING_EDIT_BLACKLIST_CARD . HTML_B_END);
     $contents = array('form' => olc_draw_form('blacklisted', FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $contents[] = array('text' => HTML_BR . TEXT_BLACKLIST_CARD_NUMBER . HTML_BR . olc_draw_input_field('blacklist_card_number', $bInfo->blacklist_card_number));
     //      $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_IMAGE . HTML_BR . olc_draw_file_field('manufacturers_image') . HTML_BR . $mInfo->manufacturers_image);
     $blacklist_inputs_string = '';
     //      $languages = olc_get_languages();
     //      for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
     //        $manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', olc_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     //      }
     //      $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . BLANK . HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $mInfo->blacklist_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 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)) {
      </table></td>
<?php 
        break;
    default:
        ?>
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php 
        echo HEADING_TITLE;
        ?>
</td>
            <td class="main"><?php 
        echo olc_draw_form('status', FILENAME_COUPON_ADMIN, '', 'get');
        $status_array[] = array('id' => 'Y', 'text' => TEXT_COUPON_ACTIVE);
        $status_array[] = array('id' => 'N', 'text' => TEXT_COUPON_INACTIVE);
        $status_array[] = array('id' => '*', 'text' => TEXT_COUPON_ALL);
        if ($_GET['status']) {
            $status = olc_db_prepare_input($_GET['status']);
        } else {
            $status = 'Y';
        }
        echo HEADING_TITLE_STATUS . BLANK . olc_draw_pull_down_menu('status', $status_array, $status, 'onchange="this.form.submit();"');
        ?>
              </form>
           </td>
          </tr>
        </table></td>
      </tr>
require 'includes/application_top.php';
if (!isset($_SESSION['customer_id'])) {
    olc_redirect(olc_href_link(FILENAME_LOGIN, EMPTY_STRING, NONSSL));
}
include DIR_WS_INCLUDES . 'html_head_full.php';
$button_back = HTML_A_START . olc_href_link(FILENAME_START, EMPTY_STRING, NONSSL) . '">' . olc_template_image_button('button_back.gif', 'Zurück zur Startseite') . HTML_A_END;
$checkstatus = !$_GET['ignorestatus'];
if ($checkstatus && !isset($_POST["submitted"])) {
    $main_content = EMPTY_STRING;
    $err_message = $_GET['err_message'];
    if ($err_message != EMPTY_STRING) {
        $main_content .= '<p><b><font color="red">' . $err_message . "</font></b></p>";
    }
    $main_content .= '<input type="hidden" name="submitted" value="TRUE" id="' . time() . '">';
    $main_content .= HTML_BR . '<input type="file" name="file" size="50">' . HTML_BR;
    $smarty->assign('FORM_ACTION', olc_draw_form('blz_update', $PHP_SELF, 'full=1', 'post', 'enctype="multipart/form-data"'));
    $smarty->assign('BUTTON_CONTINUE', olc_template_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
    $smarty->assign('SHOW_EXPLANATION', "1");
} else {
    $upload_dir = DIR_FS_CATALOG . 'cache/blz' . SLASH;
    if ($filename = new upload('file', $upload_dir)) {
        $filename = strtolower($filename->filename);
    }
    if ($filename != EMPTY_STRING) {
        $pos = strrpos($filename, SLASH);
        if ($pos == 0) {
            $pos = strrpos($filename, '\\');
        }
        if ($pos !== false) {
            $filename = substr($filename, $pos + 1);
        }
                        echo '<b class=\'main\'>Cross-sells updated <a href="' . olc_href_link(FILENAME_XSELL_PRODUCTS, '', NONSSL) . '">Back to cross-sell admin</a></b><br/>' . NEW_LINE;
                        $run_once++;
                    }
                }
            }
        }
    }
    // end of foreach.
    //////////////////////////////////////////////////////////////////////////////////
    // This bit does the 'PRIORITISE' page (previously Sort)
    $query = "select b.language_id, a.products_id, b.products_name, b.products_description, " . "a.products_quantity, a.products_model, a.products_image, " . "b.products_url, a.products_price from " . TABLE_PRODUCTS . " a, " . TABLE_PRODUCTS_DESCRIPTION . " b where b.products_id = a.products_id and b.language_id = '" . $languages_id . "' and a.products_id = '" . $add_related_product_ID . APOS;
    list($language_id, $PRODUCTS_id, $PRODUCTS_name, $PRODUCTS_description, $PRODUCTS_quantity, $PRODUCTS_model, $PRODUCTS_image, $PRODUCTS_url, $PRODUCTS_price) = general_db_conct($query);
    ?>

								  <?php 
    olc_draw_form('xsell_products', FILENAME_XSELL_PRODUCTS, 'sort=1&add_related_product_ID=' . $add_related_product_ID, 'post');
    //<form method="post" action="<?php olc_href_link(FILENAME_XSELL_PRODUCTS, 'sort=1&add_related_product_ID=' . $add_related_product_ID, NONSSL);
    ?>
">
									?>
											<?php 
    define('AJAX_TITLE', 'Cross-Marketing Produkte für: ' . $PRODUCTS_model[0] . ' (Produkt id: ' . $PRODUCTS_id[0] . RPAREN);
    echo '<span class="pageHeading">' . AJAX_TITLE . '<br/><br/>' . ($PRODUCTS_image[0] ? olc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $PRODUCTS_image[0], $PRODUCTS_name[0]) : "") . '</span><br/><br/>';
    ?>

                  <table cellpadding="2" cellspacing="1" bgcolor=999999 border="0">
                    <tr class="dataTableHeadingRow">
                      <td class="dataTableHeadingContent" width="75">Product
                        id</td>
                      <td class="dataTableHeadingContent" width="75">Quickfind
                        code</td>
	<tr>
	<td align="right" colspan="2"><?php 
    echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'action=new') . '">' . olc_image_button('button_new_banner.gif', IMAGE_NEW_BANNER) . HTML_A_END;
    ?>
</td>
	</tr>
	</table></td>
	</tr>
	</table></td>
	<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $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) . '&nbsp;<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']);
// GV Code ICW ADDED FOR CREDIT CLASS SYSTEM
$total_weight = $_SESSION['cart']->show_weight();
//  $total_count = $_SESSION['cart']->count_contents();
$total_count = $_SESSION['cart']->count_contents_virtual();
// GV Code ICW ADDED FOR CREDIT CLASS SYSTEM
if ($order->billing['country']['iso_code_2'] != EMPTY_STRING) {
    $_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>