-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
141 lines (118 loc) · 5.14 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
require_once "init.php";
/* debug
if(isset($fileextesion) && $fileextesion !== "json"){
echo "ERROR " . $error;
}
//var_dump($fileextesion);
*/
?>
<!DOCTYPE HTML>
<html>
<head>
<title>JSON | Module 214</title>
<meta charset="utf-8" />
<link rel="icon" href="images/json.ico">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css">
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body class="homepage">
<form id="changeLang" action="index.php" method="GET">
<?php
if($_GET['lang'] == "fr"){
echo ' <input type="hidden" name="lang" value="en">';
} else if($_GET['lang'] == "en"){
echo '<input type="hidden" name="lang" value="fr">';
}
?>
<div id="language" class="language_margin">
<?php
if($_GET['lang'] == "fr"){
echo '<img src="images/flag/en.png" alt="EN Flag" class="langIMG">';
} else {
echo '<img src="images/flag/fr.png" alt="FR Flag" class="langIMG">';
}
?>
</div>
</form>
<div id="page-wrapper">
<div id="header" class="">
<div id="header_menu" class="inner animated fadeInUpBig">
<header>
<h1 id="logo">JSON</h1>
<h3 id="module">Module 214</h3>
<p id="owner">Richard Martins Tenorio | Hadrien Louis</p>
</header>
<footer>
<a id="start_button" href="#banner" class="button circled scrolly"><?php echo $tr['header']['start'] ?></a>
</footer>
</div>
</div>
<!-- inner banner -->
<section id="banner">
<header>
<h2><?php echo $tr['header']['title'] ?></h2>
<p><?php echo $tr['header']['content'] ?></p>
<p ><?php echo $tr['header']['link_pres'] ?> <a id="link_pres" selected href="https://hackmd.io/p/rJuLKiquG">https://hackmd.io/p/rJuLKiquG</a> </p>
</header>
</section>
<?php
/** echo "Name : " . $filename . "<br />type : " . $filetype . "<br />size : " . $filesize . " bytes"; **/
?>
<!-- uploaded file name -->
<input type="hidden" id="userImgName" data-value="<?php echo $filename; ?>" />
<!-- display-jsons -->
<section id="section_tableJson">
<div class="array-json">
<h4 id="title" style="font-size: 30px;"><?php echo $tr['JsonTable']['title'] ?></h4>
<?php
if(!isset($_FILES['uploadJsonFile'])){
?><div id="loadFileInfo" ><h4><?php echo $tr['JsonTable']['noFile'] ?></h4></div><?php
} else if(isset($fileextesion) && $fileextesion !== "json"){
?><div id="loadFileInfo" ><h4><?php echo $tr['JsonTable']['noJSON'] ?></h4></div><?php
}
?>
<table id="tablejson" class="table table-striped w-50 p-3 text-centered">
<thead class="thead-inverse">
<tr></tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</section>
<!-- upload -->
<div class"container" id="loadFileForm">
<form class="" action="" method="post" enctype="multipart/form-data">
<input id="input_file" type="file" name="uploadJsonFile" hidden>
<span id='select_file' ><?php echo $tr['JsonTable']['chooseFile'] ?></span>
<input id="submit_file" type="submit" value="<?php echo $tr['JsonTable']['submit'] ?>" >
</form>
</div>
<div id="footer">
<div class="container">
<div class="row">
<div class="12u">
<div class="copyright">
<ul class="menu">
<li>© 2018. <?php echo $tr['footer']['copiright'] ?></li><li>Design: <a href="http://html5up.net">HTML5 UP / helios</a></li><li> </> with ♥ by <a href="https://www.github.com/richmartins/">@richmartins</a> | <a href="https://www.github.com/hadrylouis/">@hadrylouis</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/jquery.dropotron.min.js" type="text/javascript"></script>
<script src="assets/js/jquery.scrolly.min.js" type="text/javascript"></script>
<script src="assets/js/jquery.onvisible.min.js" type="text/javascript"></script>
<script src="assets/js/skel.min.js" type="text/javascript"></script>
<script src="assets/js/util.js" type="text/javascript"></script>
<script src="assets/js/main.js" type="text/javascript"></script>
<script src="assets/js/custom.js" type="text/javascript"></script>
</body>
</html>