本文整理汇总了PHP中design::retrieveElements方法的典型用法代码示例。如果您正苦于以下问题:PHP design::retrieveElements方法的具体用法?PHP design::retrieveElements怎么用?PHP design::retrieveElements使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类design
的用法示例。
在下文中一共展示了design::retrieveElements方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: design
echo $result;
// echo utf8_encode($result);
// echo utf8_encode(var_dump($row_temp));
exit;
}
if (isset($_POST['me_action'])) {
if ($_POST['me_action'] == 'LOADROWDESIGN') {
$id = tep_db_prepare_input($_POST['designs_id']);
$status = tep_db_prepare_input($_POST['status']);
$sub_status = tep_db_prepare_input($_POST['sub_status']);
$newclass = tep_db_prepare_input($_POST['newclass']);
$design = new design($id);
$draft_filter = $design->status >= 5 ? "approve_status!='R'" : '';
$drafts = $design->retrieveDrafts($draft_filter);
$have_drafts = count($drafts) > 0 ? true : false;
$new_elements = $design->retrieveElements("dd.approve_status!='R'");
$have_elements = count($new_elements) > 0 ? true : false;
$detail_link = '<a href="?open=designs-detail&id=' . $design->id . '&hidemenu=true" class="view_webpage">';
$img1_preview = webImageSource($design->image_1, IMAGE_SIZE_BIG_1, IMAGE_SIZE_BIG_1);
$img2_preview = webImageSource($design->image_2, IMAGE_SIZE_BIG_1, IMAGE_SIZE_BIG_1);
$img1 = webImage($design->image_1, IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1, 'Main Image', 'img-border');
$img2 = webImage($design->image_2, IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1, 'Additional Image', 'img-border');
if ($img1_preview != '') {
$img1 = '<a href="' . $img1_preview . '" class="view_image">' . $img1 . '</a>';
}
if ($img2_preview != '') {
$img2 = '<a href="' . $img2_preview . '" class="view_image">' . $img2 . '</a>';
}
//$image = $img1;//.' '.$img2;
$image = $img2_preview != '' ? $img2 : $img1;
foreach ($drafts as $x => $pic) {