From ac384ab0feee6fc6761d0030273c665264dd33e1 Mon Sep 17 00:00:00 2001
From: oweissbarth
Date: Mon, 17 Mar 2014 00:38:42 +0100
Subject: added basic browsing functionality
---
www/browse.php | 32 ++++++++++++++++++
www/functions/func_interface.php | 4 +--
www/include.php | 1 +
www/static/browser.css | 26 +++++++++++++++
www/static/img/icon_file.svg | 61 ++++++++++++++++++++++++++++++++++
www/static/img/icon_folder.svg | 70 ++++++++++++++++++++++++++++++++++++++++
www/static/style.css | 3 +-
7 files changed, 194 insertions(+), 3 deletions(-)
create mode 100644 www/browse.php
create mode 100644 www/static/browser.css
create mode 100644 www/static/img/icon_file.svg
create mode 100644 www/static/img/icon_folder.svg
diff --git a/www/browse.php b/www/browse.php
new file mode 100644
index 0000000..9c37f41
--- /dev/null
+++ b/www/browse.php
@@ -0,0 +1,32 @@
+
+
';
+
+ include("static/footer.html");
+}
+
+function get_icon($file){
+ if($file[4]=="DIRECTORY"){
+ return ''.get_link($file).' | ';
+ }else{
+ return ''.get_link($file).' | ';
+ }
+}
+
+function get_link($file){
+ return '';
+}
+
+function get_item($file){
+ return ''.get_icon($file).'| '.get_link($file).$file[3].' |
';
+}
diff --git a/www/functions/func_interface.php b/www/functions/func_interface.php
index 2a8ef34..05f8f3b 100755
--- a/www/functions/func_interface.php
+++ b/www/functions/func_interface.php
@@ -18,6 +18,6 @@ function collect_content($db){
return $content;
}
-function print_browser($content){
+/*function print_browser($content){
var_dump($content);
-}
+}*/
diff --git a/www/include.php b/www/include.php
index bb51338..abbe4d9 100755
--- a/www/include.php
+++ b/www/include.php
@@ -17,4 +17,5 @@ require_once($func_dir . "func_password.php"); // changes the user password
require_once("login.php"); // prints the login page
require_once("register.php"); // prints the register page
+require_once("browse.php"); // prints the file browser page
diff --git a/www/static/browser.css b/www/static/browser.css
new file mode 100644
index 0000000..21ef4ad
--- /dev/null
+++ b/www/static/browser.css
@@ -0,0 +1,26 @@
+tr:hover{
+ background: #CCCCCC;
+}
+tr{
+ width: 100%;
+ border: none;
+
+}
+table{
+width: 100%
+}
+
+#icon{
+ width: 35px;
+}
+
+table tr td {
+ padding-left: 0;
+ padding-right: 0;
+ margin: 0;
+
+}
+a{
+ text-decoration: none;
+ color: black;
+}
diff --git a/www/static/img/icon_file.svg b/www/static/img/icon_file.svg
new file mode 100644
index 0000000..de7eaaa
--- /dev/null
+++ b/www/static/img/icon_file.svg
@@ -0,0 +1,61 @@
+
+
+
+
diff --git a/www/static/img/icon_folder.svg b/www/static/img/icon_folder.svg
new file mode 100644
index 0000000..1191fa1
--- /dev/null
+++ b/www/static/img/icon_folder.svg
@@ -0,0 +1,70 @@
+
+
+
+
diff --git a/www/static/style.css b/www/static/style.css
index 8b07d09..d7be5a2 100755
--- a/www/static/style.css
+++ b/www/static/style.css
@@ -76,10 +76,11 @@ a.logo:hover{
Content-Area
**********************************************************/
#content-area{
- height: 100%;
+ /*height: 100%;*/
width: 100%;
position: absolute;
margin-bottom: 0;
+ top: 80px;
}
--
cgit v1.2.3