本文整理汇总了PHP中categories::insert_category方法的典型用法代码示例。如果您正苦于以下问题:PHP categories::insert_category方法的具体用法?PHP categories::insert_category怎么用?PHP categories::insert_category使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类categories
的用法示例。
在下文中一共展示了categories::insert_category方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
// if ($_GET['flag'] == '1') $catfunc->link_product($_GET['pID'], 0);
}
}
if (!isset($_GET['page'])) {
$_GET['page'] = 0;
}
if ($_GET['pID']) {
vam_redirect(vam_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&page=' . $_GET['page'] . '&pID=' . $_GET['pID']));
} else {
vam_redirect(vam_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&page=' . $_GET['page'] . '&cID=' . $_GET['pID']));
}
break;
//EOB setsflag
//EOB setsflag
case 'update_category':
$catfunc->insert_category($_POST, '', 'update');
break;
case 'insert_category':
$catfunc->insert_category($_POST, $current_category_id);
break;
case 'update_product':
$catfunc->insert_product($_POST, $current_category_id, 'update');
break;
case 'insert_product':
$catfunc->insert_product($_POST, $current_category_id);
break;
case 'edit_crossselling':
$catfunc->edit_cross_sell($_GET);
break;
case 'multi_action_confirm':
// --- MULTI DELETE ---
示例2:
//BOF - Dokuman - 2009-11-12 - BUGFIX #0000351: When products disable display on startpage, should update table products_to_categories
$catfunc->set_product_remove_startpage_sql($_GET['pID'], $_GET['flag']);
//if ($_GET['flag'] == '0') xtc_redirect(xtc_href_link(FILENAME_CATEGORIES));
//EOF - Dokuman - 2009-11-12 - BUGFIX #0000351: When products disable display on startpage, should update table products_to_categories
}
}
if ($_GET['pID']) {
xtc_redirect(xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . $catfunc->page_parameter));
} else {
xtc_redirect(xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&cID=' . $_GET['cID'] . $catfunc->page_parameter));
}
break;
//EOB setsflag
//EOB setsflag
case 'update_category':
$catfunc->insert_category($_POST, '', $link, 'update');
break;
case 'insert_category':
$catfunc->insert_category($_POST, $current_category_id, $link);
break;
case 'update_product':
$catfunc->insert_product($_POST, '', $link, 'update');
break;
case 'insert_product':
$catfunc->insert_product($_POST, $current_category_id, $link);
break;
case 'edit_crossselling':
$catfunc->edit_cross_sell($_GET, $link);
break;
case 'multi_action_confirm':
// --- MULTI DELETE ---