Johannes Zellner %!s(int64=5) %!d(string=hai) anos
pai
achega
0b9573c4fa

+ 23 - 1
website/DataBase/Priceset.php

@@ -37,6 +37,18 @@ class Priceset
 		$this->db->query($query);
 	}
 
+	function exists($priceset_id)
+	{
+		$query = "SELECT priceset_id FROM ".$this->db->priceset_table." WHERE priceset_id='".$priceset_id."'";
+
+		$result = $this->db->fetchRows($this->db->query($query));
+
+		if(count($result) > 0)
+			return true;
+		else
+			return false;
+	}
+
 	function get($priceset_id = "", $row_names = array(), $search = "")
 	{
 		if($priceset_id == "")
@@ -60,7 +72,17 @@ class Priceset
 		}
 		else
 		{
-			$query = "SELECT * FROM ".$this->db->priceset_table." WHERE priceset_id='".$priceset_id."'";
+			if(count($row_names) == 0)
+				$query = "SELECT * FROM ".$this->db->priceset_table;
+			else
+			{
+				$query = "SELECT ".$row_names[0];
+				for($i = 1; $i < count($row_names); $i++)
+				$query .= ", ".$row_names[$i];
+				$query .= " FROM ".$this->db->priceset_table;
+			}
+
+			$query .= " WHERE priceset_id='".$priceset_id."'";
 			$query .= " ORDER BY priceset_id ASC";
 
 			return $this->db->fetchRows($this->db->query($query));

+ 30 - 2
website/DataBase/Product.php

@@ -33,7 +33,6 @@ class Product
 
 		$query .= "WHERE product_id='".$product_id."'";
 
-		//echo $query;
 		$this->db->query($query);
 	}
 
@@ -44,6 +43,21 @@ class Product
 		$this->db->query($query);
 	}
 
+	function exists($product_id, $search = "")
+	{
+		$query = "SELECT product_id FROM ".$this->db->product_table." WHERE product_id='".$product_id."'";
+
+		if($search != "")
+			$query .= " AND ".$search;
+
+		$result = $this->db->fetchRows($this->db->query($query));
+
+		if(count($result) > 0)
+			return true;
+		else
+			return false;
+	}
+
 	function get($product_id = "", $row_names = array(), $search = "")
 	{
 		if($product_id == "")
@@ -67,7 +81,21 @@ class Product
 		}
 		else
 		{
-			$query = "SELECT * FROM ".$this->db->product_table." WHERE product_id='".$product_id."'";
+			if(count($row_names) == 0)
+				$query = "SELECT * FROM ".$this->db->product_table;
+			else
+			{
+				$query = "SELECT ".$row_names[0];
+				for($i = 1; $i < count($row_names); $i++)
+					$query .= ", ".$row_names[$i];
+				$query .= " FROM ".$this->db->product_table;
+			}
+
+			$query .= " WHERE product_id='".$product_id."'";
+
+			if($search != "")
+				$query .= " AND ".$search;
+
 			$query .= " ORDER BY product_id ASC";
 
 			return $this->db->fetchRows($this->db->query($query));

+ 2 - 2
website/app/DataBase/Bill_Product.php

@@ -4,8 +4,8 @@ require_once("../DataBase/database.php");
 
 require_once("DataBase/Customer.php");
 require_once("DataBase/Bill.php");
-require_once("DataBase/Product.php");
-require_once("DataBase/Price.php");
+require_once("../DataBase/Product.php");
+require_once("../DataBase/Price.php");
 require_once("../DataBase/Tax.php");
 
 class Bill_Product

+ 0 - 99
website/app/DataBase/Category.php

@@ -1,99 +0,0 @@
-<?php
-
-require_once("../DataBase/database.php");
-
-class Category
-{
-	function Category()
-	{
-		$this->db = new Database();
-	}
-
-	function create($value)
-	{
-		$query = "INSERT INTO ".$this->db->category_table." VALUES('".$value[0]."'";
-		for($i = 1; $i < count($value); $i++)
-			$query .= ", '".str_replace("'", "\'", $value[$i])."'";
-		$query .= ")";
-
-		$this->db->query($query);
-	}
-
-	function update($category_id, $value)
-	{
-		$query = "UPDATE ".$this->db->category_table." SET ";
-		$query .= "name='".$value[0]."', ";
-		$query .= "details='".$value[1]."' ";
-
-		$query .= "WHERE category_id='".$category_id."'";
-
-		$this->db->query($query);
-	}
-
-	function delete($category_id)
-	{
-		$query = "DELETE FROM ".$this->db->category_table." WHERE category_id='$category_id'";
-
-		$this->db->query($query);
-	}
-
-	function get($category_id = "", $row_names = array(), $search = "")
-	{
-		if($category_id == "")
-		{
-			if(count($row_names) == 0)
-				$query = "SELECT * FROM ".$this->db->category_table;
-			else
-			{
-				$query = "SELECT ".$row_names[0];
-				for($i = 1; $i < count($row_names); $i++)
-					$query .= ", ".$row_names[$i];
-				$query .= " FROM ".$this->db->category_table;
-			}
-
-			if($search != "")
-				$query .= " WHERE ".$search;
-
-			$query .= " ORDER BY category_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-		else
-		{
-			$query = "SELECT * FROM ".$this->db->category_table." WHERE category_id='".$category_id."' ORDER BY category_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-	}
-
-	function getABC($category_id = "", $row_names = array(), $search = "")
-	{
-		if($category_id == "")
-		{
-			if(count($row_names) == 0)
-				$query = "SELECT * FROM ".$this->db->category_table;
-			else
-			{
-				$query = "SELECT ".$row_names[0];
-				for($i = 1; $i < count($row_names); $i++)
-					$query .= ", ".$row_names[$i];
-				$query .= " FROM ".$this->db->category_table;
-			}
-
-			if($search != "")
-				$query .= " WHERE ".$search;
-
-			$query .= " ORDER BY name ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-		else
-		{
-			$query = "SELECT * FROM ".$this->db->category_table." WHERE category_id='".$category_id."' ORDER BY category_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-	}
-}
-
-?>

+ 0 - 69
website/app/DataBase/Group.php

@@ -1,69 +0,0 @@
-<?php
-
-require_once("../DataBase/database.php");
-
-class Group
-{
-	function Group()
-	{
-		$this->db = new Database();
-	}
-
-	function create($group_id, $value)
-	{
-		$query = "INSERT INTO ".$this->db->group_table." VALUES('".$group_id."'";
-		for($i = 0; $i < count($value); $i++)
-			$query .= ", '".$value[$i]."'";
-		$query .= ")";
-
-		$this->db->query($query);
-	}
-
-	function update($group_id, $value)
-	{
-		$query = "UPDATE ".$this->db->group_table." SET ";
-		$query .= "name='".$value[0]."' ";
-
-		$query .= "WHERE group_id='".$group_id."'";
-
-		$this->db->query($query);
-	}
-
-	function delete($group_id)
-	{
-		$query = "DELETE FROM ".$this->db->group_table." WHERE group_id='$group_id'";
-
-		$this->db->query($query);
-	}
-
-	function get($group_id = "", $row_names = array(), $search = "")
-	{
-		if($group_id == "")
-		{
-			if(count($row_names) == 0)
-				$query = "SELECT * FROM ".$this->db->group_table;
-			else
-			{
-				$query = "SELECT ".$row_names[0];
-				for($i = 1; $i < count($row_names); $i++)
-					$query .= ", ".$row_names[$i];
-				$query .= " FROM ".$this->db->group_table;
-			}
-
-			if($search != "")
-				$query .= " WHERE ".$search;
-
-			$query .= " ORDER BY group_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-		else
-		{
-			$query = "SELECT * FROM ".$this->db->group_table." WHERE group_id='".$group_id."' ORDER BY group_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-	}
-}
-
-?>

+ 0 - 87
website/app/DataBase/Price.php

@@ -1,87 +0,0 @@
-<?php
-
-require_once("../DataBase/database.php");
-
-class Price
-{
-	function Price()
-	{
-		$this->db = new Database();
-	}
-
-	function exists($priceset_id, $product_id)
-	{
-		$query = "SELECT * FROM ".$this->db->price_table." WHERE priceset_id='".$priceset_id."' AND product_id='".$product_id."'";
-
-		if(count($this->db->fetchRows($this->db->query($query))) > 0)
-			return true;
-		else
-			return false;
-	}
-
-	function create($priceset_id, $product_id, $value)
-	{
-		$query = "INSERT INTO ".$this->db->price_table." VALUES('', '".$priceset_id."', '".$product_id."'";
-		for($i = 0; $i < count($value); $i++)
-			$query .= ", '".$value[$i]."'";
-		$query .= ")";
-
-		$this->db->query($query);
-	}
-
-	function update($priceset_id, $product_id, $value)
-	{
-		$query = "UPDATE ".$this->db->price_table." SET ";
-		$query .= "price='".$value[0]."' ";
-
-		$query .= "WHERE priceset_id='".$priceset_id."' AND product_id='".$product_id."'";
-
-		$this->db->query($query);
-	}
-
-	function delete($price_id)
-	{
-		$query = "DELETE FROM ".$this->db->price_table." WHERE price_id='$price_id'";
-
-		$this->db->query($query);
-	}
-
-	function get($price_id = "", $col_names = array(), $search = "")
-	{
-		if($price_id == "")
-		{
-			if(count($col_names) == 0)
-				$query = "SELECT * FROM ".$this->db->price_table;
-			else
-			{
-				$query = "SELECT ".$col_names[0];
-				for($i = 1; $i < count($col_names); $i++)
-					$query .= ", ".$col_names[$i];
-				$query .= " FROM ".$this->db->price_table;
-			}
-
-			if($search != "")
-				$query .= " WHERE ".$search;
-
-			$query .= " ORDER BY price_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-		else
-		{
-			$query = "SELECT * FROM ".$this->db->price_table." WHERE price_id='".$price_id."'";
-			$query .= " ORDER BY price_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-	}
-
-	function getPrice($priceset_id, $product_id)
-	{
-		$query = "SELECT * FROM ".$this->db->price_table." WHERE priceset_id='".$priceset_id."' AND product_id='".$product_id."'";
-
-		return $this->db->fetchRows($this->db->query($query));
-	}
-}
-
-?>

+ 0 - 93
website/app/DataBase/Priceset.php

@@ -1,93 +0,0 @@
-<?php
-
-require_once("../DataBase/database.php");
-
-class Priceset
-{
-	function Priceset()
-	{
-		$this->db = new Database();
-	}
-
-	function create($priceset_id, $value)
-	{
-		$query = "INSERT INTO ".$this->db->priceset_table." VALUES('".$priceset_id."'";
-		for($i = 0; $i < count($value); $i++)
-			$query .= ", '".$value[$i]."'";
-		$query .= ")";
-
-		$this->db->query($query);
-	}
-
-	function update($priceset_id, $value)
-	{
-		$query = "UPDATE ".$this->db->priceset_table." SET ";
-		$query .= "name='".$value[0]."', ";
-		$query .= "netto='".$value[1]."' ";
-
-		$query .= "WHERE priceset_id='".$priceset_id."'";
-
-		$this->db->query($query);
-	}
-
-	function delete($priceset_id)
-	{
-		$query = "DELETE FROM ".$this->db->priceset_table." WHERE priceset_id='$priceset_id'";
-
-		$this->db->query($query);
-	}
-
-	function exists($priceset_id)
-	{
-		$query = "SELECT priceset_id FROM ".$this->db->priceset_table." WHERE priceset_id='".$priceset_id."'";
-
-		$result = $this->db->fetchRows($this->db->query($query));
-
-		if(count($result) > 0)
-			return true;
-		else
-			return false;
-	}
-
-	function get($priceset_id = "", $row_names = array(), $search = "")
-	{
-		if($priceset_id == "")
-		{
-			if(count($row_names) == 0)
-				$query = "SELECT * FROM ".$this->db->priceset_table;
-			else
-			{
-				$query = "SELECT ".$row_names[0];
-				for($i = 1; $i < count($row_names); $i++)
-					$query .= ", ".$row_names[$i];
-				$query .= " FROM ".$this->db->priceset_table;
-			}
-
-			if($search != "")
-				$query .= " WHERE ".$search;
-
-			$query .= " ORDER BY priceset_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-		else
-		{
-			if(count($row_names) == 0)
-			$query = "SELECT * FROM ".$this->db->priceset_table;
-			else
-			{
-				$query = "SELECT ".$row_names[0];
-				for($i = 1; $i < count($row_names); $i++)
-				$query .= ", ".$row_names[$i];
-				$query .= " FROM ".$this->db->priceset_table;
-			}
-
-			$query .= " WHERE priceset_id='".$priceset_id."'";
-			$query .= " ORDER BY priceset_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-	}
-}
-
-?>

+ 0 - 151
website/app/DataBase/Product.php

@@ -1,151 +0,0 @@
-<?php
-
-require_once("../DataBase/database.php");
-
-class Product
-{
-	function Product()
-	{
-		$this->db = new Database();
-	}
-
-	function create($product_id, $value)
-	{
-		$query = "INSERT INTO ".$this->db->product_table." VALUES('".$product_id."'";
-		for($i = 0; $i < count($value); $i++)
-			$query .= ", '".str_replace("'", "\'", $value[$i])."'";
-		$query .= ")";
-
-		$this->db->query($query);
-	}
-
-	function update($product_id, $value)
-	{
-		$query = "UPDATE ".$this->db->product_table." SET ";
-		$query .= "name='".str_replace("'", "\'", $value[0])."', ";
-		$query .= "details='".str_replace("'", "\'", $value[1])."', ";
-		$query .= "category_id='".str_replace("'", "\'", $value[2])."', ";
-		$query .= "tax_id='".str_replace("'", "\'", $value[3])."', ";
-		$query .= "available='".str_replace("'", "\'", $value[4])."', ";
-		$query .= "group_id='".str_replace("'", "\'", $value[5])."', ";
-		$query .= "order_number='".str_replace("'", "\'", $value[6])."', ";
-		$query .= "anmerkung='".str_replace("'", "\'", $value[7])."' ";
-
-		$query .= "WHERE product_id='".$product_id."'";
-
-		$this->db->query($query);
-	}
-
-	function delete($product_id)
-	{
-		$query = "DELETE FROM ".$this->db->product_table." WHERE product_id='$product_id'";
-
-		$this->db->query($query);
-	}
-
-	function exists($product_id, $search = "")
-	{
-		$query = "SELECT product_id FROM ".$this->db->product_table." WHERE product_id='".$product_id."'";
-
-		if($search != "")
-			$query .= " AND ".$search;
-
-		$result = $this->db->fetchRows($this->db->query($query));
-
-		if(count($result) > 0)
-			return true;
-		else
-			return false;
-	}
-
-	function get($product_id = "", $row_names = array(), $search = "")
-	{
-		if($product_id == "")
-		{
-			if(count($row_names) == 0)
-				$query = "SELECT * FROM ".$this->db->product_table;
-			else
-			{
-				$query = "SELECT ".$row_names[0];
-				for($i = 1; $i < count($row_names); $i++)
-					$query .= ", ".$row_names[$i];
-				$query .= " FROM ".$this->db->product_table;
-			}
-
-			if($search != "")
-			{
-				//$search = str_replace("(", "\(", $search);
-				//$search = str_replace(")", "\)", $search);
-				//$search = str_replace("/", "\/", $search);
-				$query .= " WHERE ".$search;
-			}
-
-			$query .= " ORDER BY product_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-		else
-		{
-			if(count($row_names) == 0)
-				$query = "SELECT * FROM ".$this->db->product_table;
-			else
-			{
-				$query = "SELECT ".$row_names[0];
-				for($i = 1; $i < count($row_names); $i++)
-					$query .= ", ".$row_names[$i];
-				$query .= " FROM ".$this->db->product_table;
-			}
-
-			$query .= " WHERE product_id='".$product_id."'";
-
-			if($search != "")
-				$query .= " AND ".$search;
-
-			$query .= " ORDER BY product_id ASC";
-
-			return $this->db->fetchRows($this->db->query($query));
-		}
-	}
-
-	function getAmountByDate($product_id, $date_from, $date_to, $assistant_id)
-	{
-		$query = "SELECT SUM(".$this->db->bill_product_table.".amount) FROM ".$this->db->bill_table." ";
-		$query .= "RIGHT JOIN ".$this->db->bill_product_table." ON ".$this->db->bill_table.".bill_id=".$this->db->bill_product_table.".bill_id ";
-		$query .= "WHERE ".$this->db->bill_table.".date>='".$date_from."' ";
-		$query .= "AND ".$this->db->bill_table.".date<='".$date_to."' ";
-		$query .= "AND ".$this->db->bill_table.".assistant_id<='".$assistant_id."' ";
-		$query .= "AND ".$this->db->bill_product_table.".product_id='".$product_id."' ";
-
-		$retval = $this->db->fetchRows($this->db->query($query));
-
-		return $retval[0][0];
-	}
-
-	function getBillsByDate($product_id, $date_from, $date_to, $assistant_id)
-	{
-		$query = "SELECT ".$this->db->bill_table.".bill_number,SUM(".$this->db->bill_product_table.".amount) FROM ".$this->db->bill_table." ";
-		$query .= "RIGHT JOIN ".$this->db->bill_product_table." ON ".$this->db->bill_table.".bill_id=".$this->db->bill_product_table.".bill_id ";
-		$query .= "WHERE ".$this->db->bill_table.".date>='".$date_from."' ";
-		$query .= "AND ".$this->db->bill_table.".date<='".$date_to."' ";
-		$query .= "AND ".$this->db->bill_table.".assistant_id<='".$assistant_id."' ";
-		$query .= "AND ".$this->db->bill_product_table.".product_id='".$product_id."' ";
-		$query .= "GROUP BY ".$this->db->bill_table.".customer_id ";
-
-		return $this->db->fetchRows($this->db->query($query));
-	}
-
-	function getCustomersByDate($product_id, $date_from, $date_to, $assistant_id)
-	{
-		$query = "SELECT DISTINCT ".$this->db->bill_table.".customer_id,SUM(".$this->db->bill_product_table.".amount) FROM ".$this->db->bill_table." ";
-		$query .= "RIGHT JOIN ".$this->db->bill_product_table." ON ".$this->db->bill_table.".bill_id=".$this->db->bill_product_table.".bill_id ";
-		$query .= "WHERE ".$this->db->bill_table.".date>='".$date_from."' ";
-		$query .= "AND ".$this->db->bill_table.".date<='".$date_to."' ";
-		$query .= "AND ".$this->db->bill_table.".assistant_id<='".$assistant_id."' ";
-		$query .= "AND ".$this->db->bill_product_table.".product_id='".$product_id."' ";
-		$query .= "GROUP BY ".$this->db->bill_table.".customer_id ";
-
-		return $this->db->fetchRows($this->db->query($query));
-	}
-}
-
-?>

+ 2 - 2
website/app/Modules/Bill/db_action.php

@@ -4,9 +4,9 @@ require_once("DataBase/Bill.php");
 require_once("DataBase/Bill_Product.php");
 require_once("../DataBase/Tour.php");
 require_once("../DataBase/Assistant.php");
-require_once("DataBase/Product.php");
+require_once("../DataBase/Product.php");
 require_once("DataBase/Customer.php");
-require_once("DataBase/Price.php");
+require_once("../DataBase/Price.php");
 require_once("../DataBase/Tax.php");
 
 $db_action = var_get_post("db_action", "");

+ 0 - 15
website/app/Modules/Category/anleitung.txt

@@ -1,15 +0,0 @@
-Hallo Rudi
-
-Im Anhang befinden sich die benötigten Dateien:
-
-*alle Dateien musst du überschreiben*
-
-- Catgory.php        Diese Datei musst du in den Ordner "c:\apache\htdocs\DataBase\"     kopieren
-- new_form.php und db_action.php         Beide Dateien kommen in den Ordner "c:\apache\htdocs\Modules\Category\"
-
-Falls es dann immer noch nicht klappt, antworte auf die Email, mit der eventuell auftretenden Fehlermeldung.
-
-Danke.
-
-Viel Spass,
-   Johannes 

+ 1 - 1
website/app/Modules/Category/db_action.php

@@ -3,7 +3,7 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Category.php");
+require_once("../DataBase/Category.php");
 
 $db_action = var_get_post("db_action", "");
 

+ 1 - 1
website/app/Modules/Configuration/db_action.php

@@ -3,7 +3,7 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Category.php");
+require_once("../DataBase/Category.php");
 
 $db_action = var_get_post("db_action", "");
 $category = new Category();

+ 1 - 1
website/app/Modules/Customer/db_action.php

@@ -4,7 +4,7 @@ require_once("util.php");
 
 require_once("DataBase/Customer.php");
 require_once("../DataBase/Tour.php");
-require_once("DataBase/Priceset.php");
+require_once("../DataBase/Priceset.php");
 
 $db_action = var_get_post("db_action", "");
 

+ 5 - 5
website/app/Modules/Product/db_action.php

@@ -2,12 +2,12 @@
 
 require_once("util.php");
 
-require_once("DataBase/Product.php");
+require_once("../DataBase/Product.php");
 require_once("../DataBase/Tax.php");
-require_once("DataBase/Category.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Group.php");
-require_once("DataBase/Price.php");
+require_once("../DataBase/Category.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Group.php");
+require_once("../DataBase/Price.php");
 
 
 $db_action = var_get_post("db_action", "");

+ 2 - 2
website/app/action_product.php

@@ -3,14 +3,14 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Product.php");
+require_once("../DataBase/Product.php");
 
 ?>
 
 <html>
 <head>
 	<title> Index </title>
-	
+
 <?php
 
 echo getHead();

+ 1 - 1
website/app/action_status.php

@@ -2,7 +2,7 @@
 
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Product.php");
+require_once("../DataBase/Product.php");
 
 ?>
 

+ 2 - 2
website/app/category.php

@@ -3,14 +3,14 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Category.php");
+require_once("../DataBase/Category.php");
 
 ?>
 
 <html>
 <head>
 	<title> Index </title>
-	
+
 <?php
 
 include("Modules/Category/db_action.php");

+ 2 - 2
website/app/configuration.php

@@ -4,8 +4,8 @@ require_once("util.php");
 require_once("NTK/NTK.php");
 
 require_once("../DataBase/Tax.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Group.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Group.php");
 
 ?>
 

+ 5 - 5
website/app/list_print.php

@@ -1,9 +1,9 @@
 <?php
 
-require_once("DataBase/Product.php");
-require_once("DataBase/Price.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Group.php");
+require_once("../DataBase/Product.php");
+require_once("../DataBase/Price.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Group.php");
 
 $product = new Product();
 $price = new Price();
@@ -27,7 +27,7 @@ $group = new Group();
 			Produkt
 		</td>
 		<td>
-			
+
 		</td>
 	</tr>
 </table>

+ 5 - 5
website/app/print.php

@@ -3,11 +3,11 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Product.php");
-require_once("DataBase/Group.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Price.php");
-require_once("DataBase/Category.php");
+require_once("../DataBase/Product.php");
+require_once("../DataBase/Group.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Price.php");
+require_once("../DataBase/Category.php");
 require_once("../DataBase/Tax.php");
 require_once("../DataBase/Assistant.php");
 require_once("DataBase/Bill.php");

+ 3 - 3
website/app/print_bill.php

@@ -5,10 +5,10 @@ require_once("util.php");
 require_once("DataBase/Bill.php");
 require_once("../DataBase/Assistant.php");
 require_once("DataBase/Customer.php");
-require_once("DataBase/Product.php");
+require_once("../DataBase/Product.php");
 require_once("DataBase/Bill_Product.php");
-require_once("DataBase/Price.php");
-require_once("DataBase/Priceset.php");
+require_once("../DataBase/Price.php");
+require_once("../DataBase/Priceset.php");
 require_once("../DataBase/Tax.php");
 
 $bill_id = var_get_post("bill_id", "");

+ 5 - 5
website/app/print_dialog.php

@@ -3,11 +3,11 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Product.php");
-require_once("DataBase/Group.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Price.php");
-require_once("DataBase/Category.php");
+require_once("../DataBase/Product.php");
+require_once("../DataBase/Group.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Price.php");
+require_once("../DataBase/Category.php");
 require_once("../DataBase/Tax.php");
 require_once("../DataBase/Assistant.php");
 require_once("DataBase/Bill.php");

+ 1 - 1
website/app/print_tour.php

@@ -2,7 +2,7 @@
 
 require_once("util.php");
 
-require_once("DataBase/Product.php");
+require_once("../DataBase/Product.php");
 require_once("DataBase/Bill.php");
 require_once("../DataBase/Tour.php");
 require_once("DataBase/Bill_Product.php");

+ 1 - 1
website/app/product.php

@@ -2,7 +2,7 @@
 
 require_once("util.php");
 require_once("NTK/NTK.php");
-require_once("DataBase/Product.php");
+require_once("../DataBase/Product.php");
 
 ?>
 

+ 5 - 5
website/app/stat_bill_merge.php

@@ -3,11 +3,11 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Product.php");
-require_once("DataBase/Group.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Price.php");
-require_once("DataBase/Category.php");
+require_once("../DataBase/Product.php");
+require_once("../DataBase/Group.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Price.php");
+require_once("../DataBase/Category.php");
 require_once("../DataBase/Tax.php");
 require_once("../DataBase/Assistant.php");
 require_once("DataBase/Bill.php");

+ 5 - 5
website/app/stat_product_date_count.php

@@ -3,11 +3,11 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Product.php");
-require_once("DataBase/Group.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Price.php");
-require_once("DataBase/Category.php");
+require_once("../DataBase/Product.php");
+require_once("../DataBase/Group.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Price.php");
+require_once("../DataBase/Category.php");
 require_once("../DataBase/Tax.php");
 require_once("../DataBase/Assistant.php");
 require_once("DataBase/Bill.php");

+ 5 - 5
website/app/stat_product_list.php

@@ -3,11 +3,11 @@
 require_once("util.php");
 require_once("NTK/NTK.php");
 
-require_once("DataBase/Product.php");
-require_once("DataBase/Group.php");
-require_once("DataBase/Priceset.php");
-require_once("DataBase/Price.php");
-require_once("DataBase/Category.php");
+require_once("../DataBase/Product.php");
+require_once("../DataBase/Group.php");
+require_once("../DataBase/Priceset.php");
+require_once("../DataBase/Price.php");
+require_once("../DataBase/Category.php");
 require_once("../DataBase/Tax.php");
 require_once("../DataBase/Assistant.php");
 require_once("DataBase/Bill.php");