[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1      <?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'); ?><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"><?php echo HEADING_TITLE; ?></td>
   6              <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.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  <?php
  14    if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
  15  ?>
  16        <tr>
  17          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  18            <tr>
  19              <td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
  20            </tr>
  21          </table></td>
  22        </tr>
  23        <tr>
  24          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
  25            <tr class="infoBoxNoticeContents">
  26              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  27                <tr>
  28                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  29                  <td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
  30                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  31                </tr>
  32              </table></td>
  33            </tr>
  34          </table></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 class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>
  46            </tr>
  47          </table></td>
  48        </tr>
  49        <tr>
  50          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  51            <tr class="infoBoxContents">
  52              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  53                <tr>
  54                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  55                  <td class="main" width="50%" valign="top"><?php echo TEXT_SELECTED_BILLING_DESTINATION; ?><br><br><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
  56                  <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
  57                    <tr>
  58                      <td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
  59                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  60                      <td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
  61                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  62                    </tr>
  63                  </table></td>
  64                </tr>
  65              </table></td>
  66            </tr>
  67          </table></td>
  68        </tr>
  69        <tr>
  70          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  71        </tr>
  72        <tr>
  73          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  74            <tr>
  75              <td class="main"><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></b></td>
  76            </tr>
  77          </table></td>
  78        </tr>
  79        <tr>
  80          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  81            <tr class="infoBoxContents">
  82              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  83  <?php
  84    $selection = $payment_modules->selection();
  85  
  86    if (sizeof($selection) > 1) {
  87  ?>
  88                <tr>
  89                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  90                  <td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>
  91                  <td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
  92                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  93                </tr>
  94  <?php
  95    } else {
  96  ?>
  97                <tr>
  98                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  99                  <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>
 100                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 101                </tr>
 102  <?php
 103    }
 104  
 105    $radio_buttons = 0;
 106    for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
 107  ?>
 108                <tr>
 109                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 110                  <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 111  <?php
 112      if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {
 113        echo '                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
 114      } else {
 115        echo '                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
 116      }
 117  ?>
 118                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 119                      <td class="main" colspan="3"><b><?php echo $selection[$i]['module']; ?></b></td>
 120                      <td class="main" align="right">
 121  <?php
 122      if (sizeof($selection) > 1) {
 123        echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment));
 124      } else {
 125        echo tep_draw_hidden_field('payment', $selection[$i]['id']);
 126      }
 127  ?>
 128                      </td>
 129                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 130                    </tr>
 131  <?php
 132      if (isset($selection[$i]['error'])) {
 133  ?>
 134                    <tr>
 135                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 136                      <td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>
 137                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 138                    </tr>
 139  <?php
 140      } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
 141  ?>
 142                    <tr>
 143                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 144                      <td colspan="4"><table border="0" cellspacing="0" cellpadding="2">
 145  <?php
 146        for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
 147  ?>
 148                        <tr>
 149                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 150                          <td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>
 151                          <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 152                          <td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
 153                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 154                        </tr>
 155  <?php
 156        }
 157  ?>
 158                      </table></td>
 159                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 160                    </tr>
 161  <?php
 162      }
 163  ?>
 164                  </table></td>
 165                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 166                </tr>
 167  <?php
 168      $radio_buttons++;
 169    }
 170  ?>
 171              </table></td>
 172            </tr>
 173          </table></td>
 174        </tr>
 175        <tr>
 176          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 177        </tr>
 178  <?php
 179    echo $order_total_modules->credit_selection();//ICW ADDED FOR CREDIT CLASS SYSTEM
 180  ?>
 181        <tr>
 182          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 183            <tr>
 184              <td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
 185            </tr>
 186          </table></td>
 187        </tr>
 188        <tr>
 189          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 190            <tr class="infoBoxContents">
 191              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 192                <tr>
 193                  <td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?></td>
 194                </tr>
 195              </table></td>
 196            </tr>
 197          </table></td>
 198        </tr>
 199        <tr>
 200          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 201        </tr>
 202        <tr>
 203          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 204            <tr class="infoBoxContents">
 205              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 206                <tr>
 207                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 208                  <td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
 209                  <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
 210                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 211                </tr>
 212              </table></td>
 213            </tr>
 214          </table></td>
 215        </tr>
 216        <tr>
 217          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 218        </tr>
 219        <tr>
 220          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
 221            <tr>
 222              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 223                <tr>
 224                  <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 225                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 226                </tr>
 227              </table></td>
 228              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 229                <tr>
 230                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 231                  <td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
 232                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 233                </tr>
 234              </table></td>
 235              <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 236              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 237                <tr>
 238                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 239                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 240                </tr>
 241              </table></td>
 242            </tr>
 243            <tr>
 244              <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
 245              <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
 246              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
 247              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
 248            </tr>
 249          </table></td>
 250        </tr>
 251      </table></form>


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