-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.php
More file actions
261 lines (229 loc) · 11.2 KB
/
Copy pathcompose.php
File metadata and controls
261 lines (229 loc) · 11.2 KB
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
255
256
257
258
259
260
261
<?php ob_start(); session_set_cookie_params(time()+600,'/','http://www.hbtumail.decoder.co.in/',false,true); session_start(); ?>
<?php include('config.php'); ?>
<?php $a = mysql_query("SELECT * FROM `mailmembers` WHERE `rid` LIKE '".$_SESSION['rid']."'") ; $b = mysql_fetch_array($a); ?>
<?php if(!$b['id']){ header( 'location:index.php' ); exit(); } ?>
<?php if($b['yn']==0){ header( 'location:index.php' ); exit(); } ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="A mailing sevice for HBTU Kanpur devloped under coding club, Decoder by Dhawal Agrawal">
<meta property="og:image" content="images/hbtumaillogo.png">
<meta property="og:description" content="A mailing sevice for HBTU Kanpur devloped under coding club, Decoder by Dhawal Agrawal">
<meta property="og:url" content="http://www.hbtumail.decoder.co.in" />
<meta property="og:title" content="HBTU MAIL" />
<link rel="apple-touch-icon" sizes="57x57" href="/image/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/image/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/image/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/image/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/image/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/image/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/image/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/image/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/image/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/image/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/image/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/image/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/image/favicon-16x16.png">
<link rel="manifest" href="/image/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/image/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta property="og:type" content="article" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>HBTU MAIL</title>
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato|Raleway" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link href="css/font-awesome.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Questrial|Quicksand:300,400,700|Open+Sans+Condensed:300,300italic,700|Raleway:400,100,200,300,500,600,700,800,900|Merriweather:400,700,900,300italic,400italic,700italic,900italic,300|Indie+Flower&subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<link rel="stylesheet" type="text/css" href="css/entypo.css" />
<link rel="stylesheet" type="text/css" href="css/gx-sidemenu-blue.css" />
<link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="js/mootools.js"></script>
<script src="js/Request.File.js"></script>
<script src="js/Form.MultipleFileInput.js"></script>
<script src="js/Form.Upload.js"></script>
<script defer src="js/product_filter_level3.js"></script>
<script>
window.addEvent('domready', function(){
new Form.Upload( 'url', { onComplete: function(){
document.getElementById("f1").submit();
} });
});
</script>
<script type="text/javascript" src="js/gx.sidemenu.js"></script>
<script type="text/javascript">
$(function() {
$('#gx-sidemenu').gxSideMenu({
mode: isMobile.any() ? 'normal' : 'normal', // normal | tiny
interval: 300, // animations' interval
direction: 'left', // left | right
openOnHover: false, // true | false
clickTrigger: true, // true | false
followURLs: true, // true | false
trigger: ".gx-menu-open.list", // class or id of trigger element
startFrom: 60, // start pixel from corner on hover trigger
startClosed: true, // menu opens on document load
scrolling: true, // menu scrollable (iScroll plugin needed!)
urlBase: '/sidemenu/', // document base URL
backText: 'Prev | Back', // Back button text
onOpen: function() { }, // Open callback
onClose: function() { } // Close callback
});
});
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
<style type="text/css">
a {
color: #222;
}
.gx-menu-open.list {
top: 0px;
height: 20px;
line-height: 0px;
right: 0px;
left: auto;
}
.gx-menu-open.share {
right: 3%;
left: auto;
top: 0px;
height: 40px;
line-height: 10px;
}
.gx-menu-open.mobile {
line-height: 0.6em;
}
#wrapper {
width: 92%;
margin: auto;
position: relative;
}
</style>
<link href="css/uploader.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="controler">
<div id="head">Harcourt Butler Technical University Kanpur</div>
<div id="middleco">
<div id="scroller">
<div id="wrapper">
<a href="javascript:" class="gx-menu-open entypo list"></a>
<a href="javascript:" class="gx-menu-open entypo share" style="display: none !important"></a>
<nav class="sidebars">
<div id="gx-sidemenu" style="z-index: 9998">
<div class="gx-sidemenu-inner" id="gx-sidemenu-inner-1">
<div class="scroll">
<ul class="gx-menu">
<li class="home">
<a href="home.php">
<span class="icon entypo home"></span>
<span class="text">Home</span>
</a>
</li>
<li class="news">
<a href="news.php">
<span class="icon entypo newspaper"></span>
<span class="text">News</span>
</a>
</li>
<li class="compose">
<a href="compose.php">
<span class="icon entypo pencil"></span>
<span class="text">Compose</span>
</a>
</li>
<li class="sent">
<a href="sent.php">
<span class="icon entypo list"></span>
<span class="text">Sent</span>
</a>
</li>
</ul>
</div>
</div>
<?php $a = mysql_query("SELECT * FROM `mailmembers` WHERE `rid` LIKE '".$_SESSION['rid']."'") ; $b = mysql_fetch_array($a); ?>
<div id="gx-sidemenu-login">
<div class="divider"></div>
<h2>
<span class="icon entypo user"></span>
<span class="text">Welcome, <?=$b['name']?>!</span>
</h2>
<div class="divider"></div>
<a href="edit.php" class="login-btn">Edit profile</a>
<div class="divider"></div>
<a href="logout.php" class="login-btn">Log out...</a>
<div class="divider"></div>
</div>
</div>
</nav>
</div>
</div>
<div id="midLeftContain">
<div id="h2">Create Mail</div>
<form id="f1" action="mailsender.php" method="post" enctype="multipart/form-data">
<div id='filters' class='sections1'>
<div class='filter-attributes'>
<h4>STUDENTS / TEACHER</h4>
<div class="PROP"><input type='checkbox' class='fs' name='teacher' id='teacher' value='teacher' >Teacher</div>
<div class="PROP"><input type='checkbox' class='fs' name='student' id='student' value='student' >Student</div>
</div>
<div class='filter-attributes'>
<h4>YEAR</h4>
<div class="PROP"><input type='checkbox' class='year' name='First' id='First' value='First' >First</div>
<div class="PROP"><input type='checkbox' class='year' name='Second' id='Second' value='Second' >Second</div>
<div class="PROP"><input type='checkbox' class='year' name='Third' id='Third' value='Third' >Third</div>
<div class="PROP"><input type='checkbox' class='year' name='Final' id='Final' value='Final' >Final</div>
</div>
<div class='filter-attributes'>
<h4>BRANCH</h4>
<div class="PROP"><input type='checkbox' class='branch' name='BE' id='BE' value='BE' >BE</div>
<div class="PROP"><input type='checkbox' class='branch' name='CE' id='CE' value='CE' >CE</div>
<div class="PROP"><input type='checkbox' class='branch' name='CHE' id='CHE' value='CHE' >CHE</div>
<div class="PROP"><input type='checkbox' class='branch' name='CSE' id='CSE' value='CSE' >CSE</div>
<div class="PROP"><input type='checkbox' class='branch' name='EE' id='EE' value='EE' >EE</div>
<div class="PROP"><input type='checkbox' class='branch' name='ET' id='ET' value='ET' >ET</div>
<div class="PROP"><input type='checkbox' class='branch' name='FT' id='FT' value='FT' >FT</div>
<div class="PROP"><input type='checkbox' class='branch' name='IT' id='IT' value='IT' >IT</div>
<div class="PROP"><input type='checkbox' class='branch' name='LT' id='LT' value='LT' >LT</div>
<div class="PROP"><input type='checkbox' class='branch' name='ME' id='ME' value='ME' >ME</div>
<div class="PROP"><input type='checkbox' class='branch' name='OT' id='OT' value='OT' >OT</div>
<div class="PROP"><input type='checkbox' class='branch' name='PT' id='PT' value='PT' >PT</div>
<div class="PROP"><input type='checkbox' class='branch' name='PL' id='PL' value='PL' >PL</div>
<div class="PROP"><input type='checkbox' class='branch' name='MCA' id='MCA' value='MCA' >MCA</div>
</div>
<div>
<br>
<input type='button' id='none' value='Clear all'></input>
</div>
</div><input name="subject" type="text" id="subject" placeholder="Subject"/>
<textarea name="message" cols="" rows="" id="message" placeholder="Leave Message..."></textarea>
</form>
<div id="wrap">
<form method="post" id="f2" action="files.php" enctype="multipart/form-data">
<img class="attached" src="images/attachicon.png" style="border:0px;"/> <input class="upload" type="file" id="url" name="url[]" multiple>
<div class="formRow"> <input class="submit" type="submit" id="submit" name="submit" value="Send"> </div>
</form>
</div>
</div>
<div id="midRightContain">
<div id="h3">Filter Recipient</div>
<div id='filters' class='sections2'>
<ul><?php $a = mysql_query("SELECT * FROM `mailmembers` WHERE `yn` LIKE '1'") ; while($b = mysql_fetch_array($a)){ ?>
<li class='grid-products'>
<div class='grid-variants'style="font-family: 'Roboto' ;" data-fs='<?=$b['f_s']?>' data-year='<?=$b['year']?>' data-branch='<?=$b['branch']?>'><?=$b['name']?></div>
</li><?php } ?>
</ul>
</div>
</div>
</div>
<div id="footer">© 2017 HBTU MAIL - All rights reserved - developed by Dhawal Agrawal</div></div>
</body>
</html>