예제 #1
0
 // PRODUCT NAME
 if (isset($_POST['product_name'])) {
     $mold->pm_set_product_name($_POST['product_name']);
 }
 // MOLD NAME
 if (isset($_POST['mold_name'])) {
     $mold->pm_set_mold_name($_POST['mold_name']);
     echo '<input name="term" type="hidden" value="' . $_POST['mold_name'] . '">';
 }
 // MOLD ATTRIBUTE
 if (isset($_POST['attribute'])) {
     $mold->pm_set_mold_attribute($_POST['attribute']);
 }
 // MOLD TERMS
 if (isset($_POST['terms'])) {
     $mold->pm_set_mold_terms(implode(",", $_POST['terms']));
 }
 // MOLD IMAGE
 if (isset($_POST['mold_image'])) {
     $mold->pm_set_mold_image($_POST['mold_image']);
 }
 // MOLD STOCK
 if (isset($_POST['mold_stock'])) {
     $mold->pm_set_mold_stock($_POST['mold_stock']);
 }
 // MOLD SKU
 if (isset($_POST['mold_sku'])) {
     $mold->pm_set_mold_sku($_POST['mold_sku']);
 }
 // MOLD IS ACTIVE
 if (isset($_POST['is_active'])) {