예제 #1
0
     $result['status'] = $status;
     $result['class'] = $class;
     $result['type'] = $type;
     ajaxReturn($result);
     exit;
 } elseif ($_POST['me_action'] == 'UPDATESORTS') {
     foreach ($_POST['newsorts'] as $priority => $id) {
         $id = intval(str_replace('des-', '', $id));
         design::updatePriority($id, $priority);
     }
     echo 'OK';
     exit;
 } elseif ($_POST['me_action'] == 'SETSOFLAG') {
     $pid = tep_db_prepare_input($_POST['products_id']);
     $sof = tep_db_prepare_input($_POST['sof']);
     design::updateProductCreateSampleFlag($pid, $sof);
     echo utf8_encode($pid);
     exit;
 } elseif ($_POST['me_action'] == 'RELOADKPI') {
     $kpi_type = tep_db_prepare_input($_POST['kpitype']);
     $kpi_date = tep_db_prepare_input($_POST['kpidate']);
     $result = reloadKPIDesigns($kpi_type, $kpi_date);
     ajaxReturn($result);
     exit;
 } elseif ($_POST['me_action'] == 'SAVEPICWAX') {
     $post_content = tep_db_prepare_input($_POST['post_content']);
     $draft_id = tep_db_prepare_input($_POST['draft_id']);
     $draft = new design_draft($draft_id);
     if ($post_content == 'ADD') {
         $pic_wax = tep_db_prepare_input($_POST['pic_wax']);
         $wax_status = tep_db_prepare_input($_POST['wax_status']);