<?php $uploaddir = DIR_WS_IMAGES; $design_folder = 'design_photos/'; use_class('project_plan'); $class_pp = new project_plan(); use_class('project_plan_newdesign'); $class_ppn = new project_plan_newdesign(); $sort_id = 0; if (isset($_POST['sort_id'])) { $sort_id = tep_db_prepare_input($_POST['sort_id']); } $reminder_to = '<select name="reminder" class="input" >'; $reminder_to .= ' <option value="0"></option>'; $reminder_to .= ' <option value="3">Peter</option>'; $reminder_to .= ' <option value="2">Markus</option>'; $reminder_to .= ' <option value="14">Kadek</option>'; //$reminder_to .= ' <option value="6">Teddy</option>'; $reminder_to .= ' </select> '; $design_type = '<select name="design_type" class="input">'; $design_type .= '<option value="1">New Design</option>'; $design_type .= '<option value="2">Change Design - Picture Not Good</option>'; $design_type .= '<option value="3">Change Design - Size Unclear</option>'; $design_type .= '<option value="3">Change Design - Others</option>'; $design_type .= '</select>'; //SUBMIT ACTION if (isset($_POST['me_action'])) { $action = tep_db_prepare_input($_POST['me_action']); $design_id = tep_db_prepare_input($_POST['oi_id']); $supp_id = tep_db_prepare_input($_POST['supp_id']); $status = tep_db_prepare_input($_POST['status']);
<?php //SUBMIT FORM $uploaddir = DIR_WS_IMAGES; $design_folder = 'design_photos/'; use_class('project_plan'); $class_pp = new project_plan(); $category = ''; $type = 0; if (isset($_GET['id'])) { $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'];