[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1  <table border="0" width="100%" cellspacing="0" cellpadding="0">
   2        <tr>
   3          <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
   4            <tr>
   5              <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
   6              <td align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></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 border="0" width="100%" cellspacing="0" cellpadding="2">
  15            <tr>
  16              <td class="main" colspan="4"><?php echo TEXT_AFFILIATE_HEADER . ' ' . tep_db_num_rows(tep_db_query($affiliate_payment_raw)); ?></td>
  17            </tr>
  18            <tr>
  19              <td colspan="4"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  20            </tr>
  21            <tr>
  22              <td class="infoBoxHeading" align="right"><?php echo TABLE_HEADING_PAYMENT_ID; ?></td>
  23              <td class="infoBoxHeading" align="center"><?php echo TABLE_HEADING_DATE; ?></td>
  24              <td class="infoBoxHeading" align="right"><?php echo TABLE_HEADING_PAYMENT; ?></td>
  25              <td class="infoBoxHeading" align="right"><?php echo TABLE_HEADING_STATUS; ?></td>
  26            </tr>
  27  <?php
  28    if ($affiliate_payment_split->number_of_rows > 0) {
  29      $affiliate_payment_values = tep_db_query($affiliate_payment_split->sql_query);
  30      $number_of_payment = 0;
  31      while ($affiliate_payment = tep_db_fetch_array($affiliate_payment_values)) {
  32        $number_of_payment++;
  33  
  34        if (($number_of_payment / 2) == floor($number_of_payment / 2)) {
  35          echo '          <tr class="productListing-even">';
  36        } else {
  37          echo '          <tr class="productListing-odd">';
  38        }
  39  ?>
  40              <td class="smallText" align="right"><?php echo $affiliate_payment['affiliate_payment_id']; ?></td>
  41              <td class="smallText" align="center"><?php echo tep_date_short($affiliate_payment['affiliate_payment_date']); ?></td>
  42              <td class="smallText" align="right"><?php echo $currencies->display_price($affiliate_payment['affiliate_payment_total'], ''); ?></td>
  43              <td class="smallText" align="right"><?php echo $affiliate_payment['affiliate_payment_status_name']; ?></td>
  44            </tr>
  45  <?php
  46      }
  47    } else {
  48  ?>
  49            <tr class="productListing-odd">
  50              <td colspan="4" class="main"><?php echo TEXT_NO_PAYMENTS; ?></td>
  51            </tr>
  52  <?php
  53    }
  54  ?>
  55            <tr>
  56              <td colspan="4"><?php echo tep_draw_separator(); ?></td>
  57            </tr>
  58  <?php 
  59    if ($affiliate_payment_split->number_of_rows > 0) {
  60  ?>    
  61            <tr>
  62              <td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  63                <tr>
  64                  <td class="smallText"><?php echo $affiliate_payment_split->display_count(TEXT_DISPLAY_NUMBER_OF_PAYMENTS); ?></td>
  65                  <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE; ?> <?php echo $affiliate_payment_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
  66                </tr>
  67              </table></td>
  68            </tr>
  69  <?php
  70    }
  71    $affiliate_payment_values = tep_db_query("select sum(affiliate_payment_total) as total from " . TABLE_AFFILIATE_PAYMENT . " where affiliate_id = '" . $affiliate_id . "'");
  72    $affiliate_payment = tep_db_fetch_array($affiliate_payment_values);
  73  ?>
  74            <tr>
  75              <td class="main" colspan="4"><br><?php echo TEXT_INFORMATION_PAYMENT_TOTAL . ' ' . $currencies->display_price($affiliate_payment['total'], ''); ?></td>
  76            </tr>
  77          </table></td>
  78        </tr>
  79      </table>


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