function displaySettings() { $contents = xtc_draw_form('modules', 'easymarketing.php', 'content=save', 'post'); $module_keys = $this->keys(); $keys_extra = array(); for ($j = 0, $k = sizeof($module_keys); $j < $k; $j++) { $key_value_query = xtc_db_query("SELECT configuration_key,\n configuration_value,\n use_function,\n set_function\n FROM " . TABLE_CONFIGURATION . "\n WHERE configuration_key = '" . $module_keys[$j] . "'"); $key_value = xtc_db_fetch_array($key_value_query); if ($key_value['configuration_key'] != '') { $keys_extra[$module_keys[$j]]['title'] = constant(strtoupper($key_value['configuration_key'] . '_TITLE')); } $keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value']; if ($key_value['configuration_key'] != '') { $keys_extra[$module_keys[$j]]['description'] = constant(strtoupper($key_value['configuration_key'] . '_DESC')); } $keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function']; $keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function']; } $module_info['keys'] = $keys_extra; while (list($key, $value) = each($module_info['keys'])) { $contents .= '<b>' . $value['title'] . '</b><br />' . $value['description'] . '<br />'; if ($value['set_function']) { eval('$contents .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); } else { $contents .= xtc_draw_input_field('configuration[' . $key . ']', $value['value']); } $contents .= '<br/><br/>'; } $contents .= '<br/>' . xtc_button(BUTTON_SAVE); $contents .= '<hr />' . xtc_button_link(MODULE_EM_UNINSTALL_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=check_uninstall')); return $contents; }
function selection() { global $order; if (!parent::selection()) { $this->enabled = false; return false; } if (!isset($_SESSION['sofort']['sofort_sofortboxjs'])) { $title = MODULE_PAYMENT_SOFORT_MULTIPAY_JS_LIBS; $_SESSION['sofort']['sofort_sofortboxjs'] = true; } else { $title = ''; } switch (MODULE_PAYMENT_SOFORT_MULTIPAY_IMAGE) { case 'Logo & Text': $title .= $this->setImageText(MODULE_PAYMENT_SOFORT_LS_LOGO, MODULE_PAYMENT_SOFORT_LS_CHECKOUT_TEXT); break; case 'Infographic': $title .= $this->setImageText(MODULE_PAYMENT_SOFORT_LS_BANNER, ''); break; } $cost = ''; if (array_key_exists('ot_sofort', $GLOBALS)) { $cost = $GLOBALS['ot_sofort']->get_percent($this->code, 'price'); } $conditionsChecked = false; if (isset($_SESSION['sofort']['sofort_conditions_ls']) && $_SESSION['sofort']['sofort_conditions_ls'] == 'sofort_conditions_ls') { $conditionsChecked = true; } $fields = array(array('title' => MODULE_PAYMENT_SOFORT_LS_TEXT_HOLDER, 'field' => xtc_draw_input_field('ls_sender_holder', array_key_exists('ls_sender_holder', $_SESSION['sofort']) ? strip_tags($_SESSION['sofort']['ls_sender_holder']) : strip_tags($order->billing['firstname'] . ' ' . $order->billing['lastname']))), array('title' => MODULE_PAYMENT_SOFORT_LS_TEXT_ACCOUNT_NUMBER, 'field' => xtc_draw_input_field('ls_account_number', array_key_exists('ls_account_number', $_SESSION['sofort']) ? strip_tags($_SESSION['sofort']['ls_account_number']) : '')), array('title' => MODULE_PAYMENT_SOFORT_LS_TEXT_BANK_CODE, 'field' => xtc_draw_input_field('ls_bank_code', array_key_exists('ls_bank_code', $_SESSION['sofort']) ? strip_tags($_SESSION['sofort']['ls_bank_code']) : '')), array('title' => MODULE_PAYMENT_SOFORT_LS_CHECKOUT_CONDITIONS, 'field' => xtc_draw_checkbox_field('sofort_conditions_ls', 'sofort_conditions_ls', $conditionsChecked))); //commerce:SEO - Bugfix if (isset($_REQUEST['xajax']) && !empty($_REQUEST['xajax'])) { $fields[0]['title'] = utf8_decode($fields[0]['title']); //holder $fields[1]['title'] = utf8_decode($fields[1]['title']); //account-nr $fields[2]['title'] = utf8_decode($fields[2]['title']); //bankcode $fields[3]['title'] = utf8_decode($fields[3]['title']); //conditions return array('id' => $this->code, 'module' => utf8_decode($this->title_extern), 'fields' => $fields, 'description' => utf8_decode($title), 'module_cost' => utf8_decode($cost)); } else { return array('id' => $this->code, 'module' => $this->title_extern, 'fields' => $fields, 'description' => $title, 'module_cost' => $cost); } }
</td> <td class="dataTableContent" align="left"> <?php echo xtc_draw_input_field('billing_postcode', $order->billing['postcode']); ?> </td> </tr> <tr class="dataTableRow"> <td class="dataTableContent" align="left"> <?php echo TEXT_CITY; ?> </td> <td class="dataTableContent" align="left"> <?php echo xtc_draw_input_field('billing_city', $order->billing['city']); ?> </td> </tr> <tr class="dataTableRow"> <td class="dataTableContent" align="left"> <?php echo TEXT_COUNTRY; ?> </td> <td class="dataTableContent" align="left"> <?php echo xtc_draw_pull_down_menu('billing_country_id', xtc_get_countries('', 1), $billing_countries_id); ?> </td> </tr>
----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com (c) 2003 nextcommerce (loginbox.php,v 1.10 2003/08/17); www.nextcommerce.org (c) 2006 XT-Commerce Released under the GNU General Public License ----------------------------------------------------------------------------------------- Third Party contributions: Loginbox V1.0 Aubrey Kilian <*****@*****.**> Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ if (!isset($_SESSION['customer_id'])) { require_once DIR_FS_INC . 'xtc_image_submit.inc.php'; require_once DIR_FS_INC . 'xtc_draw_password_field.inc.php'; $box_smarty = new smarty(); $box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); $box_smarty->assign('FORM_ACTION', '<form id="loginbox" method="post" action="' . xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . '">'); $box_smarty->assign('FIELD_EMAIL', xtc_draw_input_field('email_address', '', 'maxlength="50" style="width: 100%!important;""')); $box_smarty->assign('FIELD_PWD', xtc_draw_password_field('password', '', 'maxlength="30" style="width: 100%!important;""')); $box_smarty->assign('BUTTON', xtc_image_submit('button_login_small.gif', IMAGE_BUTTON_LOGIN)); $box_smarty->assign('LINK_LOST_PASSWORD', xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT, '', 'SSL')); $box_smarty->assign('FORM_END', '</form>'); $box_smarty->assign('BOX_CONTENT', ''); $box_smarty->caching = 0; $box_smarty->assign('language', $_SESSION['language']); $box_loginbox = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_login.html'); $smarty->assign('box_LOGIN', $box_loginbox); }
$newpass = xtc_create_random_value(ENTRY_PASSWORD_MIN_LENGTH); $crypted_password = xtc_encrypt_password($newpass); xtc_db_query("update " . TABLE_AFFILIATE . " set affiliate_password = '******' where affiliate_id = '" . $check_affiliate['affiliate_id'] . "'"); xtc_php_mail(AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, $_POST['email_address'], $check_affiliate['affiliate_firstname'] . " " . $check_affiliate['affiliate_lastname'], '', AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, '', '', EMAIL_PASSWORD_REMINDER_SUBJECT, nl2br(sprintf(EMAIL_PASSWORD_REMINDER_BODY, $newpass)), nl2br(sprintf(EMAIL_PASSWORD_REMINDER_BODY, $newpass))); if (!isset($mail_error)) { xtc_redirect(xtc_href_link(FILENAME_AFFILIATE, 'info_message=' . urlencode(TEXT_PASSWORD_SENT), 'SSL', true, false)); } else { echo $mail_error; } } else { xtc_redirect(xtc_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, 'email=nonexistent', 'SSL')); } } else { $breadcrumb->add(NAVBAR_TITLE, xtc_href_link(FILENAME_AFFILIATE, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_PASSWORD_FORGOTTEN, xtc_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, '', 'SSL')); require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('FORM_ACTION', xtc_draw_form('password_forgotten', xtc_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, 'action=process', 'SSL'))); $smarty->assign('INPUT_EMAIL', xtc_draw_input_field('email_address', '', 'maxlength="96"')); $smarty->assign('LINK_AFFILIATE', '<a href="' . xtc_href_link(FILENAME_AFFILIATE, '', 'SSL') . '">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'); $smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); if (isset($_GET['email']) && $_GET['email'] == 'nonexistent') { $smarty->assign('email_nonexistent', 'true'); } } $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/affiliate_password_forgotten.html'); $smarty->assign('main_content', $main_content); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $smarty->display(CURRENT_TEMPLATE . '/index.html');
// EOF - Tomcraft - 2009-11-05 - Advanced contact form (product question) $smarty->assign('CONTACT_CONTENT', $contact_content); //BOF - Dokuman - 2009-12-23 - send contact form information with SSL //$smarty->assign('FORM_ACTION', xtc_draw_form('contact_us', xtc_href_link(FILENAME_CONTENT, 'action=send&coID='.(int) $_GET['coID']))); $smarty->assign('FORM_ACTION', xtc_draw_form('contact_us', xtc_href_link(FILENAME_CONTENT, 'action=send&coID=' . (int) $_GET['coID'], 'SSL'))); //EOF - Dokuman - 2009-12-23 - send contact form information with SSL $smarty->assign('INPUT_NAME', xtc_draw_input_field('name', $error ? $_POST['name'] : $customers_name, 'size="30"')); $smarty->assign('INPUT_EMAIL', xtc_draw_input_field('email', $error ? $_POST['email'] : $email_address, 'size="30"')); $smarty->assign('INPUT_HONEYPOT', xtc_draw_input_field('email2_FT7ughj521dfdf', $error ? $_POST['email2_FT7ughj521dfdf'] : '', 'size="30"')); // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) $smarty->assign('INPUT_PHONE', xtc_draw_input_field('phone', $error ? $_POST['phone'] : $phone, 'size="30"')); $smarty->assign('INPUT_COMPANY', xtc_draw_input_field('company', $error ? $_POST['company'] : $company, 'size="30"')); $smarty->assign('INPUT_STREET', xtc_draw_input_field('street', $error ? $_POST['street'] : $street, 'size="30"')); $smarty->assign('INPUT_POSTCODE', xtc_draw_input_field('postcode', $error ? $_POST['postcode'] : $postcode, 'size="30"')); $smarty->assign('INPUT_CITY', xtc_draw_input_field('city', $error ? $_POST['city'] : $city, 'size="30"')); $smarty->assign('INPUT_FAX', xtc_draw_input_field('fax', $error ? $_POST['fax'] : $fax, 'size="30"')); if (CONTACT_FORM_CONSENT == 'true') { $smarty->assign('CHECKBOX', xtc_draw_checkbox_field('checkbox')); } // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) // BOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? xtc_db_input($_POST['message_body']) : $first_name))); // BOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux. //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? $_POST['message_body'] : $message_body))); $smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 45, 15, $error ? $_POST['message_body'] : $message_body)); // EOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux. // EOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form $smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_send.gif', IMAGE_BUTTON_SEND)); $smarty->assign('FORM_END', '</form>'); } $smarty->assign('language', $_SESSION['language']);
http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(add_a_quickie.php,v 1.10 2001/12/19); www.oscommerce.com Released under the GNU General Public License ----------------------------------------------------------------------------------------- Third Party contribution: Add A Quickie v1.0 Autor Harald Ponce de Leon Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ // reset var $box_smarty = new smarty(); $box_content = ''; $box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); // BOF - GTB - 2010-09-20 - correct the Formular in dependences of the request type SSL / NONSSL $box_smarty->assign('FORM_ACTION', '<form id="quick_add" method="post" action="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=add_a_quickie', $request_type) . '">'); //$box_smarty->assign('FORM_ACTION','<form id="quick_add" method="post" action="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array ('action')) . 'action=add_a_quickie', 'NONSSL') . '">'); // EOF - GTB - 2010-09-20 - correct the Formular in dependences of the request type SSL / NONSSL $box_smarty->assign('INPUT_FIELD', xtc_draw_input_field('quickie', '', 'style="width:170px"')); $box_smarty->assign('SUBMIT_BUTTON', xtc_image_submit('button_add_quick.gif', BOX_HEADING_ADD_PRODUCT_ID)); $box_smarty->assign('FORM_END', '</form>'); $box_smarty->assign('BOX_CONTENT', $box_content); $box_smarty->assign('language', $_SESSION['language']); $box_smarty->caching = 0; $box_add_a_quickie = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_add_a_quickie.html'); $smarty->assign('box_ADD_QUICKIE', $box_add_a_quickie);
function showSpecialsBox() { global $pInfo; //web28 - 2010-07-27 - show products_price // include localized categories specials strings require_once DIR_FS_LANGUAGES . $_SESSION['language'] . '/admin/categories_specials.php'; //BOF web28 - 2010-07-27 - show products_price if (PRICE_IS_BRUTTO == 'true') { $products_price_sp = xtc_round($pInfo->products_price * ((100 + xtc_get_tax_rate($pInfo->products_tax_class_id)) / 100), PRICE_PRECISION); $products_price_netto_sp = TEXT_NETTO . '<strong>' . $pInfo->products_price * (xtc_get_tax_rate($sInfo->products_tax_class_id) + 100) / 100 . '</strong> '; } else { $products_price_sp = xtc_round($pInfo->products_price, PRICE_PRECISION); $products_price_netto_sp = ''; } //EOF web28 - 2010-07-27 - show products_price // if editing an existing product if (isset($_GET['pID'])) { $specials_query = "SELECT p.products_tax_class_id,\n p.products_id,\n p.products_price,\n pd.products_name,\n s.specials_id,\n s.specials_quantity,\n s.specials_new_products_price,\n s.specials_date_added,\n s.specials_last_modified,\n s.expires_date,\n s.status\n FROM " . TABLE_PRODUCTS . " p,\n " . TABLE_PRODUCTS_DESCRIPTION . " pd,\n " . TABLE_SPECIALS . " s\n WHERE p.products_id = pd.products_id\n AND pd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n AND p.products_id = s.products_id\n AND s.products_id = '" . (int) $_GET['pID'] . "'"; //DokuMan - 2011-11-8 - added missing s.status from SP1b $specials_query = xtDBquery($specials_query); // if there exists already a special for this product if (xtc_db_num_rows($specials_query, true) > 0) { $special = xtc_db_fetch_array($specials_query, true); $sInfo = new objectInfo($special); } } $price = $sInfo->products_price; $new_price = $sInfo->specials_new_products_price; $new_price_netto = ''; //web28 - 2010-07-27 - show special_price netto if (PRICE_IS_BRUTTO == 'true') { $price_netto = xtc_round($price, PRICE_PRECISION); if ($price > 0) { $new_price_netto = TEXT_NETTO . '<strong>' . xtc_round($new_price, PRICE_PRECISION) . '</strong>'; //web28 - 2010-07-27 - show special_price netto } $price = $price * (xtc_get_tax_rate($sInfo->products_tax_class_id) + 100) / 100; $new_price = $new_price * (xtc_get_tax_rate($sInfo->products_tax_class_id) + 100) / 100; } $price = xtc_round($price, PRICE_PRECISION); $new_price = xtc_round($new_price, PRICE_PRECISION); // build the expires date in the format YYYY-MM-DD if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0 and $sInfo->expires_date != 0) { $expires_date = substr($sInfo->expires_date, 0, 4) . "-" . substr($sInfo->expires_date, 5, 2) . "-" . substr($sInfo->expires_date, 8, 2); } else { $expires_date = ""; } if ($sInfo->status == 1) { $status = 'checked="checked"'; } else { $status = ''; } // tell the storing script if to update existing special, // or to insert a new one echo xtc_draw_hidden_field('specials_action', isset($_GET['pID']) && xtc_db_num_rows($specials_query, true) > 0 ? "update" : "insert"); echo xtc_draw_hidden_field('tax_rate', xtc_get_tax_rate($pInfo->products_tax_class_id)); //web28 - 2010-07-27 - add hidden field echo xtc_draw_hidden_field('products_price_hidden', $pInfo->products_price); //web28 - 2010-07-27 - FIX wrong specials price if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) { echo xtc_draw_hidden_field('specials_id', $sInfo->specials_id); } ?> <script type="text/javascript"> var specialExpires = new ctlSpiffyCalendarBox("specialExpires", "new_product", "specials_expires","btnDate2","<?php echo $expires_date; ?> ",2); </script> <script language="JavaScript" type="text/JavaScript"> function showSpecial() { //alert(document.getElementById("special").style.display); if (document.getElementById("special").style.display =="none" || document.getElementById("special").style.display =="") { document.getElementById("special").style.display="block"; document.getElementById('butSpecial').innerHTML= '<a href="JavaScript:showSpecial()" class="btn btn-default">« Sonderangebot</a>'; } else { document.getElementById("special").style.display="none"; document.getElementById('butSpecial').innerHTML= '<a href="JavaScript:showSpecial()" class="btn btn-default">Sonderangebot »</a>'; } } </script> <style type='text/css'>#special{display: none;}</style> <noscript> <style type="text/css">#special{display: block;}</style> </noscript> <div id="special"> <div style="padding: 8px 0px 3px 5px;"> <div class="main"> <strong><?php echo SPECIALS_TITLE; ?> </strong> </div> </div> <div class='col-xs-12' style="width: 100%; border: 1px solid; border-color: #aaaaaa; padding:5px; background-color: #f3f3f3;"> <?php if (!isset($_GET['pID'])) { ?> <div class="col-xs-12 col-sm-9 col-md-5 col-lg-5"> <div class="main col-xs-12 col-sm-4"><?php echo TEXT_SPECIALS_NO_PID; ?> </div> </div> <div class='clearfix' ></div> <?php } else { ?> <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5 "> <div class="main col-xs-12 col-sm-4"><?php echo TEXT_PRODUCTS_PRICE; ?> </div> <div class="main col-xs-12 col-sm-4"><?php echo $products_price_sp; echo $products_price_netto_sp; ?> </div> </div> <div class='clearfix' ></div> <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5"> <div class="main col-xs-12 col-sm-4" > <?php echo TEXT_SPECIALS_SPECIAL_PRICE; ?> </div> <div class="main col-xs-12 col-sm-4" > <?php echo xtc_draw_input_field('specials_price', $new_price, 'style="width: 135px"') . ' ' . $new_price_netto; ?> </div> <div class="main col-xs-12 col-sm-4" > <?php if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) { ?> <input type="checkbox" name="specials_delete" value="true" id="input_specials_delete" onclick="if(this.checked==true)return confirm('<?php echo TEXT_INFO_DELETE_INTRO; ?> ');"style="vertical-align:middle;"/><label for="input_specials_delete"> <?php echo TEXT_INFO_HEADING_DELETE_SPECIALS; ?> </label> <?php } ?> </div> </div> <div class='clearfix' ></div> <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5"> <div class="main col-xs-12 col-sm-4"> <?php echo TEXT_SPECIALS_SPECIAL_QUANTITY; ?> </div> <div class="main col-xs-12 col-sm-4"> <?php echo xtc_draw_input_field('specials_quantity', $sInfo->specials_quantity, 'style="width: 135px"'); ?> </div> </div> <div class='clearfix' ></div> <?php if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) { ?> <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5"> <div class="main col-xs-12 col-sm-4"><?php echo TEXT_INFO_DATE_ADDED; ?> </div> <div class="main col-xs-12 col-sm-4"><?php echo xtc_date_short($sInfo->specials_date_added); ?> </div> <div class="main col-xs-12 col-sm-4"> </div> </div> <div class='clearfix' ></div> <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5"> <div class="main col-xs-12 col-sm-4"><?php echo TEXT_INFO_LAST_MODIFIED; ?> </div> <div class="main col-xs-12 col-sm-4"><?php echo xtc_date_short($sInfo->specials_last_modified); ?> </div> <div class="main col-xs-12 col-sm-4"> </div> </div> <div class='clearfix' ></div> <?php } ?> <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5"> <div class="main col-xs-12 col-sm-4"> <?php echo TEXT_SPECIALS_EXPIRES_DATE; ?> </div> <div class="main col-xs-12 col-sm-4"> <script type="text/javascript">specialExpires.writeControl(); specialExpires.dateFormat="yyyy-MM-dd";</script> <noscript> <?php echo xtc_draw_input_field('specials_expires', $expires_date, 'style="width: 135px"'); ?> </noscript> </div> <div class="main col-xs-12 col-sm-4"> <?php if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) { ?> <input type="checkbox" name="specials_status" value="1" id="input_specials_status" style="vertical-align:middle;" <?php echo $status; ?> /><label for="input_specials_status"> <?php echo TEXT_EDIT_STATUS; ?> </label> <?php } ?> </div> </div> <div class='clearfix' ></div> <div class="col-xs-12"> <div class="main" style="padding:3px; background: #D8D8D8;"> <?php echo TEXT_SPECIALS_PRICE_TIP; ?> </div> </div> <?php } ?> </div> </div> <?php }
XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ //header( 'HTTP/1.0 404 Not Found' ); //header( 'Status: 404 Not Found' ); $module_smarty = new Smarty(); $module_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); $module_smarty->assign('language', $_SESSION['language']); $module_smarty->assign('ERROR', $error); $module_smarty->assign('BUTTON', '<a href="javascript:history.back(1)">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'); // Tomcraft - 2010-05-04 - Changed alternative text for the button $module_smarty->assign('language', $_SESSION['language']); // search field $module_smarty->assign('FORM_ACTION', xtc_draw_form('new_find', xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . xtc_hide_session_id()); //WEB28 change NONSSL to $request_type $module_smarty->assign('INPUT_SEARCH', xtc_draw_input_field('keywords', '', 'size="30" maxlength="30"')); $module_smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_quick_find.gif', IMAGE_BUTTON_SEARCH)); $module_smarty->assign('LINK_ADVANCED', xtc_href_link(FILENAME_ADVANCED_SEARCH)); $module_smarty->assign('FORM_END', '</form>'); $module_smarty->caching = 0; $module_smarty->caching = 0; $module = $module_smarty->fetch(CURRENT_TEMPLATE . '/module/error_message.html'); if (strstr($PHP_SELF, FILENAME_PRODUCT_INFO)) { $product_info = $module; } $smarty->assign('main_content', $module);
$cross_sell_inputs_string .= '<br />' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image']) . ' ' . xtc_draw_input_field('cross_sell_group_name[' . $languages[$i]['id'] . ']', $c_name); } if (isset($_SESSION['repopulate_form'])) { unset($_SESSION['repopulate_form']); } $contents[] = array('text' => '<br />' . TEXT_INFO_XSELL_GROUP_NAME . $cross_sell_inputs_string); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_INSERT . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_XSELL_GROUPS, 'page=' . $_GET['page']) . '">' . BUTTON_CANCEL . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_XSELL_GROUP . '</b>'); $contents = array('form' => xtc_draw_form('status', FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $cross_sell_inputs_string = ''; $languages = xtc_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $cross_sell_inputs_string .= '<br />' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image']) . ' ' . xtc_draw_input_field('cross_sell_group_name[' . $languages[$i]['id'] . ']', xtc_get_cross_sell_name($oInfo->products_xsell_grp_name_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br />' . TEXT_INFO_XSELL_GROUP_NAME . $cross_sell_inputs_string); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPDATE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id) . '">' . BUTTON_CANCEL . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_XSELL_GROUP . '</b>'); $contents = array('form' => xtc_draw_form('status', FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $oInfo->orders_status_name . '</b>'); if ($remove_status) { $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_DELETE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id) . '">' . BUTTON_CANCEL . '</a>'); } break; default: if (is_object($oInfo)) {
xtc_db_query("-- product_info.php\n UPDATE " . TABLE_PRODUCTS_DESCRIPTION . "\n SET products_viewed = products_viewed+1\n WHERE products_id = '" . $product->data['products_id'] . "'\n AND language_id = " . $_SESSION['languages_id']); } // Get manufacturer name etc. for the product page $manufacturer_query = xtc_db_query("SELECT m.manufacturers_id,\n m.manufacturers_name,\n m.manufacturers_image,\n mi.manufacturers_url\n FROM " . TABLE_MANUFACTURERS . " m\n LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi\n ON (m.manufacturers_id = mi.manufacturers_id\n AND mi.languages_id = '" . (int) $_SESSION['languages_id'] . "'),\n " . TABLE_PRODUCTS . " p\n WHERE p.products_id = '" . $product->data['products_id'] . "'\n AND p.manufacturers_id = m.manufacturers_id"); if (xtc_db_num_rows($manufacturer_query)) { $manufacturer = xtc_db_fetch_array($manufacturer_query); $info_smarty->assign('MANUFACTURER_IMAGE', !empty($manufacturer['manufacturers_image']) ? DIR_WS_IMAGES . $manufacturer['manufacturers_image'] : ''); $info_smarty->assign('MANUFACTURER', $manufacturer['manufacturers_name']); $info_smarty->assign('MANUFACTURER_LINK', xtc_href_link(FILENAME_DEFAULT, xtc_manufacturer_link($manufacturer['manufacturers_id'], $manufacturer['manufacturers_name']))); } // build products price $products_price = $xtPrice->xtcGetPrice($product->data['products_id'], $format = true, 1, $product->data['products_tax_class_id'], $product->data['products_price'], 1); // check if customer is allowed to add to cart if ($_SESSION['customers_status']['customers_status_show_price'] != '0' && ($_SESSION['customers_status']['customers_fsk18'] == '1' && $product->data['products_fsk18'] == '0' || $_SESSION['customers_status']['customers_fsk18'] != '1')) { $add_pid_to_qty = xtc_draw_hidden_field('products_id', $product->data['products_id']); $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', $hide_qty ? '' : 'size="3"', $hide_qty ? 'hidden' : 'text') . ' ' . $add_pid_to_qty); $info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART)); } // show expiry date of active special products $special_expires_date_query = "SELECT expires_date\n FROM " . TABLE_SPECIALS . "\n WHERE products_id = '" . $product->data['products_id'] . "'\n AND status = '1'"; $special_expires_date_query = xtDBquery($special_expires_date_query); $sDate = xtc_db_fetch_array($special_expires_date_query, true); $info_smarty->assign('PRODUCTS_EXPIRES', $sDate['expires_date'] != '0000-00-00 00:00:00' ? xtc_date_short($sDate['expires_date']) : ''); // FSK18 $info_smarty->assign('PRODUCTS_FSK18', $product->data['products_fsk18'] == '1' ? 'true' : ''); //get shippingstatus image and name if (ACTIVATE_SHIPPING_STATUS == 'true') { $info_smarty->assign('SHIPPING_NAME', $main->getShippingStatusName($product->data['products_shippingtime'])); $info_smarty->assign('SHIPPING_IMAGE', $main->getShippingStatusImage($product->data['products_shippingtime'])); // BOF - Tutorial: Umsetzung der EU-Verbraucherrichtlinie vom 13.06.2014 $info_smarty->assign('SHIPPING_NAME_LINK', $main->getShippingStatusName($product->data['products_shippingtime'], true));
<a href="<?php echo xtc_href_link(FILENAME_CUSTOMERS, 'cID=' . $_GET['cID'] . '&action=edit&special=remove_memo&mID=' . $memo_values['memo_id']); ?> " class="btn btn-default" onclick="return confirm('<?php echo DELETE_ENTRY; ?> ')"><?php echo BUTTON_DELETE; //DokuMan - 2011-07-18 - fixed delete memo button ?> </a> </div> </div> <?php } ?> <div class="col-xs-10"> <div class="main col-xs-12 col-sm-10" style="border-top: 1px solid; border-color: #cccccc;"><strong><?php echo TEXT_TITLE; ?> </strong>:<?php echo xtc_draw_input_field('memo_title'); ?> <br /><?php echo xtc_draw_textarea_field('memo_text', 'soft', '80', '5'); ?> <br /><input type="submit" class="btn btn-default" value="<?php echo BUTTON_INSERT; ?> "></div> </div>
<td class="dataTableConfig col-right"><?php echo TEXT_PAYPAL_MODULE_LINK_SUCCESS_INFO; ?> </td> </tr> <?php } if ($module->code == 'paypalcart') { ?> <tr> <td class="dataTableConfig col-left"><?php echo TEXT_PAYPAL_MODULE_SHIPPING_COST; ?> </td> <td class="dataTableConfig col-middle"><?php echo xtc_draw_input_field('config[profile][MODULE_PAYMENT_' . strtoupper($module->code) . '_SHIPPING_COST]', $paypal->get_config('MODULE_PAYMENT_' . strtoupper($module->code) . '_SHIPPING_COST'), 'style="width: 300px;"'); ?> </td> <td class="dataTableConfig col-right"><?php echo TEXT_PAYPAL_MODULE_SHIPPING_COST_INFO; ?> </td> </tr> <tr> <td class="dataTableConfig col-left"><?php echo TEXT_PAYPAL_MODULE_LINK_PRODUCT; ?> </td> <td class="dataTableConfig col-middle"><?php echo draw_on_off_selection('config[profile][MODULE_PAYMENT_' . strtoupper($module->code) . '_SHOW_PRODUCT]', $status_array, $paypal->get_config('MODULE_PAYMENT_' . strtoupper($module->code) . '_SHOW_PRODUCT') == '1' ? true : false); ?>
<td class="dataTableConfig col-middle"><?php echo xtc_draw_input_field('config[presentation][brand_name]', '', 'style="width: 300px;"'); ?> </td> <td class="dataTableConfig col-right"><?php echo TEXT_PAYPAL_PROFILE_BRAND_INFO; ?> </td> </tr> <tr> <td class="dataTableConfig col-left"><?php echo TEXT_PAYPAL_PROFILE_LOGO; ?> </td> <td class="dataTableConfig col-middle"><?php echo xtc_draw_input_field('config[presentation][logo_image]', '', 'style="width: 300px;"'); ?> </td> <td class="dataTableConfig col-right"><?php echo TEXT_PAYPAL_PROFILE_LOGO_INFO; ?> </td> </tr> <tr> <td class="dataTableConfig col-left"><?php echo TEXT_PAYPAL_PROFILE_LOCALE; ?> </td> <td class="dataTableConfig col-middle"><?php echo xtc_draw_pull_down_menu('config[presentation][locale_code]', $locale_code_array, strtoupper(DEFAULT_LANGUAGE)); ?>
} $smarty->assign('info_message', $info_message); $smarty->assign('account_option', ACCOUNT_OPTIONS); $smarty->assign('BUTTON_NEW_ACCOUNT', '<a href="' . xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'); $smarty->assign('BUTTON_LOGIN', xtc_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN)); $smarty->assign('BUTTON_GUEST', '<a href="' . xtc_href_link(FILENAME_CREATE_GUEST_ACCOUNT, '', 'SSL') . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'); // BOC added review_prod_id to be able to redirect to product_reviews_write when coming from reviews button, and order_id to redirect to account_history_info when coming from Link in change_order_mail, noRiddle //$smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL'))); if (isset($_GET['review_prod_id'])) { $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process&review_prod_id=' . (int) $_GET['review_prod_id'], 'SSL'))); } elseif (isset($_GET['order_id'])) { $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process&order_id=' . (int) $_GET['order_id'], 'SSL'))); } else { $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL'))); } // EOC added review_prod_id and order_id, noRiddle $smarty->assign('INPUT_MAIL', xtc_draw_input_field('email_address')); $smarty->assign('INPUT_PASSWORD', xtc_draw_password_field('password')); $smarty->assign('LINK_LOST_PASSWORD', xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT, '', 'SSL')); $smarty->assign('FORM_END', '</form>'); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/login.html'); $smarty->assign('main_content', $main_content); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; if (!defined('RM')) { $smarty->load_filter('output', 'note'); } $smarty->display(CURRENT_TEMPLATE . '/index.html'); include 'includes/application_bottom.php';
<?php $group_query = xtc_db_query('SELECT customers_status_id, customers_status_name FROM ' . TABLE_CUSTOMERS_STATUS . ' WHERE language_id=' . (int) $_SESSION['languages_id'] . ' ORDER BY customers_status_id ASC'); while ($result = xtc_db_fetch_array($group_query)) { echo xtc_draw_checkbox_field('cg[' . $result['customers_status_id'] . ']', '1') . ' ' . $result['customers_status_name'] . '<br />'; } echo '<br /><br />'; echo xtc_draw_checkbox_field('categories', '1') . ' ' . TEXT_CATEGORIES . '<br />'; echo xtc_draw_checkbox_field('products', '1') . ' ' . TEXT_PRODUCTS . '<br />'; echo xtc_draw_checkbox_field('content', '1') . ' ' . TEXT_CONTENT . '<br />'; echo '<br /><br />'; echo '<strong>' . TEXT_PERMISSION . ':</strong> ' . TEXT_SET . ' ' . xtc_draw_radio_field('permission', 'true', true) . ' ' . TEXT_UNSET . ' ' . xtc_draw_radio_field('permission', 'false', false) . '<br />'; echo '<br /><br />' . xtc_draw_input_field('senden', TEXT_SEND, '', false, 'submit'); ?> </form> </div> </div> </div> </div> <!-- footer //--> <?php require DIR_WS_INCLUDES . 'footer.php'; ?> <!-- footer_eof //--> <br /> </body> </html>
case 'new': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_CARRIER . '</b>'); $contents = array('form' => xtc_draw_form('carrier', FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel . '&action=insert')); $contents[] = array('text' => TEXT_INFO_INSERT_INTRO); $contents[] = array('text' => '<br />' . TEXT_INFO_CARRIER_NAME . '<br />' . xtc_draw_input_field('carrier_name')); $contents[] = array('text' => '<br />' . TEXT_INFO_CARRIER_TRACKING_LINK . '<br />' . xtc_draw_input_field('carrier_tracking_link', '', 'style="width:300px;"')); $contents[] = array('text' => '<br />' . TEXT_INFO_CARRIER_SORT_ORDER . '<br />' . xtc_draw_input_field('carrier_sort_order', $carriersInfo->carrier_sort_order)); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_INSERT . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel) . '">' . BUTTON_CANCEL . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CARRIER . '</b>'); $contents = array('form' => xtc_draw_form('carrier', FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel . '&carrierID=' . $carriersInfo->carrier_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => '<br />' . TEXT_INFO_CARRIER_NAME . '<br />' . xtc_draw_input_field('carrier_name', $carriersInfo->carrier_name)); $contents[] = array('text' => '<br />' . TEXT_INFO_CARRIER_TRACKING_LINK . '<br />' . xtc_draw_input_field('carrier_tracking_link', $carriersInfo->carrier_tracking_link, 'style="width:300px;"')); $contents[] = array('text' => '<br />' . TEXT_INFO_CARRIER_SORT_ORDER . '<br />' . xtc_draw_input_field('carrier_sort_order', $carriersInfo->carrier_sort_order)); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPDATE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel . '&carrierID=' . $carriersInfo->carrier_id) . '">' . BUTTON_CANCEL . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CARRIER . '</b>'); $contents = array('form' => xtc_draw_form('carrier', FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel . '&carrierID=' . $carriersInfo->carrier_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $carriersInfo->carrier_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_DELETE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel . '&carrierID=' . $carriersInfo->carrier_id) . '">' . BUTTON_CANCEL . '</a>'); break; default: if (isset($carriersInfo) && is_object($carriersInfo)) { $heading[] = array('text' => '<b>' . $carriersInfo->carrier_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel . '&carrierID=' . $carriersInfo->carrier_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_PARCEL_CARRIERS, 'page=' . $page_parcel . '&carrierID=' . $carriersInfo->carrier_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>'); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . xtc_date_short($carriersInfo->carrier_date_added)); $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . xtc_date_short($carriersInfo->carrier_last_modified));
?> </td> <td class="pageHeading"><?php echo '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, 'pID=' . $pInfo->affiliate_payment_id . '&action=start_billing') . '">' . xtc_image_button('button_affiliate_billing.gif', IMAGE_AFFILIATE_BILLING) . '</a>'; ?> </td> <td class="pageHeading" align="right"><?php echo xtc_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?> </td> <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo xtc_draw_form('orders', FILENAME_AFFILIATE_PAYMENT, '', 'get'); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . xtc_draw_input_field('sID', '', 'size="12"') . xtc_draw_hidden_field('action', 'edit'); ?> </td> </form></tr> <tr><?php echo xtc_draw_form('status', FILENAME_AFFILIATE_PAYMENT, '', 'get'); ?> <td class="smallText" align="right"><?php echo HEADING_TITLE_STATUS . ' ' . xtc_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_PAYMENTS)), $payments_statuses), '', 'onChange="this.form.submit();"'); ?> </td> </form></tr> </table></td> </tr> </table></td> </tr>
<div class="col-sm-2 col-xs-12" ><?php echo 'Meta Description'; ?> </div> <div class="col-sm-10 col-xs-12" ><?php echo xtc_draw_input_field('cont_meta_description', isset($content['content_meta_description']) ? $content['content_meta_description'] : '', 'size="60"'); ?> </div> </div> <div class="col-xs-12"> <div class="col-sm-2 col-xs-12" ><?php echo 'Meta Keywords'; ?> </div> <div class="col-sm-10 col-xs-12" ><?php echo xtc_draw_input_field('cont_meta_keywords', isset($content['content_meta_keywords']) ? $content['content_meta_keywords'] : '', 'size="60"'); ?> </div> </div> <div class="col-xs-12"> <div class="col-sm-2 col-xs-12" ><?php echo 'Meta Index'; ?> </div> <div class="col-sm-10 col-xs-12" ><?php echo xtc_draw_pull_down_menu('cont_meta_index', array(array('id' => '1', 'text' => 'index'), array('id' => '0', 'text' => 'noindex')), $content['content_meta_index'] == '1' ? $content['content_meta_index'] : '0'); ?> </div> </div> <div class="col-xs-12"> <div class="col-sm-2 col-xs-12" valign="top"><?php
$contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_TITLE . '<br />' . xtc_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"')); $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_NAME . '<br />' . xtc_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"')); $contents[] = array('text' => '<br />' . TEXT_INFO_TAX_RATE . '<br />' . xtc_draw_input_field('tax_rate')); $contents[] = array('text' => '<br />' . TEXT_INFO_RATE_DESCRIPTION . '<br />' . xtc_draw_input_field('tax_description')); $contents[] = array('text' => '<br />' . TEXT_INFO_TAX_RATE_PRIORITY . '<br />' . xtc_draw_input_field('tax_priority')); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_INSERT . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page']) . '">' . BUTTON_CANCEL . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TAX_RATE . '</b>'); $contents = array('form' => xtc_draw_form('rates', FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_TITLE . '<br />' . xtc_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"', $trInfo->tax_class_id)); $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_NAME . '<br />' . xtc_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"', $trInfo->geo_zone_id)); $contents[] = array('text' => '<br />' . TEXT_INFO_TAX_RATE . '<br />' . xtc_draw_input_field('tax_rate', $trInfo->tax_rate)); $contents[] = array('text' => '<br />' . TEXT_INFO_RATE_DESCRIPTION . '<br />' . xtc_draw_input_field('tax_description', $trInfo->tax_description)); $contents[] = array('text' => '<br />' . TEXT_INFO_TAX_RATE_PRIORITY . '<br />' . xtc_draw_input_field('tax_priority', $trInfo->tax_priority)); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPDATE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id) . '">' . BUTTON_CANCEL . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_RATE . '</b>'); $contents = array('form' => xtc_draw_form('rates', FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $trInfo->tax_class_title . ' ' . number_format($trInfo->tax_rate, TAX_DECIMAL_PLACES) . '%</b>'); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_DELETE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id) . '">' . BUTTON_CANCEL . '</a>'); break; default: if (is_object($trInfo)) { $heading[] = array('text' => '<b>' . $trInfo->tax_class_title . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=edit') . '#edit-box">' . BUTTON_EDIT . '</a> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=delete') . '#edit-box">' . BUTTON_DELETE . '</a>'); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . xtc_date_short($trInfo->date_added)); $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . xtc_date_short($trInfo->last_modified));
<div class="col-xs-6 col-sm-2 col-md-5"><?php echo TEXT_OPERATION; ?> </div> <div class="col-xs-6 col-sm-10 col-md-7"><?php echo xtc_draw_pull_down_menu('rules[customer][operation]', $operations, isset($grouped['customer']) ? $grouped['customer'][0] : 0); ?> </div> </div> <div class="col-xs-12"> <div class="col-xs-6 col-sm-2 col-md-5"><?php echo TEXT_VALUE; ?> </div> <div class="col-xs-6 col-sm-10 col-md-7"><?php echo xtc_draw_input_field('rules[customer][option]', isset($grouped['customer']) ? $grouped['customer'][1] : ''); ?> </div> </div> <div class="col-xs-12"> <div class="col-xs-6 col-sm-2 col-md-5"><?php echo TEXT_CONDITIONS; ?> </div> <div class="col-xs-6 col-sm-10 col-md-7"><?php echo xtc_draw_pull_down_menu('rules[customer][condition]', $conditions, isset($grouped['customer']) ? $grouped['customer'][2] : 0); ?> </div> </div> </div> </div>
// create smarty elements $smarty = new Smarty(); // include needed functions require_once DIR_FS_INC . 'xtc_draw_textarea_field.inc.php'; // include boxes require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php'; if (!isset($_SESSION['affiliate_id'])) { xtc_redirect(xtc_href_link(FILENAME_AFFILIATE, '', 'SSL')); } $breadcrumb->add(NAVBAR_TITLE, xtc_href_link(FILENAME_AFFILIATE, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_BANNERS, xtc_href_link(FILENAME_AFFILIATE_BANNERS)); $affiliate_banners_values = xtc_db_query("select * from " . TABLE_AFFILIATE_BANNERS . " order by affiliate_banners_title"); require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('affiliate_banners_title', $affiliate_banners['affiliate_banners_title']); $smarty->assign('FORM_ACTION', xtc_draw_form('individual_banner', xtc_href_link(FILENAME_AFFILIATE_BANNERS))); $smarty->assign('INPUT_BANNER_ID', xtc_draw_input_field('individual_banner_id', '', 'size="5"')); $smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); if (xtc_not_null($_POST['individual_banner_id']) || xtc_not_null($_GET['individual_banner_id'])) { if (xtc_not_null($_POST['individual_banner_id'])) { $individual_banner_id = $_POST['individual_banner_id']; } if ($_GET['individual_banner_id']) { $individual_banner_id = $_GET['individual_banner_id']; } $affiliate_pbanners_values = xtc_db_query("select p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $individual_banner_id . "' and pd.products_id = '" . $individual_banner_id . "' and p.products_status = '1' and pd.language_id = '" . $_SESSION['languages_id'] . "'"); if ($affiliate_pbanners = xtc_db_fetch_array($affiliate_pbanners_values)) { switch (AFFILIATE_KIND_OF_BANNERS) { case 1: $link = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $_SESSION['affiliate_id'] . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['affiliate_banners_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '"></a>'; break; case 2:
<div class="col-xs-12 col-sm-3"><?php echo TEXT_PAYPAL_TRANSACTION_AUTH_OPEN; ?> </div> <div class="col-xs-12 col-sm-9"><?php echo $ipn_data['mc_authorization'] - $ipn_data['mc_captured'] . ' ' . $ipn_data['mc_currency']; ?> </div> </div> <div class="col-xs-12"> <div class="col-xs-12 col-sm-3"><?php echo TEXT_PAYPAL_TRANSACTION_AMOUNT; ?> </div> <div class="col-xs-12 col-sm-9"><?php echo xtc_draw_input_field('capture_amount', $ipn_data['mc_authorization'] - $ipn_data['mc_captured'], 'size="10"'); ?> </div> </div> <div class="col-xs-12"> <div class="col-xs-12 col-sm-3"><?php echo TEXT_PAYPAL_REFUND_NOTE; ?> </div> <div class="col-xs-12 col-sm-9"> <?php echo xtc_draw_textarea_field('refund_info', '', '50', '5', ''); ?> </div> </div> <input type="submit" class="btn btn-default" value="<?php
<div class="pp_capture pp_box"> <div class="pp_boxheading"><?php echo TEXT_PAYPAL_REFUND; ?> </div> <?php echo xtc_draw_form('capture', FILENAME_ORDERS, xtc_get_all_get_params()); echo xtc_draw_hidden_field('cmd', 'refund'); echo '<div class="refund_row">'; echo '<div class="' . (10 - $count['refund'] > 0 ? 'info_message' : 'error_message') . '">' . TEXT_PAYPAL_REFUND_LEFT . ' ' . (10 - $count['refund']) . '</div>'; echo '<br/>'; echo '<label for="refund_comment" style="vertical-align: top; margin-top: 5px;">' . TEXT_PAYPAL_REFUND_COMMENT . '</label>'; echo xtc_draw_textarea_field('refund_comment', '', '60', '8', '', 'id="refund_comment"'); echo '<br/>'; echo '<label for="refund_price">' . TEXT_PAYPAL_REFUND_AMOUNT . '</label>'; echo xtc_draw_input_field('refund_price', '', 'id="refund_price" style="width: 135px"'); echo '</div>'; ?> <br /> <input type="submit" class="button" name="refund_submit" value="<?php echo TEXT_PAYPAL_REFUND_SUBMIT; ?> "> </form> </div> <?php } ?> </td> </tr> </table>
</p> </div> <div class="col-xs-12"> <?php echo xtc_draw_form('search', FILENAME_CUSTOMERS, '', 'get'); ?> <div class="col-sm-4 col-xs-12 pageHeading"><?php echo '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_CREATE_ACCOUNT) . '">' . BUTTON_CREATE_ACCOUNT . '</a>'; ?> </div> <div class="col-sm-4 col-xs-12 pageHeading" align="right"><?php echo xtc_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?> </div> <div class="col-sm-4 col-xs-12 smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . xtc_draw_input_field('search') . xtc_draw_hidden_field(xtc_session_name(), xtc_session_id()); ?> </div> </form> </div> <div class="col-xs-12 smallText text-center"> <?php echo xtc_draw_form('status', FILENAME_CUSTOMERS, '', 'get'); $select_data = array(); //BOF - GTB - 2011-02-03 - show selected customer group //$select_data = array (array ('id' => '99', 'text' => TEXT_SELECT), array ('id' => '100', 'text' => TEXT_ALL_CUSTOMERS)); $select_data = array(array('id' => '', 'text' => TEXT_SELECT), array('id' => '100', 'text' => TEXT_ALL_CUSTOMERS)); //<td class="smallText" align="right"><?php echo HEADING_TITLE_STATUS . ' ' . xtc_draw_pull_down_menu('status',xtc_array_merge($select_data, $customers_statuses_array), '99', 'onChange="this.form.submit();"').xtc_draw_hidden_field(xtc_session_name(), xtc_session_id()); </td> //EOF - GTB - 2011-02-03 - show selected customer group ?> <?php
public function getDisplayShip($ship, $missing_text, $wrongShippingFormat) { $active_array[] = array('id' => '1', 'text' => 'ja'); $active_array[] = array('id' => '0', 'text' => 'nein'); $country_array[] = array('id' => '3', 'text' => 'Pauschal'); $country_array[] = array('id' => '1', 'text' => 'Gewicht'); $country_array[] = array('id' => '2', 'text' => 'Preis'); return SHIPPING_TEXT_01 . ' ' . $ship['country'] . '?<br>' . xtc_draw_pull_down_menu('shipping_' . $ship['country'] . '_active', $active_array, $ship['active']) . '<br>' . SHIPPING_TEXT_02 . '<br>' . $wrongShippingFormat . '<br>' . xtc_draw_input_field('shipping_' . $ship['country'] . '_costs', $ship['costs']) . SHIPPING_TEXT_03 . '<br>' . $missing_text . '<br>' . SHIPPING_TEXT_04 . '<br>' . xtc_draw_input_field('shipping_' . $ship['country'] . '_free', $ship['free']) . SHIPPING_TEXT_05 . '<br>' . SHIPPING_TEXT_06 . '<br>' . xtc_draw_pull_down_menu('shipping_' . $ship['country'] . '_type', $country_array, $ship['type']) . '<br><br>'; }
$contents = array(); switch ($_GET['action']) { case 'new': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_TAX_CLASS . '</b>'); $contents = array('form' => xtc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert')); $contents[] = array('text' => TEXT_INFO_INSERT_INTRO); $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_TITLE . '<br />' . xtc_draw_input_field('tax_class_title')); $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_DESCRIPTION . '<br />' . xtc_draw_input_field('tax_class_description')); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_INSERT . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . BUTTON_CANCEL . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TAX_CLASS . '</b>'); $contents = array('form' => xtc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_TITLE . '<br />' . xtc_draw_input_field('tax_class_title', $tcInfo->tax_class_title)); $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_DESCRIPTION . '<br />' . xtc_draw_input_field('tax_class_description', $tcInfo->tax_class_description)); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPDATE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . BUTTON_CANCEL . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>'); $contents = array('form' => xtc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $tcInfo->tax_class_title . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_DELETE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . BUTTON_CANCEL . '</a>'); break; default: if (is_object($tcInfo)) { $heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>'); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . xtc_date_short($tcInfo->date_added)); $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . xtc_date_short($tcInfo->last_modified));
?> </div> </div> <?php $heading = array(); $contents = array(); switch ($action) { case 'edit': $keys = ''; reset($mInfo->keys); while (list($key, $value) = each($mInfo->keys)) { $keys .= '<b>' . $value['title'] . '</b><br />' . $value['description'] . '<br />'; if ($value['set_function']) { eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); } else { $keys .= xtc_draw_input_field('configuration[' . $key . ']', $value['value'], 'class="inputModule"'); //web28- 2010-05-17 - set css definition } $keys .= '<br /><br />'; } $keys = substr($keys, 0, strrpos($keys, '<br /><br />')); $heading[] = array('text' => '<b>' . $mInfo->title . '</b>'); $contents = array('form' => xtc_draw_form('modules', FILENAME_MODULES, 'set=' . $set . '&module=' . $_GET['module'] . '&action=save')); $contents[] = array('text' => $keys); $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPDATE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $_GET['module']) . '">' . BUTTON_CANCEL . '</a>'); break; default: if (isset($mInfo) && is_object($mInfo)) { $heading[] = array('text' => '<b>' . $mInfo->title . '</b>'); if ($mInfo->status == '1') { $keys = '';
} else { $cfgValue = $configuration['configuration_value']; } if ((!isset($_GET['cID']) || isset($_GET['cID']) && $_GET['cID'] == $configuration['configuration_id']) && !isset($cInfo) && substr($action, 0, 3) != 'new') { $cfg_extra_query = xtc_db_query("select configuration_key,configuration_value, date_added, last_modified, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_id = '" . $configuration['configuration_id'] . "'"); $cfg_extra = xtc_db_fetch_array($cfg_extra_query); $cInfo_array = xtc_array_merge($configuration, $cfg_extra); $cInfo = new objectInfo($cInfo_array); } if ($configuration['set_function']) { eval('$value_field = ' . $configuration['set_function'] . '"' . encode_htmlspecialchars($configuration['configuration_value']) . '");'); } else { if ($configuration['configuration_key'] == 'SMTP_PASSWORD') { $value_field = xtc_draw_password_field($configuration['configuration_key'], $configuration['configuration_value']); } else { $value_field = xtc_draw_input_field($configuration['configuration_key'], $configuration['configuration_value'], 'style="width:380px;"'); } } if (strstr($value_field, 'configuration_value')) { $value_field = str_replace('configuration_value', $configuration['configuration_key'], $value_field); } // catch up warnings if no language-text defined for configuration-key $configuration_key_title = strtoupper($configuration['configuration_key'] . '_TITLE'); $configuration_key_desc = strtoupper($configuration['configuration_key'] . '_DESC'); if (defined($configuration_key_title)) { // if language definition $configuration_key_title = constant($configuration_key_title); $configuration_key_desc = constant($configuration_key_desc); } else { // if no language $configuration_key_title = $configuration['configuration_key'];
<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="80" rowspan="2"><?php echo xtc_image(DIR_WS_ICONS . 'heading_customers.gif'); ?> </td> <td class="pageHeading"><?php echo HEADING_TITLE; ?> </td> <td class="pageHeading" align="right"> <?php echo xtc_draw_form('orders', FILENAME_ORDERS, '', 'get'); ?> <?php echo HEADING_TITLE_SEARCH . ' ' . xtc_draw_input_field('oID', '', 'size="12"') . xtc_draw_hidden_field('action', 'edit') . xtc_draw_hidden_field(xtc_session_name(), xtc_session_id()); ?> </form> </td> </tr> <tr> <td class="main" valign="top">Customers</td> <td class="main" valign="top" align="right"><?php echo xtc_draw_form('status', FILENAME_ORDERS, '', 'get'); ?> <?php echo HEADING_TITLE_STATUS . ' ' . xtc_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), array(array('id' => '0', 'text' => TEXT_VALIDATING)), $orders_statuses), '', 'onChange="this.form.submit();"') . xtc_draw_hidden_field(xtc_session_name(), xtc_session_id()); ?> </form></td> </tr> </table>