$num_products_ordered = tep_db_num_rows($orders_query); if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED) { ?> <!-- also_purchased_products //--> <?php echo TEXT_ALSO_PURCHASED_PRODUCTS; $row = 0; $col = 0; $info_box_contents = array(); while ($orders = tep_db_fetch_array($orders_query)) { if ($col > 0) { $info_box_contents[$row][] = array('text' => tep_draw_separator('pixel_trans.gif', 20, 1)); } $orders['products_name'] = tep_get_products_info($orders['products_id'], DEFAULT_LANGUAGE_ID); $info_box_contents[$row][] = array('align' => 'center', 'params' => 'width="' . SMALL_IMAGE_WIDTH . '" class="smallText" valign="top" style="line-height: 1em; padding-bottom: 5px;"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $orders['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $orders['products_image'], $orders['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'vspace="2"') . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $orders['products_id']) . '">' . $orders['products_name'] . '</a>'); $col++; if ($col > 5) { $col = 0; $row++; } } $box = new tableBox(array()); $box->table_width = ''; $box->table_border = '0'; $box->table_cellpadding = '0'; $box->tableBox($info_box_contents, true); ?> <!-- also_purchased_products_eof //--> <?php } }
} else { $lc_text .= ''; } } $lc_text .= '</div>' . "\n"; } $lc_text .= $notify_text; if ($product_info['products_listing_status'] == '1' && basename(PHP_SELF) != FILENAME_SHOPPING_CART) { // $lc_text .= '<div style="text-align: right; margin-right: 80px;"><fb:like href="' . $product_link . '" layout="button_count" action="recommend" width="120" font="arial"></fb:like></div>' . "\n"; } if (in_array($product_info['authors_id'], array_keys($imhonet_authors)) && SHOP_ID == 1 && date('Y-m-d') < '2010-10-22') { $lc_text .= '<a href="' . tep_href_link(FILENAME_REDIRECT, 'goto=' . $imhonet_authors[$product_info['authors_id']]) . '" onmouseover="this.href=\'http://' . $imhonet_authors[$product_info['authors_id']] . '\';" target="_blank" style="display: block; background: url(' . DIR_WS_IMAGES . 'imhonet_bg.gif) top left no-repeat; clear: both; height: 20px; padding: 4px 3px 0 37px; text-decoration: none; color: #23190B;" title="јвтор номинирован на «„итательскую премию »мхонета»">јвтор номинирован на «„итательскую премию »мхонета» <span style="color: #FFFFFF; font-weight: bold; text-decoration: underline;">√олосовать!</span></a>' . "\n"; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => $row_params, 'text' => $lc_text); $cur_row = sizeof($list_box_contents); } echo '<script language="javascript" type="text/javascript"><!--' . "\n" . ' var new_text = \'<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image_button('button_in_cart2.gif', IMAGE_BUTTON_IN_CART3) . '</a>\';' . "\n" . ' var new_text_postpone = \'<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '#postpone">' . tep_image_button('button_postpone2.gif', IMAGE_BUTTON_POSTPONE3) . '</a>\';' . "\n" . '//--></script>'; $box = new tableBox(array()); $box->table_width = ''; $box->table_border = '0'; $box->table_parameters = 'class="productListing"'; $box->table_cellspacing = '0'; $box->table_cellpadding = '0'; echo $box->tableBox($list_box_contents); if ((PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3') && $show_listing_string == true) { echo $listing_string; } // echo '<br>+' . round((array_sum(explode(' ', microtime())) - $start), 2) . 'сек'; } else { echo '<p>' . TEXT_NO_PRODUCTS . '</p>'; }
$total_weight_text = $total_weight . TEXT_WEIGHT_GRAMMS; } $info_box_contents[$cur_row][] = array('align' => 'left', 'params' => 'class="productListing-heading-first"', 'text' => $order_total_row['title']); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => $total_weight_text); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => ' '); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => $cart->count_contents()); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading-last" align="right" nowrap="nowrap"', 'text' => '<div class="row_product_price" style="text-align: right; float: none;">' . $order_total_row['text'] . '</div>'); } else { $info_box_contents[$cur_row][] = array('align' => 'left', 'params' => 'colspan="4" class="productListing-heading-first"', 'text' => $order_total_row['title']); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading-last" align="right" nowrap="nowrap"', 'text' => '<div class="row_product_price" style="font-weight: normal; text-align: right; float: none;">' . $order_total_row['text'] . '</div>'); } $cur_row++; $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'colspan="5" class="row_btwh"', 'text' => tep_draw_separator('pixel_trans.gif', '1', '1')); } } $box = new tableBox(array()); $box->table_width = '100%'; $box->table_border = '0'; $box->table_parameters = 'class="productListing"'; $box->table_cellspacing = '0'; $box->table_cellpadding = '0'; echo $box->tableBox($info_box_contents) . '<br />'; if ($any_out_of_stock == 1) { echo ' <div class="buttons">' . "\n"; if (STOCK_ALLOW_CHECKOUT == 'true') { ?> <div><?php echo sprintf(OUT_OF_STOCK_CAN_CHECKOUT, STOCK_MARK_PRODUCT_OUT_OF_STOCK); ?> </div> <?php
} } $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data"', 'text' => ($products[$i]['quantity'] > 1 ? $products[$i]['quantity'] . 'x' : '') . $products[$i]['weight'] * 1000 . TEXT_WEIGHT_GRAMMS); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data"', 'text' => '<strong>' . $currencies->display_price($products[$i]['price'], tep_get_tax_rate($products[$i]['tax_class_id'])) . '</strong>'); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'class="productQuantity" maxlength="2"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data-last"', 'text' => '<strong>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</strong>'); } $cur_row = sizeof($info_box_contents); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading-first"', 'text' => ' '); $info_box_contents[$cur_row][] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => tep_not_null(TABLE_HEADING_SUBTOTAL) ? TABLE_HEADING_SUBTOTAL : ' '); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => $cart->weight * 1000 . TEXT_WEIGHT_GRAMMS); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => ' '); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => ' '); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-heading-last"', 'text' => $currencies->format($cart->show_total())); $box = new tableBox(array()); $box->table_width = '100%'; $box->table_border = '0'; $box->table_parameters = 'class="productListing"'; $box->table_cellspacing = '0'; echo $box->tableBox($info_box_contents); ?> <div class="clear"> <?php if ($any_out_of_stock == 1) { if (STOCK_ALLOW_CHECKOUT == 'true') { ?> <div style="float: left;"><?php echo sprintf(OUT_OF_STOCK_CAN_CHECKOUT, STOCK_MARK_PRODUCT_OUT_OF_STOCK); ?> </div>