Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Ejemplo n.º 2
0
 function MySqlTable($tableName = '')
 {
     $this->tableName = $tableName;
     $c1 = Db_connection::getInstance();
     $db_connection = $c1->getDbConnection();
     $this->link = $db_connection['link'];
     $this->db_name = $db_connection['db_name'];
 }
Ejemplo n.º 3
0
            /*if(isset($_FILES['userfile4']) && is_uploaded_file($_FILES['userfile4']['tmp_name'])){
            	  
            	  $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">