[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php if (!isset($HTTP_GET_VARS['delete'])) echo tep_draw_form('addressbook', tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, (isset($HTTP_GET_VARS['edit']) ? 'edit=' . $HTTP_GET_VARS['edit'] : ''), 'SSL'), 'post', 'onSubmit="return check_form(addressbook);"'); ?><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 if (isset($HTTP_GET_VARS['edit'])) { echo HEADING_TITLE_MODIFY_ENTRY; } elseif (isset($HTTP_GET_VARS['delete'])) { echo HEADING_TITLE_DELETE_ENTRY; } else { echo HEADING_TITLE_ADD_ENTRY; } ?></td> 6 <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_address_book.gif', (isset($HTTP_GET_VARS['edit']) ? HEADING_TITLE_MODIFY_ENTRY : HEADING_TITLE_ADD_ENTRY), 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 ($messageStack->size('addressbook') > 0) { 15 ?> 16 <tr> 17 <td><?php echo $messageStack->output('addressbook'); ?></td> 18 </tr> 19 <tr> 20 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 21 </tr> 22 <?php 23 } 24 25 if (isset($HTTP_GET_VARS['delete'])) { 26 ?> 27 <tr> 28 <td class="main"><b><?php echo DELETE_ADDRESS_TITLE; ?></b></td> 29 </tr> 30 <tr> 31 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 32 <tr class="infoBoxContents"> 33 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 34 <tr> 35 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 36 <td class="main" width="50%" valign="top"><?php echo DELETE_ADDRESS_DESCRIPTION; ?></td> 37 <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2"> 38 <tr> 39 <td class="main" align="center" valign="top"><b><?php echo SELECTED_ADDRESS; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td> 40 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 41 <td class="main" valign="top"><?php echo tep_address_label($customer_id, $HTTP_GET_VARS['delete'], true, ' ', '<br>'); ?></td> 42 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 43 </tr> 44 </table></td> 45 </tr> 46 </table></td> 47 </tr> 48 </table></td> 49 </tr> 50 <tr> 51 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 52 </tr> 53 <tr> 54 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 55 <tr class="infoBoxContents"> 56 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 57 <tr> 58 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 59 <td><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> 60 <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'delete=' . $HTTP_GET_VARS['delete'] . '&action=deleteconfirm', 'SSL') . '">' . tep_image_button('button_delete.gif', IMAGE_BUTTON_DELETE) . '</a>'; ?></td> 61 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 62 </tr> 63 </table></td> 64 </tr> 65 </table></td> 66 </tr> 67 <?php 68 } else { 69 ?> 70 <tr> 71 <td><?php include (DIR_WS_MODULES . 'address_book_details.php'); ?></td> 72 </tr> 73 <tr> 74 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 75 </tr> 76 <?php 77 if (isset($HTTP_GET_VARS['edit']) && is_numeric($HTTP_GET_VARS['edit'])) { 78 ?> 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 <tr> 84 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 85 <td><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> 86 <td align="right"><?php echo tep_draw_hidden_field('action', 'update') . tep_draw_hidden_field('edit', $HTTP_GET_VARS['edit']) . tep_image_submit('button_update.gif', IMAGE_BUTTON_UPDATE); ?></td> 87 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 88 </tr> 89 </table></td> 90 </tr> 91 </table></td> 92 </tr> 93 <?php 94 } else { 95 if (sizeof($navigation->snapshot) > 0) { 96 $back_link = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); 97 } else { 98 $back_link = tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL'); 99 } 100 ?> 101 <tr> 102 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 103 <tr class="infoBoxContents"> 104 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 105 <tr> 106 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 107 <td><?php echo '<a href="' . $back_link . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> 108 <td align="right"><?php echo tep_draw_hidden_field('action', 'process') . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> 109 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 110 </tr> 111 </table></td> 112 </tr> 113 </table></td> 114 </tr> 115 116 <?php 117 } 118 } 119 ?> 120 </table><?php if (!isset($HTTP_GET_VARS['delete'])) echo '</form>'; ?> 121
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Jan 1 13:43:16 2010 | Cross-referenced by PHPXref 0.7 |