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) {