本文整理匯總了PHP中design::removeFromColorsRequest方法的典型用法代碼示例。如果您正苦於以下問題:PHP design::removeFromColorsRequest方法的具體用法?PHP design::removeFromColorsRequest怎麽用?PHP design::removeFromColorsRequest使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類design
的用法示例。
在下文中一共展示了design::removeFromColorsRequest方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$notes2 = tep_db_prepare_input($_POST['notes2']);
tep_db_perform('designs', array('designs_description' => $notes2), 'update', "designs_id='{$design->id}'");
$result = array();
$result['notes2'] = $notes2;
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'UPDATECOLORSREQUEST') {
$cr = tep_db_prepare_input($_POST['colors_request']);
$result = array();
$result = $design->updateColorsRequest($session_userinfo['username'], $cr);
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'REMOVEFROMCOLORSREQUEST') {
$cid = tep_db_prepare_input($_POST['color_id']);
$result = array();
$result['colors_removed'] = $design->removeFromColorsRequest($session_userinfo['username'], '', $cid);
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'UPLOADIMAGE') {
$design = new design($id);
if (isset($_FILES['image_1'])) {
$image = $_FILES['image_1'];
$imgno = '1';
$img_title = 'Image 1';
} elseif (isset($_FILES['image_2'])) {
$image = $_FILES['image_2'];
$imgno = '2';
$img_title = 'Image 2';
} elseif (isset($_FILES['image_3'])) {
$image = $_FILES['image_3'];
$imgno = '3';