-
Notifications
You must be signed in to change notification settings - Fork 0
/
inbox.php
254 lines (190 loc) · 7.26 KB
/
inbox.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<?php
//initilize the page
require_once("inc/init.php");
//require UI configuration (nav, ribbon, etc.)
require_once("inc/config.ui.php");
/*---------------- PHP Custom Scripts ---------
YOU CAN SET CONFIGURATION VARIABLES HERE BEFORE IT GOES TO NAV, RIBBON, ETC.
E.G. $page_title = "Custom Title" */
$page_title = "Inbox";
/* ---------------- END PHP Custom Scripts ------------- */
//include header
//you can add your custom css in $page_css array.
//Note: all css files are inside css/ folder
$page_css[] = "your_style.css";
include("inc/header.php");
//include left panel (navigation)
//follow the tree in inc/config.ui.php
$page_nav["inbox"]["active"] = true;
include("inc/nav.php");
?>
<!-- ==========================CONTENT STARTS HERE ========================== -->
<!-- MAIN PANEL -->
<div id="main" role="main">
<?php
//configure ribbon (breadcrumbs) array("name"=>"url"), leave url empty if no url
//$breadcrumbs["New Crumb"] => "http://url.com"
include("inc/ribbon.php");
?>
<!-- MAIN CONTENT -->
<div id="content">
<div class="inbox-nav-bar no-content-padding">
<h1 class="page-title txt-color-blueDark hidden-tablet"><i class="fa fa-fw fa-inbox"></i> Inbox
<div class="btn-group">
<a href="#" data-toggle="dropdown" class="btn btn-default btn-xs dropdown-toggle"><span class="caret single"></span></a>
<ul class="dropdown-menu">
<li>
<a href="#">Action</a>
</li>
<li>
<a href="#">Another action</a>
</li>
<li>
<a href="#">Something else here</a>
</li>
<li class="divider"></li>
<li>
<a href="#">Separated link</a>
</li>
</ul>
</div></h1>
<div class="btn-group hidden-desktop visible-tablet">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
Inbox <i class="fa fa-caret-down"></i>
</button>
<ul class="dropdown-menu pull-left">
<li>
<a href="javascript:void(0);" class="inbox-load">Inbox <i class="fa fa-check"></i></a>
</li>
<li>
<a href="javascript:void(0);">Sent</a>
</li>
<li>
<a href="javascript:void(0);">Trash</a>
</li>
<li class="divider"></li>
<li>
<a href="javascript:void(0);">Spam</a>
</li>
</ul>
</div>
<div class="inbox-checkbox-triggered">
<div class="btn-group">
<a href="javascript:void(0);" rel="tooltip" title="" data-placement="bottom" data-original-title="Mark Important" class="btn btn-default"><strong><i class="fa fa-exclamation fa-lg text-danger"></i></strong></a>
<a href="javascript:void(0);" rel="tooltip" title="" data-placement="bottom" data-original-title="Move to folder" class="btn btn-default"><strong><i class="fa fa-folder-open fa-lg"></i></strong></a>
<a href="javascript:void(0);" rel="tooltip" title="" data-placement="bottom" data-original-title="Delete" class="deletebutton btn btn-default"><strong><i class="fa fa-trash-o fa-lg"></i></strong></a>
</div>
</div>
<a href="javascript:void(0);" id="compose-mail-mini" class="btn btn-primary pull-right hidden-desktop visible-tablet"> <strong><i class="fa fa-file fa-lg"></i></strong> </a>
<div class="btn-group pull-right inbox-paging">
<a href="javascript:void(0);" class="btn btn-default btn-sm"><strong><i class="fa fa-chevron-left"></i></strong></a>
<a href="javascript:void(0);" class="btn btn-default btn-sm"><strong><i class="fa fa-chevron-right"></i></strong></a>
</div>
<span class="pull-right"><strong>1-30</strong> of <strong>3,452</strong></span>
</div>
<div id="inbox-content" class="inbox-body no-content-padding">
<div class="inbox-side-bar">
<a href="javascript:void(0);" id="compose-mail" class="btn btn-primary btn-block"> <strong>Compose</strong> </a>
<h6> Folder <a href="javascript:void(0);" rel="tooltip" title="" data-placement="right" data-original-title="Refresh" class="pull-right txt-color-darken"><i class="fa fa-refresh"></i></a></h6>
<ul class="inbox-menu-lg">
<li class="active">
<a class="inbox-load" href="javascript:void(0);"> Inbox (14) </a>
</li>
<li>
<a href="javascript:void(0);">Sent</a>
</li>
<li>
<a href="javascript:void(0);">Draft</a>
</li>
<li>
<a href="javascript:void(0);">Trash</a>
</li>
</ul>
<h6> Quick Access <a href="javascript:void(0);" rel="tooltip" title="" data-placement="right" data-original-title="Add Another" class="pull-right txt-color-darken"><i class="fa fa-plus"></i></a></h6>
<ul class="inbox-menu-sm">
<li>
<a href="javascript:void(0);"> Images (476)</a>
</li>
<li>
<a href="javascript:void(0);">Documents (4)</a>
</li>
</ul>
<div class="air air-bottom inbox-space">
3.5GB of <strong>10GB</strong><a href="javascript:void(0);" rel="tooltip" title="" data-placement="top" data-original-title="Empty Spam" class="pull-right txt-color-darken"><i class="fa fa-trash-o fa-lg"></i></a>
<div class="progress progress-micro">
<div class="progress-bar progress-primary" style="width: 34%;"></div>
</div>
</div>
</div>
<div class="table-wrap custom-scroll animated fast fadeInRight">
<!-- ajax will fill this area -->
LOADING...
</div>
<div class="inbox-footer">
<div class="row">
<div class="col-xs-6 col-sm-1">
<div class="txt-color-white hidden-desktop visible-mobile">
3.5GB of <strong>10GB</strong>
<div class="progress progress-micro">
<div class="progress-bar progress-primary" style="width: 34%;"></div>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-11 text-right">
<div class="txt-color-white inline-block">
<i class="txt-color-blueLight hidden-mobile">Last account activity <i class="fa fa-clock-o"></i> 52 mins ago |</i> Displaying <strong>44 of 259</strong>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END MAIN CONTENT -->
</div>
<!-- END MAIN PANEL -->
<!-- ==========================CONTENT ENDS HERE ========================== -->
<?php
//include required scripts
include("inc/scripts.php");
?>
<!-- PAGE RELATED PLUGIN(S) -->
<script src="<?php echo ASSETS_URL; ?>/js/plugin/delete-table-row/delete-table-row.js"></script>
<script src="<?php echo ASSETS_URL; ?>/js/plugin/summernote/summernote.js"></script>
<script src="<?php echo ASSETS_URL; ?>/js/plugin/select2/select2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// PAGE RELATED SCRIPTS
/*
* Fixed table height
*/
tableHeightSize()
$(window).resize(function() {
tableHeightSize()
})
function tableHeightSize() {
var tableHeight = $(window).height() - 212;
$('.table-wrap').css('height', tableHeight + 'px');
}
/*
* LOAD INBOX MESSAGES
*/
loadInbox();
function loadInbox() {
loadURL("<?php echo APP_URL; ?>/ajax/email/email-list.php", $('#inbox-content > .table-wrap'))
}
/*
* Buttons (compose mail and inbox load)
*/
$(".inbox-load").click(function() {
loadInbox();
});
// compose email
$("#compose-mail").click(function() {
loadURL("<?php echo APP_URL; ?>/ajax/email-compose.php", $('#inbox-content > .table-wrap'));
})
});
</script>
<?php
//include footer
include("inc/footer.php");
?>