Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dodatkowa komórka w tabeli
olcia
post
Post #1





Grupa: Zarejestrowani
Postów: 62
Pomógł: 0
Dołączył: 28.06.2003
Skąd: TG

Ostrzeżenie: (0%)
-----


potrzebuję rozwinąć skrypt, aby wyświetlała się kolejna komórka w tabeli:
  1. <?php
  2. if($featured_products['specstat']) {
  3.  $info_box_contents[$row][$col] = array('align' => 'center',
  4.  'params' => 'class="smallTextfp" width="33%" valign="top"',
  5.  'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br><s>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($featured_products['specials_new_products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</span><br><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW) . '</a><br>');
  6.  
  7. //od tego momentu kolejna komórka jest potrzebna
  8.  
  9. } else {
  10. $info_box_contents[$row][$col] = array('align' => 'center',
  11.  'params' => 'class="smallTextfp" width="33%" valign="top"',
  12.  'text' => 'x', 
  13.  'align' => 'center',
  14.  'params' => 'class="smallTextfp" width="33%" valign="top"',
  15.  'text' => 'y', 
  16.  'align' => 'center',
  17.  'params' => 'class="smallTextfp" width="33%" valign="top"',
  18.  'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '<br><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW) . '</a><br>');
  19.  
  20. }
  21. ?>


--------------------
czasami śmiech bywa najgorszą reakcją....
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 21:45