function selection() { global $order; for ($i = 1; $i < 13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000))); } $today = getdate(); for ($i = $today['year']; $i < $today['year'] + 10; $i++) { $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_FIRST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_firstname', $order->billing['firstname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_LAST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_lastname', $order->billing['lastname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_number')), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('pm_2checkout_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('pm_2checkout_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_cvv', EMPTY_STRING, 'size="4" maxlength="3"') . ' <small>' . MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>'))); return $selection; }
function selection() { global $order; //W. Kaiser - AJAX $bank_info_required = $_SESSION['credit_covers'] != true; $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE, 'field' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_INFO), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_OWNER, 'field' => olc_draw_input_field('banktransfer_owner', trim($order->billing['firstname'] . BLANK . $order->billing['lastname'])) . olc_draw_hidden_field('entry_country_id', $order->billing['country']['id'])), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_BLZ, 'field' => olc_draw_input_field('banktransfer_blz', EMPTY_STRING, 'size="10" maxlength="8"', 'text', true, AJAX_BLZ_VALIDATION, $bank_info_required, MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_BLZ, true)), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NUMBER, 'field' => olc_draw_input_field('banktransfer_number', EMPTY_STRING, 'size="16" maxlength="32"', 'text', true, AJAX_BLZ_VALIDATION, $bank_info_required, MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NUMBER, true)), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NAME, 'field' => olc_draw_input_field('banktransfer_bankname', EMPTY_STRING, 'size="32" maxlength="32"')), array('title' => EMPTY_STRING, 'field' => olc_draw_hidden_field('recheckok', $_POST['recheckok'])))); //W. Kaiser - AJAX if (MODULE_PAYMENT_BANKTRANSFER_FAX_CONFIRMATION == TRUE_STRING_S) { $selection['fields'][] = array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE, 'field' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE2 . HTML_A_START . MODULE_PAYMENT_BANKTRANSFER_URL_NOTE . '" target="_blank"><b>' . MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE3 . '</b></a>' . MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE4); $selection['fields'][] = array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_FAX, 'field' => olc_draw_checkbox_field('banktransfer_fax', 'on')); } return $selection; }
function selection() { global $order; if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') { for ($i = 1; $i < 13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000))); } $today = getdate(); for ($i = $today['year']; $i < $today['year'] + 10; $i++) { $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . BLANK . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('psigate_cc_expires_year', $expires_year)))); } else { $selection = array('id' => $this->code, 'module' => $this->title); } return $selection; }
$heading = array(); $contents = array(); switch ($_GET['action']) { case 'release': break; case 'voucherreport': $heading[] = array('text' => HTML_B_START . TEXT_HEADING_COUPON_REPORT . HTML_B_END); $contents[] = array('text' => TEXT_NEW_INTRO); break; case 'neww': $heading[] = array('text' => HTML_B_START . TEXT_HEADING_NEW_COUPON . HTML_B_END); $contents[] = array('text' => TEXT_NEW_INTRO); $contents[] = array('text' => HTML_BR . COUPON_NAME . HTML_BR . olc_draw_input_field('name')); $contents[] = array('text' => HTML_BR . COUPON_AMOUNT . HTML_BR . olc_draw_input_field('voucher_amount')); $contents[] = array('text' => HTML_BR . COUPON_CODE . HTML_BR . olc_draw_input_field('voucher_code')); $contents[] = array('text' => HTML_BR . COUPON_USES_COUPON . HTML_BR . olc_draw_input_field('voucher_number_of')); break; default: $heading[] = array('text' => '[' . $cInfo->coupon_id . '] ' . $cInfo->coupon_code); $amount = $cInfo->coupon_amount; if ($cInfo->coupon_type == 'P') { $amount .= '%'; } else { $amount = $currencies->format($amount); } if ($_GET['action'] == 'voucherdelete') { $contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . HTML_A_START . olc_href_link('coupon_admin.php', 'action=confirmdelete&cid=' . $_GET['cid'], NONSSL) . '">' . olc_image_button('button_confirm.gif', 'Confirm Delete Voucher') . HTML_A_END . HTML_A_START . olc_href_link('coupon_admin.php', 'cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_cancel.gif', 'Cancel') . HTML_A_END); } else { $prod_details = NONE; if ($cInfo->restrict_to_products) { $prod_details = '<A href="listproducts.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" onclick="javascript:window.open(\'listproducts.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
function olc_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') { return olc_draw_input_field($name, $value, $parameters, 'password', false); }
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'] . ']', $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=' . $mID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'edit': $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);
<tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td valign="top" class="main"> <?php $spiffy_date_field_caption = TEXT_BANNERS_EXPIRES_ON; $spiffy_date = $bInfo->expires_date; $spiffy_control_name = "dateExpires"; $spiffy_form_name = 'new_banner'; $spiffy_date_field_name = 'expires_date'; include $create_spiffy_control; echo TEXT_BANNERS_OR_AT . HTML_BR . olc_draw_input_field('impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"') . BLANK . TEXT_BANNERS_IMPRESSIONS; ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php
'; $configuration_query = olc_db_query($configuration_query_sql); while ($configuration = olc_db_fetch_array($configuration_query)) { $configuration_value_text = 'configuration_value'; $configuration_value = $configuration[$configuration_value_text]; $use_function = $configuration['use_function']; if (olc_not_null($use_function)) { $cfgValue = olc_call_function($use_function, $configuration_value); } else { $cfgValue = $configuration_value; } $set_function = $configuration['set_function']; if ($set_function) { eval('$value_field = ' . $set_function . QUOTE . htmlspecialchars($configuration_value) . '");'); } else { $value_field = olc_draw_input_field($configuration[$configuration_key_text], $configuration_value, 'size=10'); } // add if (strstr($value_field, $configuration_value_text)) { $value_field = str_replace($configuration_value_text, $configuration[$configuration_key_text], $value_field); } $configuration_key_u = strtoupper($configuration[$configuration_key_text]); $main_content .= ' <tr> <td valign="top" class="pageSubHeading"><b>' . constant($configuration_key_u . '_TITLE') . '</b></td> <td valign="top" class="pageSubHeading">' . $value_field . HTML_BR . HTML_B_START . constant($configuration_key_u . '_DESC') . HTML_B_END . ' </td> </tr>'; } $main_content .= ' </table>
?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_SUBJECT; ?> </td> <td><?php echo olc_draw_input_field('subject', '', 'size="60"'); ?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?> </td> <td><?php
$zone_name = 'zone_name'; $db_data_query = olc_db_query($sql_select . $zone_id . COMMA . $zone_name . SQL_FROM . TABLE_PREFIX_COMMON . 'zones' . " where zone_country_id = '" . $current_value . "' order by " . $zone_name); $rows = olc_db_num_rows($db_data_query); if ($rows >= 1) { $id = 'id'; $text = 'text'; while ($value = olc_db_fetch_array($db_data_query)) { $zones_array[] = array($id => $value[$zone_id], $text => $value[$zone_name]); } if ($rows > 1) { require_once DIR_FS_INC . 'olc_not_null.inc.php'; require_once DIR_FS_INC . 'olc_draw_pull_down_menu.inc.php'; $main_content = olc_draw_pull_down_menu('entry_state', $zones_array); } else { require_once DIR_FS_INC . 'olc_draw_input_field.inc.php'; $main_content = olc_draw_input_field($entry_state_text, $zones_array[0]['text']); } } else { $main_content = HTML_NBSP; } $build_selection = true; } else { $check_banktransfer_number = $action == $banktransfer_number; $current_value = str_replace("*", "%", $current_value); $sql_where_condition = $sql_select_data . SQL_LIKE . APOS . $current_value . HASH . APOS; if ($add_land_condition) { $sql_where_condition .= SQL_AND . "land = '" . $land . APOS; } if (!$is_bank_check) { $selection = "*"; }
$fax_content = $a_fax . olc_draw_hidden_field('a_fax'); } } else { $fax_content = olc_draw_input_field('a_fax', $affiliate['affiliate_fax']) . HTML_NBSP . ENTRY_FAX_NUMBER_TEXT; } $module_smarty->assign('fax_content', $fax_content); if ($is_read_only == true) { $homepage_content = $affiliate['affiliate_homepage']; } elseif ($error == true) { if ($entry_homepage_error == true) { $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) {
$contents = array(); switch ($_GET['action']) { case 'new': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_NEW_TAX_CLASS . HTML_B_END); $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert')); $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) . ' <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) . ' <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'delete': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_TAX_CLASS . HTML_B_END); $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $tcInfo->tax_class_title . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($tcInfo)) { $heading[] = array('text' => HTML_B_START . $tcInfo->tax_class_title . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($tcInfo->date_added)); $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($tcInfo->last_modified));
<tr class="optionValue"> <td width="60" align="center" valign="top"> <img' . str_replace("#", "arrow", $image_data) . ' /> </td> <td valign="top" width="41%"> ' . olc_draw_pull_down_menu("optionValueDropDown", $optionValueDrop, $selectedOptionValue) . ' <br/><br/> <input' . str_replace("#", "add_new", $image_data) . ' onclick="javascript:return amAddOptionValue();" title="Fügt der Liste einen neuen Optionswert hinzu" /> <b>Neuen Optionswert definieren</b> <!--<input' . str_replace("#", "delete", $image_data) . ' onclick="javascript:return deleteOptionValue();" title="Löscht den Options-Wert aus der Datenbank" />--> </td> <td width="15%" valign="top"> Preis: ' . drawDropDownPrefix($prefix_0_id) . olc_draw_input_field("newPrice", "", $newPrice_id) . ' </td> <td width="41%" valign="top"> <input' . str_replace("#", "add_up", $image_data) . ' value="Add" onclick="javascript:return amAddAttributeToProduct();" title="Das Attribut dem aktuellen Produkt hinzufügen" border="0" /> <b>Das Attribut dem aktuellen Produkt hinzufügen</b> </td> </tr> </table> </div> <br/> </div> '; require_once DIR_FS_INC . 'olc_ajax_prepare_special_html_chars.inc.php'; $html_text = "#am#" . $html_text; //Signal attributemanager message
$price_single = olc_get_products_price($product_id, $price_special = 1, $quantity = 1, $price_real); $price_single = abs($price_real); $total_price = olc_format_price($price_single * $products_quantity, 1, 1); if ($show_saved_cart) { $products_qty = $products_quantity; } else { if (USE_AJAX) { $parameter = str_replace(HASH, $i, $parameter0); $parameter1 = str_replace(HASH, $i, $parameter10); $parameter2 = str_replace(HASH, $i, $parameter20); $parameter3 = str_replace(HASH, $i, $parameter30); $parameter4 = str_replace(HASH, $i, $parameter40); $parameter5 = str_replace(HASH, $i, $parameter50); $total_price = $parameter3 . $total_price . $span_end_text; } $products_qty = olc_draw_input_field($cart_quantity_text, $products_quantity, $parameter) . olc_draw_hidden_field($cart_min_quantity_text, $products_min_quantity, $parameter4) . olc_draw_hidden_field($products_id_text, $product_id, $parameter1); if ($do_stock_check) { $products_qty .= olc_draw_hidden_field($cart_stock_quantity_text, olc_get_products_stock($product_id), $parameter5); } } $auctionid = $product['auctionid']; if ($auctionid) { //no deletebox $mydelete = EMPTY_STRING; //quantity is hidden - no changes can be made by the user $myquantity = $products_quantity . str_replace(HASH, $products_quantity, $hidden_quantity) . str_replace(HASH, $product_id, $hidden_product_id); //link to ebay-auction $mylink = str_replace(HASH, $auctionid, $ebay_link); //as title show ebayicon - so user knows that this is the product bought at ebay $myimage = HTML_A_START . $mylink . '">' . $ebay_image . HTML_A_END; } else {
// fsk18 if (CUSTOMER_NOT_IS_FSK18) { $allow_purchase = $product_info['products_fsk18'] == '0'; } else { $allow_purchase = true; } if ($allow_purchase) { //W. Kaiser - AJAX $parameter = 'size="3"'; if (USE_AJAX) { $action = 'products_quantity_changed(this,"' . $form_action . '",#)'; //$parameter.=' onkeyup='.str_replace(HASH,'false',$action); $parameter .= ' onchange=' . str_replace(HASH, 'true', $action); } $products_min_order_quantity = max(1, $product_info['products_min_order_quantity']); $qty_field = olc_draw_input_field('products_qty', $products_min_order_quantity, $parameter) . olc_draw_hidden_field('products_id', $products_id) . olc_draw_hidden_field('products_min_order_quantity', $products_min_order_quantity); $do_stock_check = STOCK_CHECK == TRUE_STRING_S; if ($do_stock_check) { $products_qty .= olc_draw_hidden_field('cart_stock_quantity', olc_get_products_stock($products_id)); } if ($is_gallery) { $qty_field .= olc_draw_hidden_field($gallery_text, TRUE_STRING_S); } $info_smarty->assign('ADD_QTY', $qty_field); $info_smarty->assign('ADD_CART_BUTTON', olc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, ' id="update_cart" align="middle"', USE_AJAX)); if ($is_gallery) { $info_smarty->assign('ABORT_BUTTON', HTML_A_START . olc_href_link(FILENAME_GALLERY) . '">' . olc_image(CURRENT_TEMPLATE_BUTTONS . 'button_back.gif', IMAGE_BUTTON_CANCEL, EMPTY_STRING, EMPTY_STRING)) . HTML_A_END; } //W. Kaiser - AJAX } }
if ($brutto == TRUE_STRING_S) { $options_values_price = olc_round($products['options_values_price'] * (1 + $_GET['pTX'] / 100), PRICE_PRECISION); } else { $options_values_price = olc_round($products['options_values_price'], PRICE_PRECISION); } ?> <td class="dataTableContent"><?php echo olc_draw_input_field('products_options', $products['products_options'], 'size="20"'); ?> </td> <td class="dataTableContent"><?php echo olc_draw_input_field('products_options_values', $products['products_options_values'], 'size="20"'); ?> </td> <td class="dataTableContent"><?php echo olc_draw_input_field('options_values_price', $options_values_price, 'size="10"'); ?> </td> <td class="dataTableContent"><?php echo $products['price_prefix']; ?> </td> <td class="dataTableContent"> <select name="prefix"> <option value="+">+ <option value="-">- </SELECT> </td> <td class="dataTableContent"> <?php echo olc_image_submit('button_save.gif', TEXT_EDIT, 'style="cursor:hand" ');
$contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_IMAGE . HTML_BR . olc_draw_input_field('image', 'icon.gif')); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_DIRECTORY . HTML_BR . olc_draw_input_field('directory')); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . HTML_BR . olc_draw_input_field('sort_order')); $contents[] = array($text_text => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT); $contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'edit': $heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_EDIT_LANGUAGE . HTML_B_END); $contents = array('form' => olc_draw_form('languages', FILENAME_LANGUAGES, $params . '&action=save')); $contents[] = array($text_text => TEXT_INFO_EDIT_INTRO); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_NAME . HTML_BR . olc_draw_input_field('name', $lInfo->name)); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_CODE . HTML_BR . olc_draw_input_field('code', $lInfo->code)); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_CHARSET . HTML_BR . olc_draw_input_field('charset', $lInfo->language_charset)); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_IMAGE . HTML_BR . olc_draw_input_field('image', $lInfo->image)); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_DIRECTORY . HTML_BR . olc_draw_input_field('directory', $lInfo->directory)); $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . HTML_BR . olc_draw_input_field('sort_order', $lInfo->sort_order)); if (DEFAULT_LANGUAGE != $lInfo->code) { $contents[] = array($text_text => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT); } $contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'delete': $heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_DELETE_LANGUAGE . HTML_B_END); $contents[] = array($text_text => TEXT_INFO_DELETE_INTRO); $contents[] = array($text_text => '<br/><b>' . $lInfo->name . HTML_B_END); $contents[] = array('align' => 'center', $text_text => HTML_BR . ($remove_language ? HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=deleteconfirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END : EMPTY_STRING) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($lInfo)) { $heading[] = array($text_text => HTML_B_START . $lInfo->name . HTML_B_END); $contents[] = array('align' => 'center', $text_text => HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . HTML_A_END . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"')); $contents[] = array('text' => HTML_BR . TEXT_INFO_ZONE_NAME . HTML_BR . olc_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"')); $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE . HTML_BR . olc_draw_input_field('tax_rate')); $contents[] = array('text' => HTML_BR . TEXT_INFO_RATE_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_description')); $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE_PRIORITY . HTML_BR . olc_draw_input_field('tax_priority')); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . olc_href_link(FILENAME_TAX_RATES, '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_RATE . HTML_B_END); $contents = array('form' => olc_draw_form('rates', FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"', $trInfo->tax_class_id)); $contents[] = array('text' => HTML_BR . TEXT_INFO_ZONE_NAME . HTML_BR . olc_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"', $trInfo->geo_zone_id)); $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE . HTML_BR . olc_draw_input_field('tax_rate', $trInfo->tax_rate)); $contents[] = array('text' => HTML_BR . TEXT_INFO_RATE_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_description', $trInfo->tax_description)); $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE_PRIORITY . HTML_BR . olc_draw_input_field('tax_priority', $trInfo->tax_priority)); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_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_RATE . HTML_B_END); $contents = array('form' => olc_draw_form('rates', FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br/><b>' . $trInfo->tax_class_title . BLANK . number_format($trInfo->tax_rate, TAX_DECIMAL_PLACES) . '%</b>'); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($trInfo)) { $heading[] = array('text' => HTML_B_START . $trInfo->tax_class_title . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_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($trInfo->date_added)); $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($trInfo->last_modified));
$error = false; if (isset($_GET['action']) && $_GET['action'] == 'send') { if (olc_validate_email(trim($_POST['email']))) { olc_php_mail($_POST['email'], $_POST['name'], AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, '', $_POST['email'], $_POST['name'], '', '', EMAIL_SUBJECT, $_POST['enquiry'], $_POST['enquiry']); if (!isset($mail_error)) { olc_redirect(olc_href_link(FILENAME_AFFILIATE_CONTACT, 'action=success')); } else { echo $mail_error; } } else { $error = true; } } $breadcrumb->add(NAVBAR_TITLE, olc_href_link(FILENAME_AFFILIATE, '', SSL)); $breadcrumb->add(NAVBAR_TITLE_CONTACT, olc_href_link(FILENAME_AFFILIATE_CONTACT)); $affiliate_values = olc_db_query("select * from " . TABLE_AFFILIATE . " where affiliate_id = '" . $_SESSION['affiliate_id'] . APOS); require DIR_WS_INCLUDES . 'header.php'; if (isset($_GET['action']) && $_GET['action'] == 'success') { $smarty->assign('SUMMARY_LINK', HTML_A_START . olc_href_link(FILENAME_AFFILIATE_SUMMARY) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END); } else { $smarty->assign('FORM_ACTION', olc_draw_form('contact_us', olc_href_link(FILENAME_AFFILIATE_CONTACT, 'action=send'))); $smarty->assign('INPUT_NAME', olc_draw_input_field('name', $affiliate['affiliate_firstname'] . BLANK . $affiliate['affiliate_lastname'], 'size=40')); $smarty->assign('INPUT_EMAIL', olc_draw_input_field('email', $affiliate['affiliate_email_address'], 'size=40')); $smarty->assign('error', $error); $smarty->assign('TEXTAREA_ENQUIRY', olc_draw_textarea_field('enquiry', 'soft', 50, 15, $_POST['enquiry'])); $smarty->assign('BUTTON_SUBMIT', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); } $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'affiliate_contact' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
echo olc_href_link(FILENAME_CUSTOMERS, 'cID=' . $_GET['cID'] . '&action=edit&special=remove_memo&mID=' . $memo_values['memo_id']); ?> " onclick="javascript:return confirm('<?php echo DELETE_ENTRY; ?> ')"><?php echo olc_image_button('button_delete.gif', IMAGE_DELETE); ?> </a></td> </tr> </table> <?php } ?> <table width="100%"> <tr> <td class="main"><b><?php echo TEXT_TITLE; ?> </b>:<?php echo olc_draw_input_field('memo_title'); ?> <br/><?php echo olc_draw_textarea_field('memo_text', 'soft', '80', '5'); ?> <br/><?php echo olc_image_submit('button_insert.gif', IMAGE_INSERT); ?> </td> </tr> </table></td>
<td class="main"><?php echo TEXT_PRODUCTS_QUANTITY; ?> <br/> <?php echo olc_draw_input_field('products_quantity', $pInfo->products_quantity); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?> <br/> <?php echo olc_draw_input_field('products_weight', $pInfo->products_weight); ?> <?php echo TEXT_PRODUCTS_WEIGHT_INFO; ?> </td> </tr> <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?> <br/> <?php echo olc_draw_file_field('products_image') . HTML_BR . HTML_NBSP . $pInfo->products_image . olc_draw_hidden_field('products_previous_image', $pInfo->products_image); ?> </td> </tr>
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_draw_input_field('customers_status_name[' . $languages[$i]['id'] . ']', olc_get_customers_status_name($cInfo->customers_status_id, $languages[$i]['id'])); } $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_NAME . $customers_status_inputs_string); $contents[] = array('text' => HTML_BR . olc_image(DIR_WS_ICONS . $cInfo->customers_status_image, $cInfo->customers_status_name) . HTML_BR . DIR_WS_ICONS . '<br/><b>' . $cInfo->customers_status_image . HTML_B_END); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_IMAGE . HTML_BR . olc_draw_file_field('customers_status_image', $cInfo->customers_status_image)); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_PUBLIC_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_PUBLIC . BLANK . olc_draw_pull_down_menu('customers_status_public', $customers_status_public_array, $cInfo->customers_status_public)); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE . BLANK . olc_draw_pull_down_menu('customers_status_show_price', $customers_status_show_price_array, $cInfo->customers_status_show_price)); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_TAX_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE_TAX . BLANK . olc_draw_pull_down_menu('customers_status_show_price_tax', $customers_status_show_price_tax_array, $cInfo->customers_status_show_price_tax)); $contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_ADD_TAX_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_ADD_TAX . BLANK . olc_draw_pull_down_menu('customers_status_add_tax_ot', $customers_status_add_tax_ot_array, $cInfo->customers_status_add_tax_ot)); $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); }
?> </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>
<?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);
function selection() { if (USE_PAYPAL_WPP) { global $order; $expires_month = array(); for ($i = 1; $i < 13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000))); } $expires_year = array(); $today = getdate(); $year = $today['year']; for ($i = $today['year']; $i < $year + 10; $i++) { $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))); } require_once DIR_FS_INC . 'olc_draw_pull_down_menu.inc.php'; require_once DIR_FS_INC . 'olc_draw_input_field.inc.php'; $date_expires = mktime(0, 0, 0, date('m') + 1, date('d'), date('Y')); $month = date('m', $date_expires); $year = date('Y', $date_expires); $paypal_image_dir = PAYPAL_IPN_DIR . 'images/'; $img_visa = olc_image($paypal_image_dir . 'visa.gif', ' Visa ', EMPTY_STRING, EMPTY_STRING, 'align="absmiddle"'); $img_mc = olc_image($paypal_image_dir . 'mastercard.gif', ' MasterCard ', EMPTY_STRING, EMPTY_STRING, 'align="absmiddle"'); /* $img_discover = olc_image($paypal_image_dir.'discover.gif',' Discover ', EMPTY_STRING,EMPTY_STRING,'align="absmiddle"'); $img_amex = olc_image($paypal_image_dir.'amex.gif',' American Express ', EMPTY_STRING,EMPTY_STRING,'align="absmiddle"'); */ $paypal_cc_txt = sprintf(MODULE_PAYMENT_PAYPAL_DP_CC_TEXT, $img_visa, $img_mc, $img_paypal, $img_amex, $img_discover); $selection = array('id' => $this->code, 'module' => MODULE_PAYMENT_PAYPAL_DP_TEXT_TITLE . $paypal_cc_txt, 'fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_FIRSTNAME, 'field' => olc_draw_input_field('paypalwpp_cc_firstname', $order->billing['firstname'])), array('title' => MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_LASTNAME, 'field' => olc_draw_input_field('paypalwpp_cc_lastname', $order->billing['lastname'])), array('title' => MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_TYPE, 'field' => olc_draw_pull_down_menu('paypalwpp_cc_type', array(array('id' => 'Visa', 'text' => 'Visa'), array('id' => 'MasterCard', 'text' => 'MasterCard')))), array('title' => MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('paypalwpp_cc_number', EMPTY_STRING)), array('title' => MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('paypalwpp_cc_expires_month', $expires_month, $month) . HTML_NBSP . olc_draw_pull_down_menu('paypalwpp_cc_expires_year', $expires_year, $year)), array('title' => MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => olc_draw_input_field('paypalwpp_cc_checkcode', EMPTY_STRING, 'size="4" maxlength="4"') . HTML_NBSP . '<small>' . MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>'))); /* if (MODULE_PAYMENT_PAYPAL_DP_BUTTON_PAYMENT_PAGE == 'Yes') { if (isset($_SESSION[$his->ec_checkout_text])) { unset($_SESSION[$his->ec_checkout_text]); } else { $selection['fields'][] = array( 'title' => HTML_BR.HTML_BR.HTML_B_START.MODULE_PAYMENT_PAYPAL_DP_TEXT_EC_HEADER.HTML_B_END, 'field' => HTML_BR.HTML_BR.' <table border="0" cellspacing="3" cellpadding="3"> <tr> <td valign="top"> <a href="'.olc_href_link(FILENAME_EC_PROCESS, 'title="'.MODULE_PAYMENT_PAYPAL_DP_TEXT_BUTTON_TEXT.'"', SSL).'"> <img src="'.MODULE_PAYMENT_PAYPAL_EC_BUTTON_URL.'" border=0> </a> </td> <td valign="top" class="main"> '.TEXT_PAYPALWPP_EC_BUTTON_DESCRIPTION_TEXT.' </td> </tr> </table> '); } } */ } return $selection; }
<tr> <td class="main" valign="top"><?php echo TEXT_BANNERS_GROUP; ?></td> <td class="main"><?php echo olc_draw_pull_down_menu('affiliate_banners_group', $groups_array, $abInfo->affiliate_banners_group) . TEXT_BANNERS_NEW_GROUP . HTML_BR . olc_draw_input_field('new_affiliate_banners_group', '', '', ((sizeof($groups_array) > 0) ? false : true)); ?></td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> */ ?> <tr> <td class="main" valign="top"><?php echo TEXT_BANNERS_IMAGE; ?> </td> <td class="main"><?php echo olc_draw_file_field('affiliate_banners_image') . BLANK . TEXT_BANNERS_IMAGE_LOCAL . HTML_BR . DIR_FS_CATALOG_IMAGES . olc_draw_input_field('affiliate_banners_image_local', $abInfo->affiliate_banners_image); ?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?>
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_NEW_COUNTRY . HTML_B_END); $contents = array('form' => olc_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&action=insert')); $contents[] = array('text' => TEXT_INFO_INSERT_INTRO); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_NAME . HTML_BR . olc_draw_input_field('countries_name')); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_2 . HTML_BR . olc_draw_input_field('countries_iso_code_2')); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_CODE_3 . HTML_BR . olc_draw_input_field('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())); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . ' <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) . ' <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) . ' <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' => TEXT_NEW_INTRO); $contents[] = array('text' => HTML_BR . TEXT_BLACKLIST_CARD_NUMBER . HTML_BR . olc_draw_input_field('blacklist_card_number')); // $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_IMAGE . HTML_BR . olc_draw_file_field('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'] . ']'); // } // $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=' . $_GET['bID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'edit': $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);
?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_SUBJECT; ?> </td> <td><?php echo olc_draw_input_field('subject'); ?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?> </td> <td><?php
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;