diff --git a/UI/code/musicChoice.php b/UI/code/musicChoice.php deleted file mode 100644 index 342c649..0000000 --- a/UI/code/musicChoice.php +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - -Dream Hacker - - - - - - - - - - - - - - - -
-

Dream Hacker

- -
-
-
-
-

Select Music

-
-
-
-

Back

-
-

-
-
-
-
-
-
-
- -
- - -
- Descirbe what this song does -
- -
- - -
- -
- - -
- -
- - -
- -
-
- -
- - -
- -
- - -
- -
- - -
- -
- - -
-
-
-
-
- - -
-
-
- - \ No newline at end of file diff --git a/frontend/audio/Fracture.mp3 b/frontend/audio/Fracture.mp3 new file mode 100644 index 0000000..111e459 Binary files /dev/null and b/frontend/audio/Fracture.mp3 differ diff --git a/frontend/audio/In My Time.mp3 b/frontend/audio/In My Time.mp3 new file mode 100644 index 0000000..6427df3 Binary files /dev/null and b/frontend/audio/In My Time.mp3 differ diff --git a/UI/code/audio/Just_The_Two_Of_Us.mp3 b/frontend/audio/Just The Two Of Us.mp3 similarity index 100% rename from UI/code/audio/Just_The_Two_Of_Us.mp3 rename to frontend/audio/Just The Two Of Us.mp3 diff --git a/frontend/audio/Just_The_Two_Of_Us.mp3 b/frontend/audio/Just_The_Two_Of_Us.mp3 new file mode 100644 index 0000000..99c0147 Binary files /dev/null and b/frontend/audio/Just_The_Two_Of_Us.mp3 differ diff --git a/frontend/audio/Sleep Music.mp3 b/frontend/audio/Sleep Music.mp3 new file mode 100644 index 0000000..4061ff3 Binary files /dev/null and b/frontend/audio/Sleep Music.mp3 differ diff --git a/frontend/audio/Sunday Vibes.mp3 b/frontend/audio/Sunday Vibes.mp3 new file mode 100644 index 0000000..3253464 Binary files /dev/null and b/frontend/audio/Sunday Vibes.mp3 differ diff --git a/frontend/audio/Sunny.mp3 b/frontend/audio/Sunny.mp3 new file mode 100644 index 0000000..df7330a Binary files /dev/null and b/frontend/audio/Sunny.mp3 differ diff --git a/frontend/audio/Sunset at the Veranda.mp3 b/frontend/audio/Sunset at the Veranda.mp3 new file mode 100644 index 0000000..832aebb Binary files /dev/null and b/frontend/audio/Sunset at the Veranda.mp3 differ diff --git a/frontend/audio/Viento Estelar.mp3 b/frontend/audio/Viento Estelar.mp3 new file mode 100644 index 0000000..5e3d66e Binary files /dev/null and b/frontend/audio/Viento Estelar.mp3 differ diff --git a/frontend/audioPlayer.php b/frontend/audioPlayer.php new file mode 100644 index 0000000..22c47b4 --- /dev/null +++ b/frontend/audioPlayer.php @@ -0,0 +1,36 @@ + \ No newline at end of file diff --git a/UI/code/css/main.css b/frontend/css/main.css similarity index 71% rename from UI/code/css/main.css rename to frontend/css/main.css index bf248bc..d715f58 100644 --- a/UI/code/css/main.css +++ b/frontend/css/main.css @@ -37,3 +37,19 @@ mainPoint { text-align: center; border: 1px dotted grey; } + + footer { + position: fixed; + left: 0; + bottom: 0; + width: 100%; + text-align: center; + } + + .centered { + position: fixed; + top: 50%; + left: 50%; + /* bring your own prefixes */ + transform: translate(-50%, -50%); +} diff --git a/UI/code/database/db.php b/frontend/database/db.php similarity index 100% rename from UI/code/database/db.php rename to frontend/database/db.php diff --git a/UI/code/database/readme.md b/frontend/database/readme.md similarity index 100% rename from UI/code/database/readme.md rename to frontend/database/readme.md diff --git a/UI/code/functions/startApplication.php b/frontend/functions/calulcations.php similarity index 100% rename from UI/code/functions/startApplication.php rename to frontend/functions/calulcations.php diff --git a/UI/code/functions/paginator.php b/frontend/functions/paginator.php similarity index 100% rename from UI/code/functions/paginator.php rename to frontend/functions/paginator.php diff --git a/frontend/functions/startApplication.php b/frontend/functions/startApplication.php new file mode 100644 index 0000000..e69de29 diff --git a/UI/code/history.php b/frontend/history.php similarity index 97% rename from UI/code/history.php rename to frontend/history.php index a0be6d0..38d5006 100644 --- a/UI/code/history.php +++ b/frontend/history.php @@ -88,7 +88,8 @@ - + + diff --git a/frontend/index.php b/frontend/index.php new file mode 100644 index 0000000..0e29e51 --- /dev/null +++ b/frontend/index.php @@ -0,0 +1,69 @@ + + + + + + + + + + +Dream Hacker + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +
+ + + + \ No newline at end of file diff --git a/UI/code/liveReading.php b/frontend/liveReading.php similarity index 73% rename from UI/code/liveReading.php rename to frontend/liveReading.php index a361ffb..5a1ae39 100644 --- a/UI/code/liveReading.php +++ b/frontend/liveReading.php @@ -1,8 +1,21 @@ getData( $limit, $page); + + $dataPoints = array(); $y = 5; for($i = 0; $i < 10; $i++){ @@ -89,6 +102,22 @@ function updateChart() { + data)){ + echo' +
+
+

No results found

+
+
+
'; + } + else { + for ($p = 0; $p < count($results->data); $p++): ?> +data[$p]; +?>
@@ -96,21 +125,15 @@ function updateChart() {
-

Time In bed

-

4 hours

-
-

Song Choosen

-

Vivaldi

-
-

Rem Sleep Detected

-

Yes

+

Song Choosen

+


-

Stop Reading

+ - + \ No newline at end of file diff --git a/frontend/musicChoice.php b/frontend/musicChoice.php new file mode 100644 index 0000000..1a31ea2 --- /dev/null +++ b/frontend/musicChoice.php @@ -0,0 +1,175 @@ +getData( $limit, $page); + +if ($_SERVER['REQUEST_METHOD'] == 'POST') + +{ + if (isset($_POST['save'])) { //user logging in + + + + require 'audioPlayer.php'; + + + + } +} + +?> + + + + + + + + +Dream Hacker + + + + + + + + + + + + + + + +
+

Dream Hacker

+ +
+data)){ + echo' +
+
+

No results found

+
+
+
'; + } + else { + for ($p = 0; $p < count($results->data); $p++): ?> +data[$p]; + if ($results->num_rows = 0) { + echo "No recrods Found"; + } +?> + +
+
+
+

Select Audio

+ Currently selected audio: +
+
+
+

Back

+

+
+
+ +
+
+
+
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+
+
+ + +
+
+
+ + \ No newline at end of file diff --git a/frontend/pictures/dreamHacker.jpg b/frontend/pictures/dreamHacker.jpg new file mode 100644 index 0000000..cdf34aa Binary files /dev/null and b/frontend/pictures/dreamHacker.jpg differ diff --git a/frontend/pictures/dreamHacker.png b/frontend/pictures/dreamHacker.png new file mode 100644 index 0000000..9d3fcfa Binary files /dev/null and b/frontend/pictures/dreamHacker.png differ diff --git a/readme.md b/frontend/readme.md similarity index 100% rename from readme.md rename to frontend/readme.md diff --git a/UI/code/index.php b/frontend/sucess.php similarity index 66% rename from UI/code/index.php rename to frontend/sucess.php index 304355f..b6cf483 100644 --- a/UI/code/index.php +++ b/frontend/sucess.php @@ -48,26 +48,32 @@

Dream Hacker

-
-

What is Dream Hacker

-

Here we will explain

-
-
+ +
+
+
+ -
- Start -

+ if( isset($_SESSION['message']) AND !empty($_SESSION['message']) ): + + echo $_SESSION['message']; + + else: + + echo 'Error, Please try again'; + + endif; + ?> + +
+

Home

+

+
-
- -
- + + + \ No newline at end of file