Prev | Current Page 437 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"


htmlspecialchars_decode(
$this->mLinkToCategoryProductsAdmin));
exit();
}
}
// If setting product display option ...
if (isset ($_POST['SetProductDisplayOption']))
{
$product_display = $_POST['ProductDisplay'];
Catalog::SetProductDisplayOption($this->_mProductId, $product_display);
}
// If removing the product from catalog ...
if (isset ($_POST['RemoveFromCatalog']))
{
Catalog::DeleteProduct($this->_mProductId);
header('Location: ' .
htmlspecialchars_decode(
$this->mLinkToCategoryProductsAdmin));
exit();
}
// If assigning the product to another category ...
if (isset ($_POST['Assign']))
{
$target_category_id = $_POST['TargetCategoryIdAssign'];
Catalog::AssignProductToCategory($this->_mProductId,
$target_category_id);
}
CHAPTER 11 ?–  CATALOG ADMINISTRATION: PRODUCTS AND ATTRIBUTES 336
// If moving the product to another category ...
if (isset ($_POST['Move']))
{
$target_category_id = $_POST['TargetCategoryIdMove'];
Catalog::MoveProductToCategory($this->_mProductId,
$this->_mCategoryId, $target_category_id);
header('Location: ' .
htmlspecialchars_decode(
Link::ToProductAdmin($this->_mDepartmentId,
$target_category_id,
$this->_mProductId)));
exit();
}
// If assigning an attribute value to the product ...
if (isset ($_POST['AssignAttributeValue']))
{
$target_attribute_value_id = $_POST['TargetAttributeValueIdAssign'];
Catalog::AssignAttributeValueToProduct($this->_mProductId,
$target_attribute_value_id);
}
// If removing an attribute value from the product .


Pages:
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
Toruń hotele ubrania lutowania Tyskie Athlete