'' . TEXT_INFO_HEADING_DELETE_PRODUCT . '');
$contents = array('form' => zen_draw_form('products', $type_admin_handler, 'action=delete_product_confirm&product_type=' . $product_type . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id));
$contents[] = array('text' => TEXT_DELETE_PRODUCT_INTRO);
$contents[] = array('text' => '
' . $pInfo->products_name . ' ID#' . $pInfo->products_id . '');
// zen_get_category_name(zen_get_parent_category_id($pInfo->products_id), (int)$_SESSION['languages_id'])
$product_categories_string = '';
$product_categories = zen_generate_category_path($pInfo->products_id, 'product');
if (sizeof($product_categories) > 1) {
$contents[] = array('text' => '
' . TEXT_MASTER_CATEGORIES_ID . '' . '');
}
for ($i = 0, $n = sizeof($product_categories); $i < $n; $i++) {
$category_path = '';
for ($j = 0, $k = sizeof($product_categories[$i]); $j < $k; $j++) {
$category_path .= $product_categories[$i][$j]['text'] . ' > ';
}
$category_path = substr($category_path, 0, -16);
if (sizeof($product_categories) > 1 && zen_get_parent_category_id($pInfo->products_id) == $product_categories[$i][sizeof($product_categories[$i])-1]['id']) {
$product_categories_string .= '' . zen_draw_checkbox_field('product_categories[]', $product_categories[$i][sizeof($product_categories[$i])-1]['id'], true) . ' ' . $category_path . '
';
} else {
$product_categories_string .= zen_draw_checkbox_field('product_categories[]', $product_categories[$i][sizeof($product_categories[$i])-1]['id'], true) . ' ' . $category_path . '
';
}
}
$product_categories_string = substr($product_categories_string, 0, -4);
$contents[] = array('text' => '
' . $product_categories_string);
$contents[] = array('align' => 'center', 'text' => '
' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
?>