function olc_hide_session_id()
{
    global $session_started;
    if ($session_started) {
        if (defined('SID')) {
            if (olc_not_null(SID)) {
                return olc_draw_hidden_field(olc_session_name(), olc_session_id());
            }
        }
    }
}
function build_optional_image_html($i)
{
    global $pic_display_text0, $pic_table_text0, $pic_url_text, $pic_text, $onclick0, $sep, $use_multi_pic_text;
    global $multi_pictures, $pic_table0, $span_start, $thumbs_dir_local, $id_is, $dummy_span, $hidden_text, $end;
    global $original_dir_local, $thumbs_dir_local, $display_visible_text, $display_hidden_text, $pic_table0;
    global $dummy_span, $style_display, $fees, $rab, $div_tex, $onchange, $space;
    $next_i = $i + 1;
    //$index=UNDERSCORE.$i;
    $index = UNDERSCORE . $next_i;
    $my_pic_display_text = $pic_display_text0 . $index;
    $my_pic_table_text = $pic_table_text0 . $next_i;
    $my_pic_url_text = $pic_url_text . $index;
    $my_pic_text = $pic_text . $index;
    $my_use_multi_pic_text = $use_multi_pic_text . $next_i;
    $my_use_multi_pic_div_text = $my_use_multi_pic_text . $div_text;
    $not_last = $i < 12;
    $onclick = $onclick0 . $my_pic_table_text . $sep . $my_pic_url_text . $sep . $my_pic_text;
    if ($not_last) {
        //$onclick.=$sep.$my_use_multi_pic_text.$sep.TRUE_STRING_S;
        $next_i_1 = $next_i + 1;
        $onclick .= $sep . $use_multi_pic_text . $next_i_1 . $div_text . $sep . $next_i;
    }
    $onclick .= $end;
    if ($not_last) {
        $pic_file_name = $multi_pictures[$next_i];
        $use_multi_pic = $pic_file_name != EMPTY_STRING;
        $id = $id_is . $my_pic_text . QUOTE;
        if ($use_multi_pic) {
            $display = $display_visible_text;
            $my_image = olc_image($thumbs_dir_local . $pic_file_name, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING, $id . QUOTE);
            $my_pic_file_name = DIR_WS_ORIGINAL_IMAGES . $pic_file_name;
        } else {
            $display = $display_hidden_text;
            $my_image = SPAN_START . $id . $rab . SPAN_END;
            $my_pic_file_name = EMPTY_STRING;
        }
        $pic_table = str_replace(UNDERSCORE, $display, $pic_table0);
        $pic_table = str_replace(TILDE, $my_pic_table_text, $pic_table);
        $image_html .= HTML_BR . olc_draw_file_field($my_pic_url_text, EMPTY_STRING, str_replace(HASH, $index, $onchange)) . HTML_BR . str_replace(HASH, $my_pic_display_text, $span_start) . $my_pic_file_name . SPAN_END;
        $image_html = str_replace(HASH, $image_html, $pic_table);
        $image_html = str_replace(ATSIGN, $space . $my_image . $dummy_span, $image_html) . olc_draw_hidden_field($my_pic_url_text . $hidden_text, $original_dir_local . $pic_file_name);
        if ($i == 1 || $use_multi_pic) {
            $display = $display_visible_text;
        } else {
            $display = $display_hidden_text;
        }
        $display = $style_display . $display . QUOTE;
        $image_html = '<div nowrap="nowrap"="nowrap" id="' . $my_use_multi_pic_div_text . QUOTE . BLANK . $display . $rab . HTML_BR . olc_draw_checkbox_field($my_use_multi_pic_text, ONE_STRING, $use_multi_pic, $onclick) . HTML_NBSP . sprintf(AUCTIONS_TEXT_AUCTION_USE_MULTI_PIC, $next_i, $fees[$pic_text]) . $image_html . '</div>';
    }
    return $image_html;
}
 function noteOptionFields($option = 'No', $msg = MODULE_PAYMENT_PAYPAL_IPN_CUSTOMER_COMMENTS)
 {
     $option = $option == 'Yes' ? '0' : '1';
     $no_note = olc_draw_hidden_field('no_note', $option);
     if (!$option) {
         return $no_note .= olc_draw_hidden_field('cn', $msg);
     } else {
         return $no_note;
     }
 }
        echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . olc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $pInfo->products_image, 'Standard Image') . '</td>';
    }
    $products_previous_image = 'products_previous_image_';
    echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . HTML_BR . olc_draw_file_field('products_image') . HTML_BR . olc_draw_separator('pixel_trans.gif', '24', '15') . HTML_NBSP . $pInfo->products_image . olc_draw_hidden_field($products_previous_image . '0', $pInfo->products_image);
    if ($pInfo->products_image) {
        echo '</td></tr></table>';
    } else {
        echo '</td></tr>';
    }
    // display MO PICS
    if (MO_PICS > 0) {
        $mo_images = olc_get_products_mo_images($pInfo->products_id);
        for ($i = 0; $i < MO_PICS; $i++) {
            echo '<tr><td colspan="4">' . olc_draw_separator('pixel_black.gif', '100%', '1') . '</td></tr>';
            echo '<tr><td colspan="4">' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td></tr>';
            $image_name = $mo_images[$i]["image_name"];
            $i1 = $i + 1;
            if ($image_name) {
                echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . olc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $image_name, 'Image ' . $i1) . '</td>';
            } else {
                echo '<tr>';
            }
            echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . BLANK . $i1 . HTML_BR . olc_draw_file_field('mo_pics_' . $i) . HTML_BR . olc_draw_separator('pixel_trans.gif', '24', '15') . HTML_NBSP . $image_name . olc_draw_hidden_field($products_previous_image . $i1, $image_name);
            if ($image_name) {
                echo '</tr><tr><td align="center" valign="middle">' . olc_draw_selection_field('del_mo_pic[]', 'checkbox', $image_name) . BLANK . TEXT_DELETE . '</td></tr></table>';
            } else {
                echo '</td></tr>';
            }
        }
    }
}
 function process_button()
 {
     global $_POST, $order, $currencies, $currency, $paypal_ec_token, $paypal_ec_payer_id, $paypal_ec_payer_info;
     if ($this->is_paypal_process()) {
         return EMPTY_STRING;
     } else {
         require_once DIR_FS_INC . 'olc_draw_hidden_field.inc.php';
         $wpp_currency = $this->get_currency();
         $process_button_string = olc_draw_hidden_field('wpp_cc_type', $_POST['paypalwpp_cc_type']) . olc_draw_hidden_field('wpp_cc_expdate_month', $_POST['paypalwpp_cc_expires_month']) . olc_draw_hidden_field('wpp_cc_expdate_year', $_POST['paypalwpp_cc_expires_year']) . olc_draw_hidden_field('wpp_cc_number', $_POST['paypalwpp_cc_number']) . olc_draw_hidden_field('wpp_cc_checkcode', $_POST['paypalwpp_cc_checkcode']) . olc_draw_hidden_field('wpp_payer_firstname', $_POST['paypalwpp_cc_firstname']) . olc_draw_hidden_field('wpp_payer_lastname', $_POST['paypalwpp_cc_lastname']) . olc_draw_hidden_field('wpp_redirect_url', olc_href_link(FILENAME_CHECKOUT_PROCESS, EMPTY_STRING, SSL, true));
         return $process_button_string;
     }
 }
    ?>
</td>
            <td class="pageHeading"><?php 
    echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_PAYMENT, 'pID=' . $pInfo->affiliate_payment_id . '&action=start_billing') . '">' . olc_image_button('button_affiliate_billing.gif', IMAGE_AFFILIATE_BILLING) . HTML_A_END;
    ?>
</td>
            <td class="pageHeading" align="right"><?php 
    echo olc_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT);
    ?>
</td>
            <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr><?php 
    echo olc_draw_form('orders', FILENAME_AFFILIATE_PAYMENT, '', 'get');
    ?>
                <td class="smallText" align="right"><?php 
    echo HEADING_TITLE_SEARCH . BLANK . olc_draw_input_field('sID', '', 'size="12"') . olc_draw_hidden_field('action', 'edit');
    ?>
</td>
              </form></tr>
              <tr><?php 
    echo olc_draw_form('status', FILENAME_AFFILIATE_PAYMENT, '', 'get');
    ?>
                <td class="smallText" align="right"><?php 
    echo HEADING_TITLE_STATUS . BLANK . olc_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_PAYMENTS)), $payments_statuses), '', 'onchange="this.form.submit();"');
    ?>
</td>
              </form></tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
require_once DIR_FS_INC . 'olc_draw_selection_field.inc.php';
require_once DIR_FS_INC . 'olc_image_button.inc.php';
if (!isset($_SESSION['customer_id'])) {
    olc_redirect(olc_href_link(FILENAME_LOGIN, '', SSL));
}
$newsletter_query = olc_db_query("select customers_newsletter from " . TABLE_CUSTOMERS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
$newsletter = olc_db_fetch_array($newsletter_query);
if (isset($_POST['action']) && $_POST['action'] == 'process') {
    if (isset($_POST['newsletter_general']) && is_numeric($_POST['newsletter_general'])) {
        $newsletter_general = olc_db_prepare_input($_POST['newsletter_general']);
    } else {
        $newsletter_general = '0';
    }
    if ($newsletter_general != $newsletter['customers_newsletter']) {
        $newsletter_general = $newsletter['customers_newsletter'] == '1' ? '0' : '1';
        olc_db_query(SQL_UPDATE . TABLE_CUSTOMERS . " set customers_newsletter = '" . (int) $newsletter_general . "' where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
    }
    $messageStack->add_session('account', SUCCESS_NEWSLETTER_UPDATED, 'success');
    olc_redirect(olc_href_link(FILENAME_ACCOUNT));
}
$breadcrumb->add(NAVBAR_TITLE_1_ACCOUNT_NEWSLETTERS, olc_href_link(FILENAME_ACCOUNT, '', SSL));
$breadcrumb->add(NAVBAR_TITLE_2_ACCOUNT_NEWSLETTERS, olc_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', SSL));
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('FORM_ACTION', olc_draw_form('account_newsletter', olc_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', SSL)) . olc_draw_hidden_field('action', 'process'));
$smarty->assign('CHECKBOX', olc_draw_checkbox_field('newsletter_general', '1', $newsletter['customers_newsletter'] == '1' ? true : false, 'onclick="javascript:checkBox(\'newsletter_general\')"'));
$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_newsletter' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
                            $templates_entry .= str_replace(HASH, $this_template, $templates_image);
                        }
                        $content_body .= HTML_BR . $templates_entry;
                        $templates_count++;
                    }
                }
            }
        }
    }
    closedir($dh);
    if ($templates_count == 0) {
        $subtitle = TEXT_NO_SHOP_DESIGNS;
        $action = 'return';
    } else {
        $subtitle = TEXT_NEW_SHOP_DESIGN;
        $button_continue = olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
        $action = 'process';
    }
    $content_body .= olc_draw_hidden_field('action', $action);
    $breadcrumb->add(TEXT_CHANGE_SHOP_DESIGN, olc_href_link('skin.php'));
    olc_smarty_init($module_smarty, $cacheid);
    $module_smarty->assign('FORM_ACTION', olc_draw_form($templates_dir, CURRENT_SCRIPT));
    $module_smarty->assign('CONTENT_HEADING', TEXT_CHANGE_SHOP_DESIGN . HTML_BR . $subtitle);
    $module_smarty->assign('BUTTON_CONTINUE', $button_continue);
    $module_smarty->assign('CONTENT_BODY', $content_body);
    $main_content = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . 'skin' . HTML_EXT, $cacheid);
    $smarty->assign(MAIN_CONTENT, $main_content);
    //W. Kaiser - AJAX
    require BOXES;
    $smarty->display(INDEX_HTML);
}
 $options_values_price_name = 'options_values_price';
 $price_prefix_name = 'price_prefix';
 $weight_prefix_name = 'weight_prefix';
 $options_values_weight_name = 'options_values_weight';
 $attributes_stock_name = 'attributes_stock';
 $products_attributes_id_name = 'products_attributes_id';
 $products_attributes_model_name = 'products_attributes_model';
 $products = $cart->get_products();
 for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
     // Push all attributes information in an array
     $current_product = $products[$i];
     $current_product_id = $current_product['id'];
     $products_attributes = $current_product['attributes'];
     if ($products_attributes) {
         while (list($option, $value) = each($products_attributes)) {
             $hidden_options .= olc_draw_hidden_field('id[' . $current_product_id . '][' . $option . ']', $value);
             $sql = str_replace(TILDE, $current_product_id, $sql0);
             $sql = str_replace(HASH, $option, $sql);
             $sql = str_replace(ATSIGN, $value, $sql);
             $attributes = olc_db_query($sql);
             $attributes_values = olc_db_fetch_array($attributes);
             $options_values_price = $attributes_values[$options_values_price_name];
             if ((double) $options_values_price != 0) {
                 $price_prefix = $attributes_values[$price_prefix_name];
             } else {
                 $price_prefix = EMPTY_STRING;
             }
             $products_option[$products_options_name] = $attributes_values[$products_options_name];
             $products_option[$options_values_id_name] = $value;
             $products_option[$products_options_values_name] = $attributes_values[$products_options_values_name];
             $products_option[$options_values_price_name] = $options_values_price;
							</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 . ')"') . '&nbsp;&nbsp;<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>
    $groups_array = array();
    $groups_query = olc_db_query("select distinct affiliate_banners_group from " . TABLE_AFFILIATE_BANNERS . " order by affiliate_banners_group");
    while ($groups = olc_db_fetch_array($groups_query)) {
        $groups_array[] = array('id' => $groups['affiliate_banners_group'], 'text' => $groups['affiliate_banners_group']);
    }
    ?>
	<tr>
	<td><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
	</tr>
	<tr><?php 
    echo olc_draw_form('new_banner', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');
    if ($form_action == 'update') {
        echo olc_draw_hidden_field('affiliate_banners_id', $abID);
    }
    ?>
	<td><table border="0" cellspacing="2" cellpadding="2">
	<tr>
	<td class="main"><?php 
    echo TEXT_BANNERS_TITLE;
    ?>
</td>
	<td class="main"><?php 
    echo olc_draw_input_field('affiliate_banners_title', $abInfo->affiliate_banners_title, '', true);
    ?>
</td>
	</tr>
	<tr>
	<td colspan="2"><?php 
//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;
        echo '
<link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
<script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>
';
    }
    ?>
	<tr>
	<td><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
	</tr>
	<tr><?php 
    echo olc_draw_form('new_banner', FILENAME_BANNER_MANAGER, $page_parameter . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');
    if ($form_action == 'update') {
        echo olc_draw_hidden_field('banners_id', $bID);
    }
    ?>
	<td><table border="0" cellspacing="0" cellpadding="2">
	<tr>
	<td class="main"><?php 
    echo TEXT_BANNERS_TITLE;
    ?>
</td>
	<td class="main"><?php 
    echo olc_draw_input_field('banners_title', $bInfo->banners_title, EMPTY_STRING, true);
    ?>
</td>
	</tr>
	<tr>
	<td class="main"><?php 
        $homepage_content = olc_draw_input_field('a_homepage') . HTML_NBSP . ENTRY_AFFILIATE_HOMEPAGE_ERROR;
    } else {
        $homepage_content = $a_homepage . olc_draw_hidden_field('a_homepage');
    }
} else {
    $homepage_content = olc_draw_input_field('a_homepage', $affiliate['affiliate_homepage']) . HTML_NBSP . ENTRY_AFFILIATE_HOMEPAGE_TEXT;
}
$module_smarty->assign('homepage_content', $homepage_content);
if ($is_read_only == false) {
    $module_smarty->assign('PASSWORD_READONLY', FALSE_STRING_S);
    if ($error == true) {
        $module_smarty->assign('error', TRUE_STRING_S);
        if ($entry_password_error == true) {
            $password_content = olc_draw_password_field('a_password') . HTML_NBSP . ENTRY_PASSWORD_ERROR;
        } else {
            $password_content = PASSWORD_HIDDEN . olc_draw_hidden_field('a_password') . olc_draw_hidden_field('a_confirmation');
        }
    } else {
        $password_content = olc_draw_password_field('a_password') . HTML_NBSP . ENTRY_PASSWORD_TEXT;
    }
    if ($error == false || $entry_password_error == true) {
        $password_confirmation_content = olc_draw_password_field('a_confirmation') . HTML_NBSP . ENTRY_PASSWORD_CONFIRMATION_TEXT;
    }
    $agb_content = olc_draw_checkbox_field('a_agb', $value = '1', $checked = $affiliate['affiliate_agb']) . sprintf(ENTRY_AFFILIATE_ACCEPT_AGB, olc_href_link(FILENAME_CONTENT, 'coID=900', SSL));
    if ($entry_agb_error == true) {
        $agb_content .= HTML_BR . ENTRY_AFFILIATE_AGB_ERROR;
    }
    $module_smarty->assign('agb_content', $agb_content);
    $module_smarty->assign('password_content', $password_content);
    $module_smarty->assign('password_confirmation_content', $password_confirmation_content);
}
    }
    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);
@
<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>
 function process_button()
 {
     global $order;
     $process_button_string = olc_draw_hidden_field('x_login', MODULE_PAYMENT_2CHECKOUT_LOGIN) . olc_draw_hidden_field('x_amount', number_format($order->info['total'], 2)) . olc_draw_hidden_field('x_invoice_num', date('YmdHis')) . olc_draw_hidden_field('x_test_request', MODULE_PAYMENT_2CHECKOUT_TESTMODE == 'Test' ? 'Y' : 'N') . olc_draw_hidden_field('x_card_num', $this->cc_card_number) . olc_draw_hidden_field('cvv', $_POST['pm_2checkout_cc_cvv']) . olc_draw_hidden_field('x_exp_date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . olc_draw_hidden_field('x_first_name', $_POST['pm_2checkout_cc_owner_firstname']) . olc_draw_hidden_field('x_last_name', $_POST['pm_2checkout_cc_owner_lastname']) . olc_draw_hidden_field('x_address', $order->customer['street_address']) . olc_draw_hidden_field('x_city', $order->customer['city']) . olc_draw_hidden_field('x_state', $order->customer['state']) . olc_draw_hidden_field('x_zip', $order->customer['postcode']) . olc_draw_hidden_field('x_country', $order->customer['country']['title']) . olc_draw_hidden_field('x_email', $order->customer['email_address']) . olc_draw_hidden_field('x_phone', $order->customer['telephone']) . olc_draw_hidden_field('x_ship_to_first_name', $order->delivery['firstname']) . olc_draw_hidden_field('x_ship_to_last_name', $order->delivery['lastname']) . olc_draw_hidden_field('x_ship_to_address', $order->delivery['street_address']) . olc_draw_hidden_field('x_ship_to_city', $order->delivery['city']) . olc_draw_hidden_field('x_ship_to_state', $order->delivery['state']) . olc_draw_hidden_field('x_ship_to_zip', $order->delivery['postcode']) . olc_draw_hidden_field('x_ship_to_country', $order->delivery['country']['title']) . olc_draw_hidden_field('x_receipt_link_url', olc_href_link(FILENAME_CHECKOUT_PROCESS, EMPTY_STRING, SSL)) . olc_draw_hidden_field('x_email_merchant', MODULE_PAYMENT_2CHECKOUT_EMAIL_MERCHANT == TRUE_STRING_S ? TRUE_STRING_S : 'FALSE');
     return $process_button_string;
 }
Example #18
0
    ?>
</td>
              </tr>
              <tr>
                <td><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td><?php 
    // 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>
} 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);
            }
        }
        ?>
								</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>
<?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);
    for ($i = 1; $i <= 5; $i++) {
        echo olc_draw_radio_field('reviews_rating', $i, '', $rInfo->reviews_rating) . HTML_NBSP;
    }
    echo TEXT_GOOD;
    ?>
</td>
      </tr>
      <tr>
        <td><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr>
        <td align="right" class="main"><?php 
    echo olc_draw_hidden_field('reviews_id', $rInfo->reviews_id) . olc_draw_hidden_field('products_id', $rInfo->products_id) . olc_draw_hidden_field('customers_name', $rInfo->customers_name) . olc_draw_hidden_field('products_name', $rInfo->products_name) . olc_draw_hidden_field('products_image', $rInfo->products_image) . olc_draw_hidden_field('date_added', $rInfo->date_added) . olc_image_submit('button_preview.gif', IMAGE_PREVIEW) . BLANK . HTML_A_START . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $_GET['rID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END;
    ?>
</td>
      </form></tr>
<?php 
} elseif ($_GET['action'] == 'preview') {
    if ($_POST) {
        $rInfo = new objectInfo($_POST);
    } else {
        $reviews_query = olc_db_query("select r.reviews_id, r.products_id, r.customers_name, r.date_added, r.last_modified, r.reviews_read, rd.reviews_text, r.reviews_rating from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.reviews_id = '" . $_GET['rID'] . "' and r.reviews_id = rd.reviews_id");
        $reviews = olc_db_fetch_array($reviews_query);
        $products_query = olc_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . $reviews['products_id'] . APOS);
        $products = olc_db_fetch_array($products_query);
        $products_name_query = olc_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $reviews['products_id'] . "' and language_id = '" . SESSION_LANGUAGE_ID . APOS);
        $products_name = olc_db_fetch_array($products_name_query);
        $rInfo_array = olc_array_merge($reviews, $products, $products_name);
									</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);
 function process_button()
 {
     global $order, $currencies;
     if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') {
         $my_currency = SESSION_CURRENCY;
     } else {
         $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5);
     }
     if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {
         $my_currency = SESSION_CURRENCY;
     }
     $process_button_string = olc_draw_hidden_field('cmd', '_xclick') . olc_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . olc_draw_hidden_field('item_name', STORE_NAME) . olc_draw_hidden_field('amount', number_format($order->info['total'] - $order->info['shipping_cost'], $currencies->get_decimal_places($my_currency))) . olc_draw_hidden_field('shipping', number_format($order->info['shipping_cost'], $currencies->get_decimal_places($my_currency))) . olc_draw_hidden_field('currency_code', $my_currency) . olc_draw_hidden_field('return', olc_href_link(FILENAME_CHECKOUT_PROCESS, EMPTY_STRING, SSL, true, false, false)) . olc_draw_hidden_field('cancel_return', olc_href_link(FILENAME_CHECKOUT_PAYMENT, EMPTY_STRING, SSL, true, false, false));
     return $process_button_string;
 }
            $payment_block .= '                  <tr id="defaultSelected" class="moduleRowSelected"' . $payment_block_text;
        } else {
            $payment_block .= '                  <tr class="moduleRow"' . $payment_block_text;
        }
        if ($OptionBoxRight) {
            $payment_block .= '
	                 	<td class="main" colspan="3" valign="top"><b>' . $this_selection['module'] . '</b></td>
';
        }
        $payment_block .= '
	                  <td class="main" align="left" width="3%">
';
        if ($have_multiple_payments) {
            $payment_block .= olc_draw_radio_field('payment', $current_selection_id, $is_session_payment, 'onclick="javascript:' . $ShowHideBankTransferFields . QUOTE);
        } else {
            $payment_block .= olc_draw_hidden_field('payment', $current_selection_id);
        }
        $payment_block .= '
                </td>
';
        if (!$OptionBoxRight) {
            $payment_block .= '
                    <td class="main" colspan="3" align="left"><b>' . $this_selection['module'] . '</b></td>
                  ';
        }
        $payment_block .= '
                  </tr>
				    <tr>
					    <td class="main" colspan="3">&nbsp;</td>
				    </tr>
';
    if ($not_show_saved_cart) {
        $price_raw = $_SESSION['cart']->show_total();
        $span_price_start = '<span id="cart_total_price_1">';
    }
    $price = olc_format_price($price_raw, $price_special = 1, $calculate_currencies = false);
    if (IS_AJAX_PROCESSING) {
        $price = $span_price_start . $price . $span_end;
    }
    $total_content = EMPTY_STRING;
    if (CUSTOMER_SHOW_OT_DISCOUNT) {
        if (CUSTOMER_OT_DISCOUNT != '0.00') {
            $price_discounted = olc_recalculate_price($price_raw, CUSTOMER_OT_DISCOUNT);
            $price = ltrim(olc_format_price(price_discounted, $price_special = 1, $calculate_currencies = false));
            if (IS_AJAX_PROCESSING) {
                $price = $span_price_start . $price . $span_end;
                $price = olc_draw_hidden_field("total_discount_value", CUSTOMER_OT_DISCOUNT) . '<span id="cart_total_discount">' . $price . $span_end;
            }
            $total_content = CUSTOMER_OT_DISCOUNT . ' % ' . SUB_TITLE_OT_DISCOUNT . ' - ' . $price . HTML_BR;
        }
    }
    $total_content .= SUB_TITLE_TOTAL . $price;
} else {
    $total_content .= TEXT_INFO_SHOW_PRICE_NO;
}
$total_content .= HTML_BR;
// display only if there is an ot_discount
if (CUSTOMER_OT_DISCOUNT != 0) {
    $total_content .= TEXT_CART_OT_DISCOUNT . CUSTOMER_OT_DISCOUNT . ' %';
}
$module_smarty->assign('TOTAL_CONTENT', $total_content);
$module_smarty->assign(MODULE_CONTENT, $module_content);
        $languages = olc_get_languages();
        for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
            $language_id = $languages[$i]['id'];
            echo olc_draw_hidden_field('coupon_name[' . $languages[$i]['id'] . ']', $_POST['coupon_name'][$language_id]);
            echo olc_draw_hidden_field('coupon_desc[' . $languages[$i]['id'] . ']', $_POST['coupon_desc'][$language_id]);
        }
        echo olc_draw_hidden_field('coupon_amount', $_POST['coupon_amount']);
        echo olc_draw_hidden_field('coupon_min_order', $_POST['coupon_min_order']);
        echo olc_draw_hidden_field('coupon_free_ship', $_POST['coupon_free_ship']);
        echo olc_draw_hidden_field('coupon_code', $c_code);
        echo olc_draw_hidden_field('coupon_uses_coupon', $_POST['coupon_uses_coupon']);
        echo olc_draw_hidden_field('coupon_uses_user', $_POST['coupon_uses_user']);
        echo olc_draw_hidden_field('coupon_products', $_POST['coupon_products']);
        echo olc_draw_hidden_field('coupon_categories', $_POST['coupon_categories']);
        echo olc_draw_hidden_field('coupon_startdate', date('Y-m-d', mktime(0, 0, 0, $_POST['coupon_startdate_month'], $_POST['coupon_startdate_day'], $_POST['coupon_startdate_year'])));
        echo olc_draw_hidden_field('coupon_finishdate', date('Y-m-d', mktime(0, 0, 0, $_POST['coupon_finishdate_month'], $_POST['coupon_finishdate_day'], $_POST['coupon_finishdate_year'])));
        ?>
     <tr>
        <td align="left"><?php 
        echo olc_image_submit('button_confirm.gif', COUPON_BUTTON_CONFIRM);
        ?>
</td>
        <td align="left"><?php 
        echo olc_image_submit('button_back.gif', COUPON_BUTTON_BACK, 'name=back');
        ?>
</td>
      </td>
      </tr>

      </td></table></form>
      </tr>
<?php 
switch ($_GET['type']) {
    case 'yearly':
        break;
    case 'monthly':
        echo TITLE_YEAR . BLANK . olc_draw_pull_down_menu('year', $years_array, $_GET['year'] ? $_GET['year'] : date('Y'), 'onchange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
        break;
    default:
    case 'daily':
        echo TITLE_MONTH . BLANK . olc_draw_pull_down_menu('month', $months_array, $_GET['month'] ? $_GET['month'] : date('n'), 'onchange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript><br/>' . TITLE_YEAR . BLANK . olc_draw_pull_down_menu('year', $years_array, $_GET['year'] ? $_GET['year'] : date('Y'), 'onchange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
        break;
}
?>
            </td>
          <?php 
echo olc_draw_hidden_field('page', $_GET['page']) . olc_draw_hidden_field('bID', $_GET['bID']);
?>
</form></tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
      </tr>
      <tr>
        <td align="center">
<?php 
if (function_exists('imagecreate') && $dir_ok && $banner_extension) {
    $banner_id = $_GET['bID'];
    echo HTML_A_START . olc_href_link(FILENAME_CREATE_ACCOUNT) . '">' . olc_image_button('create_account.gif', CREATE_ACCOUNT) . HTML_A_END;
    ?>
			</td>
			<td class="smallText" align="middle">
				<?php 
    echo olc_draw_form('status', FILENAME_CUSTOMERS, EMPTY_STRING, 'get');
    $select_data = array();
    $select_data = array(array('id' => '99', 'text' => TEXT_SELECT), array('id' => '100', 'text' => TEXT_ALL_CUSTOMERS));
    echo HEADING_TITLE_STATUS . BLANK . olc_draw_pull_down_menu('status', olc_array_merge($select_data, $customers_statuses_array), '99', 'onchange="this.form.submit();"') . olc_draw_hidden_field(olc_session_name(), olc_session_id());
    ?>
				</form>
			</td>
			<td class="smallText" align="right">
				<?php 
    echo olc_draw_form('search', FILENAME_CUSTOMERS, EMPTY_STRING, 'get');
    echo HEADING_TITLE_SEARCH . BLANK . olc_draw_input_field('search') . olc_draw_hidden_field(olc_session_name(), olc_session_id()) . HTML_NBSP . '<input type="image" class="image" src="' . ADMIN_PATH_PREFIX . CURRENT_TEMPLATE_BUTTONS . 'button_quick_find.gif' . '" style="border:0px" title="' . IMAGE_BUTTON_SEARCH . '">' . HTML_NBSP;
    ?>
				</form>
			</td>
		</tr>
	</table>

	</td>
	</tr>
	<tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
	<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr class="dataTableHeadingRow">
	<td class="dataTableHeadingContent" width="1"><?php 
    echo TABLE_HEADING_ACCOUNT_TYPE;
    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 //-->


<!-- Ende //-->