function execute()
 {
     global $HTTP_GET_VARS, $HTTP_POST_VARS, $oscTemplate, $customer_id, $order_id;
     if (tep_session_is_registered('customer_id')) {
         $global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int) $customer_id . "'");
         $global = tep_db_fetch_array($global_query);
         if ($global['global_product_notifications'] != '1') {
             if (isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'update') {
                 if (isset($HTTP_POST_VARS['notify']) && is_array($HTTP_POST_VARS['notify']) && !empty($HTTP_POST_VARS['notify'])) {
                     $notify = array_unique($HTTP_POST_VARS['notify']);
                     foreach ($notify as $n) {
                         if (is_numeric($n) && $n > 0) {
                             $check_query = tep_db_query("select products_id from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int) $n . "' and customers_id = '" . (int) $customer_id . "' limit 1");
                             if (!tep_db_num_rows($check_query)) {
                                 tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . (int) $n . "', '" . (int) $customer_id . "', now())");
                             }
                         }
                     }
                 }
             }
             $products_displayed = array();
             $products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int) $order_id . "' order by products_name");
             while ($products = tep_db_fetch_array($products_query)) {
                 if (!isset($products_displayed[$products['products_id']])) {
                     $products_displayed[$products['products_id']] = tep_draw_checkbox_field('notify[]', $products['products_id']) . ' ' . $products['products_name'];
                 }
             }
             $products_notifications = implode('<br />', $products_displayed);
             ob_start();
             include DIR_WS_MODULES . 'content/' . $this->group . '/templates/product_notifications.php';
             $template = ob_get_clean();
             $oscTemplate->addContent($template, $this->group);
         }
     }
 }
 function showInterface()
 {
     global $pInfo;
     if (MODULE_SHIPPING_FREIGHTQUOTE_STATUS != 'True') {
         return false;
     }
     $template = array('TITLE' => TEXT_PRODUCTS_FREIGHTQUOTE, 'LABEL_ENABLE' => TEXT_PRODUCTS_FREIGHTQUOTE_ENABLE, 'LABEL_CLASS' => TEXT_PRODUCTS_FREIGHTQUOTE_CLASS, 'LABEL_DIMENSIONS' => TEXT_PRODUCTS_FREIGHTQUOTE_DIMENSIONS, 'LABEL_NMFC' => TEXT_PRODUCTS_FREIGHTQUOTE_NMFC, 'LABEL_HZMT' => TEXT_PRODUCTS_FREIGHTQUOTE_HZMT, 'LABEL_COMMODITY_TYPE' => TEXT_PRODUCTS_FREIGHTQUOTE_COMMODITY_TYPE, 'LABEL_PACKAGE_TYPE' => TEXT_PRODUCTS_FREIGHTQUOTE_PACKAGE_TYPE, 'LABEL_CONTENT_TYPE' => TEXT_PRODUCTS_FREIGHTQUOTE_CONTENT_TYPE);
     $boolean_dropdown = array(array('id' => 'true', 'text' => 'True'), array('id' => 'false', 'text' => 'False'));
     $classes = array(array('id' => '50', 'text' => '50'), array('id' => '55', 'text' => '55'), array('id' => '60', 'text' => '60'), array('id' => '65', 'text' => '65'), array('id' => '70', 'text' => '70'), array('id' => '77.5', 'text' => '77.5'), array('id' => '85', 'text' => '85'), array('id' => '92.5', 'text' => '92.5'), array('id' => '100', 'text' => '100'), array('id' => '110', 'text' => '110'), array('id' => '125', 'text' => '125'), array('id' => '150', 'text' => '150'), array('id' => '175', 'text' => '175'), array('id' => '200', 'text' => '200'), array('id' => '250', 'text' => '250'), array('id' => '300', 'text' => '300'), array('id' => '400', 'text' => '400'), array('id' => '500', 'text' => '500'));
     $packages = array(array('id' => 'Bags', 'text' => 'Bags'), array('id' => 'Bales', 'text' => 'Bales'), array('id' => 'Boxes', 'text' => 'Boxes'), array('id' => 'Bundles', 'text' => 'Bundles'), array('id' => 'Carpets', 'text' => 'Carpets'), array('id' => 'Coils', 'text' => 'Coils'), array('id' => 'Crates', 'text' => 'Crates'), array('id' => 'Cylinders', 'text' => 'Cylinders'), array('id' => 'Drums', 'text' => 'Drums'), array('id' => 'Pails', 'text' => 'Pails'), array('id' => 'Reels', 'text' => 'Reels'), array('id' => 'Rolls', 'text' => 'Rolls'), array('id' => 'TubesPipes', 'text' => 'Tubes/Pipes'), array('id' => 'Motorcycle', 'text' => 'Motorcycle'), array('id' => 'ATV', 'text' => 'ATV'), array('id' => 'Pallets_48x40', 'text' => 'Pallets 48x40'), array('id' => 'Pallets_other', 'text' => 'Pallets Other'), array('id' => 'Pallets_120x120', 'text' => 'Pallets 120x120'), array('id' => 'Pallets_120x100', 'text' => 'Pallets 120x100'), array('id' => 'Pallets_120x80', 'text' => 'Pallets 120x80'), array('id' => 'Pallets_europe', 'text' => 'Pallets Europe'), array('id' => 'Pallets_48x48', 'text' => 'Pallets 48x48'), array('id' => 'Pallets_60x48', 'text' => 'Pallets 60x48'));
     $commodities = array(array('id' => 'GeneralMerchandise', 'text' => 'General Merchandise'), array('id' => 'Machinery', 'text' => 'Machinery'), array('id' => 'HouseholdGoods', 'text' => 'Household Goods'), array('id' => 'FragileGoods', 'text' => 'Fragile Goods'), array('id' => 'ComputerHardware', 'text' => 'Computer Hardware'), array('id' => 'BottledProducts', 'text' => 'Bottled Products'), array('id' => 'BottleBeverages', 'text' => 'Bottle Beverages'), array('id' => 'NonPerishableFood', 'text' => 'Non Perishable Food'), array('id' => 'SteelSheet', 'text' => 'Steel Sheet'), array('id' => 'BrandedGoods', 'text' => 'Branded Goods'), array('id' => 'PrecisionInstruments', 'text' => 'Precision Instruments'), array('id' => 'ChemicalsHazardous', 'text' => 'Chemicals Hazardous'), array('id' => 'FineArt', 'text' => 'Fine Art'), array('id' => 'Automobiles', 'text' => 'Automobiles'), array('id' => 'CellPhones', 'text' => 'Cell Phones'), array('id' => 'NewMachinery', 'text' => 'New Machinery'), array('id' => 'UsedMachinery', 'text' => 'Used Machinery'), array('id' => 'HotTubs', 'text' => 'Hot Tubs'));
     $contents = array(array('id' => 'NewCommercialGoods', 'text' => 'New Commercial Goods'), array('id' => 'UsedCommercialGoods', 'text' => 'Used Commercial Goods'), array('id' => 'HouseholdGoods', 'text' => 'Household Goods'), array('id' => 'FragileGoods', 'text' => 'Fragile Goods'), array('id' => 'Automobile', 'text' => 'Automobile'), array('id' => 'Motorcycle', 'text' => 'Motorcycle'), array('id' => 'AutoOrMotorcycle', 'text' => 'Auto or Motorcycle'));
     $template['DROPDOWN_CLASS'] = tep_draw_pull_down_menu('products_freightquote_class', $classes, $pInfo->products_freightquote_class);
     $template['FIELD_ENABLE'] = tep_draw_checkbox_field('products_freightquote_enable', '1', $pInfo->products_freightquote_enable == '1' ? true : false);
     $template['FIELDS_DIMENSIONS'] = tep_draw_input_field('products_freightquote_length', $pInfo->products_freightquote_length, 'maxlength=3 style="width:50px"') . 'L x ' . tep_draw_input_field('products_freightquote_width', $pInfo->products_freightquote_width, 'maxlength=3 style="width:50px"') . 'W x ' . tep_draw_input_field('products_freightquote_height', $pInfo->products_freightquote_height, 'maxlength=3 style="width:50px"') . 'H';
     $template['FIELD_NMFC'] = tep_draw_input_field('products_freightquote_nmfc', $pInfo->products_freightquote_nmfc, 'maxlength=100');
     $template['DROPDOWN_HZMT'] = tep_draw_pull_down_menu('products_freightquote_hzmt', $boolean_dropdown, $pInfo->products_freightquote_hzmt == 'true' ? 'true' : 'false');
     $template['DROPDOWN_PACKAGE_TYPES'] = tep_draw_pull_down_menu('products_freightquote_package_type', $packages, $pInfo->products_freightquote_package_type);
     $template['DROPDOWN_COMMODITY_TYPES'] = tep_draw_pull_down_menu('products_freightquote_commodity_type', $commodities, $pInfo->products_freightquote_commodity_type);
     $template['DROPDOWN_CONTENT_TYPES'] = tep_draw_pull_down_menu('products_freightquote_content_type', $contents, $pInfo->products_freightquote_content_type);
     $template_file = file_get_contents($this->fqDirectory . 'freightquote_interface.tpl');
     foreach ($template as $key => $val) {
         $template_file = str_replace($key, $val, $template_file);
     }
     echo $template_file;
 }
Exemplo n.º 3
0
 function get($fID)
 {
     $result = array('data' => $this->get_field_info($fID), 'options' => $this->get_options($fID));
     $options_array = $result['options'];
     foreach ($options_array as $option => $options_data) {
         $values_array = $this->get_values($option);
         $html_type = 0;
         if (isset($this->flat_array[$options_data['form_types_id']])) {
             $html_type = $this->flat_array[$options_data['form_types_id']];
         }
         $drop_down_array = array();
         foreach ($values_array as $key => $value) {
             switch ($html_type) {
                 case 'CHECK-BOX':
                     $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => tep_draw_checkbox_field('checkbox[' . $value['form_values_id'] . ']', 'on') . '<sep>' . $value['form_values_name']);
                     break;
                 case 'DROP_DOWN':
                     $drop_down_array[] = array('id' => $value['form_values_id'], 'text' => $value['form_values_name']);
                     break;
                 case 'INPUT-LINE':
                     $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => $value['form_values_name'] . '<sep>' . tep_draw_input_field('input[' . $value['form_values_id'] . ']'));
                     break;
                 case 'RADIO':
                     $selection = false;
                     if ($value['form_values_name'] == $value['form_values_default']) {
                         $selection = true;
                     }
                     $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => tep_draw_radio_field('radio[' . $option['form_options_id'] . ']', $value['form_values_name'], $selection) . '<sep>' . $value['form_values_name']);
                     break;
                 case 'TEXT-AREA':
                     $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => '');
                     break;
                 default:
                     if (empty($result['options'][$option]['values'][$key])) {
                         $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => $value['form_values_name'] . '<sep>' . $value['form_values_default']);
                     }
                     break;
             }
         }
         if ($html_type == 'DROP_DOWN') {
             $result['options'][$option]['values'][$key] = array('name' => $option['form_options_name'], 'default' => '', 'html' => $option['form_options_name'] . '<sep>' . tep_draw_pull_down_menu('dropdown[' . $option['form_options_id'] . ']', $drop_down_array));
         }
     }
     return $result;
 }
Exemplo n.º 4
0
 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)));
     }
     // Depending on whether CreLoaded is collecting the CC# or not.  If
     // CreLoaded is collecting then we must allow the user to enter it,
     // here we output the form fields to collect the cc#
     if (!$this->quantum_gets_cc) {
         $selection = array('id' => $this->code, 'module' => $this->public_title, 'fields' => array(array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_OWNER, 'field' => tep_draw_input_field('quantumqgwdbe_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('quantumqgwdbe_cc_number')), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('quantumqgwdbe_cc_expires_month', $expires_month) . '&nbsp;' . tep_draw_pull_down_menu('quantumqgwdbe_cc_expires_year', $expires_year))));
         if ($this->uses_cvv) {
             array_push($selection['fields'], array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_CREDIT_CARD_CVV, 'field' => tep_draw_input_field('quantumqgwdbe_cvv', '', "SIZE=4, MAXLENGTH=4") . ' ' . '<a href="cvv.html" target="_blank">' . '<u><i>' . '(What is CVV?)' . '</i></u></a>', 'field' => tep_draw_input_field('quantumqgwdbe_cvv', '', "SIZE=4, MAXLENGTH=4")), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_NOT_CVV, 'field' => tep_draw_checkbox_field('quantumqgwdbe_notcvv', '1')), array('title' => MODULE_PAYMENT_QUANTUMQGWDBE_TEXT_REASON_NOT_CVV, 'field' => tep_draw_pull_down_menu('quantumqgwdbe_cvvtype', $this->cvvtype, '2')));
         }
     } else {
         $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => 'Continue', 'field' => tep_draw_hidden_field('quantumqgwdbe_cc_owner', ''))));
     }
     return $selection;
 }
 public function output($step = 0)
 {
     global $customer_id, $temp_orders_id;
     $html = '';
     if (tep_session_is_registered('customer_id')) {
         //show address book item form
         if (isset($_GET['add_new_address']) && $_GET['add_new_address'] == 'true' && $this->config['change_billing_address']['value'] == 'true') {
             $html .= '<h3>' . Translate('Voeg nieuw adres toe') . '</h3>';
             $html .= '<div class="well">';
             if (count($this->errors[get_class($this)]['address_book']) > 0) {
                 $html .= '<div class="alert alert-error"><strong>' . Translate('Opgelet!') . '</strong> ' . Translate('Vul a.u.b. alle velden correct in.') . '</div>';
             }
             $html .= '<div class="address_book_item">';
             $html .= '<input type="hidden" name="save_new_address" value="true" />';
             //get fields from db
             $ab_query = tep_db_query('SHOW columns FROM address_book');
             while ($ab_fields = tep_db_fetch_array($ab_query)) {
                 foreach ($this->fields[key($this->fields)]['fields'] as $field => $field_data) {
                     if ($field_data['dbvalue'] == $ab_fields['Field']) {
                         if ($field_data['condition'] != '') {
                             $show_field = eval($field_data['condition'] . ';');
                         } else {
                             $show_field = true;
                         }
                         if ($show_field) {
                             //check if there where errors with the filled in data for this field
                             $class = '';
                             if ($this->errors[get_class($this)]['address_book'][$field_data['dbvalue']]) {
                                 $class .= ' error';
                                 //$html .= parent::create_error($this->errors[get_class($this)]['address_book'][$field]);
                                 unset($this->errors[get_class($this)]['address_book'][$field_data['dbvalue']]);
                             }
                             $html .= '<div class="control-group' . $class . '">';
                             $html .= '<label class="control-label" for="address_book_item_' . $field_data['dbvalue'] . '">' . $field_data['label'] . '</label>';
                             $html .= '<div class="controls">';
                             if ($field_data['type'] == 'dropdown') {
                                 if (strstr($field_data['dbvalue'], 'country')) {
                                     $html .= parent::get_country_list($field_data['dbvalue'], $_POST[$field_data['dbvalue']], 'id="address_book_item_' . $field_data['dbvalue'] . '"');
                                 }
                             } else {
                                 $html .= '<input type="' . $field_data['input'] . '" id="address_book_item_' . $field_data['dbvalue'] . '" name="' . $field_data['dbvalue'] . '" value="' . htmlspecialchars(stripslashes($_POST[$field_data['dbvalue']])) . '" />';
                             }
                             $html .= '</div>';
                             //end controle
                             $html .= '</div>';
                             //end control-group
                         }
                     }
                 }
             }
             $html .= '<div class="form-actions">';
             //submit
             $html .= '<button type="submit" class="btn btn-success">' . Translate('Nieuw adres opslaan') . '</button> ';
             //cancel
             $html .= '<button type="submit" name="action" value="cancel" class="btn">' . Translate('Annuleren') . '</button>';
             $html .= '</div>';
             //end form actions
             $html .= '</div>';
             //end address_book_item
             $html .= '</div>';
             //end well
             //eof address book item form
         } else {
             //address list
             //list address book items
             //get customers_info if customer is logged in
             $c_query = tep_db_query('SELECT customers_email_address, customers_telephone, customers_default_address_id FROM customers WHERE customers_id = "' . $customer_id . '"');
             $c = tep_db_fetch_array($c_query);
             //check if address_id's are known
             if ($temp_orders_id > 0) {
                 $a_id_query = tep_db_query('SELECT delivery_address_id, billing_address_id FROM temp_orders WHERE orders_id = "' . $temp_orders_id . '"');
                 $a_id = tep_db_fetch_array($a_id_query);
             }
             $count = 0;
             $max_count = count($this->fields);
             if (is_array($this->errors[get_class($this)]['address_book_list'])) {
                 foreach ($this->errors[get_class($this)]['address_book_list'] as $error) {
                     $html .= '<div class="alert alert-error"><strong>' . Translate('Opgelet!') . '</strong> ' . $error . '</div>';
                 }
             }
             $html .= '<div class="row-fluid">';
             //foreach block (billing, delivery, ...)
             //  echo "<script type='text/javascript'>var one_check = 0 ;if(one_check != 2){window.history.go(-1);}one_check=2;</script>";
             foreach ($this->fields as $block => $block_data) {
                 $is_checked = false;
                 $count++;
                 $html .= '<div class="span6">';
                 //title eg. 'Facturatie adres', 'leveringsadres', ...
                 $html .= '<h3>' . $block_data['title'] . '</h3>';
                 $html .= '<div class="well">';
                 $html .= '<ul class="address_list">';
                 if ($block == 'billing' && $this->config['change_billing_address']['value'] == 'false') {
                     $ab_query = tep_db_query('SELECT * FROM address_book WHERE customers_id = "' . $customer_id . '" AND entry_country_id IN ("' . implode('", "', parent::$available_countries) . '") AND address_book_id = "' . $c['customers_default_address_id'] . '"');
                 } else {
                     $ab_query = tep_db_query('SELECT * FROM address_book WHERE customers_id = "' . $customer_id . '" AND entry_country_id IN ("' . implode('", "', parent::$available_countries) . '")');
                 }
                 while ($ab = tep_db_fetch_array($ab_query)) {
                     $html .= '<li class="address_block clearfix">';
                     //radio button
                     if (!$is_checked) {
                         if ($_POST['address_book_id'][$block] == $ab['address_book_id']) {
                             $checked = ' checked=checked';
                             $is_checked = true;
                         } else {
                             if (isset($a_id[$block . '_address_id']) && $a_id[$block . '_address_id'] == $ab['address_book_id']) {
                                 $checked = ' checked=checked';
                                 $is_checked = true;
                             } else {
                                 if ($c['customers_default_address_id'] == $ab['address_book_id']) {
                                     $checked = ' checked=checked';
                                     $is_checked = true;
                                 }
                             }
                         }
                     } else {
                         $checked = '';
                     }
                     $html .= '<input type="radio" id="address_book_id_' . $block . '_' . $ab['address_book_id'] . '" name="address_book_id[' . $block . ']" value="' . $ab['address_book_id'] . '"' . $checked . ' />';
                     $html .= '<label for="address_book_id_' . $block . '_' . $ab['address_book_id'] . '">';
                     $html .= '<div class="address">';
                     //name
                     $html .= '<div class="address_name">' . convert_to_entities($ab['entry_firstname']) . '</div>';
                     //street
                     $html .= '<div class="address_street">' . convert_to_entities($ab['entry_street_address']) . '</div>';
                     //city + postcode + country
                     $html .= '<div class="address_city">' . $ab['entry_postcode'] . ' ' . convert_to_entities($ab['entry_city']) . ' ' . convert_to_entities(tep_get_country_name($ab['entry_country_id'])) . '</div>';
                     $html .= '</div>';
                     //end address
                     $html .= '</label>';
                     //link to delete address book item
                     if ($c['customers_default_address_id'] == $ab['address_book_id']) {
                         $html .= '<div class="delete_address">[' . Translate('Hoofdadres') . ']</div>';
                     } else {
                         $html .= '<div class="delete_address"><a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), 'delete_address=' . $ab['address_book_id']) . '" title="' . Translate('Verwijder adres') . '" class="btn btn-mini">' . Translate('Verwijder adres') . '</a></div>';
                     }
                     $html .= '</li>';
                     //end address_block
                 }
                 $html .= '</ul>';
                 //end address_list
                 //link to add new address book item
                 if ($block == 'billing' && $this->config['change_billing_address']['value'] == 'true' || $block != 'billing') {
                     $html .= '<div class="add_new_address"><a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), 'checkout_step=' . $step . '&add_new_address=true') . '" title="' . Translate('Nieuw adres toevoegen') . '" class="btn btn-mini"><i class="icon-plus-sign"></i> ' . Translate('Nieuw adres toevoegen') . '</a></div>';
                 }
                 $html .= '</div>';
                 //end well
                 $html .= '</div>';
                 //end span6
             }
             $html .= '</div>';
             //end row-fluid
             //eof address list
         }
     } else {
         //Not logged in
         //get last filled in data if that is available
         if ($temp_orders_id > 0) {
             $to_query = tep_db_query('SELECT * FROM temp_orders WHERE orders_id = "' . $temp_orders_id . '"');
             if (tep_db_num_rows($to_query) > 0) {
                 $to = tep_db_fetch_array($to_query);
                 if (!isset($_POST['customers_info_data'])) {
                     //check if there where errors in that step
                     $tos_query = tep_db_query('SELECT errors FROM temp_orders_steps WHERE orders_id ="' . $temp_orders_id . '" AND step = "' . $step . '" ORDER BY date desc LIMIT 1');
                     if (tep_db_num_rows($tos_query) > 0) {
                         $tos = tep_db_fetch_array($tos_query);
                         $tos['errors'] = unserialize($tos['errors']);
                         $this->errors = $tos['errors'][get_class($this)];
                     }
                 }
             }
         }
         //create form
         $html .= '<input type="hidden" name="customers_info_data" value="true" />';
         /************************/
         /*  show login block?   */
         /************************/
         if ($this->config['login']['value'] == 'true' && !tep_session_is_registered('customer_id')) {
             //login box
             if (!empty($this->errors[get_class($this)]['login'])) {
                 $html .= '<div class="alert alert-error">' . $this->errors[get_class($this)]['login'] . '</div>';
             }
             $html .= Translate('Terugkerende klant') . '? ';
             $html .= '<a href="#" id="login_modal_button" style="display:none;">' . Translate('Inloggen') . '</a>';
             $html .= '<div class="well form-inline login_modal" id="login_block">';
             $html .= '<h2>' . Translate('Inloggen') . '</h2>';
             $html .= '<div class="control-group">';
             //email
             $html .= '<input type="text" name="login_email" placeholder="' . Translate('E-mailadres') . '" value="' . $_POST['login_email'] . '" /> ';
             //password
             $html .= '<input type="password" placeholder="' . Translate('Paswoord') . '" name="login_pass" value="" />';
             $html .= '</div>';
             //submit
             $html .= ' <button type="submit" name="action" value="login" class="btn">' . Translate('Log in') . '</button>';
             $html .= '</div>';
             //end well
             $html .= '</form>';
             $html .= '<form name="process_step2" method="POST" action="' . tep_href_link(basename($_SERVER['PHP_SELF'])) . '" class="form-inline">';
             $html .= '<input type="hidden" name="checkout_step" value="' . $step . '" />';
             $html .= '<input type="hidden" name="checkout_modules[]" value="' . get_class($this) . '" />';
             $html .= '<input type="hidden" name="customers_info_data" value="true" />';
             //eof login box
         }
         $html .= '<div class="row-fluid">';
         /************************************************************************/
         /*  show all blocks eg 'billing', 'delivery' with there active fields   */
         /************************************************************************/
         foreach ($this->fields as $block => $block_data) {
             //if this is the delivery block, show checkbox for different delivery address then billing address
             $html .= '<div class="span6">';
             $html .= '<h3>' . $block_data['title'] . '</h3>';
             if ($this->errors[get_class($this)][$block]) {
                 $html .= '<div class="alert alert-error">' . Translate('Vul a.u.b. alle velden correct in.') . '</div>';
             }
             $html .= '<div class="well">';
             if ($block == 'delivery') {
                 //Check if delivery and billing address are different
                 $different_address = false;
                 foreach ($this->fields['delivery']['fields'] as $field => $field_data) {
                     foreach ($this->fields['billing']['fields'] as $bfield => $bfield_data) {
                         if ($field_data['dbvalue'] == $bfield_data['dbvalue']) {
                             if ($to[$field] != $to[$bfield]) {
                                 $different_address = true;
                                 continue 2;
                             }
                             continue 1;
                         }
                     }
                 }
                 //checkbox
                 $html .= '<div class="control-group">';
                 $html .= '<div class="controls" id="showDelivery">';
                 $html .= '<input class="form-checkbox" type="checkbox" id="check_different_delivery_address" name="different_delivery_address" value="true"' . ($_POST['different_delivery_address'] == 'true' ? ' checked=checked' : ($different_address ? ' checked=checked' : '')) . ' />';
                 $html .= '<label class="checkbox inline" for="check_different_delivery_address" id="label_different_delivery_address">';
                 $html .= Translate('Leveringsadres is verschillend van facturatieadres.');
                 $html .= '</label>';
                 $html .= '</div>';
                 //end controls
                 $html .= '</div>';
                 //end control-group
             }
             //block title eg. 'Facturatie adres', 'leveringsadres', ...
             foreach ($block_data['fields'] as $field => $field_data) {
                 if ($field_data['condition'] != '') {
                     eval(stripslashes($field_data['condition']) . ';');
                 } else {
                     $show_field = true;
                 }
                 if ($show_field) {
                     //check if there where errors with the filled in data for this field
                     $class = '';
                     if ($block == 'delivery') {
                         $class .= ' hideDelivery';
                     }
                     if ($this->errors[get_class($this)][$block][$field]) {
                         $class .= ' error';
                         $html .= '<div class="form-error">' . Translate($this->errors[get_class($this)][$block][$field]) . '</div>';
                     }
                     $html .= '<div class="control-group' . $class . '">';
                     $html .= '<label class="control-label" for="' . get_class($this) . '_input_' . $field . '">' . $field_data['label'] . '</label>';
                     $html .= '<div class="controls">';
                     if ($field_data['type'] == 'dropdown') {
                         if (strstr($field, 'country')) {
                             $html .= parent::get_country_list(get_class($this) . '_' . $field, isset($_POST[get_class($this) . '_' . $field]) ? $_POST[get_class($this) . '_' . $field] : $to[$field], 'id="' . get_class($this) . '_input_' . $field . '"');
                         }
                     } else {
                         if ($field_data['name'] == 'billing_firstname') {
                             if (isset($_POST[get_class($this) . '_' . $field])) {
                                 $billing_firstname = $_POST[get_class($this) . '_' . $field];
                             } else {
                                 $billing_firstname = $to['billing_name'];
                                 $billing_firstname = end(explode(' ', $billing_firstname));
                             }
                             $html .= '<input type="' . $field_data['input'] . '" id="' . get_class($this) . '_input_' . $field . '" name="' . get_class($this) . '_' . $field . '" value="' . $billing_firstname . '" />';
                         } else {
                             if ($field_data['name'] == 'billing_lastname') {
                                 if (isset($_POST[get_class($this) . '_' . $field])) {
                                     $billing_lastname = $_POST[get_class($this) . '_' . $field];
                                 } else {
                                     $billing_lastname = $to['billing_name'];
                                     $billing_lastname_temp = end(explode(' ', $billing_lastname));
                                     $billing_lastname = substr($billing_lastname, 0, -strlen($billing_lastname_temp));
                                 }
                                 $html .= '<input type="' . $field_data['input'] . '" id="' . get_class($this) . '_input_' . $field . '" name="' . get_class($this) . '_' . $field . '" value="' . $billing_lastname . '" />';
                             } else {
                                 if ($field_data['name'] == 'delivery_firstname') {
                                     if (isset($_POST[get_class($this) . '_' . $field])) {
                                         $delivery_firstname = $_POST[get_class($this) . '_' . $field];
                                     } else {
                                         $delivery_firstname = $to['delivery_name'];
                                         $delivery_firstname = end(explode(' ', $delivery_firstname));
                                     }
                                     $html .= '<input type="' . $field_data['input'] . '" id="' . get_class($this) . '_input_' . $field . '" name="' . get_class($this) . '_' . $field . '" value="' . $delivery_firstname . '" />';
                                 } else {
                                     if ($field_data['name'] == 'delivery_lastname') {
                                         if (isset($_POST[get_class($this) . '_' . $field])) {
                                             $delivery_lastname = $_POST[get_class($this) . '_' . $field];
                                         } else {
                                             $delivery_lastname = $to['delivery_name'];
                                             $delivery_lastname_temp = end(explode(' ', $delivery_lastname));
                                             $delivery_lastname = substr($delivery_lastname, 0, -strlen($delivery_lastname_temp));
                                         }
                                         $html .= '<input type="' . $field_data['input'] . '" id="' . get_class($this) . '_input_' . $field . '" name="' . get_class($this) . '_' . $field . '" value="' . $delivery_lastname . '" />';
                                         ////////////////////////////////////////////////////////////////* #1539 - Shipping address
                                     } else {
                                         if ($field_data['name'] == 'delivery_telephone' && $to['delivery_telephone'] == '') {
                                             $delivery_telephone = $to['customers_telephone'];
                                             $html .= '<input type="' . $field_data['input'] . '" id="' . get_class($this) . '_input_' . $field . '" name="' . get_class($this) . '_' . $field . '" value="' . $delivery_telephone . '" />';
                                             ////////////////////////////////////////////////////////////////* #1539 - Shipping address
                                         } else {
                                             $html .= '<input type="' . $field_data['input'] . '" id="' . get_class($this) . '_input_' . $field . '" name="' . get_class($this) . '_' . $field . '" value="' . (isset($_POST[get_class($this) . '_' . $field]) ? $_POST[get_class($this) . '_' . $field] : $to[$field]) . '" />';
                                         }
                                     }
                                 }
                             }
                         }
                     }
                     $html .= '</div>';
                     //end controle
                     $html .= '</div>';
                     //end control-group
                 }
             }
             $html .= '</div>';
             //end well
             $html .= '</div>';
             //end span6
         }
         $html .= '</div>';
         //end row-fluid
         if ($this->config['create_account']['value'] == 'true' && !tep_session_is_registered('customer_id')) {
             $html .= '<div class="alert alert-error" id="emailCheck" style="display:none;">' . Translate('Het ingegeven e-mailadres bestaat al in ons systeem. Gelieve  een  te registreren met een ander e-mailadres') . '</div>';
             $html .= '<a href="#" id="show_create_account_button" style="display:none;margin-bottom:5px;">' . Translate('Uw gegevens onthouden voor de volgende keer?') . '</a>';
             $html .= '<div id="create_account_block">';
             $html .= '<h3>' . Translate('Maak een account aan') . '</h3>';
             $html .= '<div class="well form-inline">';
             if (!empty($this->errors[get_class($this)]['create_account'])) {
                 $html .= '<div class="alert alert-error">' . $this->errors[get_class($this)]['create_account'] . '</div>';
             }
             //Terms
             $html .= '<div id="CAparagraph">';
             $html .= tep_draw_checkbox_field('TermsAgree', 'true', false, 'id="TermsAgree"');
             $html .= '<label for="TermsAgree">';
             $termsAgree = sprintf(Translate("Ik heb de %s gelezen en ga hiermee akkoord"), '<a href="' . tep_href_link('conditions_modal.php') . '" target="_blank">' . Translate('Algemene voorwaarden') . '</a>');
             if (CONDITIONS_CREATE_ACCOUNT == 'Link') {
                 $html .= $termsAgree;
             } else {
                 $html .= strip_tags($termsAgree);
             }
             $html .= '</label>';
             $html .= '</div>';
             //Password field
             $html .= '<input type="password" id="' . get_class($this) . '_input_password" name="' . get_class($this) . '_password" value="' . (isset($_POST[get_class($this) . '_password']) ? $_POST[get_class($this) . '_password'] : '') . '" placeholder="' . Translate('Wachtwoord') . '" />&nbsp;';
             //Password2 field
             $html .= '<input type="password" id="' . get_class($this) . '_input_password2" name="' . get_class($this) . '_password2" value="' . (isset($_POST[get_class($this) . '_password2']) ? $_POST[get_class($this) . '_password2'] : '') . '" placeholder="' . Translate('Wachtwoord bevestigen') . '" />&nbsp;';
             //Create account button
             $html .= '<button type="submit" name="action" value="create_account" class="btn">' . Translate('Registreer') . '</button>';
             $html .= '</div>';
             //end well
             $html .= '</div>';
             //End create_account_block
         }
     }
     return $html;
 }
          <label class="control-label col-sm-3 col-lg-3 text-right"><?php 
echo ENTRY_CATEGORIES;
?>
</label>
          <div class="col-sm-9 col-lg-9"><?php 
echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))), null, 'class="form-control"');
?>
</div>
        </div>&nbsp;
        <div class="form-group">
          <label class="control-label col-sm-3 col-lg-3 text-right margin-top" style="padding-left:0px;"><?php 
echo ENTRY_INCLUDE_SUBCATEGORIES;
?>
</label>
          <div class="col-sm-9 col-lg-9"><?php 
echo tep_draw_checkbox_field('inc_subcat', null, null, 'class="form-control"', null);
?>
</div>
        </div>&nbsp;
        <div class="form-group">
          <label class="control-label col-sm-3 col-lg-3 text-right small-margin-top"><?php 
echo ENTRY_MANUFACTURERS;
?>
</label>
          <div class="col-sm-9 col-lg-9"><?php 
echo tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS))), null, 'class="form-control"');
?>
</div>
        </div>&nbsp;
        <div class="form-group">
          <label class="control-label col-sm-3 col-lg-3 text-right small-margin-top"><?php 
Exemplo n.º 7
0
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="fieldKey"><?php 
echo ENTRY_CATEGORIES;
?>
</td>
                <td class="fieldValue"><?php 
echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))));
?>
</td>
              </tr>
              <tr>
                <td class="fieldKey">&nbsp;</td>
                <td class="smallText"><?php 
echo tep_draw_checkbox_field('inc_subcat', '1', true) . ' ' . ENTRY_INCLUDE_SUBCATEGORIES;
?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
              </tr>
              <tr>
                <td class="fieldKey"><?php 
echo ENTRY_MANUFACTURERS;
?>
</td>
                <td class="fieldValue"><?php 
Exemplo n.º 8
0
?>
            </td>
            <td class="item_entry" style="width:200px">
              <?php 
echo tep_draw_input_field('employees_id', '', 'size="1" maxlength="10" style="width: 100%"' . ($_POST['action'] == 'enter_data' && $_POST['employees_status'] == 'new' ? '' : ' disabled'));
?>
            </td>
            <td class="item_entry">&nbsp;</td>
            <td class="item_entry">
              <?php 
echo TEXT_EMPLOYEES_RESET_PASSWORD;
?>
            </td>
            <td class="item_entry" style="text-align:right;width:25px">
              <?php 
echo tep_draw_checkbox_field('employees_reset_password', true, false, $_POST['action'] == 'enter_data' && $_POST['employees_status'] != 'new' ? '' : ' disabled');
?>
            </td>
          </tr>
          <tr>
            <td class="item_entry">
              <?php 
echo TEXT_EMPLOYEES_LOGIN;
?>
            </td>
            <td class="item_entry" style="width:200px">
              <?php 
echo tep_draw_input_field('employees_login', '', 'size="1" maxlength="16" style="width: 100%"' . ($_POST['action'] == 'enter_data' ? '' : ' disabled'));
?>
            </td>
            <td class="item_entry" colspan="3">&nbsp;</td>
Exemplo n.º 9
0
		<?php 
    /*$result = tep_db_query("
    		SELECT c.categories_id AS id, t.products_types_name AS tname, cd.categories_name AS name FROM categories c
    		JOIN categories_description AS cd ON cd.categories_id = c.categories_id
    		RIGHT JOIN products_types AS t ON t.products_types_id = c.products_types_id
    		AND cd.language_id = 2
    		AND t.language_id = 2
    		AND c.products_types_id = 1
    		AND c.parent_id = 0
    		;");*/
    $result = tep_db_query("\n\t\t\tSELECT c.categories_id AS id, cd.categories_name AS name FROM categories c\n\t\t\tJOIN categories_description AS cd ON cd.categories_id = c.categories_id\n\t\t\tAND cd.language_id = 2\n\t\t\tAND c.products_types_id = 1\n\t\t\tAND c.parent_id = 0\n\t\t\t;");
    while ($val = tep_db_fetch_array($result)) {
        ?>
			<div>
				<?php 
        echo tep_draw_checkbox_field('subscribe_[' . $val['id'] . ']', '1', 0);
        ?>
				<!--a href="<?php 
        echo tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $val['id']);
        ?>
"-->
					<?php 
        echo $val['tname'] . '' . $val['name'];
        ?>
				<!--/a-->
			</div>
		<?php 
    }
    ?>
	</fieldset>
	<br>
Exemplo n.º 10
0
     break;
 case 'edit':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_EDIT_CURRENCY . '</strong>');
     $contents = array('form' => tep_draw_form('currencies', FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_TITLE . '<br>' . tep_draw_input_field('title', $cInfo->title));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_CODE . '<br>' . tep_draw_input_field('code', $cInfo->code));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . '<br>' . tep_draw_input_field('symbol_left', $cInfo->symbol_left));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_RIGHT . '<br>' . tep_draw_input_field('symbol_right', $cInfo->symbol_right));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_POINT . '<br>' . tep_draw_input_field('decimal_point', $cInfo->decimal_point));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_THOUSANDS_POINT . '<br>' . tep_draw_input_field('thousands_point', $cInfo->thousands_point));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_PLACES . '<br>' . tep_draw_input_field('decimal_places', $cInfo->decimal_places));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_VALUE . '<br>' . tep_draw_input_field('value', $cInfo->value));
     $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('allow_auto_update', '1', $cInfo->allow_auto_update == '1') . TEXT_INFO_CURRENCY_ALLOW_AUTO_UPDATE);
     if (DEFAULT_CURRENCY != $cInfo->code) {
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT);
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_CURRENCY . '</strong>');
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br><strong>' . $cInfo->title . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_currency ? '<a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=deleteconfirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($cInfo)) {
         $heading[] = array('text' => '<strong>' . $cInfo->title . '</strong>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' . ($cInfo->allow_auto_update == '1' ? ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&currencyID=' . $cInfo->currencies_id . '&action=update') . '">' . tep_image_button('button_update.gif', IMAGE_UPDATE) . '</a>' : ''));
         $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_TITLE . ' ' . $cInfo->title);
         $contents[] = array('text' => TEXT_INFO_CURRENCY_CODE . ' ' . $cInfo->code);
Exemplo n.º 11
0
             <td class="fieldValue">
             <?php 
 if ($e['uses_list']) {
     $epf_values = tep_build_epf_pulldown($e['id'], $languages_id);
     if ($e['multi_select']) {
         // multi-select field
         echo TEXT_FOR_FIELD . tep_draw_radio_field('match' . $e['id'], 'any', true) . TEXT_MATCH_ANY . tep_draw_radio_field('match' . $e['id'], 'all') . TEXT_MATCH_ALL . '</td></tr><tr><td class="fieldKey">' . $e['label'] . '</td><td class="fieldValue">';
         $col = 0;
         echo '<table><tr>';
         foreach ($epf_values as $value) {
             $col++;
             if ($col > $e['columns']) {
                 echo '</tr><tr>';
                 $col = 1;
             }
             echo '<td>' . tep_draw_checkbox_field($e['field'] . '[]', $value['id'], false, 'id="' . $value['id'] . '"') . '</td><td>' . tep_get_extra_field_list_value($value['id'], false, $e['display_type']) . '<td><td>&nbsp;</td>';
         }
         echo '</tr></table>';
     } else {
         // single select field
         $epf_values = array_merge(array(array('id' => '', 'text' => TEXT_ANY_VALUE)), $epf_values);
         if ($e['use_checkbox']) {
             $col = 0;
             echo '<table><tr>';
             foreach ($epf_values as $value) {
                 $col++;
                 if ($col > $e['columns']) {
                     echo '</tr><tr>';
                     $col = 1;
                 }
                 echo '<td>' . tep_draw_radio_field($e['field'], $value['id'], $value['id'] == '', 'id="' . $e['field'] . '_' . $value['id'] . '"') . '</td><td>' . ($value['id'] == '' ? TEXT_ANY_VALUE : tep_get_extra_field_list_value($value['id'], false, $e['display_type'])) . '<td><td>&nbsp;</td>';
Exemplo n.º 12
0
 function display_multi_entries()
 {
     extract(tep_load('defs', 'database'));
     $html_string = '';
     $html_string .= '        <div class="comboHeading">' . "\n" . '          <div>' . TEXT_SELECT_MULTIGTEXT . '</div>' . "\n" . '        </div>' . "\n" . '        <div class="formArea">' . tep_draw_form('mc', $cDefs->script, tep_get_all_get_params('action') . 'action=insert_multi_entries', 'post') . "\n" . '        <table class="tabledata">' . "\n" . '          <tr class="dataTableHeadingRow">' . "\n" . '            <th class="calign"><a href="#gtext_id" class="page_select" title="' . TEXT_PAGE_SELECT . '">' . tep_image(DIR_WS_ICONS . 'icon_tick.png', TEXT_PAGE_SELECT) . '</a></th>' . "\n" . '            <th>' . TABLE_HEADING_GTEXT . tep_draw_hidden_field('multi_form', 'insert_multi_entries') . '</th>' . "\n" . '          </tr>' . "\n";
     $buttons = array('<a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'mcpage') . 'action=list') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>', tep_image_submit('button_insert.gif', IMAGE_INSERT));
     $rows = 0;
     $zones_query_raw = "select gt.gtext_id, gt.gtext_title from " . TABLE_GTEXT . " gt order by gt.gtext_title";
     $zones_split = new splitPageResults($zones_query_raw, SEO_PAGE_SPLIT, '', 'mcpage');
     $zones_query = $db->query($zones_split->sql_query);
     $bCheck = false;
     while ($zones_array = $db->fetch_array($zones_query)) {
         $check_query = $db->query("select count(*) as total from " . TABLE_SEO_TO_GTEXT . " where gtext_id = '" . (int) $zones_array['gtext_id'] . "'");
         $check_array = $db->fetch_array($check_query);
         $bCheck = $check_array['total'] ? true : false;
         $rows++;
         $row_class = $rows % 2 ? 'dataTableRow' : 'dataTableRowAlt';
         if ($bCheck) {
             $row_class = 'dataTableRowGreen';
         }
         $html_string .= '            <tr class="' . $row_class . '">' . "\n" . '              <td class="calign">' . ($bCheck ? 'Included' : tep_draw_checkbox_field('gtext_id[' . $zones_array['gtext_id'] . ']')) . '</td>' . "\n" . '              <td>' . $zones_array['gtext_title'] . '</td>' . "\n" . '            </tr>' . "\n";
     }
     $html_string .= '          </table><div class="formButtons">' . implode('', $buttons) . '</div></form></div>' . "\n" . '          <div class="listArea splitLine">' . "\n" . '            <div class="floater">' . $zones_split->display_count(TEXT_DISPLAY_NUMBER_OF_ENTRIES) . '</div>' . "\n" . '            <div class="floatend">' . $zones_split->display_links(tep_get_all_get_params('action', 'mcpage') . 'action=multi_entries') . '</div>' . "\n" . '          </div>' . "\n";
     return $html_string;
 }
Exemplo n.º 13
0
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_TYPE . '</strong>');
     $contents = array('form' => tep_draw_form('boards', FILENAME_BOARDS, tep_get_all_get_params(array('action', 'tID', 'page')) . 'tID=' . $sInfo->boards_types_id . '&action=delete_type_confirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_TYPE_INTRO);
     $contents[] = array('text' => '<br><strong>' . $tInfo->boards_types_name . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('tID', 'action', 'page')) . 'tID=' . $tInfo->boards_types_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_app':
 case 'delete':
     $heading[] = array('text' => '<strong>' . ($action == 'delete_app' ? TEXT_INFO_HEADING_DELETE_APP : TEXT_INFO_HEADING_DELETE) . '</strong>');
     $contents = array('form' => tep_draw_form('boards', FILENAME_BOARDS, tep_get_all_get_params(array('bID', 'action')) . 'bID=' . $bInfo->boards_id . '&action=delete_confirm'));
     $contents[] = array('text' => $action == 'delete_app' ? TEXT_INFO_DELETE_APP_INTRO : TEXT_INFO_DELETE_INTRO);
     if (tep_not_null($bInfo->boards_name)) {
         $contents[] = array('text' => '<br><strong>' . $bInfo->boards_name . '</strong>');
     }
     if (tep_not_null($bInfo->customers_ip)) {
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('board_blacklist', '1', false, '', 'onclick="if (this.checked) document.getElementById(\'board_blacklist_comment\').style.display = \'block\'; else document.getElementById(\'board_blacklist_comment\').style.display = \'none\';"') . ' ' . TEXT_DELETE_BOARD_BLACKLIST . '<div id="board_blacklist_comment" style="display: none;"><br>' . TEXT_DELETE_BOARD_BLACKLIST_COMMENTS . '<br>' . tep_draw_input_field('board_blacklist_reason', TEXT_DELETE_BOARD_BLACKLIST_COMMENTS_DEFAULT, 'size="35"') . '</div>');
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('bID', 'action')) . 'bID=' . $bInfo->boards_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($tInfo)) {
         $heading[] = array('text' => '<strong>' . $tInfo->boards_types_name . '</strong>');
         if (DEBUG_MODE == 'on') {
             $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('bID', 'action', 'tID')) . 'tID=' . $tInfo->boards_types_id . '&action=edit_type') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('bID', 'action', 'tID')) . 'tID=' . $tInfo->boards_types_id . '&action=delete_type') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br><br>');
         }
         if (tep_not_null($tInfo->boards_types_short_description)) {
             $contents[] = array('text' => $tInfo->boards_types_short_description);
         }
         $contents[] = array('text' => '<br>' . TEXT_INFO_BOARDS_COUNT . ' ' . (int) $tInfo->boards_count);
         $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($tInfo->date_added));
         if (tep_not_null($tInfo->last_modified)) {
Exemplo n.º 14
0
            $types_array = $g_db->fetch_array($types_query);
            $votes_array = array_merge($votes_array, $types_array);
        } else {
            $votes_array['title'] = TEXT_INFO_NA;
        }
        $inf_link = tep_href_link($g_script, tep_get_all_get_params('action', 'vtID') . 'vtID=' . $votes_array['auto_id']);
        $votes_array['ip_address'] = $g_http->ip2s($votes_array['ip_address']);
        if (!empty($vtID) && $vtID == $votes_array['auto_id']) {
            $vtInfo = new objectInfo($votes_array);
            echo '              <tr class="dataTableRowSelected">' . "\n";
        } else {
            echo '              <tr class="' . $row_class . ' row_link" href="' . $inf_link . '">' . "\n";
        }
        ?>
              <td class="calign"><?php 
        echo tep_draw_checkbox_field('mark[' . $votes_array['auto_id'] . ']', 1);
        ?>
</td>
              <td><?php 
        echo '<a href="' . $link . '" title="' . $votes_array['title'] . '">' . $votes_array['title'] . '</a>';
        ?>
</td>
              <td><?php 
        echo ($votes_array['votes_type'] == 1 ? TEXT_INFO_PAGE : TEXT_INFO_COLLECTION) . '</a>';
        ?>
</td>
              <td><?php 
        echo $votes_array['ip_address'];
        ?>
</td>
              <td><?php 
 function confirmation()
 {
     global $order, $customer_id;
     $card_types = array();
     foreach ($this->getCardTypes() as $key => $value) {
         $card_types[] = array('id' => $key, 'text' => $value);
     }
     $today = getdate();
     $months_array = array();
     for ($i = 1; $i < 13; $i++) {
         $months_array[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));
     }
     $year_valid_to_array = array();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $year_valid_to_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $year_valid_from_array = array();
     for ($i = $today['year'] - 4; $i < $today['year'] + 1; $i++) {
         $year_valid_from_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $content = '';
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_TOKENS == 'True') {
         $tokens_query = tep_db_query("select id, card_type, number_filtered, expiry_date from customers_sagepay_tokens where customers_id = '" . (int) $customer_id . "' order by date_added");
         if (tep_db_num_rows($tokens_query) > 0) {
             $content .= '<table id="sagepay_table" border="0" width="100%" cellspacing="0" cellpadding="2">';
             while ($tokens = tep_db_fetch_array($tokens_query)) {
                 $content .= '<tr class="moduleRow" id="sagepay_card_' . (int) $tokens['id'] . '">' . '  <td width="40" valign="top"><input type="radio" name="sagepay_card" value="' . (int) $tokens['id'] . '" /></td>' . '  <td valign="top">' . tep_output_string_protected($tokens['number_filtered']) . '&nbsp;&nbsp;' . tep_output_string_protected(substr($tokens['expiry_date'], 0, 2)) . '/' . strftime('%Y', mktime(0, 0, 0, 1, 1, 2000 + substr($tokens['expiry_date'], 2))) . '&nbsp;&nbsp;' . tep_output_string_protected($tokens['card_type']) . '</td>' . '</tr>';
                 if (MODULE_PAYMENT_SAGE_PAY_DIRECT_VERIFY_WITH_CVC == 'True') {
                     $content .= '<tr class="moduleRowExtra" id="sagepay_card_cvc_' . (int) $tokens['id'] . '">' . '  <td width="40" valign="top">&nbsp;</td>' . '  <td valign="top">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_CVC . '&nbsp;' . tep_draw_input_field('cc_cvc_tokens_nh-dns[' . (int) $tokens['id'] . ']', '', 'size="5" maxlength="4"') . '</td>' . '</tr>';
                 }
             }
             $content .= '<tr class="moduleRow" id="sagepay_card_0">' . '  <td width="40" valign="top"><input type="radio" name="sagepay_card" value="0" /></td>' . '  <td valign="top">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_NEW . '</td>' . '</tr>' . '</table>';
         }
     }
     $content .= '<table id="sagepay_table_new_card" border="0" width="100%" cellspacing="0" cellpadding="2">' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_TYPE . '</td>' . '  <td>' . tep_draw_pull_down_menu('cc_type', $card_types, '', 'id="sagepay_card_type"') . '</td>' . '</tr>' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_OWNER . '</td>' . '  <td>' . tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'], 'maxlength="50"') . '</td>' . '</tr>' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_NUMBER . '</td>' . '  <td>' . tep_draw_input_field('cc_number_nh-dns', '', 'maxlength="20"') . '</td>' . '</tr>';
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_MAESTRO == 'True' || MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_AMEX == 'True') {
         $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_STARTS . '</td>' . '  <td>' . tep_draw_pull_down_menu('cc_starts_month', $months_array, '', 'id="sagepay_card_date_start"') . '&nbsp;' . tep_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . '&nbsp;' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_STARTS_INFO . '</td>' . '</tr>';
     }
     $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_EXPIRES . '</td>' . '  <td>' . tep_draw_pull_down_menu('cc_expires_month', $months_array) . '&nbsp;' . tep_draw_pull_down_menu('cc_expires_year', $year_valid_to_array) . '</td>' . '</tr>';
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_MAESTRO == 'True') {
         $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_ISSUE_NUMBER . '</td>' . '  <td>' . tep_draw_input_field('cc_issue_nh-dns', '', 'id="sagepay_card_issue" size="3" maxlength="2"') . '&nbsp;' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_ISSUE_NUMBER_INFO . '</td>' . '</tr>';
     }
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_VERIFY_WITH_CVC == 'True') {
         $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_CVC . '</td>' . '  <td>' . tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"') . '</td>' . '</tr>';
     }
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_TOKENS == 'True') {
         $content .= '<tr>' . '  <td width="30%">&nbsp;</td>' . '  <td>' . tep_draw_checkbox_field('cc_save', 'true') . ' ' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_SAVE . '</td>' . '</tr>';
     }
     $content .= '</table>';
     $content .= !$this->templateClassExists() ? $this->getSubmitCardDetailsJavascript() : '';
     $confirmation = array('title' => $content);
     return $confirmation;
 }
Exemplo n.º 16
0
 function display_multi_entries()
 {
     extract(tep_load('defs', 'database'));
     $html_string = '';
     $html_string .= '          <div class="comboHeading">' . "\n" . '            <div>' . TEXT_SELECT_MULTIENTRIES . '</div>' . "\n" . '          </div>' . "\n" . '          <div class="formArea">' . tep_draw_form('mc', $cDefs->script, tep_get_all_get_params('action') . 'action=insert_multientries', 'post') . '<table class="tabledata">' . "\n" . '            <tr>' . "\n" . '              <td colspan="2" class="formButtons"><a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'mcpage') . 'action=list') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>' . tep_draw_hidden_field('multi_form', 'multi_entries') . tep_image_submit('button_insert.gif', IMAGE_INSERT) . '</td>' . "\n" . '            </tr>' . "\n" . '            <tr class="dataTableHeadingRow">' . "\n" . '              <th class="calign"><a href="#pc_id" class="page_select" title="' . TEXT_PAGE_SELECT . '">' . tep_image(DIR_WS_ICONS . 'icon_tick.png', TEXT_PAGE_SELECT) . '</a></th>' . "\n" . '              <th>' . TABLE_HEADING_ENTRIES . '</th>' . "\n" . '            </tr>' . "\n";
     $rows = 0;
     //$gtext_query_raw = "select gtext_id, gtext_title from " . TABLE_GTEXT . " order by gtext_title";
     $zones_query_raw = "select m.gtext_id, m.gtext_title, if(mm.gtext_id, '1', '0') as checkbox from " . TABLE_GTEXT . " m left join " . TABLE_META_GTEXT . " mm on ((mm.gtext_id = if(mm.gtext_id, m.gtext_id,0))) order by m.gtext_id, m.gtext_title";
     $zones_split = new splitPageResults($zones_query_raw, META_PAGE_SPLIT, '', 'mcpage');
     $zones_query = $db->query($zones_split->sql_query);
     $bCheck = false;
     while ($zones_array = $db->fetch_array($zones_query)) {
         $bCheck = $zones_array['checkbox'] == '1' ? true : false;
         $rows++;
         $row_class = $rows % 2 ? 'dataTableRow' : 'dataTableRowAlt';
         if ($bCheck) {
             $row_class = 'dataTableRowGreen';
         }
         $html_string .= '              <tr class="' . $row_class . '">' . "\n" . '                <td class="calign">' . ($bCheck ? 'Included' : tep_draw_checkbox_field('pc_id[' . $zones_array['gtext_id'] . ']')) . '</td>' . "\n" . '                <td><a href="' . tep_href_link(FILENAME_GENERIC_TEXT, 'gtID=' . $zones_array['gtext_id'] . '&action=new_generic_text') . '"><b>' . $zones_array['gtext_title'] . '</b></a></td>' . "\n" . '              </tr>' . "\n";
     }
     $html_string .= '            <tr>' . "\n" . '              <td colspan="2" class="formButtons"><a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action', 'mcpage') . 'action=list') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>' . tep_draw_hidden_field('multi_form', 'multi_entries') . tep_image_submit('button_insert.gif', IMAGE_INSERT) . '</td>' . "\n" . '            </tr>' . "\n" . '          </table></form></div>' . "\n" . '          <div class="splitLine">' . "\n" . '            <div class="floater">' . $zones_split->display_count(TEXT_DISPLAY_NUMBER_OF_ENTRIES) . '</div>' . "\n" . '            <div class="floatend">' . $zones_split->display_links($this->m_mcpage, tep_get_all_get_params('action', 'mcpage') . 'action=multi_entries') . '</div>' . "\n" . '          </div>' . "\n";
     return $html_string;
 }
Exemplo n.º 17
0
             $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];
             $products[$i][$option]['options_values_id'] = $value;
             $products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name'];
             $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price'];
             $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix'];
         }
     }
 }
 for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
     if ($i / 2 == floor($i / 2)) {
         $info_box_contents[] = array('params' => 'class="productListing-even"');
     } else {
         $info_box_contents[] = array('params' => 'class="productListing-odd"');
     }
     $cur_row = sizeof($info_box_contents) - 1;
     $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data"', 'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']));
     $products_name = '<table border="0" cellspacing="2" cellpadding="2" width="100%">' . '  <tr>' . '    <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . '    <td class="productListing-data" align="center" ><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';
     if (STOCK_CHECK == 'true') {
         $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);
         if (tep_not_null($stock_check)) {
             $any_out_of_stock = 1;
             $products_name .= $stock_check;
         }
     }
     if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
         reset($products[$i]['attributes']);
         while (list($option, $value) = each($products[$i]['attributes'])) {
             $products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
         }
     }
     $products_name .= '    </td>' . '  </tr>' . '</table>';
Exemplo n.º 18
0
        <td align="left"><?php 
        echo tep_draw_input_field('coupon_min_order', $coupon_min_order);
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_MIN_ORDER_HELP;
        ?>
</td>
      </tr>
      <tr>
        <td align="left" class="main"><?php 
        echo COUPON_FREE_SHIP;
        ?>
</td>
        <td align="left"><?php 
        echo tep_draw_checkbox_field('coupon_free_ship', $coupon_free_ship);
        ?>
</td>
        <td align="left" class="main"><?php 
        echo COUPON_FREE_SHIP_HELP;
        ?>
</td>
      </tr>
      <tr>
        <td align="left" class="main"><?php 
        echo COUPON_CODE;
        ?>
</td>
        <td align="left"><?php 
        echo tep_draw_input_field('coupon_code', $coupon_code);
        ?>
Exemplo n.º 19
0
                         } else {
                             $status = ' [' . TEXT_CURRENT_CUSTOMER . ']';
                         }
                     }
                 }
             }
             if ($skip) {
                 continue;
             }
             // got a matched cart, skip to next one
         }
         $sentInfo = TEXT_NOT_CONTACTED;
         if ($sentdate != '') {
             $sentInfo = cart_date_short($sentdate);
         }
         $cline = "\n\t\t\t\t<tr bgcolor=" . $fcolor . ">\n\t\t\t\t  <td class='dataTableContent' align='center' width='1%'>" . tep_draw_checkbox_field('custid[]', $curcus, RCS_AUTO_CHECK == 'true' ? $checked : 0) . "</td>\n\t\t\t\t  <td class='dataTableContent' align='left' width='9%' nowrap><b>" . $sentInfo . "</b></td>\n\t\t\t\t  <td class='dataTableContent' align='left' width='15%' nowrap> " . cart_date_short($inrec['bdate']) . "</td>\n\t\t\t\t  <td class='dataTableContent' align='left' width='30%' nowrap><a href='" . tep_href_link(FILENAME_CUSTOMERS, 'search=' . $inrec['lname'], 'NONSSL') . "'>" . $customer . "</a>" . $status . "</td>\n\t\t\t\t  <td class='dataTableContent' align='left' colspan='2' width='30%' nowrap><a href='" . tep_href_link('mail.php', 'selected_box=tools&amp;customer=' . $inrec['email']) . "'>" . $inrec['email'] . "</a></td>\n\t\t\t\t  <td class='dataTableContent' align='left' colspan='1' width='15%' nowrap>" . $inrec['phone'] . "</td>\n\t\t\t\t  <td><a href=" . tep_href_link(FILENAME_RECOVER_CART_SALES, "action=delete&amp;customer_id=" . $curcus . "&amp;tdate=" . $tdate . "&amp;sdate=" . $sdate) . ">" . tep_image_button('button_delete.gif', IMAGE_DELETE) . "</a></td>\n\t\t\t\t</tr>";
     }
 }
 // We only have something to do for the product if the quantity selected was not zero!
 if ($inrec['qty'] != 0) {
     // Get the product information (name, price, etc)
     $query2 = tep_db_query("select  p.products_price price,\n\t\t\t\t\t\t\t\t\t\t\t\t\tp.products_tax_class_id taxclass,\n\t\t\t\t\t\t\t\t\t\t\t\t\tp.products_model model,\n\t\t\t\t\t\t\t\t\t\t\t\t\tpd.products_name name\n\t\t\t\t\t\t\t\t\t\t from    " . TABLE_PRODUCTS . " p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . TABLE_PRODUCTS_DESCRIPTION . " pd,\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . TABLE_LANGUAGES . " l\n\t\t\t\t\t\t\t\t\t\t where   p.products_id = '" . (int) $inrec['pid'] . "' and\n\t\t\t\t\t\t\t\t\t\t\t\t\tpd.products_id = p.products_id and\n\t\t\t\t\t\t\t\t\t\t\t\t\tpd.language_id = " . (int) $languages_id);
     $inrec2 = tep_db_fetch_array($query2);
     // Check to see if the product is on special, and if so use that pricing
     $sprice = tep_get_products_special_price($inrec['pid']);
     if ($sprice < 1) {
         $sprice = $inrec2['price'];
     }
     // Some users may want to include taxes in the pricing, allow that. NOTE HOWEVER that we don't have a good way to get individual tax rates based on customer location yet!
     if (RCS_INCLUDE_TAX_IN_PRICES == 'true') {
         $sprice += $sprice * tep_get_tax_rate($inrec2['taxclass']) / 100;
Exemplo n.º 20
0
     $contents[] = array('text' => TEXT_INFO_GROUP_TITLE . '<br />' . tep_draw_input_field('configuration_group_title', $group_array['configuration_group_title']));
     $contents[] = array('text' => TEXT_INFO_GROUP_DESCRIPTION . '<br />' . tep_draw_textarea_field('configuration_group_description', $group_array['configuration_group_description'], '', 4));
     $contents[] = array('text' => TEXT_INFO_GROUP_ID . '<br />' . tep_draw_input_field('configuration_group_id', $gID));
     $contents[] = array('text' => TEXT_INFO_GROUP_SORT . '<br />' . tep_draw_input_field('sort_order', $group_array['sort_order']));
     $contents[] = array('section' => '</div>');
     $contents[] = array('text' => tep_draw_checkbox_field('visible', $group_array['visible'], $group_array['configuration_group_title'] ? true : false) . '&nbsp;' . TEXT_INFO_GROUP_VISIBLE);
     $contents[] = array('class' => 'calign', 'text' => tep_image_submit('button_update.gif', IMAGE_UPDATE) . '<a href="' . tep_href_link($g_script, 'gID=' . $gID . '&cID=' . $cID) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_group':
     $cID = isset($_GET['cID']) ? $_GET['cID'] : '';
     $heading[] = array('text' => '<b>' . TEXT_DELETE . '&nbsp;' . $group_name . '</b>');
     $contents[] = array('form' => tep_draw_form('configuration', $g_script, 'gID=' . $gID . '&cID=' . $cID . '&action=delete_group_confirm'));
     $contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'final_notice.png', IMAGE_CONFIRM));
     $contents[] = array('text' => sprintf(TEXT_INFO_DELETE_GROUP_INTRO, '<b>' . $group_name . '</b>'));
     $contents[] = array('text' => TEXT_INFO_DELETE_GROUP_FINAL);
     $contents[] = array('text' => tep_draw_checkbox_field('whole', false, false) . '&nbsp;' . TEXT_INFO_GROUP_INCLUDE_SWITCHES);
     $contents[] = array('class' => 'calign', 'text' => tep_image_submit('button_confirm.gif', IMAGE_CONFIRM) . '<a href="' . tep_href_link($g_script, 'gID=' . $gID . '&cID=' . $cID) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($cInfo) && is_object($cInfo)) {
         $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');
         $contents[] = array('class' => 'calign', 'text' => '<a href="' . tep_href_link($g_script, 'gID=' . $gID . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a><a href="' . tep_href_link($g_script, 'gID=' . $gID . '&cID=' . $cInfo->configuration_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('class' => 'infoBoxSection', 'text' => $cInfo->configuration_description);
         $contents[] = array('text' => TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($cInfo->date_added));
         if (tep_not_null($cInfo->last_modified)) {
             $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($cInfo->last_modified));
         }
     } else {
         // create generic_text dummy info
         $heading[] = array('text' => '<b>' . EMPTY_GENERIC . '</b>');
         $contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'invalid_entry.png', TEXT_ERROR));
Exemplo n.º 21
0
echo tep_draw_checkbox_field('htta', '', FALSE, '');
?>
 </td>
            <td class="smallText">HTDA: </td>
            <td ><?php 
echo tep_draw_checkbox_field('htda', '', FALSE, '');
?>
 </td>
            <td class="smallText">HTKA: </td>
            <td ><?php 
echo tep_draw_checkbox_field('htka', '', FALSE, '');
?>
 </td>
            <td class="smallText">HTCA: </td>
            <td ><?php 
echo tep_draw_checkbox_field('htca', '', FALSE, '');
?>
 </td>
            <td width="50%" class="smallText"> <script>document.writeln('<a style="cursor:hand" onclick="javascript:popup=window.open('
                                           + '\'header_tags_popup_help.php\',\'popup\','
                                           + '\'scrollbars,resizable,width=520,height=550,left=50,top=50\'); popup.focus(); return false;">'
                                           + '<font color="red"><u>(Explain)</u></font></a>');
            </script> </td>
           </tr>
          </table></td>
         </tr>
         
         <tr>
          <td><table border="0" width="100%">
           <tr>
            <td class="smallText" width="10%" style="font-weight: bold;">Title</td>
Exemplo n.º 22
0
    echo $orders_split->display_links($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'oID', 'action')));
    ?>
</td>
                                                    </tr>
                                                </table></td>
                                        </tr>
                                    </table></td>
                                <?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
            $contents = array('form' => tep_draw_form('orders', FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
            $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($oInfo) && is_object($oInfo)) {
                $heading[] = array('text' => '<b>[' . $oInfo->orders_id . ']&nbsp;&nbsp;' . tep_datetime_short($oInfo->date_purchased) . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                // PI_RATEPAY Beginn
                if ($oInfo->payment_method == "ratepay_rate" || $oInfo->payment_method == "ratepay_rechnung" || $oInfo->payment_method == "ratepay_lastschrift") {
                    include 'includes/ratepay_order_buttons.php';
                } else {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');
                }
                //PI_RATEPAY End
                $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased));
                if (tep_not_null($oInfo->last_modified)) {
Exemplo n.º 23
0
<?php 
    }
    ?>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'confirm':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');
            $contents = array('form' => tep_draw_form('customers', FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
            if (isset($cInfo->number_of_reviews) && $cInfo->number_of_reviews > 0) {
                $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
            }
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id)));
            break;
        default:
            if (isset($cInfo) && is_object($cInfo)) {
                $heading[] = array('text' => '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
                $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm')) . tep_draw_button(IMAGE_ORDERS, 'cart', tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id)) . tep_draw_button(IMAGE_EMAIL, 'mail-closed', tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address)));
                $contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_CREATED . ' ' . tep_date_short($cInfo->date_account_created));
                $contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . tep_date_short($cInfo->date_account_last_modified));
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_LAST_LOGON . ' ' . tep_date_short($cInfo->date_last_logon));
                $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
                $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY . ' ' . $cInfo->countries_name);
                $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);
            }
            break;
      <div class="col-sm-9">
        <?php 
echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))), NULL, 'id="entryCategories"');
?>
      </div>
    </div>
    <div class="form-group">
      <label for="entryIncludeSubs" class="control-label col-sm-3"><?php 
echo ENTRY_INCLUDE_SUBCATEGORIES;
?>
</label>
      <div class="col-sm-9">
        <div class="checkbox">
          <label>
            <?php 
echo tep_draw_checkbox_field('inc_subcat', '1', true, 'id="entryIncludeSubs"');
?>
          </label>
        </div>
      </div>
    </div>
    <div class="form-group">
      <label for="entryManufacturers" class="control-label col-sm-3"><?php 
echo ENTRY_MANUFACTURERS;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS))), NULL, 'id="entryManufacturers"');
?>
      </div>
<?php 
echo tep_draw_form('account_newsletter', tep_href_link('account_newsletters.php', '', 'SSL'), 'post', 'class="form-horizontal"', true) . tep_draw_hidden_field('action', 'process');
?>

<div class="contentContainer">
  <div class="contentText">
    <div class="form-group">
      <label class="control-label col-sm-4"><?php 
echo MY_NEWSLETTERS_GENERAL_NEWSLETTER;
?>
</label>
      <div class="col-sm-8">
        <div class="checkbox">
          <label>
            <?php 
echo tep_draw_checkbox_field('newsletter_general', '1', $newsletter['customers_newsletter'] == '1' ? true : false);
?>
            <?php 
if (tep_not_null(MY_NEWSLETTERS_GENERAL_NEWSLETTER_DESCRIPTION)) {
    echo MY_NEWSLETTERS_GENERAL_NEWSLETTER_DESCRIPTION;
}
?>
          </label>
        </div>
      </div>
    </div>
  </div>

  <div class="buttonSet row">
    <div class="col-xs-6"><?php 
echo tep_draw_button(IMAGE_BUTTON_BACK, 'fa fa-angle-left', tep_href_link('account.php', '', 'SSL'));
Exemplo n.º 26
0
</td>
	  </tr>
	  <tr valign="top">
		<td width="50%"><?php 
echo ENTRY_PASSWORD;
?>
</td>
		<td width="50%"><?php 
echo tep_draw_password_field('password');
?>
</td>
	  </tr>
	  <tr valign="top">
		<td width="50%">&nbsp;</td>
		<td width="50%"><?php 
echo tep_draw_checkbox_field('remember_me', '1') . ' ' . ENTRY_REMEMBER_ME;
?>
</td>
	  </tr>
	</table>
	</fieldset>
	<div class="buttons">
	  <div style="text-align: right;"><?php 
echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN);
?>
</div>
	</div>
	<fieldset>
	<legend><?php 
echo HEADING_NEW_CUSTOMER;
?>
Exemplo n.º 27
0
     $manufacturer_inputs_string = '';
     $languages = tep_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . tep_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', tep_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
     $contents = array('form' => tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $mInfo->manufacturers_name . '</b>');
     $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
     if ($mInfo->products_count > 0) {
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
         $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($mInfo) && is_object($mInfo)) {
         $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($mInfo->date_added));
         if (tep_not_null($mInfo->last_modified)) {
             $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($mInfo->last_modified));
         }
         $contents[] = array('text' => '<br>' . tep_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
         $contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
     }
Exemplo n.º 28
0
$heading = array();
$contents = array();
switch ($action) {
    case 'backup':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_BACKUP . '</b>');
        $contents = array('form' => tep_draw_form('backup', FILENAME_BACKUP, 'action=backupnow'));
        $contents[] = array('text' => TEXT_INFO_NEW_BACKUP);
        $contents[] = array('text' => '<br>' . tep_draw_radio_field('compress', 'no', true) . ' ' . TEXT_INFO_USE_NO_COMPRESSION);
        if (file_exists(LOCAL_EXE_GZIP)) {
            $contents[] = array('text' => '<br>' . tep_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP);
        }
        if (file_exists(LOCAL_EXE_ZIP)) {
            $contents[] = array('text' => tep_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP);
        }
        if ($dir_ok == true) {
            $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
        } else {
            $contents[] = array('text' => '<br>' . tep_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_backup.gif', IMAGE_BACKUP) . '&nbsp;<a href="' . tep_href_link(FILENAME_BACKUP) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'restore':
        $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
        $contents[] = array('text' => tep_break_string(sprintf(TEXT_INFO_RESTORE, DIR_FS_BACKUP . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' '));
        $contents[] = array('align' => 'center', 'text' => '<br><a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . tep_image_button('button_restore.gif', IMAGE_RESTORE) . '</a>&nbsp;<a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'restorelocal':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
        $contents = array('form' => tep_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
        $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS);
        $contents[] = array('text' => '<br>' . tep_draw_file_field('sql_file'));
Exemplo n.º 29
0
?>
</td>
			  </tr> 					 
			 </table></td>	
			 <tr>
			  <td><table border="0" cellspacing="2" cellpadding="2">
				<tr>
				 <td>Include Meta Tags: </td>
          <td><?php 
echo tep_draw_checkbox_field('use_meta_tags', '', false, '');
?>
 </td>
				 <td>&nbsp;</td>
				 <td>Use Partial total: </td>
          <td><?php 
echo tep_draw_checkbox_field('use_partial_total', '', false, '');
?>
 </td>
	 			</tr>	
			  </table></td>	
			 </tr> 
			</tr>					 
			<?php 
if (!empty($dens[1])) {
    ?>
			<tr> 
			 <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '10', '10');
    ?>
</td>
      </tr>	
Exemplo n.º 30
0
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_product':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PRODUCT . '</b>');
     $contents = array('form' => tep_draw_form('products', FILENAME_CATEGORIES, 'action=delete_product_confirm&cPath=' . $cPath) . tep_draw_hidden_field('products_id', $pInfo->products_id));
     $contents[] = array('text' => TEXT_DELETE_PRODUCT_INTRO);
     $contents[] = array('text' => '<br><b>' . $pInfo->products_name . '</b>');
     $product_categories_string = '';
     $product_categories = tep_generate_category_path($pInfo->products_id, 'product');
     for ($i = 0, $n = sizeof($product_categories); $i < $n; $i++) {
         $category_path = '';
         for ($j = 0, $k = sizeof($product_categories[$i]); $j < $k; $j++) {
             $category_path .= $product_categories[$i][$j]['text'] . '&nbsp;&gt;&nbsp;';
         }
         $category_path = substr($category_path, 0, -16);
         $product_categories_string .= tep_draw_checkbox_field('product_categories[]', $product_categories[$i][sizeof($product_categories[$i]) - 1]['id'], true) . '&nbsp;' . $category_path . '<br>';
     }
     $product_categories_string = substr($product_categories_string, 0, -4);
     $contents[] = array('text' => '<br>' . $product_categories_string);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'move_product':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_PRODUCT . '</b>');
     $contents = array('form' => tep_draw_form('products', FILENAME_CATEGORIES, 'action=move_product_confirm&cPath=' . $cPath) . tep_draw_hidden_field('products_id', $pInfo->products_id));
     $contents[] = array('text' => sprintf(TEXT_MOVE_PRODUCTS_INTRO, $pInfo->products_name));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
     $contents[] = array('text' => '<br>' . sprintf(TEXT_MOVE, $pInfo->products_name) . '<br>' . tep_draw_pull_down_menu('move_to_category_id', tep_get_category_tree(), $current_category_id));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'copy_to':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>');