$design_id = tep_db_prepare_input($_GET['id']);
}
if (isset($_GET['type'])) {
    $type = tep_db_prepare_input($_GET['type']);
}
if (isset($_POST['design_id'])) {
    $design_id = tep_db_prepare_input($_POST['design_id']);
}
if (isset($_POST['type'])) {
    $type = tep_db_prepare_input($_POST['type']);
}
$label_text = 'No Image Uploaded ';
$page_title = 'Sample Picture';
$browse_title = 'Browse Picture';
$button_title = 'Upload Sample Picture';
$detail = $class_pp->getDesignDescription2($design_id);
$design_image = $detail['sampling_image'];
$design_name = $detail['project_name'];
$template_image = $detail['project_image'];
$extra_image1 = $detail['extra_images1'];
$extra_image2 = $detail['extra_images2'];
$design_type = $detail['design_type'];
$design_type_description = "";
switch ($design_type) {
    case "1":
        $design_type_description = "New Design";
        break;
    case "2":
        $design_type_description = "Change Design - Picture Not Good";
        break;
    case "3":