예제 #1
0
    ## SAVING TO DB ##
    ## This is when the temporary table will be suppressed ##
    if (isset($_POST['save']) && $_POST['save'] == "yes") {
        $mold->pm_save_to_db($mold_id);
        if (isset($_POST['action']) && $_POST['action'] == "new") {
            echo "<script> save_new(); </script>";
        }
    }
    // HEADER //
    ?>
			<h3>
			
				<?php 
    // MOLD NAME text input //
    ## Let's get the mold name already registered ##
    $the_mold = $mold->pm_get_mold_name();
    ?>
				
				<label class="field"><b><?php 
    _e('Name', 'woocommerce-molds');
    ?>
 :</b>
				<?php 
    ## If we have a user value here we can adjust the view ##
    if ($the_mold != "Mold") {
        ?>
 
					<input type="text" id="mold_name" name="mold_name" placeholder="<?php 
        _e('Type the mold name here...', 'woocommerce-molds');
        ?>
" value="<?php