コード例 #1
0
        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++;
            }
        }
        new contentBox1($info_box_contents);
        ?>

<?php 
        tep_draw_heading_bottom_4();
        ?>
コード例 #2
0
ファイル: product_info.php プロジェクト: laiello/hotel-os
    ?>
		
		

<?php 
    if (tep_not_null($product_info['products_image'])) {
        ?>
												<table cellspacing="0" cellpadding="0" border="0" class="product">
													<tr><td>
															<table cellspacing="0" cellpadding="0" border="0">
																<tr><td height="100%">
		<table cellpadding="0" cellspacing="0" border="0" align="left" class="prod_info">
			<tr><td align="center">
			
<?php 
        echo tep_draw_prod_pic_top();
        ?>

<script language="javascript"><!--
document.write('<?php 
        echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' style="margin:0px 0px 0px 0px;"') . '';
        ?>
');
//--></script>
<noscript>
<?php 
        echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' style="margin:0px 0px 0px 0px;"') . '';
        ?>
</noscript>

<?php 
コード例 #3
0
ファイル: new_products.php プロジェクト: laiello/hotel-os
    $new_products['products_name'] = tep_get_products_name($new_products['products_id']);
    // ----------
    $product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int) $new_products['products_id'] . "' and language_id = '" . (int) $languages_id . "'");
    $product = tep_db_fetch_array($product_query);
    $p_id = $product['products_id'];
    $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
    $p_name = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a>';
    $p_desc = '' . substr(strip_tags($product['products_description']), 0, MAX_DESCR_1) . ' ...';
    $p_price = '<span class="productSpecialPrice">' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</span>';
    $info_box_contents[$row][$col] = array('align' => 'center', 'params' => ' width="50%"', 'text' => '
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="0" border="0" style="height:134px">
                            <tr>
                                <td>' . tep_draw_prod_pic_top() . '' . $p_pic . '' . tep_draw_prod_pic_bottom() . '<br style="line-height:9px">' . $p_price . '</td>
                            </tr>
                        </table> 
                    </td>
					<td>' . tep_draw_separator('spacer.gif', '5', '1') . '</td>
                    <td style="width:100%">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td style="height:76px;padding:0px 0px 5px 0px;" class="vam"><span>' . $p_name . '</span><br />' . tep_draw_separator('spacer.gif', '1', '6') . '<br />' . $p_desc . '</td>
                            </tr>
                            <tr>
                                <td style="height:53px "><a href="' . tep_href_link('product_info.php?products_id=' . $p_id) . '">' . tep_image_button("button_details.gif") . '</a><br />' . tep_draw_separator('spacer.gif', '1', '3') . '<br /><a href="' . tep_href_link("products_new.php", "action=buy_now&products_id=" . $p_id) . '">' . tep_image_button('button_add_to_cart1.gif') . '</a></td>
                            </tr>
                        </table> 
                    </td>
                    <td>' . tep_draw_separator('spacer.gif', '10', '1') . '</td>