-
Notifications
You must be signed in to change notification settings - Fork 0
/
digitalart.php
200 lines (180 loc) · 8.09 KB
/
digitalart.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
<?php
// Start the session
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>UE Artista</title>
<link rel="shortcut icon" href="webicon.png">
<link href="welcomecss.css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="background-color:snow;">
<div class="divs" id="navstrip" >
<div class="datetime">
<font class="dateA" >
<?php
echo "Today is " . date("Y-m-d") . "<br>";
?></font>
</div>
<div>
<font class="time" >
<?php
echo "The time is " . date("h:i:sa");
?></font>
</div>
<div>
<td>
<input type="button" class="logotab" name="homebtnlogo" id="homelogo" value="UE Artista" onclick="window.location='ueaahome.php'" />
<font class="uetext">University of the East</font>
</td></div>
<td>
<input type="button" class="navtabs" id="home" name="homebtn" value="Home" onclick="window.location='ueaahome.php'" />
</td>
<td>
<div class="dropdown">
<!-- trigger button -->
<button class="navtabs" id="gallery" name="gallerybtn" value="Gallery">Gallery </button>
<!-- dropdown menu -->
<ul class="dropdown-menu">
<li><a href="crafting.php">Crafting</a></li>
<li><a href="film.php">Film</a></li>
<li><a href="digitalart.php">Digital Art</a></li>
<li><a href="literary.php">Literary</a></li>
<li><a href="music.php">Music</a></li>
<li><a href="painting.php">Painting</a></li>
<li><a href="photography.php">Photography</a></li>
<li><a href="sketching.php">Sketching</a></li>
</ul>
</div></td>
<td>
<input type="button" class="navtabs" name="officersbtn" id="officers" value="Officers" onclick="window.location='ueaaofficers.php'"/>
</td>
<td>
<input type="button" class="navtabs" name="aboutbtn" id="about" value="About UEAA" onclick="window.location='ueaaabout.php'"/>
</td>
<td>
<input type="button" name="writebtn" class="navtabs" id="write" value="Share" onclick="window.location='writeform.php'"/>
</td>
</div>
</td>
</div>
<div class="sidefield">
<td>
<!--<font class="usernamesession"><a class="usersession" href="writeform.php"> </a></font><br><br> -->
<input type="button" class="sideBtn" onclick="window.location='logout.php'" value="Log Out" />
<input type="button" class="btnicon" onclick="window.location='logout.php'" style="background-image: url('logout.png');background-size: cover;" /><br><br><br><br>
<input type="button" class="sideBtn" onclick="window.location='ueaaevents.php'" value="Events" />
</td>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Made with WOW Slider - Create beautiful, responsive image sliders in a few clicks. Awesome skins and animations. Http://wowslider.com/" />
<!-- Start WOWSlider.com HEAD section --> <!-- add to the <head> of your page -->
<link rel="stylesheet" type="text/css" href="engine1C/style.css" />
<script type="text/javascript" src="engine1C/jquery.js"></script>
<!-- End WOWSlider.com HEAD section -->
</head>
<body style="background-color:#d7d7d7;margin:auto">
<!-- Start WOWSlider.com BODY section --> <!-- add to the <body> of your page -->
<div id="wowslider-container1">
<div class="ws_images"><ul>
<li><img src="data1C/images/digitalartbyaldousgarcia.jpg" alt="digitalartbyaldousgarcia" title="by Aldous Garcia / EMC" id="wows1_0"/></li>
<li><img src="data1C/images/digitalartbyaldousgarciaa.jpg" alt="digitalartbyaldousgarciaA" title="by Aldous Garcia / EMC" id="wows1_1"/></li>
<li><img src="data1C/images/digitalartbyallysa.jpg" alt="digitalartbyallysa" title="by Allysa Calilung / Dentistry" id="wows1_2"/></li>
<li><img src="data1C/images/digitalartbyallysaa.jpg" alt="digitalartbyallysaA" title="by Allysa Calilung / Dentistry" id="wows1_3"/></li>
<li><img src="data1C/images/digitalartbyallysab.jpg" alt="digitalartbyallysaB" title="by Allysa Calilung / Dentistry" id="wows1_4"/></li>
<li><img src="data1C/images/digitalartbyjohnkennethcanonoy.jpg" alt="digitalartbyjohnkennethcanonoy" title="by John Kenneth Canonoy / Game Development" id="wows1_5"/></li>
<li><a href="http://wowslider.net"><img src="data1C/images/digitalartbyjohnkennethcanonoya.jpg" alt="jquery slider" title="by John Kenneth Canonoy / Game Development" id="wows1_6"/></a></li>
<li><img src="data1C/images/digitalartbymerylljoycedirain.jpg" alt="digitalartbymerylljoycedirain" title="by Meryll Joyce Dirain" id="wows1_7"/></li>
</ul></div>
<div class="ws_script" style="position:absolute;left:-99%"><a href="http://wowslider.com">http://wowslider.com/</a> by WOWSlider.com v8.6</div>
<div class="ws_shadow"></div>
</div>
<script type="text/javascript" src="engine1C/wowslider.js"></script>
<script type="text/javascript" src="engine1C/script.js"></script>
<!-- End WOWSlider.com BODY section -->
</div>
<div class="walls" id="homewall" ><br>
<!-- <div class="photogallery">
<div class="row">
<?php
//scan "uploads" folder and display them accordingly
$folder = "digital art";
$results = scandir('digital art');
foreach ($results as $result) {
if ($result === '.' or $result === '..') continue;
if (is_file($folder . '/' . $result)) {
echo '
<div class="col-md-3">
<div class="thumbnail" id="images">
<img class="imagedimension" src="'.$folder . '/' . $result.'" alt="...">
<div class="caption">
<p><a href="remove.php?name='.$result.'" class="btn btn-danger btn-xs" role="button">Remove</a></p>
</div>
</div>
</div>';
}
}
?>
</div>
</div> <!-- /container -->
<div class="photogallery">
<?php
$mysqli = new mysqli( 'localhost', 'root', '', 'ueartistamem' );
$sql = "SELECT * FROM images_tbl WHERE image_category='Digital Art' AND image_status='Approved'";
$result = $mysqli->query($sql);
echo "<table>";
while($row=mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>";?> <img src="<?php echo $row["images_path"]; ?>" class="imagedimension" height="100" width="100"> <?php echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>";?> <font class="imagecaption" id="imagecaptiontitle"><?php echo $row["title"]; echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>";?><font class="imagecaption" ><?php echo " by " . $row["artists"]; echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>";?> <font class="announcementB" id="datetime" style="color:snow;"><?php echo $row["submission_date"] . " at " . $row["submission_time"]; echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>";?><hr class="postlines" /><?php echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>";?><br><?php
echo "</tr>";
}
echo "</table>";
?>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#flipAdigiart").click(function(){
$("#panelAdigiart").slideToggle("slow");
});
$("#flipAdigiartA").click(function(){
$("#panelAdigiartA").slideToggle("slow");
});
});
</script>
<div class="space">
</div></div>
<div id="footerA">
<hr class="hrline" /><td>
<input id="facebook" class="sociallink" type="button" onclick="window.open('https://www.facebook.com/UE-ArtistA-218898668140378/timeline/')" style="background-image:url('facebook.png');background-size:cover;" >
</input></td>
<td>
<input id="twitter" class="sociallink" type="button" onclick="window.open('https://twitter.com/UeArtists')" style="background-image:url('icon-twitter.png');background-size:cover;" >
</input></td>
<td>
<input id="instagram" class="sociallink" type="button" onclick="window.open('https://instagram.com/ueartista/')" style="background-image:url('insagram.png');background-size:cover;" >
</input></td>
<font class="footertextA"> University of the East</font><br>
<font class="footertextB"> Artists Alliance</font>
<div class="container">
</div>
</div>
</body>
</html>