Ejemplo n.º 1
0
            	  
            	  $obj_upload = new Upload($_FILES['userfile4'],$_POST['fname4'],trim($lcd));
            	  $obj_upload->load_file();
              }
              
              
              if(isset($_FILES['userfile5']) && is_uploaded_file($_FILES['userfile5']['tmp_name'])){
            	  
            	  $obj_upload = new Upload($_FILES['userfile5'],$_POST['fname5'],trim($whitegoods));
            	  $obj_upload->load_file();
              }*/
            if (isset($con)) {
                unset($con);
            }
            $con = new Db_connection();
            $con->update_pricebook_title($_POST['title']);
            print "<font color='green'>Files have been successfully uploaded !</font><br /><br />";
        } else {
            print '<p class="error">Error! You need to upload all the data files to the server.</p>';
        }
    } else {
        print '<p class="error">Please input a title for new price book.</p>';
    }
}
?>

            <h1>Upload Price Book</h1>
			<br /><br />
			
			<table class="rec-table">