[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1  <!-- body_text //-->
   2      <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
   3        <tr>
   4          <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
   5            <tr>
   6              <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
   7              <td align="right"><?php echo tep_image(DIR_WS_IMAGES . 'affiliate_links.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
   8            </tr>
   9        <tr>
  10              <td colspan=2 class="main"><?php echo TEXT_INFORMATION; ?></td>
  11            </tr>
  12          </table>
  13      </td>
  14        </tr>
  15        <tr>
  16          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  17        </tr>
  18        <tr>
  19          <td><table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"><td>
  20  <?php
  21    if (tep_db_num_rows($affiliate_banners_values)) {
  22  
  23      while ($affiliate_banners = tep_db_fetch_array($affiliate_banners_values)) {
  24        $prod_id = $affiliate_banners['affiliate_products_id'];
  25        $ban_id = $affiliate_banners['affiliate_banners_id'];
  26        switch (AFFILIATE_KIND_OF_BANNERS) {
  27          case 1: // Link to Products
  28            if ($prod_id < 1) {
  29              $link = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DEFAULT . '?ref=' . $affiliate_id . '&affiliate_banner_id=' . $ban_id . '" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_banners['affiliate_banners_image'] . '" border="0" alt="' . $affiliate_banners['affiliate_banners_title'] . '"></a>';
  30              $link1 = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DEFAULT . '?ref=' . $affiliate_id . '&affiliate_banner_id=' . $ban_id . '" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_banners['affiliate_banners_image'] . '" border="0" alt="' . $affiliate_banners['affiliate_banners_title'] . '"></a>';
  31              }
  32            break;
  33          case 2: // Link to Products
  34            if ($prod_id < 1) {
  35              $link = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DEFAULT . '?ref=' . $affiliate_id . '&affiliate_banner_id=' . $ban_id . '" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_AFFILIATE_SHOW_BANNER . '?ref=' . $affiliate_id . '&affiliate_banner_id=' . $ban_id . '" border="0" alt="' . $affiliate_banners['affiliate_banners_title'] . '"></a>';
  36              $link1 = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DEFAULT . '?ref=' . $affiliate_id . '&affiliate_banner_id=' . $ban_id . '" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_AFFILIATE_SHOW_BANNER . '?ref=' . $affiliate_id . '&affiliate_banner_id=' . $ban_id . '" border="0" alt="' . $affiliate_banners['affiliate_banners_title'] . '"></a>';
  37              }
  38            break;
  39        }
  40  
  41            if ($prod_id < 1) {
  42  ?>
  43        <tr>
  44          <td><table width="95%" align="center" border="0" cellpadding="4" cellspacing="0" class="infoBoxContents">
  45            <tr>
  46              <td class="infoBoxHeading" align="center"><?php echo TEXT_AFFILIATE_NAME; ?>&nbsp;<?php echo $affiliate_banners['affiliate_banners_title']; ?></td>
  47            </tr>
  48            <tr>
  49              <td class="smallText" align="center"><br><?php echo $link; ?></td>
  50            </tr>
  51            <tr>
  52              <td class="smallText" align="center"><?php echo TEXT_AFFILIATE_INFO; ?></td>
  53            </tr>
  54            <tr>
  55              <td class="smallText" align="center">
  56          <textarea cols="60" rows="4" class="boxText"><?php echo $link1; ?></textarea> 
  57     </td> 
  58            </tr>
  59            </table>
  60  <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>
  61  <?php }
  62     }
  63  }
  64  ?>
  65            </table>
  66       </td>
  67        </tr>
  68       </table></td>
  69  <!-- body_text_eof //-->


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