[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1      <?php
   2        // Modify form processing depending on whether product or article
   3        if ($valid_product) {
   4          echo tep_draw_form('email_friend', tep_href_link(FILENAME_TELL_A_FRIEND, 'action=process&products_id=' . $HTTP_GET_VARS['products_id']));
   5          } else if ($valid_article) {
   6            echo tep_draw_form('email_friend', tep_href_link(FILENAME_TELL_A_FRIEND, 'action=process&articles_id=' . $HTTP_GET_VARS['articles_id']));
   7        }
   8      ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
   9        <tr>
  10          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  11            <tr>
  12              <td class="pageHeading">
  13              <?php
  14                // Modify heading depending on whether product or article
  15                if ($valid_product) {
  16                   $title = $product_info['products_name'];
  17                   } else if ($valid_article) {
  18                     $title = $article_info['articles_name'];
  19                }
  20                echo sprintf(HEADING_TITLE, $title);
  21              ?>
  22               </td>
  23              <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', sprintf(HEADING_TITLE, $product_info['products_name']), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
  24            </tr>
  25          </table></td>
  26        </tr>
  27        <tr>
  28          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  29        </tr>
  30  <?php
  31    if ($messageStack->size('friend') > 0) {
  32  ?>
  33        <tr>
  34          <td><?php echo $messageStack->output('friend'); ?></td>
  35        </tr>
  36        <tr>
  37          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  38        </tr>
  39  <?php
  40    }
  41  ?>
  42        <tr>
  43          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  44            <tr>
  45              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  46                <tr>
  47                  <td class="main"><b><?php echo FORM_TITLE_CUSTOMER_DETAILS; ?></b></td>
  48                  <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>
  49                </tr>
  50              </table></td>
  51            </tr>
  52            <tr>
  53              <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  54                <tr class="infoBoxContents">
  55                  <td><table border="0" cellspacing="0" cellpadding="2">
  56                    <tr>
  57                      <td class="main"><?php echo FORM_FIELD_CUSTOMER_NAME; ?></td>
  58                      <td class="main"><?php echo tep_draw_input_field('from_name'); ?></td>
  59                    </tr>
  60                    <tr>
  61                      <td class="main"><?php echo FORM_FIELD_CUSTOMER_EMAIL; ?></td>
  62                      <td class="main"><?php echo tep_draw_input_field('from_email_address'); ?></td>
  63                    </tr>
  64                  </table></td>
  65                </tr>
  66              </table></td>
  67            </tr>
  68            <tr>
  69              <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  70            </tr>
  71            <tr>
  72              <td class="main"><b><?php echo FORM_TITLE_FRIEND_DETAILS; ?></b></td>
  73            </tr>
  74            <tr>
  75              <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  76                <tr class="infoBoxContents">
  77                  <td><table border="0" cellspacing="0" cellpadding="2">
  78                    <tr>
  79                      <td class="main"><?php echo FORM_FIELD_FRIEND_NAME; ?></td>
  80                      <td class="main"><?php echo tep_draw_input_field('to_name') . '&nbsp;<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>'; ?></td>
  81                    </tr>
  82                    <tr>
  83                      <td class="main"><?php echo FORM_FIELD_FRIEND_EMAIL; ?></td>
  84                      <td class="main"><?php echo tep_draw_input_field('to_email_address') . '&nbsp;<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>'; ?></td>
  85                    </tr>
  86                  </table></td>
  87                </tr>
  88              </table></td>
  89            </tr>
  90            <tr>
  91              <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  92            </tr>
  93            <tr>
  94              <td class="main"><b><?php echo FORM_TITLE_FRIEND_MESSAGE; ?></b></td>
  95            </tr>
  96            <tr>
  97              <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  98                <tr class="infoBoxContents">
  99                  <td><?php echo tep_draw_textarea_field('message', 'soft', 40, 8); ?></td>
 100                </tr>
 101              </table></td>
 102            </tr>
 103          </table></td>
 104        </tr>
 105        <tr>
 106          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 107        </tr>
 108        <tr>
 109          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 110            <tr class="infoBoxContents">
 111              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 112                <tr>
 113                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 114                  <td><?php
 115                      // Modify back button depending on whether product or article
 116                      if ($valid_product) {
 117                        echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
 118                        } else if ($valid_article) {
 119                          echo '<a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $HTTP_GET_VARS['articles_id']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
 120                      }
 121                         ?></td>
 122                  <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
 123                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 124                </tr>
 125              </table></td>
 126            </tr>
 127          </table></td>
 128        </tr>
 129      </table></form>
 130  


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