本文整理匯總了PHP中design::updateProductCreateSampleFlag方法的典型用法代碼示例。如果您正苦於以下問題:PHP design::updateProductCreateSampleFlag方法的具體用法?PHP design::updateProductCreateSampleFlag怎麽用?PHP design::updateProductCreateSampleFlag使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類design
的用法示例。
在下文中一共展示了design::updateProductCreateSampleFlag方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ajaxReturn
$result['status'] = $status;
$result['class'] = $class;
$result['type'] = $type;
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'UPDATESORTS') {
foreach ($_POST['newsorts'] as $priority => $id) {
$id = intval(str_replace('des-', '', $id));
design::updatePriority($id, $priority);
}
echo 'OK';
exit;
} elseif ($_POST['me_action'] == 'SETSOFLAG') {
$pid = tep_db_prepare_input($_POST['products_id']);
$sof = tep_db_prepare_input($_POST['sof']);
design::updateProductCreateSampleFlag($pid, $sof);
echo utf8_encode($pid);
exit;
} elseif ($_POST['me_action'] == 'RELOADKPI') {
$kpi_type = tep_db_prepare_input($_POST['kpitype']);
$kpi_date = tep_db_prepare_input($_POST['kpidate']);
$result = reloadKPIDesigns($kpi_type, $kpi_date);
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'SAVEPICWAX') {
$post_content = tep_db_prepare_input($_POST['post_content']);
$draft_id = tep_db_prepare_input($_POST['draft_id']);
$draft = new design_draft($draft_id);
if ($post_content == 'ADD') {
$pic_wax = tep_db_prepare_input($_POST['pic_wax']);
$wax_status = tep_db_prepare_input($_POST['wax_status']);