?> <div class="col-xs-12"> <div class="col-sm-2 col-xs-12 main"><?php echo ENTRY_DATE_OF_BIRTH; ?> </div> <div class="col-sm-10 col-xs-12 main"> <?php if (isset($error) && $error == true) { if (isset($entry_date_of_birth_error) && $entry_date_of_birth_error == true) { echo xtc_draw_input_field('customers_dob', xtc_date_short(isset($customers_dob) ? $customers_dob : ''), 'maxlength="10"') . ' ' . ENTRY_DATE_OF_BIRTH_ERROR; } else { echo xtc_draw_input_field('customers_dob', xtc_date_short(isset($customers_dob) ? $customers_dob : ''), 'maxlength="10"'); } } else { echo xtc_draw_input_field('customers_dob', xtc_date_short(isset($customers_dob) ? $customers_dob : ''), 'maxlength="10"'); } ?> </div> </div> <?php } ?> <div class="col-xs-12"> <div class="col-sm-2 col-xs-12 main"><?php echo ENTRY_EMAIL_ADDRESS; ?> </div> <div class="col-sm-10 col-xs-12 main"> <?php if (isset($error) && $error == true) {
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 }
$info_query = xtc_db_query("SELECT\n customers_info_date_account_created as date_account_created,\n customers_info_date_account_last_modified as date_account_last_modified,\n customers_info_date_of_last_logon as date_last_logon,\n customers_info_number_of_logons as number_of_logons\n FROM " . TABLE_CUSTOMERS_INFO . " WHERE customers_info_id = '" . $cInfo->customers_id . "'"); $info = xtc_db_fetch_array($info_query); $country_query = xtc_db_query("SELECT countries_name FROM " . TABLE_COUNTRIES . " WHERE countries_id = '" . (int) $cInfo->entry_country_id . "'"); $country = xtc_db_fetch_array($country_query); $reviews_query = xtc_db_query("SELECT COUNT(*) as number_of_reviews FROM " . TABLE_REVIEWS . " WHERE customers_id = '" . (int) $cInfo->customers_id . "'"); $reviews = xtc_db_fetch_array($reviews_query); $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($info['date_account_created'])); $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($info['date_account_last_modified'])); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_date_short($info['date_last_logon'])); $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $info['number_of_logons']); $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY . ' ' . $country['countries_name']); $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $reviews['number_of_reviews']); } else { //EOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($cInfo->date_account_created)); $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($cInfo->date_account_last_modified)); // BOF - Tomcraft - 2011-01-16 - Additionally show time for customers last logon time //$contents[] = array ('text' => '<br />'.TEXT_INFO_DATE_LAST_LOGON.' '.xtc_date_short($cInfo->date_last_logon)); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_datetime_short($cInfo->date_last_logon)); // EOF - Tomcraft - 2011-01-16 - Additionally show time for customers last logon time $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); //BOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box } //EOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box } if ($action == 'iplog') { if (isset($_GET['cID'])) { $contents[] = array('text' => '<br /><b>IPLOG :'); $customers_id = xtc_db_prepare_input($_GET['cID']);
} ?> <td class="dataTableContent"><?php echo '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . xtc_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $payments['affiliate_firstname'] . ' ' . $payments['affiliate_lastname']; ?> </td> <td class="dataTableContent" align="right"><?php echo $currencies->format(strip_tags($payments['affiliate_payment'])); ?> </td> <td class="dataTableContent" align="right"><?php echo $currencies->format(strip_tags($payments['affiliate_payment'] + $payments['affiliate_payment_tax'])); ?> </td> <td class="dataTableContent" align="center"><?php echo xtc_date_short($payments['affiliate_payment_date']); ?> </td> <td class="dataTableContent" align="right"><?php echo $payments['affiliate_payment_status_name']; ?> </td> <td class="dataTableContent" align="right"><?php if (is_object($pInfo) && $payments['affiliate_payment_id'] == $pInfo->affiliate_payment_id) { echo xtc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID')) . 'pID=' . $payments['affiliate_payment_id']) . '">' . xtc_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr>
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="button" value="' . BUTTON_DELETE . '"><a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . BUTTON_CANCEL . '</a>'); break; default: if (is_object($oInfo)) { $heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . xtc_datetime_short($oInfo->date_purchased) . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>'); if (AFTERBUY_ACTIVATED == 'true') { $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=afterbuy_send') . '">' . BUTTON_AFTERBUY_SEND . '</a>'); } // RATEPAY START include 'includes/ratepay_order_buttons.php'; // RATEPAY END //$contents[] = array('align' => 'center', 'text' => ''); $contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . xtc_date_short($oInfo->date_purchased)); if (xtc_not_null($oInfo->last_modified)) { $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . xtc_date_short($oInfo->last_modified)); } $contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method); // elari added to display product list for selected order $order = new order($oInfo->orders_id); // BOF - Tomcraft - 2010-04-22 - Added a missing language definition //$contents[] = array ('text' => '<br /><br />'.sizeof($order->products).' Products '); $contents[] = array('text' => '<br /><br />' . sizeof($order->products) . ' ' . TEXT_PRODUCTS); // EOF - Tomcraft - 2010-04-22 - Added a missing language definition for ($i = 0; $i < sizeof($order->products); $i++) { $contents[] = array('text' => $order->products[$i]['qty'] . ' x' . $order->products[$i]['name']); if (sizeof($order->products[$i]['attributes']) > 0) { for ($j = 0; $j < sizeof($order->products[$i]['attributes']); $j++) { $contents[] = array('text' => '<small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>'); } }
/** * Produktdaten einlesen * * @param array $selected_products uebergebene Auswahl */ function LoadData($oID) { global $xtPrice; // --- bof -- changes -- h.koch@hen-vm68.com -- 05.2016 -- //$c_query ="SELECT // customers_status // FROM " . TABLE_ORDERS . " // WHERE // orders_id = '".$oID."'"; $c_query = "SELECT\r\n customers_status,\r\n currency\r\n FROM " . TABLE_ORDERS . "\r\n WHERE\r\n orders_id = '" . $oID . "'"; // --- eof -- changes -- h.koch@hen-vm68.com -- 05.2016 -- $c_query = xtDBquery($c_query); $c_query = xtc_db_fetch_array($c_query); $customers_status = $c_query['customers_status']; $currency = $c_query['currency']; // EUR, CHF // --- changes -- h.koch@hen-vm68.com -- 05.2016 -- //$xtPrice = new xtcPrice( 'EUR', $customers_status ); $xtPrice = new xtcPrice($currency, $customers_status); // --- changes -- h.koch@hen-vm68.com -- 05.2016 -- $order = new order_pdf($oID); $this->data['address_label_customer'] = xtc_address_format($order->customer['format_id'], $order->customer, 0, '', "\n"); $this->data['address_label_shipping'] = xtc_address_format($order->delivery['format_id'], $order->delivery, 0, '', "\n"); $this->data['address_label_payment'] = xtc_address_format($order->billing['format_id'], $order->billing, 0, '', "\n"); $this->data['csID'] = $order->customer['csID']; // get products data $order_total = $order->getTotalData($oID); $this->data['order_data'] = $order->getOrderData($oID); $this->data['order_total'] = $order_total['data']; // assign language to template for caching $this->data['language'] = $_SESSION['language']; $this->data['oID'] = $oID; if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') { include DIR_FS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php'; $payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE')); } $this->data['PAYMENT_METHOD'] = $payment_method; $this->data['COMMENT'] = $order->info['comments']; $this->data['order'] = $order; $this->data['DATE'] = xtc_date_short($order->info['date_purchased']); $this->data['DATE_INVOICE'] = xtc_date_short($order->info['ibn_billdate']); $this->data['ibn_billdate'] = $order->info['ibn_billdate']; $this->data['ibn_billnr'] = $order->info['ibn_billnr']; //echo "data:<pre>"; print_r($this->data); echo "</pre>"; return; }
$tax_rate = $xtPrice->TAX[$product->data['products_tax_class_id']]; $products_options['options_values_price'] = xtc_add_tax($products_options['options_values_price'], $xtPrice->TAX[$product->data['products_tax_class_id']]); } if ($_SESSION['customers_status']['customers_status_show_price'] == 1) { $module_content[sizeof($module_content) - 1]['NAME'] .= ' (' . $products_options['price_prefix'] . $xtPrice->xtcFormat($products_options['options_values_price'], true, 0, true) . ')'; } } } } } $info_smarty->assign('module_content', $module_content); // 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'])); } //products formated price $info_smarty->assign('PRODUCTS_PRICE', $products_price['formated']); //get products vpe $info_smarty->assign('PRODUCTS_VPE', $main->getVPEtext($product->data, $products_price['plain'])); //web28 - 2012-04-17 - use classes function getVPEtext() // products id $info_smarty->assign('PRODUCTS_ID', $product->data['products_id']); // products name
$affiliate_clickthroughs_raw = "select a.*, pd.products_name from " . TABLE_AFFILIATE_CLICKTHROUGHS . " a\n left join " . TABLE_PRODUCTS . " p on (p.products_id = a.affiliate_products_id)\n left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (pd.products_id = p.products_id and pd.language_id = '" . $_SESSION['languages_id'] . "')\n where a.affiliate_id = '" . $_SESSION['affiliate_id'] . "' ORDER BY a.affiliate_clientdate desc"; $affiliate_clickthroughs_split = new splitPageResults($affiliate_clickthroughs_raw, $_GET['page'], MAX_DISPLAY_SEARCH_RESULTS); require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('affiliate_clickthroughs_split_number', $affiliate_clickthroughs_split->number_of_rows); $affiliate_clickthrough_table = ''; if ($affiliate_clickthroughs_split->number_of_rows > 0) { $affiliate_clickthroughs_values = xtc_db_query($affiliate_clickthroughs_split->sql_query); $number_of_clickthroughs = '0'; while ($affiliate_clickthroughs = xtc_db_fetch_array($affiliate_clickthroughs_values)) { $number_of_clickthroughs++; if ($number_of_clickthroughs / 2 == floor($number_of_clickthroughs / 2)) { $affiliate_clickthrough_table .= '<tr class="productListing-even">'; } else { $affiliate_clickthrough_table .= '<tr class="productListing-odd">'; } $affiliate_clickthrough_table .= '<td class="smallText">' . xtc_date_short($affiliate_clickthroughs['affiliate_clientdate']) . '</td>'; if ($affiliate_clickthroughs['affiliate_products_id'] > 0) { $link_to = '<a href="' . xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $affiliate_clickthroughs['affiliate_products_id']) . '" target="_blank">' . $affiliate_clickthroughs['products_name'] . '</a>'; } else { $link_to = "Startpage"; } $affiliate_clickthrough_table .= '<td class="smallText">' . $link_to . '</td>'; $affiliate_clickthrough_table .= '<td class="smallText">' . $affiliate_clickthroughs['affiliate_clientreferer'] . '</td></tr>'; } $smarty->assign('affiliate_clickthrough_table', $affiliate_clickthrough_table); } if ($affiliate_clickthroughs_split->number_of_rows > 0) { $smarty->assign('affiliate_clickthroughs_split_count', $affiliate_clickthroughs_split->display_count(TEXT_DISPLAY_NUMBER_OF_CLICKS)); $smarty->assign('affiliate_clickthroughs_split_links', $affiliate_clickthroughs_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array('page', 'info', 'x', 'y')))); } $smarty->assign('language', $_SESSION['language']);
$smarty->assign('address_label_customer', xtc_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />')); $smarty->assign('address_label_shipping', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />')); $smarty->assign('address_label_payment', xtc_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />')); $smarty->assign('csID', $order->customer['csID']); $smarty->assign('vat_id', $order->customer['vat_id']); // get products data include_once DIR_FS_CATALOG . DIR_WS_CLASSES . 'xtcPrice.php'; $xtPrice = new xtcPrice($order->info['currency'], $order->info['status']); $order_total = $order->getTotalData($order->info['order_id']); $order_data = $order->getOrderData($order->info['order_id']); $smarty->assign('order_data', $order_data); $smarty->assign('order_total', $order_total['data']); // --- bof -- ipdfbill -------- $d = make_billnr($order->info['ibn_billdate'], $order->info['ibn_billnr']); $smarty->assign('IBN_BILLNUMBER', $d); $smarty->assign('IBN_BILLDATE', xtc_date_short($order->info['ibn_billdate'] . ' 00:00:00')); // --- eof -- ipdfbill -------- // assign language to template for caching $languages_query = xtc_db_query("select code, language_charset from " . TABLE_LANGUAGES . " WHERE directory ='" . $order->info['language'] . "'"); $langcode = xtc_db_fetch_array($languages_query); $smarty->assign('langcode', $langcode['code']); $smarty->assign('charset', $langcode['language_charset']); $smarty->assign('language', $order->info['language']); $smarty->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/'); $smarty->assign('oID', $order->info['order_id']); if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') { include DIR_FS_CATALOG . 'lang/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php'; $payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE')); $smarty->assign('PAYMENT_METHOD', $payment_method); if (strpos($order->info['payment_method'], 'paypalplus') !== false) { require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalInfo.php';
$number_of_sales = '0'; while ($affiliate_sales = xtc_db_fetch_array($affiliate_sales_values)) { $number_of_sales++; if ($number_of_sales / 2 == floor($number_of_sales / 2)) { echo ' <tr class="dataTableRowSelected">'; } else { echo ' <tr class="dataTableRow">'; } $link_to = '<a href="orders.php?action=edit&oID=' . $affiliate_sales['affiliate_orders_id'] . '">' . $affiliate_sales['affiliate_orders_id'] . '</a>'; ?> <td class="dataTableContent"><?php echo $affiliate_sales['affiliate_firstname'] . " " . $affiliate_sales['affiliate_lastname']; ?> </td> <td class="dataTableContent" align="center"><?php echo xtc_date_short($affiliate_sales['affiliate_date']); ?> </td> <td class="dataTableContent" align="right"><?php echo $link_to; ?> </td> <td class="dataTableContent" align="right"> <?php echo $currencies->display_price($affiliate_sales['affiliate_value'], ''); ?> </td> <td class="dataTableContent" align="right"><?php echo $affiliate_sales['affiliate_percent'] . "%"; ?> </td> <td class="dataTableContent" align="right"> <?php
case 'confirm': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>'); $contents = array('form' => xtc_draw_form('affiliate', FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $aInfo->affiliate_firstname . ' ' . $aInfo->affiliate_lastname . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . xtc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . xtc_href_link(FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($aInfo)) { $heading[] = array('text' => '<b>' . $aInfo->affiliate_firstname . ' ' . $aInfo->affiliate_lastname . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=edit') . '">' . xtc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE, xtc_get_all_get_params(array('acID', 'action')) . 'acID=' . $aInfo->affiliate_id . '&action=confirm') . '">' . xtc_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE_CONTACT, 'selected_box=affiliate&affiliate=' . $aInfo->affiliate_email_address) . '">' . xtc_image_button('button_email.gif', IMAGE_EMAIL) . '</a>'); $affiliate_sales_raw = "select count(*) as count, sum(affiliate_value) as total, sum(affiliate_payment) as payment from " . TABLE_AFFILIATE_SALES . " a left join " . TABLE_ORDERS . " o on (a.affiliate_orders_id=o.orders_id) where o.orders_status >= " . AFFILIATE_PAYMENT_ORDER_MIN_STATUS . " and affiliate_id = '" . $aInfo->affiliate_id . "'"; $affiliate_sales_values = xtc_db_query($affiliate_sales_raw); $affiliate_sales = xtc_db_fetch_array($affiliate_sales_values); $contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($aInfo->date_account_created)); $contents[] = array('text' => '' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($aInfo->date_account_last_modified)); $contents[] = array('text' => '' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_date_short($aInfo->date_last_logon)); $contents[] = array('text' => '' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $aInfo->number_of_logons); $contents[] = array('text' => '' . TEXT_INFO_COMMISSION . ' ' . $aInfo->affiliate_commission_percent . ' %'); $contents[] = array('text' => '' . TEXT_INFO_COUNTRY . ' ' . $aInfo->countries_name); $contents[] = array('text' => '' . TEXT_INFO_NUMBER_OF_SALES . ' ' . $affiliate_sales['count'], ''); $contents[] = array('text' => '' . TEXT_INFO_SALES_TOTAL . ' ' . $currencies->display_price($affiliate_sales['total'], '')); $contents[] = array('text' => '' . TEXT_INFO_AFFILIATE_TOTAL . ' ' . $currencies->display_price($affiliate_sales['payment'], '')); } break; } if (xtc_not_null($heading) && xtc_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; }
echo $products_split->display_count($products_query_numrows, '20', $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS_EXPECTED); ?> </div> <div class="smallText col-xs-6 text-right" ><?php echo $products_split->display_links($products_query_numrows, '20', MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?> </div> </div> </div> <?php $heading = array(); $contents = array(); if (is_object($pInfo)) { $heading[] = array('text' => '<b>' . $pInfo->products_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_CATEGORIES, 'pID=' . $pInfo->products_id . '&action=new_product') . '">' . BUTTON_EDIT . '</a>'); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_EXPECTED . ' ' . xtc_date_short($pInfo->products_date_available)); } if (xtc_not_null($heading) && xtc_not_null($contents)) { echo '<div class="col-md-3 col-sm-12 col-xs-12 pull-right edit-box-class">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo '</div>' . "\n"; ?> <script> //responsive_table $('#responsive_table').addClass('col-md-9'); </script> <?php } ?> </div></div>
} else { $lastname_content = xtc_draw_input_fieldNote(array('name' => 'a_lastname', 'text' => ' ' . ENTRY_FIRST_NAME_TEXT), $affiliate['affiliate_lastname']); } $module_smarty->assign('lastname_content', $lastname_content); if (ACCOUNT_DOB == 'true') { $module_smarty->assign('ACCOUNT_DOB', 'true'); if ($is_read_only == true) { $dob_content = xtc_date_short($affiliate['affiliate_dob']); } elseif ($error == true) { if ($entry_date_of_birth_error == true) { $dob_content = xtc_draw_input_fieldNote(array('name' => 'a_dob', 'text' => ' ' . ENTRY_DATE_OF_BIRTH_ERROR)); } else { $dob_content = $a_dob . xtc_draw_hidden_field('a_dob'); } } else { $dob_content = xtc_draw_input_fieldNote(array('name' => 'a_dob', 'text' => ' ' . ENTRY_DATE_OF_BIRTH_TEXT), xtc_date_short($affiliate['affiliate_dob'])); } $module_smarty->assign('dob_content', $dob_content); } if ($is_read_only == true) { $email_content = $affiliate['affiliate_email_address']; } elseif ($error == true) { if ($entry_email_address_error == true) { $email_content = xtc_draw_input_fieldNote(array('name' => 'a_email_address', 'text' => ' ' . ENTRY_EMAIL_ADDRESS_ERROR)); } elseif ($entry_email_address_check_error == true) { $email_content = xtc_draw_input_fieldNote(array('name' => 'a_email_address', 'text' => ' ' . ENTRY_EMAIL_ADDRESS_CHECK_ERROR)); } elseif ($entry_email_address_exists == true) { $email_content = xtc_draw_input_fieldNote(array('name' => 'a_email_address', 'text' => ' ' . ENTRY_EMAIL_ADDRESS_ERROR_EXISTS)); } else { $email_content = $a_email_address . xtc_draw_hidden_field('a_email_address'); }
switch ($coupon['coupon_type']) { case 'F': $text_coupon_help .= sprintf(TEXT_COUPON_HELP_FIXED, $xtPrice->xtcFormat($coupon['coupon_amount'], true)); break; case 'P': $text_coupon_help .= sprintf(TEXT_COUPON_HELP_FIXED, number_format($coupon['coupon_amount'], 2) . '%'); break; case 'S': $text_coupon_help .= TEXT_COUPON_HELP_FREESHIP; break; default: } if ($coupon['coupon_minimum_order'] > 0) { $text_coupon_help .= sprintf(TEXT_COUPON_HELP_MINORDER, $xtPrice->xtcFormat($coupon['coupon_minimum_order'], true)); } $text_coupon_help .= sprintf(TEXT_COUPON_HELP_DATE, xtc_date_short($coupon['coupon_start_date']), xtc_date_short($coupon['coupon_expire_date'])); $text_coupon_help .= '<strong>' . TEXT_COUPON_HELP_RESTRICT . '</strong>'; $text_coupon_help .= '<br /><br />' . TEXT_COUPON_HELP_CATEGORIES; $coupon_get = xtc_db_query("select restrict_to_categories from " . TABLE_COUPONS . " where coupon_id='" . (int) $_GET['cID'] . "'"); $get_result = xtc_db_fetch_array($coupon_get); $cat_ids = explode(",", $get_result['restrict_to_categories']); // Hetfield - 2009-08-18 - replaced deprecated function split with explode to be ready for PHP >= 5.3 for ($i = 0; $i < count($cat_ids); $i++) { $result = xtc_db_query("SELECT * FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id = cd.categories_id and cd.language_id = '" . $_SESSION['languages_id'] . "' and c.categories_id='" . $cat_ids[$i] . "'"); if ($row = xtc_db_fetch_array($result)) { $cats .= '<br />' . $row["categories_name"]; } } if ($cats == '') { $cats = '<br />NONE'; }
if (!xtc_not_null($search)) { $buttons_new_elements = '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '">' . BUTTON_NEW_CATEGORIES . '</a>'; if ($cPath != '0') { $buttons_new_elements .= ' '; $buttons_new_elements .= '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '">' . BUTTON_NEW_PRODUCTS . '</a>'; } $contents[] = array('align' => 'center', 'text' => $buttons_new_elements); } //Informations $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_INFORMATIONS . '</div>'); $contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_DATE_ADDED . ' ' . xtc_date_short($pInfo->products_date_added) . '</div>'); if (xtc_not_null($pInfo->products_last_modified)) { $contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_LAST_MODIFIED . ' ' . xtc_date_short($pInfo->products_last_modified) . '</div>'); } if (date('Y-m-d') < $pInfo->products_date_available) { $contents[] = array('text' => '<div style="padding-left: 30px;">' . TEXT_DATE_AVAILABLE . ' ' . xtc_date_short($pInfo->products_date_available) . '</div>'); } // START IN-SOLUTION Berechung des Bruttopreises $price = $pInfo->products_price; $price = xtc_round($price, PRICE_PRECISION); $price_string = '' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($price); if (PRICE_IS_BRUTTO == 'true' && ($_GET['read'] == 'only' || $action != 'new_product_preview')) { $price_netto = xtc_round($price, PRICE_PRECISION); $tax_query = xtc_db_query("select tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . $pInfo->products_tax_class_id . "' "); $tax = xtc_db_fetch_array($tax_query); $price = $price * ($tax[tax_rate] + 100) / 100; $price_string = '' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($price) . '<br/>' . TXT_NETTO . $currencies->format($price_netto); } $contents[] = array('text' => '<div style="padding-left: 30px;">' . $price_string . '</div><div style="padding-left: 30px;">' . TEXT_PRODUCTS_DISCOUNT_ALLOWED_INFO . ' ' . $pInfo->products_discount_allowed . ' %</div><div style="padding-left: 30px;">' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity . '</div>'); // END IN-SOLUTION //$contents[] = array('text' => '<br />' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($pInfo->products_price) . '<br />' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity);
$contents[] = array('align' => 'center', 'text' => '<br />' . xtc_image(DIR_WS_IMAGES . 'graphs/banner_infobox-' . $banner_id . '.' . $banner_extension)); } else { include DIR_WS_FUNCTIONS . 'html_graphs.php'; $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_banner_graph_infoBox($bInfo->banners_id, '3')); } $contents[] = array('text' => xtc_image(DIR_WS_IMAGES . 'graph_hbar_blue.gif', 'Blue', '5', '5') . ' ' . TEXT_BANNERS_BANNER_VIEWS . '<br />' . xtc_image(DIR_WS_IMAGES . 'graph_hbar_red.gif', 'Red', '5', '5') . ' ' . TEXT_BANNERS_BANNER_CLICKS); if ($bInfo->date_scheduled) { $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_SCHEDULED_AT_DATE, xtc_date_short($bInfo->date_scheduled))); } if ($bInfo->expires_date) { $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_EXPIRES_AT_DATE, xtc_date_short($bInfo->expires_date))); } elseif ($bInfo->expires_impressions) { $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_EXPIRES_AT_IMPRESSIONS, $bInfo->expires_impressions)); } if ($bInfo->date_status_change) { $contents[] = array('text' => '<br />' . sprintf(TEXT_BANNERS_STATUS_CHANGE, xtc_date_short($bInfo->date_status_change))); } } break; } if (xtc_not_null($heading) && xtc_not_null($contents)) { echo '<div class="col-md-4 hidden-xs hidden-sm pull-right">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo '</div>' . "\n"; ?> <script> //responsive_table $('#responsive_table').addClass('col-md-8'); </script> <?php
$oID = $order->info['order_id']; if (isset($send_by_admin)) { require DIR_FS_CATALOG_MODULES . 'payment/banktransfer.php'; include DIR_FS_LANGUAGES . $order->info['language'] . '/modules/payment/banktransfer.php'; $payment_modules = new banktransfer(); } $rec = $payment_modules->info(); // SEPA info required? if (!empty($rec['banktransfer_iban'])) { if (!function_exists('xtc_date_short')) { require_once DIR_FS_INC . 'xtc_date_short.inc.php'; } $smarty->assign('PAYMENT_BANKTRANSFER_CREDITOR_ID', MODULE_PAYMENT_BANKTRANSFER_CI); // set due date based on date_purchased and due_delay $due_date = date('Y-m-d', strtotime($order->info['date_purchased'] . ' + ' . MODULE_PAYMENT_BANKTRANSFER_DUE_DELAY . ' days')); $smarty->assign('PAYMENT_BANKTRANSFER_DUE_DATE', xtc_date_short($due_date)); $total = $xtPrice->xtcFormat($order_total['total'], true); $smarty->assign('PAYMENT_BANKTRANSFER_TOTAL', $total); $smarty->assign('PAYMENT_BANKTRANSFER_MANDATE_REFERENCE', MODULE_PAYMENT_BANKTRANSFER_REFERENCE_PREFIX . $oID); $smarty->assign('PAYMENT_BANKTRANSFER_IBAN', $rec['banktransfer_iban']); $smarty->assign('PAYMENT_BANKTRANSFER_BANKNAME', $rec['banktransfer_bankname']); $sepa_info = $smarty->fetch('db:sepa_info.html'); $smarty->assign('PAYMENT_INFO_HTML', $sepa_info); $smarty->assign('PAYMENT_INFO_TXT', str_replace("<br />", "\n", $sepa_info)); // separate pre-notification necessary? if ($rec['banktransfer_owner_email'] != $order->customer['email_address']) { $banktransfer_owner_email = $rec['banktransfer_owner_email']; $sepa_html_mail = $smarty->fetch('db:sepa_mail.html'); $sepa_txt_mail = $smarty->fetch('db:sepa_mail.txt'); // no pre-notification in order mail $smarty->clear_assign('PAYMENT_INFO_HTML');
$affiliate_clickthroughs_values = xtc_db_query($affiliate_clickthroughs_raw); $number_of_clickthroughs = '0'; while ($affiliate_clickthroughs = xtc_db_fetch_array($affiliate_clickthroughs_values)) { $number_of_clickthroughs++; if ($number_of_clickthroughs / 2 == floor($number_of_clickthroughs / 2)) { echo ' <tr class="productListing-even">'; } else { echo ' <tr class="productListing-odd">'; } ?> <td class="dataTableContent"><?php echo $affiliate_clickthroughs['affiliate_firstname'] . " " . $affiliate_clickthroughs['affiliate_lastname']; ?> </td> <td class="dataTableContent" align="center"><?php echo xtc_date_short($affiliate_clickthroughs['affiliate_clientdate']); ?> </td> <?php if ($affiliate_clickthroughs['affiliate_products_id'] > 0) { $link_to = '<a href="' . xtc_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $affiliate_clickthroughs['affiliate_products_id']) . '" target="_blank">' . $affiliate_clickthroughs['products_name'] . '</a>'; } else { $link_to = "Startpage"; } ?> <td class="dataTableContent"><?php echo $link_to; ?> </td> <td class="dataTableContent" align="center"><?php echo $affiliate_clickthroughs['affiliate_clientbrowser'];
?> </td> <?php break; case '4': ?> <td class="dataTableContent" align="right"><?php echo xtc_date_long(date("Y-m-d\\ H:i:s", $sr->showDate)); ?> </td> <?php break; default: ?> <td class="dataTableContent" align="right"><?php echo xtc_date_short(date("Y-m-d\\ H:i:s", $sr->showDate)) . " - " . xtc_date_short(date("Y-m-d\\ H:i:s", $sr->showDateEnd)); ?> </td> <?php } ?> <td class="dataTableContent" align="right"><?php echo isset($info[0]['order']) ? $info[0]['order'] : ' '; /*Dokuman - 2010-10-31 - fix empty <td>line without visible dashes*/ ?> </td> <td class="dataTableContent" align="right"><?php echo isset($info[$last - 1]['totitem']) ? $info[$last - 1]['totitem'] : ' '; /*Dokuman - 2010-10-31 - Undefined offset: -1 */ ?> </td>
$products_history[] = $product->buildDataArray($history_product); } $i++; } $order_content = ''; if (xtc_count_customer_orders() > 0) { $orders_query = xtc_db_query("select\n\t o.orders_id,\n\t o.date_purchased,\n\t o.delivery_name,\n\t o.delivery_country,\n\t o.billing_name,\n\t o.billing_country,\n\t ot.text as order_total,\n\t s.orders_status_name\n\t from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . "\n\t ot, " . TABLE_ORDERS_STATUS . " s\n\t where o.customers_id = '" . (int) $_SESSION['customer_id'] . "'\n\t and o.orders_id = ot.orders_id\n\t and ot.class = 'ot_total'\n\t and o.orders_status = s.orders_status_id\n\t and s.language_id = '" . (int) $_SESSION['languages_id'] . "'\n\t order by orders_id desc limit 3"); while ($orders = xtc_db_fetch_array($orders_query)) { if (xtc_not_null($orders['delivery_name'])) { $order_name = $orders['delivery_name']; $order_country = $orders['delivery_country']; } else { $order_name = $orders['billing_name']; $order_country = $orders['billing_country']; } $order_content[] = array('ORDER_ID' => $orders['orders_id'], 'ORDER_DATE' => xtc_date_short($orders['date_purchased']), 'ORDER_STATUS' => $orders['orders_status_name'], 'ORDER_TOTAL' => $orders['order_total'], 'ORDER_LINK' => xtc_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'), 'ORDER_BUTTON' => '<a href="' . xtc_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '">' . xtc_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>'); require_once DIR_FS_INC . 'xtc_get_tracking_link.php'; $order_content[count($order_content) - 1]['TRACKING_LINKS'] = xtc_get_tracking_link($orders['orders_id']); } } $smarty->assign('LINK_EDIT', xtc_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL')); $smarty->assign('LINK_ADDRESS', xtc_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); $smarty->assign('LINK_PASSWORD', xtc_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL')); //BOF - Dokuman - 2009-08-21 - Added 'delete account' functionality for customers //Link_Delete button will not work for Admin (ID1) or not logged in users if (isset($_SESSION['customer_id']) && $_SESSION['customer_id'] != '1') { $smarty->assign('LINK_DELETE', xtc_href_link(FILENAME_ACCOUNT_DELETE, '', 'SSL')); } //EOF - Dokuman - 2009-08-21 - Added 'delete account' functionality for customers if (!isset($_SESSION['customer_id'])) { $smarty->assign('LINK_LOGIN', xtc_href_link(FILENAME_LOGIN, '', 'SSL'));
$order_total[] = array('TITLE' => $oder_total_values['title'], 'CLASS' => $oder_total_values['class'], 'VALUE' => $oder_total_values['value'], 'TEXT' => $oder_total_values['text']); if ($oder_total_values['class'] = 'ot_total') { $total = $oder_total_values['value']; } } // assign language to template for caching $smarty->assign('language', $_SESSION['language']); $smarty->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/'); $smarty->assign('oID', $_GET['oID']); if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') { include DIR_FS_CATALOG . 'lang/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php'; $payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE')); $smarty->assign('PAYMENT_METHOD', $payment_method); } $smarty->assign('COMMENTS', $order->info['comments']); $smarty->assign('DATE', xtc_date_short($order->info['date_purchased'])); $smarty->assign('order_data', $order_data); $smarty->assign('order_total', $order_total); // Get the RatePAY stuff for the Invoice $sql = "select descriptor from pi_ratepay_rate_orders where order_number = '" . xtc_db_input($_GET['oID']) . "'"; $query = xtc_db_query($sql); $descriptorArray = xtc_db_fetch_array($query); require_once '../includes/modules/payment/pi_ratepay_rate.php'; $piRatepay = new pi_ratepay_rate(); $accountHolder = $piRatepay->merchantName; $bank = $piRatepay->bankName; $sortCode = $piRatepay->sortCode; $accountNr = $piRatepay->accountNr; $descriptor = $descriptorArray['descriptor']; $iban = $piRatepay->iban; $swift = $piRatepay->swift;
/** * getReviewsAverage * * @return array */ function getReviews() { $data_reviews = array(); $reviews_query = xtDBquery("SELECT r.reviews_rating,\n r.reviews_id,\n r.customers_name,\n r.date_added,\n r.last_modified,\n r.reviews_read,\n rd.reviews_text\n FROM " . TABLE_REVIEWS . " r,\n " . TABLE_REVIEWS_DESCRIPTION . " rd\n WHERE r.products_id = '" . $this->pID . "'\n AND r.reviews_id = rd.reviews_id\n AND rd.languages_id = '" . (int) $_SESSION['languages_id'] . "'\n ORDER BY reviews_id DESC\n "); if (xtc_db_num_rows($reviews_query, true)) { $row = 0; $data_reviews = array(); while ($reviews = xtc_db_fetch_array($reviews_query, true)) { $row++; $data_reviews[] = array('AUTHOR' => $reviews['customers_name'], 'DATE' => xtc_date_short($reviews['date_added']), 'RATING' => xtc_image('templates/' . CURRENT_TEMPLATE . '/img/stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating']), '', '', 'itemprop="rating"'), 'TEXT' => nl2br($reviews['reviews_text'])); if ($row == PRODUCT_REVIEWS_VIEW) { break; } } } return $data_reviews; }
if ($paypal->get_config('MODULE_PAYMENT_' . strtoupper($order->info['payment_method']) . '_USE_ACCOUNT') == 1) { $button = $paypal->create_paypal_link($order->info['order_id']); if ($button != '') { $smarty->assign('PAYPAL_LINK', sprintf(constant('MODULE_PAYMENT_' . strtoupper($order->info['payment_method']) . '_TEXT_SUCCESS'), $button)); } if ($messageStack->size($order->info['payment_method']) > 0) { $smarty->assign('info_message', $messageStack->output($order->info['payment_method'])); } } } // Order History $history_block = ''; //DokuMan - 2010-09-18 - set undefined variable $statuses_query = xtc_db_query("-- /account_history_info.php\n SELECT os.orders_status_name,\n osh.date_added,\n osh.comments,\n osh.comments_sent\n FROM " . TABLE_ORDERS_STATUS . " os,\n " . TABLE_ORDERS_STATUS_HISTORY . " osh\n WHERE osh.orders_id = '" . $order->info['order_id'] . "'\n AND osh.customer_notified = 1\n AND osh.orders_status_id = os.orders_status_id\n AND os.language_id = '" . (int) $_SESSION['languages_id'] . "'\n ORDER BY osh.date_added"); while ($statuses = xtc_db_fetch_array($statuses_query)) { $history_block .= xtc_date_short($statuses['date_added']) . ' <strong>' . $statuses['orders_status_name'] . '</strong> ' . (empty($statuses['comments']) || empty($statuses['comments_sent']) ? ' ' : nl2br(encode_htmlspecialchars($statuses['comments']))) . '<br />'; } $smarty->assign('HISTORY_BLOCK', $history_block); // Download-Products if (DOWNLOAD_ENABLED == 'true') { include DIR_WS_MODULES . 'downloads.php'; } require_once DIR_FS_INC . 'xtc_get_tracking_link.php'; $smarty->assign('TRACKING_LINKS', xtc_get_tracking_link($order->info['order_id'])); // --- bof -- ipdfbill -------- require 'admin/includes/ipdfbill/pdfbill_lib.php'; // pdfbill $pdffile = 'admin/' . PDFBILL_FOLDER . PDFBILL_PREFIX . ($_GET['order_id'] . '.pdf'); if (file_exists($pdffile)) { $pdflink = xtc_href_link(FILENAME_PDFBILL_DISPLAY, 'oID=' . $_GET['order_id']); $pdflink = sprintf('<a href="%s">' . PDFBILL_DOWNLOAD_INVOICE . '</a>', $pdflink);
?> </td> <td class="dataTableContent"> <?php echo xtc_product_thumb_image($products['products_image'], $products['products_name'], '', '', $admin_thumbs_size); ?> </td> <td class="dataTableContent"> <?php echo $products['products_model']; ?> </td> <td class="dataTableContent"> <?php echo $products['products_ean']; ?> </td> <td class="dataTableContent"> <?php echo xtc_date_short($products['products_date_available']); ?> </td> <td class="dataTableContent"><?php echo $products_price; ?> </td> <?php if (PRICE_IS_BRUTTO == 'true') { ?> <td class="dataTableContent"><?php echo $products_price_netto; ?> </td> <?php }
function parsePaymentInstruction($instruction) { // include needed functions if (!function_exists('xtc_date_short')) { require_once DIR_FS_INC . 'xtc_date_short.inc.php'; } // set amount $amount = $instruction->getAmount(); // set banking $banking = $instruction->getRecipientBankingInstruction(); $payment_array = array('reference' => $instruction->getReferenceNumber(), 'type' => $instruction->getInstructionType(), 'amount' => array('total' => $amount->getValue(), 'currency' => $amount->getCurrency()), 'date' => xtc_date_short($instruction->getPaymentDueDate()), 'note' => $instruction->getNote(), 'bank' => array('name' => $banking->getBankName(), 'holder' => $banking->getAccountHolderName(), 'account' => $banking->getAccountNumber(), 'iban' => $banking->getInternationalBankAccountNumber(), 'bic' => $banking->getBankIdentifierCode())); return $payment_array; }
$contents[] = array('text' => '<br><b>' . $abInfo->affiliate_banners_title . '</b>'); if ($abInfo->affiliate_banners_image) { $contents[] = array('text' => '<br>' . xtc_draw_checkbox_field('delete_image', 'on', true) . ' ' . TEXT_INFO_DELETE_IMAGE); } $contents[] = array('align' => 'center', 'text' => '<br>' . xtc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . xtc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $_GET['abID']) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($abInfo)) { $sql = "select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $abInfo->affiliate_products_id . "' and language_id = '" . $_SESSION['languages_id'] . "'"; $product_description_query = xtc_db_query($sql); $product_description = xtc_db_fetch_array($product_description_query); $heading[] = array('text' => '<b>' . $abInfo->affiliate_banners_title . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=new') . '">' . xtc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=delete') . '">' . xtc_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => $product_description['products_name']); $contents[] = array('text' => '<br>' . TEXT_BANNERS_DATE_ADDED . ' ' . xtc_date_short($abInfo->affiliate_date_added)); $contents[] = array('text' => '' . sprintf(TEXT_BANNERS_STATUS_CHANGE, xtc_date_short($abInfo->affiliate_date_status_change))); } break; } if (xtc_not_null($heading) && xtc_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> <?php }
$affiliate_payment_split = new splitPageResults($affiliate_payment_raw, $_GET['page'], MAX_DISPLAY_SEARCH_RESULTS); require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('affiliate_payment_split_number', $affiliate_payment_split->number_of_rows); $affiliate_payment_table = ''; if ($affiliate_payment_split->number_of_rows > 0) { $affiliate_payment_values = xtc_db_query($affiliate_payment_split->sql_query); $number_of_payment = 0; while ($affiliate_payment = xtc_db_fetch_array($affiliate_payment_values)) { $number_of_payment++; if ($number_of_payment / 2 == floor($number_of_payment / 2)) { $affiliate_payment_table .= '<tr class="productListing-even">'; } else { $affiliate_payment_table .= '<tr class="productListing-odd">'; } $affiliate_payment_table .= '<td class="smallText" align="right">' . $affiliate_payment['affiliate_payment_id'] . '</td>'; $affiliate_payment_table .= '<td class="smallText" align="center">' . xtc_date_short($affiliate_payment['affiliate_payment_date']) . '</td>'; $affiliate_payment_table .= '<td class="smallText" align="right">' . $xtPrice->xtcFormat($affiliate_payment['affiliate_payment_total'], true) . '</td>'; $affiliate_payment_table .= '<td class="smallText" align="right">' . $affiliate_payment['affiliate_payment_status_name'] . '</td>'; } $smarty->assign('affiliate_payment_table', $affiliate_payment_table); } if ($affiliate_payment_split->number_of_rows > 0) { $smarty->assign('affiliate_payment_split_count', $affiliate_payment_split->display_count(TEXT_DISPLAY_NUMBER_OF_PAYMENTS)); $smarty->assign('affiliate_payment_split_link', $affiliate_payment_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array('page', 'info', 'x', 'y')))); } $affiliate_payment_values = xtc_db_query("select sum(affiliate_payment_total) as total from " . TABLE_AFFILIATE_PAYMENT . " where affiliate_id = '" . $_SESSION['affiliate_id'] . "'"); $affiliate_payment = xtc_db_fetch_array($affiliate_payment_values); $smarty->assign('affiliate_payment_total', $xtPrice->xtcFormat($affiliate_payment['total'], true)); $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/affiliate_payment.html');
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $sInfo->products_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_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id) . '">' . BUTTON_CANCEL . '</a>'); break; default: if (is_object($sInfo)) { $heading[] = array('text' => '<b>' . $sInfo->products_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>'); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . xtc_date_short($sInfo->specials_date_added)); $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . xtc_date_short($sInfo->specials_last_modified)); $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_product_thumb_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)); $contents[] = array('text' => '<br />' . TEXT_INFO_ORIGINAL_PRICE . ' ' . $xtPrice->xtcFormat($sInfo->products_price, true)); $contents[] = array('text' => '' . TEXT_INFO_NEW_PRICE . ' ' . $xtPrice->xtcFormat($sInfo->specials_new_products_price, true)); $contents[] = array('text' => '' . TEXT_INFO_PERCENTAGE . ' ' . number_format(100 - $sInfo->specials_new_products_price / $sInfo->products_price * 100) . '%'); $contents[] = array('text' => '<br />' . TEXT_INFO_EXPIRES_DATE . ' <b>' . xtc_date_short($sInfo->expires_date) . '</b>'); $contents[] = array('text' => '' . TEXT_INFO_STATUS_CHANGE . ' ' . xtc_date_short($sInfo->date_status_change)); } break; } if (xtc_not_null($heading) && xtc_not_null($contents)) { echo ' <div class="col-md-3 hidden-xs hidden-sm pull-right">' . "\n"; #col-sm-12 col-xs-12 $box = new box(); echo $box->infoBox($heading, $contents); echo ' </div>' . "\n"; ?> <script> //responsive_table $('#responsive_table').addClass('col-md-9'); </script> <?php
$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)); $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_DESCRIPTION . '<br />' . $tcInfo->tax_class_description); } break; } if (xtc_not_null($heading) && xtc_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> </table></td>
$contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br><center>' . '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('coupon_admin.php', 'action=confirmdelete&cid=' . $_GET['cid'], 'NONSSL') . '">' . BUTTON_CONFIRM . '</a>' . '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('coupon_admin.php', 'cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . BUTTON_CANCEL . '</a>'); } else { $prod_details = TEXT_NONE; if ($cInfo->restrict_to_products) { $prod_details = '<a href="listproducts.php?cid=' . $cInfo->coupon_id . '" target="_blank" onclick="window.open(\'listproducts.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false"><strong>' . TEXT_VIEW_SHORT . '</strong></a>'; } $cat_details = TEXT_NONE; if ($cInfo->restrict_to_categories) { $cat_details = '<a href="listcategories.php?cid=' . $cInfo->coupon_id . '" target="_blank" onclick="window.open(\'listcategories.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false"><strong>' . TEXT_VIEW_SHORT . '</strong></a>'; } $coupon_name_query = xtc_db_query("select coupon_name from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . (int) $cInfo->coupon_id . "' and language_id = '" . (int) $_SESSION['languages_id'] . "'"); $coupon_name = xtc_db_fetch_array($coupon_name_query); // BOF - web28 - 2010-07-23 - new table design / Abfrage ob Coupon aktiv ist $coupon_active_query = xtc_db_query("select coupon_active from " . TABLE_COUPONS . " where coupon_id = '" . $cInfo->coupon_id . "'"); $coupon_active = xtc_db_fetch_array($coupon_active_query); $contents[] = array('text' => COUPON_NAME . ': ' . $coupon_name['coupon_name'] . '<br />' . COUPON_AMOUNT . ': <strong><font color="red">' . $amount . '</font></strong><br /><br />' . COUPON_STARTDATE . ': ' . xtc_date_short($cInfo->coupon_start_date) . '<br />' . COUPON_FINISHDATE . ': ' . xtc_date_short($cInfo->coupon_expire_date) . '<br /><br />' . COUPON_USES_COUPON . ': <strong>' . $cInfo->uses_per_coupon . '</strong><br />' . COUPON_USES_USER . ': <strong>' . $cInfo->uses_per_user . '</strong><br /><br />' . COUPON_PRODUCTS . ': ' . $prod_details . '<br />' . COUPON_CATEGORIES . ': ' . $cat_details . '<br /><br />' . DATE_CREATED . ': ' . xtc_date_short($cInfo->date_created) . '<br />' . DATE_MODIFIED . ': ' . xtc_date_short($cInfo->date_modified) . '<br /><br />'); // hide 'email', 'edit',... buttons, when voucher is inactive if ($cInfo->coupon_name != '') { if ($coupon_active['coupon_active'] != 'N') { $contents[] = array('text' => '<center><a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('coupon_admin.php', 'action=email&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . BUTTON_EMAIL . '</a><br />' . '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('coupon_admin.php', 'action=voucheredit&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . BUTTON_EDIT . '</a> <br />' . '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('coupon_admin.php', 'action=voucherdelete&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . BUTTON_STATUS_OFF . '</a>' . '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('coupon_admin.php', 'action=voucherreport&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . BUTTON_REPORT . '</a></center>'); } } // EOF - web28 - 2010-07-23 - new table design / Abfrage ob Coupon aktiv ist } ?> <?php break; } ?> <div class="col-md-3 hidden-xs hidden-sm edit-box-class"> <?php