|
@@ -10,27 +10,42 @@
|
|
|
margin-bottom:10px;
|
|
|
position:fixed;
|
|
|
width:100%;
|
|
|
+ box-shadow: 0px 4px 5px -2px rgba(50, 50, 50, 0.8);
|
|
|
}
|
|
|
|
|
|
#tabs a{
|
|
|
display:inline-block;
|
|
|
- color:#ffccbc;
|
|
|
+ color:#ffcdd2;
|
|
|
padding:15px 30px;
|
|
|
text-decoration:none;
|
|
|
+ text-transform: uppercase;
|
|
|
}
|
|
|
|
|
|
#tabs a.active{
|
|
|
color:#fff;
|
|
|
border-bottom:3px solid #fff;
|
|
|
}
|
|
|
+
|
|
|
+ .image{
|
|
|
+ width:25%;
|
|
|
+ display:inline-block;
|
|
|
+ vertical-align:top;
|
|
|
+ text-align:center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .image>div{
|
|
|
+ margin:5px;
|
|
|
+ padding:5px;
|
|
|
+ background:#e0e0e0;
|
|
|
+ }
|
|
|
}@
|
|
|
@CSSSmall{
|
|
|
@media(orientation:portrait){
|
|
|
- td:nth-child(3), th:nth-child(3){
|
|
|
+ #albums td:nth-child(3), #albums th:nth-child(3){
|
|
|
display:none;
|
|
|
}
|
|
|
}
|
|
|
- td:first-child, th:first-child{
|
|
|
+ #albums td:first-child, #albums th:first-child{
|
|
|
display:none;
|
|
|
}
|
|
|
|
|
@@ -38,7 +53,7 @@
|
|
|
width:100%;
|
|
|
}
|
|
|
|
|
|
- td:last-child,th:last-child,td:nth-child(3), th:nth-child(3){
|
|
|
+ #albums td:last-child, #albums th:last-child, #albums td:nth-child(3), #albums th:nth-child(3){
|
|
|
width:1px;
|
|
|
}
|
|
|
}@
|
|
@@ -67,7 +82,47 @@
|
|
|
</div>
|
|
|
<div id="tabs-content" style="margin-top:55px">
|
|
|
<div id="images">
|
|
|
- asdasd
|
|
|
+ <?php if (isset($errors) && count($errors)>0) {
|
|
|
+ echo '<div class="errors">The following errors occured with the image submission:<ul>';
|
|
|
+ foreach ($errors as $error)
|
|
|
+ echo '<li>',$error,'</li>';
|
|
|
+ echo '</ul>Please rectify them and try again.</div>';
|
|
|
+ } ?>
|
|
|
+ <h3>New Image</h3>
|
|
|
+ <form action="/gallery/upload/" method="post" enctype="multipart/form-data">
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td><label for="imageTitle">Image title:</label></td>
|
|
|
+ <td><input type="text" name="imageTitle" id="imageTitle" /></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><label for="imageDesc">Image description</label></td>
|
|
|
+ <td><textarea name="imageDesc" id="imageDesc"></textarea></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><label for="imageFile">Select image:</label></td>
|
|
|
+ <td><input type="file" name="imageFile" id="imageFile"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" align="right">
|
|
|
+ <button type="submit" title="Upload" name="imageUpload">
|
|
|
+ <img src="/images/send.svg" alt="Upload" />
|
|
|
+ </button>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+ <div>
|
|
|
+ <?php
|
|
|
+ foreach ($images as $image)
|
|
|
+ echo '<div class="image">',
|
|
|
+ '<div>',
|
|
|
+ '<img src="/',$image->/*Thumbnail*/Path,'" alt="',$image->ImageTitle,'" />',
|
|
|
+ '<span>',$image->ImageTitle,'</span>',
|
|
|
+ '</div>',
|
|
|
+ '</div>';
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div id="albums">
|
|
|
<form action="" method="post" id="manageForm">
|