diff --git a/controller/admin_notenupload.php b/controller/admin_notenupload.php
index f525f86..f0f1e6e 100644
--- a/controller/admin_notenupload.php
+++ b/controller/admin_notenupload.php
@@ -1,49 +1,77 @@
query("SELECT jndid
+ if (isset($_POST) && $_SERVER['REQUEST_METHOD'] == "POST")
+ {
+ ## Dieses Script wird für jede Datei einzeln aufgerufen durch vpb_uploader.js. Bei 3 Dateien, 3x
+ $titel = $_POST['titel'];
+ $verlag = $_POST['verlag'];
+ $anz_lizenzen = $_POST['anz_lizenzen'];
+ $streamlizenz = $_POST['streamlizenz'];
+
+ if (isset($streamlizenz))
+ {
+ if ($streamlizenz == '1')
+ {
+ $streamlizenz = '1';
+ }
+ else
+ {
+ $streamlizenz = '0';
+ }
+ }
+ else
+ {
+ $streamlizenz = '0';
+ }
+ $datum_file = date("Ymd_His_");
+ #$vpb_file_name = strip_tags($_FILES['upload_file']['name']); //File Name
+ $vpb_file_name = str_replace(array(
+ "ä",
+ "ö",
+ "ü",
+ "ß",
+ "Ä",
+ "Ö",
+ "Ü",
+ " "
+ ) , array(
+ "ae",
+ "oe",
+ "ue",
+ "ss",
+ "Ae",
+ "Oe",
+ "Ue",
+ "_"
+ ) , $_FILES['upload_file']['name']);
+ $originalname = $_FILES['upload_file']['name'];
+ $vpb_file_name = $datum_file . $vpb_file_name;
+ $vpb_file_id = strip_tags($_POST['upload_file_ids']); // File id is gotten from the file name
+ $vpb_file_size = $_FILES['upload_file']['size']; // File Size
+ $vpb_uploaded_files_location = '../media/file_upload/noten/'; //This is the directory where uploaded files are saved on your server
+ $vpb_final_location = $vpb_uploaded_files_location . $vpb_file_name; //Directory to save file plus the file to be saved
+ //Without Validation and does not save filenames in the database
+
+
+ if (move_uploaded_file(strip_tags($_FILES['upload_file']['tmp_name']) , $vpb_final_location))
+ {
+ $datum = date("Y-m-d H:i:s");
+ $result = $db->query("SELECT jndid
FROM jumi_noten_daten
WHERE titel = '$titel'
AND verlag = '$verlag'
AND anz_lizenzen = '$anz_lizenzen'
AND streamlizenz = '$streamlizenz'
");
- $row = $result->fetch_array();
- if($row['jndid'] == ''){
- $sql1 = $db->query("INSERT INTO jumi_noten_daten ( titel
+ $row = $result->fetch_array();
+ if ($row['jndid'] == '')
+ {
+ $sql1 = $db->query("INSERT INTO jumi_noten_daten ( titel
, verlag
, anz_lizenzen
, streamlizenz
@@ -59,12 +87,14 @@ if(isset($_POST) && $_SERVER['REQUEST_METHOD'] == "POST")
, '$datum'
)
");
- $jndid = $db->insert_id;
- }else{
- $jndid = $row['jndid'];
- }
+ $jndid = $db->insert_id;
+ }
+ else
+ {
+ $jndid = $row['jndid'];
+ }
- $sql2 = $db->query("INSERT INTO jumi_noten_uploads ( jndid
+ $sql2 = $db->query("INSERT INTO jumi_noten_uploads ( jndid
, filename
, originalname
, uid
@@ -78,16 +108,90 @@ if(isset($_POST) && $_SERVER['REQUEST_METHOD'] == "POST")
, '$datum'
)
");
- //Display the file id
- echo $vpb_file_id;
- }
- else
- {
- //Display general system error
- echo 'general_system_error';
- }
+ //Display the file id
+ if ($sql2)
+ {
+ echo '
Noten wurden angelegt!
|***|success|***|' . $vpb_file_id;
+ exit;
+ }
+ else
+ {
+ echo ' Noten wurden nicht angelegt: Insert Fehler Datenbank.
|***|error|***|' . $vpb_file_id;
+ exit;
+ }
+ }
+ else
+ {
+ //Display general system error
+ echo 'general_system_error';
+ }
+
+ }
}
+if ($function == 'save_without_files')
+{
+ if (isset($_POST['titel']))
+ {
+ $titel = $_POST['titel'];
+ }
+ if (isset($_POST['verlag']))
+ {
+ $verlag = $_POST['verlag'];
+ }
+ if (isset($_POST['anz_lizenzen']))
+ {
+ $anz_lizenzen = $_POST['anz_lizenzen'];
+ }
+ if (isset($_POST['streamlizenz']))
+ {
+ $streamlizenz = $_POST['streamlizenz'];
+ }
+
+ if (isset($streamlizenz))
+ {
+ if ($streamlizenz == '1')
+ {
+ $streamlizenz = '1';
+ }
+ else
+ {
+ $streamlizenz = '0';
+ }
+ }
+ else
+ {
+ $streamlizenz = '0';
+ }
+ $db = dbconnect();
+ $datum = date("Y-m-d H:i:s");
+ $sql1 = $db->query("INSERT INTO jumi_noten_daten ( titel
+ , verlag
+ , anz_lizenzen
+ , streamlizenz
+ , uid
+ , datum
+ )
+ VALUES
+ ( '$titel'
+ , '$verlag'
+ , '$anz_lizenzen'
+ , '$streamlizenz'
+ , $uid
+ , '$datum'
+ )
+ ");
+ if ($sql1)
+ {
+ echo ' Noten wurden angelegt!
|***|success|***|';
+ exit;
+ }
+ else
+ {
+ echo ' Noten wurden nicht angelegt: Insert Fehler Datenbank.
|***|error';
+ exit;
+ }
+}
?>
\ No newline at end of file
diff --git a/controller/admin_suche.php b/controller/admin_suche.php
new file mode 100644
index 0000000..4a9d61b
--- /dev/null
+++ b/controller/admin_suche.php
@@ -0,0 +1,60 @@
+query($query) or die("Cannot execute titel");
+
+ if (mysqli_num_rows($result) > 0)
+ {
+ while ($row = $result->fetch_array())
+ {
+ $output[] = array(
+ "label" => $row['titel'],
+ "value" => $row['titel']
+ );
+ }
+ #}else{
+ # $output[] = array("label" => "keine Treffer");
+
+ }
+
+ echo json_encode($output);
+ }
+}
+
+if ($function == 'verlag')
+{
+ if (isset($_POST["term"]))
+ {
+ $term = strtoupper(trim($_POST["term"]));
+
+ $query = "SELECT distinct verlag FROM jumi_noten_daten WHERE upper(verlag) LIKE '%" . $term . "%'";
+ $result = $db->query($query) or die("Cannot execute verlag");
+
+ if (mysqli_num_rows($result) > 0)
+ {
+ while ($row = $result->fetch_array())
+ {
+ $output[] = array(
+ "label" => $row['verlag'],
+ "value" => $row['verlag']
+ );
+ }
+ #}else{
+ # $output[] = array("label" => "keine Treffer");
+
+ }
+
+ echo json_encode($output);
+ }
+}
+
+?>
+
diff --git a/jquery/jquery-ui-themes-1.13.2.zip b/jquery/jquery-ui-themes-1.13.2.zip
new file mode 100644
index 0000000..8f134b9
Binary files /dev/null and b/jquery/jquery-ui-themes-1.13.2.zip differ
diff --git a/jquery/jquery-ui-themes-1.13.2/AUTHORS.txt b/jquery/jquery-ui-themes-1.13.2/AUTHORS.txt
new file mode 100644
index 0000000..0ee3fb3
--- /dev/null
+++ b/jquery/jquery-ui-themes-1.13.2/AUTHORS.txt
@@ -0,0 +1,372 @@
+Authors ordered by first contribution
+A list of current team members is available at http://jqueryui.com/about
+
+Paul Bakaus
+Richard Worth
+Yehuda Katz
+Sean Catchpole
+John Resig
+Tane Piper
+Dmitri Gaskin
+Klaus Hartl
+Stefan Petre
+Gilles van den Hoven
+Micheil Bryan Smith
+Jörn Zaefferer
+Marc Grabanski
+Keith Wood
+Brandon Aaron
+Scott González
+Eduardo Lundgren
+Aaron Eisenberger
+Joan Piedra
+Bruno Basto
+Remy Sharp
+Bohdan Ganicky
+David Bolter
+Chi Cheng
+Ca-Phun Ung
+Ariel Flesler
+Maggie Wachs
+Scott Jehl
+Todd Parker
+Andrew Powell
+Brant Burnett
+Douglas Neiner
+Paul Irish
+Ralph Whitbeck
+Thibault Duplessis
+Dominique Vincent
+Jack Hsu
+Adam Sontag
+Carl Fürstenberg
+Kevin Dalman
+Alberto Fernández Capel
+Jacek Jędrzejewski (http://jacek.jedrzejewski.name)
+Ting Kuei
+Samuel Cormier-Iijima
+Jon Palmer
+Ben Hollis
+Justin MacCarthy
+Eyal Kobrigo
+Tiago Freire
+Diego Tres
+Holger Rüprich
+Ziling Zhao
+Mike Alsup
+Robson Braga Araujo
+Pierre-Henri Ausseil
+Christopher McCulloh
+Andrew Newcomb
+Lim Chee Aun
+Jorge Barreiro
+Daniel Steigerwald
+John Firebaugh
+John Enters
+Andrey Kapitcyn
+Dmitry Petrov
+Eric Hynds
+Chairat Sunthornwiphat
+Josh Varner
+Stéphane Raimbault
+Jay Merrifield
+J. Ryan Stinnett
+Peter Heiberg
+Alex Dovenmuehle
+Jamie Gegerson
+Raymond Schwartz
+Phillip Barnes
+Kyle Wilkinson
+Khaled AlHourani
+Marian Rudzynski
+Jean-Francois Remy
+Doug Blood
+Filippo Cavallarin
+Heiko Henning
+Aliaksandr Rahalevich
+Mario Visic
+Xavi Ramirez
+Max Schnur
+Saji Nediyanchath
+Corey Frang
+Aaron Peterson
+Ivan Peters
+Mohamed Cherif Bouchelaghem
+Marcos Sousa
+Michael DellaNoce
+George Marshall
+Tobias Brunner
+Martin Solli
+David Petersen
+Dan Heberden
+William Kevin Manire
+Gilmore Davidson
+Michael Wu
+Adam Parod
+Guillaume Gautreau
+Marcel Toele
+Dan Streetman
+Matt Hoskins
+Giovanni Giacobbi
+Kyle Florence
+Pavol Hluchý
+Hans Hillen
+Mark Johnson
+Trey Hunner
+Shane Whittet
+Edward A Faulkner
+Adam Baratz
+Kato Kazuyoshi
+Eike Send
+Kris Borchers
+Eddie Monge
+Israel Tsadok
+Carson McDonald
+Jason Davies
+Garrison Locke
+David Murdoch
+Benjamin Scott Boyle
+Jesse Baird
+Jonathan Vingiano
+Dylan Just
+Hiroshi Tomita
+Glenn Goodrich
+Tarafder Ashek-E-Elahi
+Ryan Neufeld
+Marc Neuwirth
+Philip Graham
+Benjamin Sterling
+Wesley Walser
+Kouhei Sutou
+Karl Kirch
+Chris Kelly
+Jason Oster
+Felix Nagel
+Alexander Polomoshnov
+David Leal
+Igor Milla
+Dave Methvin
+Florian Gutmann
+Marwan Al Jubeh
+Milan Broum
+Sebastian Sauer
+Gaëtan Muller
+Michel Weimerskirch
+William Griffiths
+Stojce Slavkovski
+David Soms
+David De Sloovere
+Michael P. Jung
+Shannon Pekary
+Dan Wellman
+Matthew Edward Hutton
+James Khoury
+Rob Loach
+Alberto Monteiro
+Alex Rhea
+Krzysztof Rosiński
+Ryan Olton
+Genie <386@mail.com>
+Rick Waldron
+Ian Simpson
+Lev Kitsis
+TJ VanToll
+Justin Domnitz
+Douglas Cerna
+Bert ter Heide
+Jasvir Nagra
+Yuriy Khabarov <13real008@gmail.com>
+Harri Kilpiö
+Lado Lomidze
+Amir E. Aharoni
+Simon Sattes
+Jo Liss
+Guntupalli Karunakar
+Shahyar Ghobadpour
+Lukasz Lipinski
+Timo Tijhof
+Jason Moon
+Martin Frost
+Eneko Illarramendi
+EungJun Yi
+Courtland Allen
+Viktar Varvanovich
+Danny Trunk
+Pavel Stetina
+Michael Stay
+Steven Roussey
+Michael Hollis
+Lee Rowlands
+Timmy Willison
+Karl Swedberg
+Baoju Yuan
+Maciej Mroziński
+Luis Dalmolin
+Mark Aaron Shirley
+Martin Hoch
+Jiayi Yang
+Philipp Benjamin Köppchen
+Sindre Sorhus
+Bernhard Sirlinger
+Jared A. Scheel
+Rafael Xavier de Souza
+John Chen
+Robert Beuligmann
+Dale Kocian
+Mike Sherov
+Andrew Couch
+Marc-Andre Lafortune
+Nate Eagle
+David Souther
+Mathias Stenbom
+Sergey Kartashov
+Avinash R
+Ethan Romba
+Cory Gackenheimer
+Juan Pablo Kaniefsky
+Roman Salnikov
+Anika Henke
+Samuel Bovée
+FabrÃcio Matté
+Viktor Kojouharov
+Pawel Maruszczyk (http://hrabstwo.net)
+Pavel Selitskas
+Bjørn Johansen
+Matthieu Penant
+Dominic Barnes
+David Sullivan
+Thomas Jaggi
+Vahid Sohrabloo
+Travis Carden
+Bruno M. Custódio
+Nathanael Silverman
+Christian Wenz
+Steve Urmston
+Zaven Muradyan
+Woody Gilk
+Zbigniew Motyka
+Suhail Alkowaileet
+Toshi MARUYAMA
+David Hansen
+Brian Grinstead
+Christian Klammer
+Steven Luscher
+Gan Eng Chin
+Gabriel Schulhof
+Alexander Schmitz
+Vilhjálmur Skúlason
+Siebrand Mazeland
+Mohsen Ekhtiari
+Pere Orga
+Jasper de Groot