示例#1
0
 }
 if (isset($_POST['sale_price_dates_to'])) {
     $dates_to = strtotime($_POST['sale_price_dates_to']);
     $mold->pm_set_mold_sale_price_dates_to($dates_to);
 }
 // WEIGHT
 if (isset($_POST['mold_weight'])) {
     $mold->pm_set_mold_weight($_POST['mold_weight']);
 }
 // LENGTH
 if (isset($_POST['mold_length'])) {
     $mold->pm_set_mold_length($_POST['mold_length']);
 }
 // WIDTH
 if (isset($_POST['mold_width'])) {
     $mold->pm_set_mold_width($_POST['mold_width']);
 }
 // HEIGHT
 if (isset($_POST['mold_height'])) {
     $mold->pm_set_mold_height($_POST['mold_height']);
 }
 // SHIPPING CLASS
 if (isset($_POST['mold_shipping_class'])) {
     $mold->pm_set_mold_shipping_class($_POST['mold_shipping_class']);
 }
 // RESET EVERYTHING
 if (isset($_POST['reset']) && $_POST['reset'] == "yes") {
     $mold->pm_default_values();
 }
 if ($_POST['action'] == 'new') {
     ## TEMPORARY SAVING ##