Ejemplo n.º 1
0
					  </tr>
					</table>
            
<?php 
        echo tep_draw_infoBox_top();
        ?>

                        <table border="0" width="100%" cellspacing="0" cellpadding="2">
						  <tr>
							<td width="<?php 
        echo SMALL_IMAGE_WIDTH + 10;
        ?>
" align="center" valign="top" class="pic padd2">

<?php 
        echo tep_draw_prod_top();
        ?>

							<?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $reviews['products_image'], $reviews['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
        ?>

<?php 
        echo tep_draw_prod_bottom();
        ?>

							</td>
							<td valign="top" class="main"><?php 
        echo tep_break_string(tep_output_string_protected($reviews['reviews_text']), 60, '-<br>') . (strlen($reviews['reviews_text']) >= 100 ? '..' : '') . '<br><br><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i>';
        ?>
</td>
Ejemplo n.º 2
0
        tep_draw_separate();
        /*  tep_draw_heading_top();  */
        ?>
<!-- also_purchased_products //-->
<?php 
        $info_box_contents = array();
        $info_box_contents[] = array('text' => TEXT_ALSO_PURCHASED_PRODUCTS);
        new contentBoxHeading($info_box_contents);
        /*  tep_draw_separate();  */
        tep_draw_heading_top_4();
        $row = 0;
        $col = 0;
        $info_box_contents = array();
        while ($orders = tep_db_fetch_array($orders_query)) {
            $orders['products_name'] = tep_get_products_name($orders['products_id']);
            $info_box_contents[$row][$col] = array('align' => 'center', 'params' => ' style="width:50%;"', 'text' => '' . tep_draw_prod_top() . '
											   
											  <table cellpadding="0" cellspacing="0" border="0">
											  		<tr><td align="center">
													<span><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $orders['products_id']) . '">' . $orders['products_name'] . '</a></span>
													<br />' . tep_draw_separator('spacer.gif', '1', '10') . '<br />
													
' . tep_draw_prod_pic_top() . '<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) . '</a>' . tep_draw_prod_pic_bottom() . '</td></tr>
											  </table> 
											   ' . tep_draw_prod_bottom());
            $col++;
            if ($col > 1) {
                $col = 0;
                $row++;
            }
        }