本文整理匯總了PHP中design::removeImage方法的典型用法代碼示例。如果您正苦於以下問題:PHP design::removeImage方法的具體用法?PHP design::removeImage怎麽用?PHP design::removeImage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類design
的用法示例。
在下文中一共展示了design::removeImage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: webImage
$uploadedimgsize = @getimagesize($image['tmp_name']);
if ($uploadedimgsize[0] > $imglimit || $uploadedimgsize[0] > $imglimit) {
$result = 'File is too big, max width/height allowed is ' . $imglimit . 'px';
} else {
$design->uploadImage($imgno, $image['tmp_name'], $image['name']);
$result = webImage($design->{'image_' . $imgno}, $imgsize, $imgsize, $img_title, 'img-border');
}
echo utf8_encode($result);
exit;
} elseif ($_POST['me_action'] == 'DELETEIMAGE') {
$imgfield = tep_db_prepare_input($_POST['imgfield']);
$design = new design($id);
$result = array();
$result['id'] = $imgfield;
if ($imgfield == 'image_1') {
$design->removeImage('1', true);
$result['img'] = webImage($design->image_1, $imgsize, $imgsize, 'Main Image', 'img-border', '');
} elseif ($imgfield == 'image_2') {
$design->removeImage('2', true);
$result['img'] = webImage($design->image_2, $imgsize, $imgsize, 'Alternate Image', 'img-border', '');
} elseif ($imgfield == 'image_3') {
$design->removeImage('3', true);
$result['img'] = webImage($design->image_3, $imgsize, $imgsize, 'Alternate Image', 'img-border', '');
} elseif ($imgfield == 'image_4') {
$design->removeImage('4', true);
$result['img'] = webImage($design->image_4, $imgsize, $imgsize, 'Alternate Image', 'img-border', '');
}
echo ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'FLAGWATCHLIST') {
$design->flagWatchlist($session_userinfo['id']);