-
Notifications
You must be signed in to change notification settings - Fork 1
/
hindi.php
275 lines (268 loc) · 10.2 KB
/
hindi.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<?php
$i="";$name="";
$con=mysqli_connect("localhost","root","","domusic");
if(!$con) {
die("Connection Failed: " . mysqli_connect_error());
}
if($_SERVER["REQUEST_METHOD"]== "POST"){
$un= $_POST["sear"];
$n=$un[0];
$sql="select * from song where sname like '$un%' and scat='hindi'";
$retval=mysqli_query($con,$sql);
$count=mysqli_num_rows($retval);
$c=$count;
$i=0;
if($count>=1){
$i=0;
while($row=mysqli_fetch_assoc($retval) and $count!=0){
$src[$i]=$row["sfile"];
$sn[$i]=ucfirst($row["sname"]);
$sc[$i]=ucfirst($row["scat"]);
$si[$i]=($row["simg"]);
$sa[$i]=($row["sartist"]);
$count=$count-1;
$i=$i+1;
}
}
else{
$name="NO RESULT FOUND";
}
}
?>
<!DOCTYPE html>
<html lang="us-en">
<head>
<!--definition of webpage-->
<meta charset="UTF-8">
<meta name="keyword" content="music,sing,song,english,hindi,tamil,malayalam,edit,
record,studio,pitch,tempo,metronome,publish,composer,
playlist,studioengine,sound,plugin,soundshop,karoke,new
song,upload,freedownload,pay,musicsheet,guitar,piano,
violin,strings,tabla,musicplayer,vedioplayer">
<meta name="description" content="DO MUSIC,PLAY MUSIC,ENJOY MUSIC,EDIT MUSIC
AND PUBLISH LET THE WORLD LISTEN">
<meta name="author" content="ajo john mathai,anju mathew,abhijith m d,ashna ann babu">
<!-- for the browser to understand it supports mobile version -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- materialise css linkage -->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css">
<body>
<!--horizontal navigation bar-->
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper teal darken-2 z-depth-5">
<a href="search.php" class="brand-logo"><b class="amber-text text-accent-4">DO</b><b>MUSIC</b></a>
<ul class="right hide-on-med-and-down">
<li><a href="hgal.html">Image Box</a></li>
<li><a href="#sea">Explore</a></li>
</ul>
</div>
</nav>
</div>
<!--search bar-->
<nav id="sea" style="width: 614px; margin-left: 633px;">
<div class="nav-wrapper amber accent-4" style="margin-top: 94px;">
<form action="" method="post">
<div class="input-field z-depth-5">
<input id="search" type="search" required name="sear">
<label for="search" class="teal-text text-darken-4">Search</label>
<i class="material-icons"></i>
</div>
</form>
</div>
</nav>
<!--search results-->
<div class="teal darken-3 amber-text text-accent-4" style="margin-top:100px;">
<?php
$k=$i;
if($i>=1){
echo "<h5><b><center class='amber-text text-accent-4'>SONGS</center></b></h5>";
echo "<hr></hr>";
echo "<table class='highlight centered responsive-table'>";
echo "<thead>";
echo "<tr>";
echo "<th data-field='name'>Song Name</th>";
echo "<th data-field='category'>Song Language</th>";
echo "<th data-field='art'>Song Art</th>";
echo "<th data-field='detail'>Song Artist</th>";
echo "<th data-field='play'>Song Play</th>";
echo "<th data-field='download'>Song Download</th>";
echo "</tr>";
echo "</thead>";
echo "<tbody>";
while($i!=0){
$i=$i-1;
echo "<tr>";
echo "<td>$sn[$i]</td>";
echo "<td>$sc[$i]</td>";
echo "<td><img src='$si[$i]' width='50px' height='50px'></img></td>";
echo "<td>$sa[$i]</td>";
echo "<td><audio src='$src[$i]' controls preload='auto'></audio></td>";
echo "<td><a href='download.php?filename=$src[$i]' class='waves-effect waves-light btn'>DOWNLOAD ME</a></td>";
echo "<tr></tr>";
}
echo "</tbody>";
echo "</table>";
}
else{
echo $name;}
?>
</div>
<?php
$i="";$name="";
$con=mysqli_connect("localhost","root","","domusic");
if(!$con) {
die("Connection Failed: " . mysqli_connect_error());
}
else{
$sql="select * from topsong where scat='hindi'";
$retval=mysqli_query($con,$sql);
$count=mysqli_num_rows($retval);
$c=$count;
$i=0;
if($count>=1){
$i=0;
while($row=mysqli_fetch_assoc($retval) and $count!=0){
$sna[$i]=ucfirst($row["sname"]);
$sar[$i]=$row["sfile"];
$sim[$i]=$row["simg"];
$sart[$i]=$row["sartist"];
$count=$count-1;
$i=$i+1;
}
}
else{
$name="NO RESULT FOUND";
}
}
?>
<div class="row" style="margin-left:274px;">
<h3 style="margin-left: 95px; margin-top: 33px;"><b class="teal-text text-darken-4" style="margin-left:-100px;">Top Five </b></h3>
<div class="col s2" style="width: 273px; margin-left: -11px;margin-top:49px;">
<div class="card teal darken-4 z-depth-5">
<div>
<?php
echo "<img src='$sim[0]' width='250px' height='162px'>
<h5 class='amber-text text-accent-4'>$sna[0]</h5>
<audio src='$sar[0]' controls preload loop class='black' style='width: 248px;'></audio>
</img>";
?>
</div>
</div>
</div>
<div class="col s2" style=" width: 273px;margin-top:49px;">
<div class="card teal darken-4 z-depth-5">
<div>
<?php
echo "<img src='$sim[1]' width='250px' height='162px'>
<h5 class='amber-text text-accent-4'>$sna[1]</h5>
<audio src='$sar[1]' controls preload loop class='black' style='width: 248px;'></audio>
</img>";
?>
</div>
</div>
</div>
<div class="col s2" style=" width: 273px;margin-top:49px;">
<div class="card teal darken-4 z-depth-5">
<div>
<?php
echo "<img src='$sim[2]' width='250px' height='157px'>
<h5 class='amber-text text-accent-4'>$sna[2]</h5>
<audio src='$sar[2]' controls preload loop class='black' style='width: 248px;'></audio>
</img>";
?>
</div>
</div>
</div>
<div class="col s2" style=" width: 273px;margin-top:49px;">
<div class="card teal darken-4 z-depth-5">
<div>
<?php
echo "<img src='$sim[3]' width='250px' height='157px'>
<h5 class='amber-text text-accent-4'>$sna[3]</h5>
<audio src='$sar[3]' controls preload loop class='black' style='width: 248px;'></audio>
</img>";
?>
</div>
</div>
</div>
<div class="col s2" style=" width: 273px;margin-top:49px;">
<div class="card teal darken-4 z-depth-5">
<div>
<?php
echo "<img src='$sim[1]' width='250px' style=height:162px>
<h5 class='amber-text text-accent-4'>$sna[1]</h5>
<audio src='$sar[1]' controls preload loop class='black' style='width: 248px;'></audio>
</img>";
?>
</div>
</div>
</div>
</div>
<?php
$i="";$name="";
$con=mysqli_connect("localhost","root","","domusic");
if(!$con) {
die("Connection Failed: " . mysqli_connect_error());
}
else{
$sql="select * from topvideo where scat='hindi'";
$retval=mysqli_query($con,$sql);
$count=mysqli_num_rows($retval);
$c=$count;
$i=0;
if($count>=1){
$i=0;
while($row=mysqli_fetch_assoc($retval) and $count!=0){
$sna[$i]=ucfirst($row["sname"]);
$sar[$i]=$row["sfile"];
$sim[$i]=$row["simg"];
$sart[$i]=$row["sartist"];
$count=$count-1;
$i=$i+1;
}
}
else{
$name="NO RESULT FOUND";
}
}
?>
<div id="video" class="row" style="margin-top: 204px;padding-top:100px;margin-left:297px;">
<h3 style="margin-left: 95px; margin-top: 33px;"><b class="teal-text text-darken-4" style="margin-left:-103px;">Top Viewed Vedios </b></h3>
<?php
echo "<video width='440' height='300' controls preload poster='$sim[0]' class='z-depth-5'>
<source src='$sar[0]' type='video/mp4'>
</video> ";
echo "<video width='440' height='300' controls preload poster='$sim[1]' class='z-depth-5'>
<source src='$sar[1]' type='video/mp4'>
</video> ";
echo "<video width='440' height='300' controls preload poster='$sim[2]' class='z-depth-5'>
<source src='$sar[2]' type='video/mp4'>
</video> ";
?>
</div>
<div class="row" style="margin-top: 204px;margin-left:297px">
<?php
echo "<video width='440' height='300' controls preload poster='$sim[3]' class='z-depth-5'>
<source src='$sar[3]' type='video/mp4'>
</video> ";
echo "<video width='440' height='300' controls preload poster='$sim[4]' class='z-depth-5'>
<source src='$sar[4]' type='video/mp4'>
</video> ";
echo "<video width='440' height='300' controls preload poster='$sim[5]' class='z-depth-5'>
<source src='$sar[5]' type='video/mp4'>
</video> ";
?>
</div>
<!--importing javascript-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js">
</script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"> </script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="js/audiojquery.js"></script>
<script src="js/audiomain.js"></script>
</body>
</body>