[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 $Id: affiliate_news.php,v 3.00 2003/10/12 4 5 OSC-Affiliate 6 7 Contribution based on: 8 9 osCommerce, Open Source E-Commerce Solutions 10 http://www.oscommerce.com 11 12 Copyright (c) 2002 - 2003 osCommerce 13 14 Released under the GNU General Public License 15 */ 16 17 require ('includes/application_top.php'); 18 19 // Build language list 20 $languages_array = array(); 21 $languages = tep_get_languages(); 22 $lng_exists = false; 23 for ($i = 0, $n = sizeof($languages); $i < $n; $i++) 24 { 25 if ($languages[$i]['directory'] == $HTTP_GET_VARS['lngdir']) { 26 $lng_exists = true; 27 $lng_display_id = $languages[$i]['id']; 28 } 29 30 $languages_array[] = array('id' => $languages[$i]['directory'], 31 'text' => $languages[$i]['name']); 32 } 33 34 if (!$lng_exists) 35 { 36 $HTTP_POST_VARS ['lngdir'] = $language; 37 $HTTP_GET_VARS ['lngdir'] = $language; 38 } 39 40 if ($HTTP_GET_VARS['action']) { 41 switch ($HTTP_GET_VARS['action']) { 42 case 'setflag': //set the status of a news item. 43 if ( ($HTTP_GET_VARS['flag'] == '0') || ($HTTP_GET_VARS['flag'] == '1') ) { 44 if ($HTTP_GET_VARS['affiliate_news_id']) { 45 tep_db_query("update " . TABLE_AFFILIATE_NEWS . " set news_status = '" . $HTTP_GET_VARS['flag'] . "' where news_id = '" . $HTTP_GET_VARS['affiliate_news_id'] . "'"); 46 } 47 } 48 49 tep_redirect(tep_href_link(FILENAME_AFFILIATE_NEWS, isset($HTTP_GET_VARS['lngdir']) ? 'lngdir=' . $HTTP_GET_VARS['lngdir']:'')); 50 break; 51 52 case 'delete_affiliate_news_confirm': //user has confirmed deletion of news article. 53 if ($HTTP_POST_VARS['affiliate_news_id']) { 54 $affiliate_news_id = tep_db_prepare_input($HTTP_POST_VARS['affiliate_news_id']); 55 tep_db_query("delete from " . TABLE_AFFILIATE_NEWS . " where news_id = '" . tep_db_input($affiliate_news_id) . "'"); 56 tep_db_query("delete from " . TABLE_AFFILIATE_NEWS_CONTENTS . " where affiliate_news_id = '" . tep_db_input($affiliate_news_id) . "'"); 57 } 58 59 tep_redirect(tep_href_link(FILENAME_AFFILIATE_NEWS, isset($HTTP_GET_VARS['lngdir']) ? 'lngdir=' . $HTTP_GET_VARS['lngdir']:'')); 60 break; 61 62 case 'insert_affiliate_news': //insert a new news article. 63 $a_headlines_array = $HTTP_POST_VARS['headlines']; 64 $a_contents_array = $HTTP_POST_VARS['contents']; 65 $a_languages_check_array = $HTTP_POST_VARS['a_languages_check']; 66 $languages = tep_get_languages(); 67 for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { 68 $a_languages_id = $languages[$i]['id']; 69 $a_headlines = $a_headlines_array[$a_languages_id]; 70 $a_news = $a_contents_array[$a_languages_id]; 71 if ($a_headlines != NULL) { 72 if (!$a_news_id) { 73 $insert_sql_data = array('date_added' => 'now()', //uses the inbuilt mysql function 'now' 74 'news_status' => '1' 75 ); 76 tep_db_perform(TABLE_AFFILIATE_NEWS, $insert_sql_data); 77 $a_news_id = tep_db_insert_id(); //not actually used ATM -- just there in case 78 } 79 $sql_data_array = array('affiliate_news_id' => tep_db_prepare_input($a_news_id), 80 'affiliate_news_languages_id' => tep_db_prepare_input($a_languages_id), 81 'affiliate_news_headlines' => tep_db_prepare_input($a_headlines), 82 'affiliate_news_contents' => tep_db_prepare_input($a_news) 83 ); 84 tep_db_perform(TABLE_AFFILIATE_NEWS_CONTENTS, $sql_data_array); 85 } 86 } 87 88 tep_redirect(tep_href_link(FILENAME_AFFILIATE_NEWS, isset($HTTP_GET_VARS['lngdir']) ? 'lngdir=' . $HTTP_GET_VARS['lngdir']:'')); 89 break; 90 91 case 'update_affiliate_news': //user wants to modify a news article. 92 if(isset($HTTP_GET_VARS['affiliate_news_id'])) { 93 $a_news_id = tep_db_prepare_input($HTTP_GET_VARS['affiliate_news_id']); 94 $a_headlines_array = $HTTP_POST_VARS['headlines']; 95 $a_contents_array = $HTTP_POST_VARS['contents']; 96 $a_languages_check_array = $HTTP_POST_VARS['a_languages_check']; 97 $a_delete_lng_news_array = $HTTP_POST_VARS['delete_news']; 98 $a_count_lng_def = $HTTP_POST_VARS['a_count']; 99 $languages = tep_get_languages(); 100 for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { 101 $a_languages_id = $languages[$i]['id']; 102 $a_headlines = $a_headlines_array[$a_languages_id]; 103 $a_news = $a_contents_array[$a_languages_id]; 104 if (($a_languages_check_array[$a_languages_id] == 'not_set' and $a_news != '' and $a_headlines != '')) { 105 $insert_sql_data = array('affiliate_news_id' => $a_news_id, 106 // 'date_added' => 'now()' 107 'affiliate_news_languages_id' => tep_db_prepare_input($a_languages_id) 108 ); 109 $a_count_lng_def++; 110 $sql_data_array = array('affiliate_news_headlines' => tep_db_prepare_input($a_headlines), 111 'affiliate_news_contents' => tep_db_prepare_input($a_news)); 112 $sql_data_array = array_merge($sql_data_array, $insert_sql_data); 113 tep_db_perform(TABLE_AFFILIATE_NEWS_CONTENTS, $sql_data_array, 'insert'); 114 } else { 115 if ($a_delete_lng_news_array[$a_languages_id] == 1) { 116 tep_db_query('delete from ' . TABLE_AFFILIATE_NEWS_CONTENTS . " where affiliate_news_id = '" . tep_db_prepare_input($a_news_id) . "' and affiliate_news_languages_id = '" . (int)$a_languages_id . "'"); 117 if( $a_count_lng_def == 1) { 118 tep_db_query('delete from ' . TABLE_AFFILIATE_NEWS . " where news_id = '" . tep_db_prepare_input($a_news_id) . "'"); 119 120 } elseif ($a_count_lng_def > 0 ) { 121 $a_count_lng_def--; 122 } 123 } else { 124 $sql_data_array = array('affiliate_news_headlines' => tep_db_prepare_input($a_headlines), 125 'affiliate_news_contents' => tep_db_prepare_input($a_news)); 126 tep_db_perform(TABLE_AFFILIATE_NEWS_CONTENTS, $sql_data_array, 'update', "affiliate_news_id = '" . $a_news_id . "' and affiliate_news_languages_id = '" . (int)$a_languages_id . "'"); 127 } 128 } 129 } 130 } 131 tep_redirect(tep_href_link(FILENAME_AFFILIATE_NEWS, isset($HTTP_GET_VARS['lngdir']) ? 'lngdir=' . $HTTP_GET_VARS['lngdir']:'')); 132 break; 133 } 134 } 135 136 ?> 137 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 138 <html <?php echo HTML_PARAMS; ?>> 139 <head> 140 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 141 <title><?php echo TITLE; ?></title> 142 <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> 143 <script language="javascript" src="includes/general.js"></script> 144 </head> 145 <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> 146 <!-- header //--> 147 <?php require (DIR_WS_INCLUDES . 'header.php'); ?> 148 <!-- header_eof //--> 149 150 <!-- body //--> 151 <table border="0" width="100%" cellspacing="2" cellpadding="2"> 152 <tr> 153 <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> 154 <!-- left_navigation //--> 155 <?php require (DIR_WS_INCLUDES . 'column_left.php'); ?> 156 <!-- left_navigation_eof //--> 157 </table></td> 158 <!-- body_text //--> 159 <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 160 <?php 161 if ($HTTP_GET_VARS['action'] == 'new_affiliate_news') { //insert or edit a news item 162 163 // npe update begin multilingual 040908 164 // $affiliate_news_query = tep_db_query("se lect news_id, headline, content from " . TABLE_AFFILIATE_NEWS . " where news_id = '" . $HTTP_GET_VARS['affiliate_news_id'] . "' and languages_id ='" . $a_language . "'"); 165 ?> 166 <tr> 167 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 168 <tr> 169 <td class="pageHeading"><?php echo TEXT_NEWS_ITEMS; ?></td> 170 <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> 171 </tr> 172 </table></td> 173 </tr> 174 <tr> 175 <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> 176 </tr> 177 <tr><?php echo tep_draw_form('new_affiliate_news', FILENAME_AFFILIATE_NEWS, (isset($HTTP_GET_VARS['affiliate_news_id']) ? 'affiliate_news_id=' . $HTTP_GET_VARS['affiliate_news_id'] . '&action=update_affiliate_news' : 'action=insert_affiliate_news' ). (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:''), 'post', 'enctype="multipart/form-data"'); ?> 178 <td><table border="0" cellspacing="0" cellpadding="2"> 179 <?php 180 $languages = tep_get_languages(); 181 for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { 182 $a_languages_id = $languages[$i]['id']; 183 if ( isset($HTTP_GET_VARS['affiliate_news_id']) ) { //editing exsiting news item 184 $affiliate_news_query = tep_db_query("select news_id, affiliate_news_contents_id, affiliate_news_headlines as headline, affiliate_news_contents as content, date_added, news_status from " . TABLE_AFFILIATE_NEWS . ", " . TABLE_AFFILIATE_NEWS_CONTENTS . " where news_id = '" . $HTTP_GET_VARS['affiliate_news_id'] . "' and news_id = affiliate_news_id and affiliate_news_languages_id ='" . $a_languages_id . "'"); 185 $affiliate_news = tep_db_fetch_array($affiliate_news_query); 186 // tep_draw_hidden_field('a_languages_check[' . $i . ']', 'set'); 187 } else { //adding new news item 188 $affiliate_news = array(); 189 } 190 if ($affiliate_news['affiliate_news_contents_id'] == NULL) { 191 echo tep_draw_hidden_field('a_languages_check[' . $a_languages_id . ']', 'not_set' ); 192 } else { 193 $a_count_lng_def++; 194 } 195 echo '<tr><td class="main">' . TEXT_AFFILIATE_NEWS_HEADLINE . tep_draw_separator('pixel_trans.gif', '24', '15') . '</td>'; 196 echo '<td class="main">' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('headlines[' . $a_languages_id . ']', $affiliate_news['headline'], '', true) . '</td>'; ?> 197 <td class="main" valign = "top"><?php echo tep_draw_checkbox_field('delete_news[' . $a_languages_id . ']', 1) . ' ' . TEXT_AFFILIATE_NEWS_CONTENT_DELETE; ?></td> 198 </tr> 199 <tr> 200 <td colspan = 2><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> 201 </tr> 202 <tr> 203 <td class="main" valign = "top"><?php echo TEXT_AFFILIATE_NEWS_CONTENT; ?></td> 204 <td class="main"><?php echo tep_draw_textarea_field('contents[' . $a_languages_id . ']', 'soft', '70', '15', stripslashes($affiliate_news['content'])); ?> 205 </td> 206 <td class="main" align="right"> 207 <?php 208 isset($HTTP_GET_VARS['affiliate_news_id']) ? $cancel_button = ' <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $HTTP_GET_VARS['affiliate_news_id']) . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>' : $cancel_button = ''; 209 echo (isset($HTTP_GET_VARS['affiliate_news_id']) ? tep_image_submit('button_update.gif', IMAGE_UPDATE) : tep_image_submit('button_insert.gif', IMAGE_INSERT) ) . $cancel_button ; 210 ?> 211 </td> 212 </tr> 213 <tr> 214 <td colspan = 2><?php echo tep_draw_separator('pixel_black.gif', '1', '10') . tep_black_line() . tep_draw_separator('pixel_black.gif', '1', '10'); ?></td> 215 </tr> 216 <?php 217 } //end for-language-loop 218 echo tep_draw_hidden_field('a_count', $a_count_lng_def); 219 ?> 220 </table> 221 </td> 222 </tr> 223 <tr> 224 <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> 225 </tr> 226 </form></tr> 227 <?php 228 229 } else { 230 ?> 231 232 </tr> 233 <tr> 234 <!-- npe admin begin add language selection to news #add !--> 235 236 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 237 <tr><?php 238 // npe admin begin edit languages on affiliate_news.php 040809 #change 239 // echo tep_draw_form('lng', FILENAME_AFFILIATE_NEWS, '', 'get'); 240 echo tep_draw_form('lng', FILENAME_AFFILIATE_NEWS, '', 'get'); 241 if (isset($HTTP_GET_VARS['page'])) echo tep_draw_hidden_field('page', $HTTP_GET_VARS['page']); 242 if (isset($HTTP_GET_VARS['affiliate_news_id'])) echo tep_draw_hidden_field('affiliate_news_id', $HTTP_GET_VARS['affiliate_news_id']); 243 // npe admin end edit languages on edit_textdata.php 040809 #change 244 ?> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> 245 <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '1', HEADING_IMAGE_HEIGHT); ?></td> 246 <td class="pageHeading" align="right"><?php echo tep_draw_pull_down_menu('lngdir', $languages_array, '', 'onChange="this.form.submit();"'); ?></td> 247 </form></tr> 248 </table></td> 249 250 <!-- npe admin end add language selection to news #add !--> 251 252 </tr> 253 <tr> 254 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 255 <tr> 256 <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 257 <tr class="dataTableHeadingRow"> 258 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_AFFILIATE_NEWS_HEADLINE; ?></td> 259 <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_AFFILIATE_NEWS_STATUS; ?></td> 260 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_AFFILIATE_NEWS_ACTION; ?> </td> 261 </tr> 262 <?php 263 $rows = 0; 264 265 $affiliate_news_count = 0; 266 //<!-- npe admin begin add language selection to news #change !--> 267 268 if (!isset($lng_display_id)) $lng_display_id = $languages_id; 269 $affiliate_news_query = tep_db_query('select news_id, affiliate_news_headlines as headline, affiliate_news_contents as content, news_status from ' . TABLE_AFFILIATE_NEWS . ', ' . TABLE_AFFILIATE_NEWS_CONTENTS . " where news_id = affiliate_news_id and affiliate_news_languages_id = '" . $lng_display_id . "' order by date_added desc"); 270 271 // <!-- npe admin end add language selection to news #change !--> 272 273 while ($affiliate_news = tep_db_fetch_array($affiliate_news_query)) { 274 $affiliate_news_count++; 275 $rows++; 276 277 if ( ((!$HTTP_GET_VARS['affiliate_news_id']) || (@$HTTP_GET_VARS['affiliate_news_id'] == $affiliate_news['news_id'])) && (!$selected_item) && (substr($HTTP_GET_VARS['action'], 0, 4) != 'new_') ) { 278 $selected_item = $affiliate_news; 279 } 280 if ( (is_array($selected_item)) && ($affiliate_news['news_id'] == $selected_item['news_id']) ) { 281 echo ' <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $affiliate_news['news_id']) . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'') . '\'">' . "\n"; 282 } else { 283 echo ' <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $affiliate_news['news_id']) . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'') . '\'">' . "\n"; 284 } 285 ?> 286 <td class="dataTableContent"><?php echo ' ' . $affiliate_news['headline']; ?></td> 287 <td class="dataTableContent" align="center"> 288 <?php 289 if ($affiliate_news['news_status'] == '1') { 290 echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . ' <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'action=setflag&flag=0&affiliate_news_id=' . $affiliate_news['news_id'] . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'')) . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>'; 291 } else { 292 echo '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'action=setflag&flag=1&affiliate_news_id=' . $affiliate_news['news_id']) . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a> ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10); 293 } 294 ?></td> 295 <td class="dataTableContent" align="right"><?php if ($affiliate_news['news_id'] == $HTTP_GET_VARS['affiliate_news_id']) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $affiliate_news['news_id']) . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'') . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> 296 </tr> 297 <?php 298 } 299 300 ?> 301 <tr> 302 <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 303 <tr> 304 <td class="smallText"><?php echo '<br>' . TEXT_NEWS_ITEMS . ' ' . $affiliate_news_count; ?></td> 305 <td align="right" class="smallText"><?php echo ' <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'action=new_affiliate_news' . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'')) . '">' . tep_image_button('button_new_news_item.gif', IMAGE_NEW_NEWS_ITEM) . '</a>'; ?> </td> 306 </tr> 307 </table></td> 308 </tr> 309 </table></td> 310 <?php 311 $heading = array(); 312 $contents = array(); 313 switch ($HTTP_GET_VARS['action']) { 314 case 'delete_affiliate_news': //generate box for confirming a news article deletion 315 $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ITEM . '</b>'); 316 317 $contents = array('form' => tep_draw_form('news', FILENAME_AFFILIATE_NEWS, 'action=delete_affiliate_news_confirm' . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'')) . tep_draw_hidden_field('affiliate_news_id', $HTTP_GET_VARS['affiliate_news_id'])); 318 $contents[] = array('text' => TEXT_DELETE_ITEM_INTRO); 319 $contents[] = array('text' => '<br><b>' . $selected_item['headline'] . '</b>'); 320 321 $contents[] = array('align' => 'center', 322 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $selected_item['news_id']) . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); 323 break; 324 325 default: 326 if ($rows > 0) { 327 if (is_array($selected_item)) { //an item is selected, so make the side box 328 $heading[] = array('text' => '<b>' . $selected_item['headline'] . '</b>'); 329 330 $contents[] = array('align' => 'center', 331 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $selected_item['news_id'] . '&action=new_affiliate_news' . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'') ) . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWS, 'affiliate_news_id=' . $selected_item['news_id'] . '&action=delete_affiliate_news' . (isset($HTTP_GET_VARS['lngdir']) ? '&lngdir=' . $HTTP_GET_VARS['lngdir']:'')) . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); 332 $contents[] = array('text' => '<br>' . $selected_item['content']); 333 } 334 } else { // create category/product info 335 $heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>'); 336 337 $contents[] = array('text' => sprintf(TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS, $parent_categories_name)); 338 } 339 break; 340 } 341 342 if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { 343 echo ' <td width="25%" valign="top">' . "\n"; 344 345 $box = new box; 346 echo $box->infoBox($heading, $contents); 347 348 echo ' </td>' . "\n"; 349 } 350 ?> 351 </tr> 352 </table></td> 353 </tr> 354 <?php 355 } 356 ?> 357 </table></td> 358 <!-- body_text_eof //--> 359 </tr> 360 </table> 361 <!-- body_eof //--> 362 363 <!-- footer //--> 364 <?php require (DIR_WS_INCLUDES . 'footer.php'); ?> 365 <!-- footer_eof //--> 366 <br> 367 </body> 368 </html> 369 <?php require (DIR_WS_INCLUDES . 'application_bottom.php'); ?>
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 |