[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/templates/fallback/content/ -> affiliate_banners_build.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="95%" align="center" border="0" cellpadding="4" cellspacing="0"><td>
  20            <tr>
  21              <td class="infoBoxHeading" align="center"><?php echo TEXT_AFFILIATE_INDIVIDUAL_BANNER . ' ' . $affiliate_banners['affiliate_banners_title']; ?></td>
  22            </tr>
  23        <tr>
  24          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  25        </tr>
  26            <tr>
  27              <td class="smallText" align="center"><?php echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_INFO . tep_draw_form('individual_banner', tep_href_link(FILENAME_AFFILIATE_BANNERS_BUILD) ) . "\n" . tep_draw_input_field('individual_banner_id', '', 'size="5"') . "&nbsp;&nbsp;" . tep_image_submit('button_affiliate_build_a_link.gif', IMAGE_BUTTON_BUILD_A_LINK); ?></form></td>
  28            </tr>
  29       <tr>
  30         <td class="smallText" align="center"><?php echo '<a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_AFFILIATE_VALIDPRODUCTS) . '\')"><b>' . TEXT_AFFILIATE_VALIDPRODUCTS . '</b></a>'; ?>&nbsp;&nbsp;<?php echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_VIEW;?><br><?php echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_HELP;?></td>
  31       </tr>
  32       <tr>
  33          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  34        </tr>
  35  <?php
  36    if (tep_not_null($HTTP_POST_VARS['individual_banner_id']) || tep_not_null($HTTP_GET_VARS['individual_banner_id'])) {
  37  
  38      if (tep_not_null($HTTP_POST_VARS['individual_banner_id'])) $individual_banner_id = $HTTP_POST_VARS['individual_banner_id'];
  39      if ($HTTP_GET_VARS['individual_banner_id']) $individual_banner_id = $HTTP_GET_VARS['individual_banner_id'];
  40      $affiliate_pbanners_values = tep_db_query("select p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $individual_banner_id . "' and pd.products_id = '" . $individual_banner_id . "' and p.products_status = '1' and pd.language_id = '" . $languages_id . "'");
  41      if ($affiliate_pbanners = tep_db_fetch_array($affiliate_pbanners_values)) {
  42        switch (AFFILIATE_KIND_OF_BANNERS) {
  43          case 1:
  44                 $link = '<a href="' . HTTPS_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTPS_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['affiliate_banners_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '"></a>';
  45                 $link1 = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['affiliate_banners_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '"></a>';
  46                 $link2 = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank">' . $affiliate_pbanners['products_name'] . '</a>'; 
  47             break; 
  48            case 2: 
  49     // Link to Products 

  50                 $link = '<a href="' . HTTPS_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTPS_SERVER . DIR_WS_CATALOG . FILENAME_AFFILIATE_SHOW_BANNER . '?ref=' . $affiliate_id . '&affiliate_pbanner_id=' . $individual_banner_id . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '"></a>';
  51                 $link1 = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_AFFILIATE_SHOW_BANNER . '?ref=' . $affiliate_id . '&affiliate_pbanner_id=' . $individual_banner_id . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '"></a>';
  52                 $link2 = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank">' . $affiliate_pbanners['products_name'] . '</a>'; 
  53             break; 
  54       } 
  55  } 
  56  ?>
  57        <tr>
  58          <td><table width="100%" align="center" border="0" cellpadding="4" cellspacing="0" class="infoBoxContents">
  59            <tr>
  60              <td class="infoBoxHeading" align="center"><?php echo TEXT_AFFILIATE_NAME; ?>&nbsp;<?php echo $affiliate_pbanners['products_name']; ?></td>
  61            </tr>
  62            <tr>
  63              <td class="smallText" align="center"><?php echo $link; ?></td> 
  64            </tr> 
  65            <tr> 
  66              <td class="smallText" align="center"><?php echo TEXT_AFFILIATE_INFO; ?></td> 
  67            </tr> 
  68            <tr> 
  69              <td class="smallText" align="center"> 
  70               <textarea cols="60" rows="4" class="boxText"><?php echo $link1; ?></textarea> 
  71              </td> 
  72            </tr> 
  73            <tr> 
  74              <td>&nbsp;<td> 
  75            </tr> 
  76            <tr> 
  77              <td class="smallText" align="center"><b>Text Version:</b> <?php echo $link2; ?></td> 
  78            </tr> 
  79            <tr> 
  80              <td class="smallText" align="center"><?php echo TEXT_AFFILIATE_INFO; ?></td> 
  81            </tr> 
  82            <tr> 
  83              <td class="smallText" align="center"> 
  84               <textarea cols="60" rows="3" class="boxText"><?php echo $link2; ?></textarea> 
  85              </td> 
  86            </tr>
  87            </table>
  88  <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>
  89  <?php
  90  }
  91  ?>
  92       </td></tr>
  93       </td>
  94        </tr></table>
  95       </td>
  96        </tr>    
  97       </table></td>
  98  <!-- body_text_eof //-->


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