commit a4f48ab9eb8fadd4d79e7611c0cda15d2881c203
Author: horkym <37276521+horkym@users.noreply.github.com>
Date:   Fri Mar 16 14:19:34 2018 +0100

    Založení projektu
    
    Založení nového projektu.

diff --git a/app/control/control.php b/app/control/control.php
new file mode 100644
index 0000000..4dca0e3
--- /dev/null
+++ b/app/control/control.php
@@ -0,0 +1,25 @@
+﻿<?php
+
+    require_once "../model/dao/dao.php";
+    require_once "../model/db/db-web.php";
+    require_once "../model/session.php";
+    
+    $dbh = new DB_WEB();
+    $session = new Session();
+
+    include "../view/header.php";
+    include "../view/menu.php";
+    
+    if (!isSet($_GET["view"])) {
+    
+        include "../view/intro.php";
+        
+    } else {
+        
+        include "../view/intro.php";
+        
+    }
+
+    include "../view/footer.php";
+
+?>
diff --git a/app/model/dao/dao.php b/app/model/dao/dao.php
new file mode 100644
index 0000000..36a8d71
--- /dev/null
+++ b/app/model/dao/dao.php
@@ -0,0 +1,20 @@
+<?php
+
+require_once '../model/db/db-web.php';
+
+class DAO {
+  
+    protected $dbh;
+  
+    public function setDB($dbh) {
+        $this->dbh = $dbh;
+    }
+
+    public function delete($id) {
+        $query = "DELETE FROM pom WHERE id='$id'";
+        $stmt = $this->dbh->executeQuery($query);
+    }
+    
+}
+
+?>
diff --git a/app/model/db/db-exception.php b/app/model/db/db-exception.php
new file mode 100644
index 0000000..c7a3f80
--- /dev/null
+++ b/app/model/db/db-exception.php
@@ -0,0 +1,16 @@
+<?php
+
+class DB_Exception extends Exception {
+    
+    public function __construct($message=false, $code=false) {
+        if (!$message) {
+            $this->message = mysql_error();
+        } 
+        if (!$code) {
+            $this->code = mysql_errno();
+        }
+    }
+    
+}
+
+?>
diff --git a/app/model/db/db-pdo.php b/app/model/db/db-pdo.php
new file mode 100644
index 0000000..4aa78da
--- /dev/null
+++ b/app/model/db/db-pdo.php
@@ -0,0 +1,68 @@
+﻿<?php
+
+require_once 'db-exception.php';
+
+class DB_PDO {
+  
+    protected $user;
+    protected $pass;
+    protected $dbhost;
+    protected $dbname;
+    protected $dbh;
+  
+    public function __construct($user, $pass, $dbhost, $dbname) {
+        $this->user = $user;
+        $this->pass = $pass;
+        $this->dbhost = $dbhost;
+        $this->dbname = $dbname;
+    }
+  
+    protected function connect() {
+        $this->dbh = new PDO('mysql:host='.$this->dbhost.';dbname='.$this->dbname.';charset=utf8', $this->user, $this->pass);
+        if (!$this->dbh) {
+            throw new DB_Exception;
+        }
+    }
+  
+    public function executeQuery($query) {
+        if (!$this->dbh) {
+            $this->connect();
+        }
+        $ret = $this->dbh->query($query);
+        if (!$ret) {
+            throw new DB_Exception;
+        } else {
+            $stmt = new DB_PDOStatement($this->dbh, $query);
+            $stmt->result = $ret;
+            $stmt->number = $ret->rowCount();
+            return $stmt;
+        }
+    }
+      
+}
+
+class DB_PDOStatement {
+    
+    public $result;
+    public $query;
+    public $number;
+    protected $dbh;
+  
+    public function __construct($dbh, $query) {
+        $this->query = $query;
+        $this->dbh = $dbh;
+        if (!$dbh) {
+            throw new DB_Exception("Spojení s databází se nezdařilo!");
+        }
+    }
+  
+    public function fetchAssoc() {
+        if (!$this->result) {
+            throw new DB_Exception("Dotaz nebyl vykonán!");
+        }
+        return $this->result->fetch(PDO::FETCH_ASSOC);
+    }
+    
+}
+
+?>
diff --git a/app/model/db/db-web.php b/app/model/db/db-web.php
new file mode 100644
index 0000000..803a6d3
--- /dev/null
+++ b/app/model/db/db-web.php
@@ -0,0 +1,18 @@
+<?php
+
+require_once 'db-pdo.php';
+
+class DB_WEB extends DB_PDO {
+  
+    protected $user = "root";
+    protected $pass = "";
+    protected $dbhost = "localhost";
+    protected $dbname = "data";
+  
+    public function __construct() {
+    
+    }
+     
+}
+
+?>
diff --git a/app/model/session.php b/app/model/session.php
new file mode 100644
index 0000000..f631ecd
--- /dev/null
+++ b/app/model/session.php
@@ -0,0 +1,20 @@
+<?php
+
+    class Session {
+    
+        public function __construct() {
+            ob_start();
+            session_start();
+        }
+        
+        public function create($nazev, $vloz) {
+            $_SESSION[$nazev] = $vloz;
+        }
+        
+        public function delete($nazev) {
+            unSet($_SESSION[$nazev]);
+        }
+        
+    }
+
+?>
\ No newline at end of file
diff --git a/app/view/footer.php b/app/view/footer.php
new file mode 100644
index 0000000..dc7278d
--- /dev/null
+++ b/app/view/footer.php
@@ -0,0 +1,9 @@
+﻿              </div>
+          </div>
+          <div>
+              &copy; ASWI team 2018   
+          </div>
+      </div>
+  </body>
+  
+</html>
diff --git a/app/view/header.php b/app/view/header.php
new file mode 100644
index 0000000..8ccf221
--- /dev/null
+++ b/app/view/header.php
@@ -0,0 +1,15 @@
+﻿<!DOCTYPE html>
+<html lang='cs'>
+  
+  <head>
+    <title>Průjezd vozidel - Plzeňský kraj</title>
+    <meta charset='utf-8'>
+    <meta name='description' content=''>
+    <meta name='keywords' content=''>
+    <meta name='robots' content='all'>
+  </head>
+
+  <body>
+      <div>
+          <h1>Zobrazení dat o průjezdu vozidel pro Plzeňský kraj</h1>
+    
\ No newline at end of file
diff --git a/app/view/intro.php b/app/view/intro.php
new file mode 100644
index 0000000..2e213fa
--- /dev/null
+++ b/app/view/intro.php
@@ -0,0 +1,2 @@
+﻿<h3>Úvodní strana</h3>
+<p>Vítáme Vás ...</p>
\ No newline at end of file
diff --git a/app/view/menu.php b/app/view/menu.php
new file mode 100644
index 0000000..ad64019
--- /dev/null
+++ b/app/view/menu.php
@@ -0,0 +1,6 @@
+﻿<div>
+    <div>
+        <a href="control.php">Úvodní strana</a>
+        <a href="control.php?view=xxx">Další odkaz</a>
+    </div>
+    <div>
diff --git a/css/main.css b/css/main.css
new file mode 100644
index 0000000..e69de29
diff --git a/fonts/READ_ME.txt b/fonts/READ_ME.txt
new file mode 100644
index 0000000..ab34fe3
--- /dev/null
+++ b/fonts/READ_ME.txt
@@ -0,0 +1 @@
+Jedna se o volne pouzitelne fonty stazene z http://www.1001fonts.com/free-fonts-for-commercial-use.html
\ No newline at end of file
diff --git a/fonts/anonymous-pro/AnonymousPro-Bold.ttf b/fonts/anonymous-pro/AnonymousPro-Bold.ttf
new file mode 100644
index 0000000..985bd40
Binary files /dev/null and b/fonts/anonymous-pro/AnonymousPro-Bold.ttf differ
diff --git a/fonts/anonymous-pro/AnonymousPro-BoldItalic.ttf b/fonts/anonymous-pro/AnonymousPro-BoldItalic.ttf
new file mode 100644
index 0000000..838f2d1
Binary files /dev/null and b/fonts/anonymous-pro/AnonymousPro-BoldItalic.ttf differ
diff --git a/fonts/anonymous-pro/AnonymousPro-Italic.ttf b/fonts/anonymous-pro/AnonymousPro-Italic.ttf
new file mode 100644
index 0000000..43505c1
Binary files /dev/null and b/fonts/anonymous-pro/AnonymousPro-Italic.ttf differ
diff --git a/fonts/anonymous-pro/AnonymousPro-Regular.ttf b/fonts/anonymous-pro/AnonymousPro-Regular.ttf
new file mode 100644
index 0000000..06aafc0
Binary files /dev/null and b/fonts/anonymous-pro/AnonymousPro-Regular.ttf differ
diff --git a/fonts/anonymous-pro/FONTLOG.txt b/fonts/anonymous-pro/FONTLOG.txt
new file mode 100644
index 0000000..bf8becf
--- /dev/null
+++ b/fonts/anonymous-pro/FONTLOG.txt
@@ -0,0 +1,45 @@
+FONTLOG for Anonymous Pro
+
+This file provides detailed information on the Anonymous Pro Font Software. This information should be distributed along with the Anonymous Pro fonts and any derivative works.
+
+Anonymous Pro is a family of four fixed-width fonts designed especially with coding in mind. Characters that could be mistaken for one another (O, 0, I, l, 1, etc.) have distinct shapes to make them easier to tell apart in the context of source code.
+
+Anonymous Pro is distributed with the Open Font License (OFL).
+
+For more information, see the file "README for Anonymous Pro".
+
+Mark Simonson
+September 8, 2010
+Mark Simonson Studio LLC 
+http://www.ms-studio.com 
+mark@marksimonson.com
+
+CHANGELOG
+
+8 September 2010 (Mark Simonson) Anonymous Pro Version 1.002
+- Fixed (stupid) incorrect design of quotesinglbase and quotedblbase
+- Lengthened hyphen
+- Shortened underscore so that it is distinct from adjacent underscores
+- Increased the weight of the ampersand to make it visually the same weight as other glyphs
+- Adjusted vertical position of "<", ">" and math characters to align with hyphen
+- Modified design of Cyrillic "ze" to better distinguish it from "3"
+- Modified 12ppm and 13ppm "m" bitmap so it does not touch adjacent glyphs
+- Corrected asymmetrical parentheses in 13ppm bitmaps
+- Corrected missing encoding of .null and CR
+- Added installation instructions for Linux to README.txt
+
+9 October 2009 (Mark Simonson) Anonymous Pro Version 1.001
+- Lowered comma and comma portion of semicolon for better legibility
+- Tweaked design of quotesinglbase and quotedblbase
+- Tweaked bitmaps for period and other "dot" punctuation for better legibility
+- Fixed bad value in CVT that caused uneven cap height at some sizes on Windows
+- Corrected 13ppem bitmaps for omicrontonos
+- Switched to the SIL Open Font License (OFL)
+- Created FONTLOG and new README file
+
+10 June 2009 (Mark Simonson) Anonymous Pro Version 1.0
+- Initial release of Anonymous Pro fonts
+
+ACKNOWLEDGEMENTS
+
+Thanks to Susan Lesch and David Lamkins for creating the Anonymous 9 Macintosh bitmap font (1991-1994), the basis for the TrueType fonts Anonymous™ and its successor, Anonymous Pro.
\ No newline at end of file
diff --git a/fonts/anonymous-pro/OFL.txt b/fonts/anonymous-pro/OFL.txt
new file mode 100644
index 0000000..5ca1911
--- /dev/null
+++ b/fonts/anonymous-pro/OFL.txt
@@ -0,0 +1,94 @@
+Copyright (c) 2009, Mark Simonson (http://www.ms-studio.com, mark@marksimonson.com),
+with Reserved Font Name Anonymous Pro.
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded, 
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..c48ff3f
--- /dev/null
+++ b/index.php
@@ -0,0 +1,5 @@
+<?php
+
+    header("Location: app/control/control.php");
+
+?>
\ No newline at end of file
