[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/templates/fallback/content/ -> product_reviews_info.tpl.php (source)

   1      <table border="0" width="100%" cellspacing="0" cellpadding="0">
   2        <tr>
   3          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
   4            <tr>
   5              <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
   6              <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>
   7            </tr>
   8          </table></td>
   9        </tr>
  10        <tr>
  11          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  12        </tr>
  13        <tr>
  14          <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
  15            <tr>
  16              <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  17                <tr>
  18                  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  19                    <tr>
  20                      <td class="main"><?php echo '<b>' . sprintf(TEXT_REVIEW_BY, tep_output_string_protected($review['customers_name'])) . '</b>'; ?></td>
  21                      <td class="smallText" align="right"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, tep_date_long($review['date_added'])); ?></td>
  22                    </tr>
  23                  </table></td>
  24                </tr>
  25                <tr>
  26                  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  27                    <tr class="infoBoxContents">
  28                      <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  29                        <tr>
  30                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  31                          <td valign="top" class="main"><?php echo tep_break_string(nl2br(tep_output_string_protected($review['reviews_text'])), 60, '-<br>') . '<br><br><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $review['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $review['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $review['reviews_rating'])) . '</i>'; ?></td>
  32                          <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  33                        </tr>
  34                      </table></td>
  35                    </tr>
  36                  </table></td>
  37                </tr>
  38                <tr>
  39                  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  40                </tr>
  41                <tr>
  42                  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  43                    <tr class="infoBoxContents">
  44                      <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  45                        <tr>
  46                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  47                          <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('reviews_id'))) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
  48                          <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params(array('reviews_id'))) . '">' . tep_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a>'; ?></td>
  49                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  50                        </tr>
  51                      </table></td>
  52                    </tr>
  53                  </table></td>
  54                </tr>
  55              </table></td>
  56              <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="right" valign="top"><table border="0" cellspacing="0" cellpadding="2">
  57                <tr>
  58                  <td align="center" class="smallText">
  59  <?php
  60    if (tep_not_null($review['products_image'])) {
  61  ?>
  62  <script language="javascript"><!--
  63  document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $review['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $review['products_image'], addslashes($review['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
  64  //--></script>
  65  <noscript>
  66  <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $review['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $review['products_image'], $review['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
  67  </noscript>
  68  <?php
  69    }
  70  
  71    echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>';
  72  ?>
  73                  </td>
  74                </tr>
  75              </table>
  76            </td>
  77          </table></td>
  78        </tr>
  79      </table>
  80  


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7