[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1      <?php echo tep_draw_form('product_reviews_write', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'action=process&products_id=' . $HTTP_GET_VARS['products_id']), 'post', 'onSubmit="return checkForm();"'); ?><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  <?php
  14    if ($messageStack->size('review') > 0) {
  15  ?>
  16        <tr>
  17          <td><?php echo $messageStack->output('review'); ?></td>
  18        </tr>
  19        <tr>
  20          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  21        </tr>
  22  <?php
  23    }
  24  ?>
  25        <tr>
  26          <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
  27            <tr>
  28              <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  29                <tr>
  30                  <td class="main"><?php echo '<b>' . SUB_TITLE_FROM . '</b> ' . tep_output_string_protected($customer['customers_firstname'] . ' ' . $customer['customers_lastname']); ?></td>
  31                </tr>
  32                <tr>
  33                  <td class="main"><b><?php echo SUB_TITLE_REVIEW; ?></b></td>
  34                </tr>
  35                <tr>
  36                  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  37                    <tr class="infoBoxContents">
  38                      <td><table border="0" width="100%" cellspacing="2" cellpadding="2">
  39                        <tr>
  40                          <td class="main"><?php echo tep_draw_textarea_field('review', 'soft', 60, 15); ?></td>
  41                        </tr>
  42                        <tr>
  43                          <td class="smallText" align="right"><?php echo TEXT_NO_HTML; ?></td>
  44                        </tr>
  45                        <tr>
  46                          <td class="main"><?php echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . tep_draw_radio_field('rating', '1') . ' ' . tep_draw_radio_field('rating', '2') . ' ' . tep_draw_radio_field('rating', '3') . ' ' . tep_draw_radio_field('rating', '4') . ' ' . tep_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?></td>
  47                        </tr>
  48                      </table></td>
  49                    </tr>
  50                  </table></td>
  51                </tr>
  52                <tr>
  53                  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  54                </tr>
  55                <tr>
  56                  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  57                    <tr class="infoBoxContents">
  58                      <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  59                        <tr>
  60                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  61                          <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('reviews_id', 'action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
  62                          <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
  63                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  64                        </tr>
  65                      </table></td>
  66                    </tr>
  67                  </table></td>
  68                </tr>
  69              </table></td>
  70              <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="right" valign="top"><table border="0" cellspacing="0" cellpadding="2">
  71                <tr>
  72                  <td align="center" class="smallText">
  73  <?php
  74    if (tep_not_null($product_info['products_image'])) {
  75  ?>
  76  <script language="javascript"><!--
  77  document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR. $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
  78  //--></script>
  79  <noscript>
  80  <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
  81  </noscript>
  82  <?php
  83    }
  84  
  85    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>';
  86  ?>
  87                  </td>
  88                </tr>
  89              </table>
  90            </td>
  91          </table></td>
  92        </tr>
  93      </table></form>
  94  


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