[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php 2 $adminImages = "includes/languages/english/images/buttons/"; 3 $backLink = "<a href=\"javascript:history.back()\">"; 4 5 require ('new_attributes_config.php'); 6 require ('includes/application_top.php'); 7 $action = (isset($HTTP_POST_VARS['action']) ? $HTTP_POST_VARS['action'] : ''); 8 $current_product_id = (isset($HTTP_POST_VARS['current_product_id']) ? $HTTP_POST_VARS['current_product_id'] : ''); 9 $optionValues = (isset($HTTP_POST_VARS['optionValues']) ? $HTTP_POST_VARS['optionValues'] : ''); 10 $languageFilter = $languages_id; 11 12 if ( $cPathID && $action == "change" ) 13 { 14 require ('new_attributes_change.php'); 15 16 tep_redirect( './' . FILENAME_CATEGORIES . '?cPath=' . $cPathID . '&pID=' . $current_product_id ); 17 18 } 19 20 ?> 21 22 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 23 <html <?php echo HTML_PARAMS; ?>> 24 <head> 25 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 26 <title><?php echo TITLE; ?></title> 27 <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> 28 <script language="javascript" src="includes/general.js"></script> 29 </head> 30 <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> 31 <!-- header //--> 32 <?php require (DIR_WS_INCLUDES . 'header.php'); ?> 33 <!-- header_eof //--> 34 35 <!-- body //--> 36 <table border="0" width="100%" cellspacing="2" cellpadding="2"> 37 <tr> 38 <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> 39 <!-- left_navigation //--> 40 <?php require (DIR_WS_INCLUDES . 'column_left.php'); ?> 41 <!-- left_navigation_eof //--> 42 </table></td> 43 44 <!-- body_text //--> 45 <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 46 47 <?php 48 function findTitle( $current_product_id, $languageFilter ) 49 { 50 $query = "SELECT * FROM products_description where language_id = '$languageFilter' AND products_id = '$current_product_id'"; 51 52 $result = mysql_query($query) or die(mysql_error()); 53 54 $matches = mysql_num_rows($result); 55 56 if ($matches) { 57 58 while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { 59 60 $productName = $line['products_name']; 61 62 } 63 64 return $productName; 65 66 } else { return "Something isn't right...."; } 67 68 } 69 70 function attribRedirect( $cPath ) 71 { 72 73 return '<SCRIPT LANGUAGE="JavaScript"> window.location="./configure.php?cPath=' . $cPath . '"; </script>'; 74 75 } 76 77 switch( $action ) 78 { 79 case 'select': 80 $pageTitle = 'Edit Attributes -> ' . findTitle( $current_product_id, $languageFilter ); 81 require ('new_attributes_include.php'); 82 break; 83 84 case 'change': 85 $pageTitle = 'Product Attributes Updated.'; 86 require ('new_attributes_change.php'); 87 require ('new_attributes_select.php'); 88 break; 89 90 default: 91 $pageTitle = 'Edit Attributes'; 92 require ('new_attributes_select.php'); 93 break; 94 95 } 96 97 ?> 98 99 </table></TD> 100 </TR> 101 <!-- body_eof //--> 102 103 <!-- footer //--> 104 <?php require (DIR_WS_INCLUDES . 'footer.php'); ?> 105 <!-- footer_eof //--> 106 </body> 107 </html> 108 <?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 |