[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php echo tep_draw_form('account_notifications', tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL')) . tep_draw_hidden_field('action', 'process'); ?><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_account.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 class="main"><b><?php echo MY_NOTIFICATIONS_TITLE; ?></b></td> 15 </tr> 16 <tr> 17 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 18 <tr class="infoBoxContents"> 19 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 20 <tr> 21 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 22 <td class="main"><?php echo MY_NOTIFICATIONS_DESCRIPTION; ?></td> 23 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 24 </tr> 25 </table></td> 26 </tr> 27 </table></td> 28 </tr> 29 <tr> 30 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 31 </tr> 32 <tr> 33 <td class="main"><b><?php echo GLOBAL_NOTIFICATIONS_TITLE; ?></b></td> 34 </tr> 35 <tr> 36 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 37 <tr class="infoBoxContents"> 38 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 39 <tr> 40 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 41 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 42 <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="checkBox('product_global')"> 43 <td class="main" width="30"><?php echo tep_draw_checkbox_field('product_global', '1', (($global['global_product_notifications'] == '1') ? true : false), 'onclick="checkBox(\'product_global\')"'); ?></td> 44 <td class="main"><b><?php echo GLOBAL_NOTIFICATIONS_TITLE; ?></b></td> 45 </tr> 46 <tr> 47 <td width="30"> </td> 48 <td class="main"><?php echo GLOBAL_NOTIFICATIONS_DESCRIPTION; ?></td> 49 </tr> 50 </table></td> 51 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 52 </tr> 53 </table></td> 54 </tr> 55 </table></td> 56 </tr> 57 <tr> 58 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 59 </tr> 60 <?php 61 if ($global['global_product_notifications'] != '1') { 62 ?> 63 <tr> 64 <td class="main"><b><?php echo NOTIFICATIONS_TITLE; ?></b></td> 65 </tr> 66 <tr> 67 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 68 <tr class="infoBoxContents"> 69 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 70 <tr> 71 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 72 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 73 <?php 74 $products_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_NOTIFICATIONS . " where customers_id = '" . (int)$customer_id . "'"); 75 $products_check = tep_db_fetch_array($products_check_query); 76 if ($products_check['total'] > 0) { 77 ?> 78 <tr> 79 <td class="main" colspan="2"><?php echo NOTIFICATIONS_DESCRIPTION; ?></td> 80 </tr> 81 <?php 82 $counter = 0; 83 $products_query = tep_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where pn.customers_id = '" . (int)$customer_id . "' and pn.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by pd.products_name"); 84 while ($products = tep_db_fetch_array($products_query)) { 85 ?> 86 <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="checkBox('products[<?php echo $counter; ?>]')"> 87 <td class="main" width="30"><?php echo tep_draw_checkbox_field('products[' . $counter . ']', $products['products_id'], true, 'onclick="checkBox(\'products[' . $counter . ']\')"'); ?></td> 88 <td class="main"><b><?php echo $products['products_name']; ?></b></td> 89 </tr> 90 <?php 91 $counter++; 92 } 93 } else { 94 ?> 95 <tr> 96 <td class="main"><?php echo NOTIFICATIONS_NON_EXISTING; ?></td> 97 </tr> 98 <?php 99 } 100 ?> 101 </table></td> 102 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 103 </tr> 104 </table></td> 105 </tr> 106 </table></td> 107 </tr> 108 <tr> 109 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 110 </tr> 111 <?php 112 } 113 ?> 114 <tr> 115 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 116 <tr class="infoBoxContents"> 117 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 118 <tr> 119 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 120 <td><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> 121 <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> 122 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 123 </tr> 124 </table></td> 125 </tr> 126 </table></td> 127 </tr> 128 </table></form>
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 |