-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
224 lines (212 loc) · 6.32 KB
/
main.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<?php
include("./php/Auth.php"); //include auth.php file on all secure pages
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Merge</title>
<link rel="shortcut icon" type="image/png" href="./assets/icons/favicon.png"/>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="js/main.js" type="text/javascript"></script>
<script src="js/ajax.js" type="text/javascript"></script>
</head>
<body onload="start()">
<!--alert and confirm boxes-->
<div id="max-space-reached" class="overlay">
<div class="dialog">
<div class="title">
Ops...
</div>
<div class="content">
looks like you've reached 1GB of used space!
</div>
<div class="buttons">
<button class="get_more">Get More</button>
<button onclick="hideDialog()">OK</button>
</div>
</div>
</div>
<div id="upload" class="overlay">
<div class="dialog">
<div class="title">
Good news,
</div>
<div class="content">
your file was uploaded correctly!
</div>
<div class="buttons">
<button onclick="hideDialog()">OK</button>
</div>
</div>
</div>
<div id="contact" class="overlay">
<div class="dialog">
<div class="title">
Good news,
</div>
<div class="content">
he/she can now see your <b>desk</b> and download your <b>public</b> files!
</div>
<div class="buttons">
<button onclick="hideDialog()">OK</button>
</div>
</div>
</div>
<div id="delete_contact" class="overlay">
<div class="dialog">
<div class="title">
Hey there,
</div>
<div class="content">
are you sure you want to delete this contact?
</div>
<div class="buttons">
<button id="delete_this_contact">OK</button>
<button id="do_not_delete_this_contact">CANCEL</button>
</div>
</div>
</div>
<div id="delete_file" class="overlay">
<div class="dialog">
<div class="title">
Hey there,
</div>
<div class="content">
are you sure you want to delete this file?
</div>
<div class="buttons">
<button id="delete_this_file">OK</button>
<button id="do_not_delete_this_file">CANCEL</button>
</div>
</div>
</div>
<div id="change_privacy" class="overlay">
<div class="dialog">
<div class="title">
To be clear...
</div>
<div class="content">
do you want to change the privacy to this file?
</div>
<div class="buttons">
<button id="change_it">OK</button>
<button id="do_not_change_it">CANCEL</button>
</div>
</div>
</div>
<!-- end of alert and confirm boxes -->
<header class="header">
<span id="logo_container">
merge
</span>
<div id="hamburger_menu" onclick="showMenu()">
<img alt="hamburger" src="assets/img/hamburger.png">
</div>
<nav class="navs">
<ul>
<li id="search_block">
<div class="vertical_center"></div>
<div class="vertical_center">
<input id="search" type="text" placeholder="[email protected]" onkeyup="showResult(this.value)"
onblur="closeresult()">
<img src="assets/img/search.svg" alt="search" id="search_icon">
</div>
<!-- searching -->
<span id="result_search">
</span>
<div class="vertical_center"></div>
</li>
<li class="hover_li" onclick="showNotifications()">
<div class="vertical_center"></div>
<div class="vertical_center">
<a href="#" id="notifications_icon">
<img class="navs_img" alt="notification" src="assets/img/notification.svg" />
</a>
</div>
<div class="vertical_center"></div>
<!-- drop down menu -->
<span id="notifications_menu">
</span>
</li>
<li class="hover_li" onclick="location.href='./settings.php'">
<div class="vertical_center"></div>
<div class="vertical_center">
<a href="./settings.php">
<img class="navs_img" alt="settings" src="assets/img/settings.svg" />
</a>
</div>
<div class="vertical_center"></div>
</li>
<li id="profile_elem">
</li>
<li id="logout">
<a id="logout_link" href="php/Logout.php">
<div class="vertical_center"></div>
<div class="vertical_center">
<img id="logout_img" alt="log_out" src="assets/img/logout.png" />
</div>
<div class="vertical_center"></div>
</a>
</li>
</ul>
</nav>
</header>
<aside>
<div class="aside_container" id="desks"><!--UI BUG: aside_title must stay on top when scrolling-->
<div class="aside_title">
<img id="desk_pic" alt="desk" src="assets/img/desk.png"/>
DESKS
</div>
<div class="list_container">
<ul class="aside_list" id="aside_list_desks">
<!--
HERE PHP REALTIME CONTENT
-->
</ul>
</div>
</div>
<div class="aside_container" id="people">
<div class="aside_title">
<img id="people_pic" alt="people" src="assets/img/people.png"/>
PEOPLE
</div>
<div class="list_container">
<ul class="aside_list" id="aside_list_contacts">
<!--
HERE PHP REALTIME CONTENT
-->
</ul>
</div>
</div>
</aside>
<main>
<div id="progress">
</div>
<ul class="tab_head">
<li id="my_desk_tab" class="tab_active" onclick="fetchId('mydesk')">
<a href="#" id="link_mydesk">My Desk</a>
</li>
<li id="others_tab" onclick="fetchId('others')">
<a href="#" id="link_others">Others</a>
</li>
</ul>
<div id="my_desk" class="tab">
<!--
HERE PHP REALTIME CONTENT
-->
</div>
<div id="others" class="tab">
<!--
HERE PHP REALTIME CONTENT
-->
</div>
<form id="file-form" method="POST" enctype= "multipart/form-data">
<label for="input_file" class="add_file" id="add_button" >
<img src="assets/icons/plus1.png" alt="plus"/>
<input type="file" id="input_file" name="input_file" onchange="loadfile()" multiple/>
</label>
</form>
</main>
</body>
</html>