Example #1
0
        }
        // end while
        return $productName;
    } else {
        return "Something isn't right....";
    }
    // end if
}
// end function
function attribRedirect($cPath)
{
    return '<script type="text/javascript"> window.location="./configure.php?cPath=' . $cPath . '"; </script>';
}
switch ($action) {
    case 'select':
        $pageTitle = 'Edit Attributes -> ' . findTitle($current_product_id, $languageFilter);
        require 'new_attributes_include.php';
        break;
    case 'change':
        $pageTitle = 'Product Attributes Updated.';
        require 'new_attributes_change.php';
        require 'new_attributes_select.php';
        break;
    default:
        $pageTitle = 'Edit Attributes';
        require 'new_attributes_select.php';
        break;
}
// end switch
?>
Example #2
0
    if ($matches) {
        while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
            $productName = $line['products_name'];
        }
        return $productName;
    } else {
        return HEADING_ERROR;
    }
}
function attribRedirect($cPath)
{
    return '<SCRIPT LANGUAGE="JavaScript"> window.location="./configure.php?cPath=' . $cPath . '"; </script>';
}
switch ($action) {
    case 'select':
        $pageTitle = HEADING_TITLE_VAL_PRODUCT . findTitle($current_product_id, $languageFilter);
        require 'new_attributes_include.php';
        break;
    case 'change':
        $pageTitle = HEADING_UPDATE;
        require 'new_attributes_change.php';
        require 'new_attributes_select.php';
        break;
    default:
        $pageTitle = HEADING_TITLE_VAL;
        require 'new_attributes_select.php';
        break;
}
?>

    </table></TD>