-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
executable file
·49 lines (45 loc) · 1.24 KB
/
menu.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
<!--BUTTONS NEW LOAD SAVE CLEAR in INDEX.PHP-->
<!--functions are defined inside sidebar.php-->
<!--menu-->
<div style=text-align:left;padding:0em class=flex id=menu_buttons>
<style>
#menu_buttons button {
display:block;
margin-left:0;
margin-top:0;
}
</style>
<div class=flex>
<!--new-->
<button class="button add" onclick=newSystem() style=margin-left:0>
<?php write('#new')?>
</button>
<!--load-->
<input type=file id=loadfile accept=".json" onchange="loadFile(event)" style=display:none>
<!--open-->
<button class="button edit" onclick=document.getElementById('loadfile').click()>
<?php write('#open')?>
</button>
<?php
if(isset($_COOKIE['GLOBAL'])) {
?>
<!--SAVE-->
<button class="button save" onclick=saveToFile()>
<?php write('#save_as')?>
<script>document.write(" '"+Global.General.Name+".json'")</script>
</button>
</div>
<div class=flex style="padding-top:0">
<!--CLEAR-->
<button class="button delete" onclick=clearSystem() style=margin-left:0>
<?php write('#clear')?>
</button>
<!--NEXT-->
<button class="button next" onclick="event.stopPropagation();window.location='getStarted.php'">
<?php write('#next')?>
</button>
</div>
<?php
}
?>
</div>