-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.php
executable file
·52 lines (38 loc) · 1.3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!-- index.php-->
<?php require ('db.php'); ?>
<!--this will allow us to call all the php code from this page if needed-->
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Welcome to froodle</title>
<!--Link Css Sheets-->
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Berkshire+Swash" rel="stylesheet">
</head>
<body>
<?php include 'modules/menu.php' ?>
<div class="inner-container">
<div class="box">
<h1>Froodle</h1>
<h2 id="demo">
<?php
$result = $coleccion -> find();
$counter = 0;
foreach($result as $entry){
$counter++;
}
echo $counter;
?>
</h2>
<h3>froodles created</h3>
<button onclick="location.href='modules/createFroodle.php'">Create Froodle</button>
<p>or</p>
<button onclick = "location.href = 'modules/viewFroodle.php'" type="button" name="button">View your froodle</button>
<p>What is Froodle? <span onclick="location.href='https://librelabucm.org/'">Follow the Froodle team</span></p>
<p>Powered by LibreLabUCM</p>
</div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>