From 50ad4ad5ffc550fae2bd0ed936e7bb176f89f349 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sun, 8 Feb 2015 16:38:38 +0100 Subject: [PATCH] Beta: Responsive, Material design --- package/etc/apache2/conf.d/hedera-web | 8 +- .../share/hedera-web/forms/account/html.php | 24 ++- .../share/hedera-web/forms/account/style.css | 4 +- .../forms/admin/access-log/html.php | 8 +- .../forms/admin/access-log/style.css | 13 +- .../hedera-web/forms/admin/links/html.php | 3 + .../hedera-web/forms/admin/links/style.css | 5 +- .../hedera-web/forms/admin/photos/html.php | 64 +++--- .../hedera-web/forms/admin/photos/style.css | 3 +- .../hedera-web/forms/admin/users/html.php | 4 +- .../hedera-web/forms/admin/users/style.css | 13 +- .../hedera-web/forms/admin/visits/html.php | 21 +- .../hedera-web/forms/admin/visits/style.css | 20 +- .../forms/agencies/packages/html.php | 4 +- .../forms/agencies/packages/style.css | 7 +- .../forms/agencies/provinces/html.php | 8 +- .../forms/agencies/provinces/style.css | 7 +- .../share/hedera-web/forms/cms/about/html.php | 26 ++- .../hedera-web/forms/cms/about/style.css | 19 +- .../hedera-web/forms/cms/contact/html.php | 90 ++++---- .../hedera-web/forms/cms/contact/style.css | 5 +- .../share/hedera-web/forms/cms/home/home.js | 15 +- .../share/hedera-web/forms/cms/home/html.php | 4 +- .../share/hedera-web/forms/cms/home/style.css | 7 +- .../hedera-web/forms/cms/training/html.php | 3 + .../hedera-web/forms/cms/training/style.css | 51 +++++ .../hedera-web/forms/cms/training/training.js | 53 +++++ .../share/hedera-web/forms/cms/why/html.php | 10 +- .../share/hedera-web/forms/cms/why/style.css | 3 +- .../forms/ecomerce/basket/basket.js | 15 -- .../hedera-web/forms/ecomerce/basket/html.php | 57 +++-- .../forms/ecomerce/basket/style.css | 9 +- .../forms/ecomerce/catalog/catalog.js | 203 ++++++++++++------ .../forms/ecomerce/catalog/html.php | 180 ++++++---------- .../forms/ecomerce/catalog/style.css | 195 +++++++++++------ .../forms/ecomerce/checkout/html.php | 52 ++--- .../forms/ecomerce/checkout/style.css | 7 +- .../hedera-web/forms/ecomerce/orders/html.php | 28 +-- .../forms/ecomerce/orders/orders.js | 2 +- .../forms/ecomerce/orders/style.css | 37 ++-- .../hedera-web/forms/ecomerce/ticket/html.php | 18 +- .../forms/ecomerce/ticket/style.css | 7 +- .../share/hedera-web/forms/news/new/html.php | 27 ++- .../share/hedera-web/forms/news/new/new.js | 9 +- .../share/hedera-web/forms/news/new/style.css | 10 +- .../share/hedera-web/forms/news/news/html.php | 11 +- .../hedera-web/forms/news/news/style.css | 7 +- package/usr/share/hedera-web/global/style.css | 172 ++++++++++----- .../usr/share/hedera-web/image/catalog.png | Bin 196 -> 0 bytes .../usr/share/hedera-web/image/dark/add.svg | 131 +++++++++++ .../share/hedera-web/image/dark/connect.svg | 166 ++++++++++++++ .../hedera-web/image/dark/go-previous.svg | 169 +++++++++++++++ .../usr/share/hedera-web/image/dark/graph.svg | 128 +++++++++++ .../usr/share/hedera-web/image/dark/info.svg | 123 +++++++++++ .../image/{logo-white.png => dark/logo.png} | Bin .../image/{logo-white.svg => dark/logo.svg} | 0 .../image/{catalog.svg => dark/menu.svg} | 59 +++-- .../usr/share/hedera-web/image/dark/ok.svg | 139 ++++++++++++ .../usr/share/hedera-web/image/dark/order.svg | 141 ++++++++++++ .../usr/share/hedera-web/image/dark/pay.svg | 70 ++++++ .../usr/share/hedera-web/image/dark/print.svg | 136 ++++++++++++ .../share/hedera-web/image/dark/refresh.svg | 133 ++++++++++++ .../share/hedera-web/image/dark/search.svg | 130 +++++++++++ .../share/hedera-web/image/dark/user-info.svg | 158 ++++++++++++++ .../usr/share/hedera-web/image/family/1.svg | 90 ++++++++ .../usr/share/hedera-web/image/family/2.svg | 124 +++++++++++ .../usr/share/hedera-web/image/family/3.svg | 92 ++++++++ .../usr/share/hedera-web/image/family/4.svg | 70 ++++++ .../usr/share/hedera-web/image/family/5.svg | 70 ++++++ package/usr/share/hedera-web/image/menu.svg | 8 +- package/usr/share/hedera-web/image/search.svg | 130 +++++++++++ package/usr/share/hedera-web/js/db/conn.js | 9 +- package/usr/share/hedera-web/js/db/model.js | 94 +++++++- .../hedera-web/js/htk/field/date-chooser.js | 14 +- .../hedera-web/js/htk/field/full-image.js | 20 +- package/usr/share/hedera-web/js/htk/popup.js | 9 +- package/usr/share/hedera-web/js/sql/batch.js | 22 +- package/usr/share/hedera-web/js/vn/main.js | 9 +- .../locale/ca/forms/admin/links.json | 4 +- .../locale/ca/forms/cms/training.json | 4 + .../locale/ca/forms/ecomerce/basket.json | 2 +- .../locale/ca/forms/ecomerce/catalog.json | 7 +- .../locale/ca/forms/ecomerce/orders.json | 4 +- .../usr/share/hedera-web/locale/ca/js/vn.js | 1 + .../locale/es/forms/admin/links.json | 4 +- .../locale/es/forms/cms/training.json | 4 + .../locale/es/forms/ecomerce/basket.json | 2 +- .../locale/es/forms/ecomerce/catalog.json | 7 +- .../locale/es/forms/ecomerce/orders.json | 4 +- .../usr/share/hedera-web/locale/es/js/vn.js | 1 + .../locale/fr/forms/admin/links.json | 4 +- .../locale/fr/forms/cms/training.json | 3 + .../locale/fr/forms/ecomerce/basket.json | 2 +- .../locale/fr/forms/ecomerce/catalog.json | 7 +- .../locale/fr/forms/ecomerce/orders.json | 4 +- .../usr/share/hedera-web/locale/fr/js/vn.js | 1 + .../usr/share/hedera-web/pages/login/html.php | 2 +- .../share/hedera-web/pages/login/style.css | 3 +- .../usr/share/hedera-web/pages/web/html.php | 8 +- .../usr/share/hedera-web/pages/web/style.css | 29 ++- package/usr/share/hedera-web/pages/web/web.js | 134 ++++++------ package/usr/share/hedera-web/rest/query.php | 53 ++++- package/usr/share/php/vn/hedera/web.php | 5 +- package/usr/share/php/vn/tpv/soap-method.php | 2 +- 104 files changed, 3474 insertions(+), 819 deletions(-) create mode 100755 package/usr/share/hedera-web/forms/cms/training/html.php create mode 100755 package/usr/share/hedera-web/forms/cms/training/style.css create mode 100755 package/usr/share/hedera-web/forms/cms/training/training.js delete mode 100644 package/usr/share/hedera-web/image/catalog.png create mode 100644 package/usr/share/hedera-web/image/dark/add.svg create mode 100644 package/usr/share/hedera-web/image/dark/connect.svg create mode 100644 package/usr/share/hedera-web/image/dark/go-previous.svg create mode 100644 package/usr/share/hedera-web/image/dark/graph.svg create mode 100644 package/usr/share/hedera-web/image/dark/info.svg rename package/usr/share/hedera-web/image/{logo-white.png => dark/logo.png} (100%) rename package/usr/share/hedera-web/image/{logo-white.svg => dark/logo.svg} (100%) rename package/usr/share/hedera-web/image/{catalog.svg => dark/menu.svg} (77%) create mode 100644 package/usr/share/hedera-web/image/dark/ok.svg create mode 100644 package/usr/share/hedera-web/image/dark/order.svg create mode 100644 package/usr/share/hedera-web/image/dark/pay.svg create mode 100644 package/usr/share/hedera-web/image/dark/print.svg create mode 100644 package/usr/share/hedera-web/image/dark/refresh.svg create mode 100644 package/usr/share/hedera-web/image/dark/search.svg create mode 100644 package/usr/share/hedera-web/image/dark/user-info.svg create mode 100644 package/usr/share/hedera-web/image/family/1.svg create mode 100644 package/usr/share/hedera-web/image/family/2.svg create mode 100644 package/usr/share/hedera-web/image/family/3.svg create mode 100644 package/usr/share/hedera-web/image/family/4.svg create mode 100644 package/usr/share/hedera-web/image/family/5.svg create mode 100644 package/usr/share/hedera-web/image/search.svg create mode 100755 package/usr/share/hedera-web/locale/ca/forms/cms/training.json create mode 100755 package/usr/share/hedera-web/locale/es/forms/cms/training.json create mode 100755 package/usr/share/hedera-web/locale/fr/forms/cms/training.json diff --git a/package/etc/apache2/conf.d/hedera-web b/package/etc/apache2/conf.d/hedera-web index f82e08da..f7bf5c91 100644 --- a/package/etc/apache2/conf.d/hedera-web +++ b/package/etc/apache2/conf.d/hedera-web @@ -1,17 +1,21 @@ Alias /hedera-web /usr/share/hedera-web/ - Options Indexes - Options +FollowSymLinks + + Options -Indexes -FollowSymLinks AllowOverride None + Order Allow,Deny Allow From All + SetOutputFilter DEFLATE + Header set Access-Control-Allow-Origin "*" + diff --git a/package/usr/share/hedera-web/forms/account/html.php b/package/usr/share/hedera-web/forms/account/html.php index a51f98e4..170a3ddf 100755 --- a/package/usr/share/hedera-web/forms/account/html.php +++ b/package/usr/share/hedera-web/forms/account/html.php @@ -1,16 +1,18 @@
+ + + + SELECT id, u.name, password, email, mail, c.user_id + FROM user_view u + LEFT JOIN customer_view c + ON u.id = c.user_id + + +
- - - - SELECT id, u.name, password, email, mail, c.user_id - FROM user_view u - LEFT JOIN customer_view c - ON u.id = c.user_id - - - -

+
+

+
diff --git a/package/usr/share/hedera-web/forms/account/style.css b/package/usr/share/hedera-web/forms/account/style.css index 2799dd8e..b8b1139c 100755 --- a/package/usr/share/hedera-web/forms/account/style.css +++ b/package/usr/share/hedera-web/forms/account/style.css @@ -1,17 +1,17 @@ #account { - margin: 1em; + padding: 1em; } #account .box { max-width: 40em; - padding: 2em; } #account div.form { margin: 0 auto; max-width: 25em; + padding: 2em; } div.form-group { diff --git a/package/usr/share/hedera-web/forms/admin/access-log/html.php b/package/usr/share/hedera-web/forms/admin/access-log/html.php index f2a159c6..870b5ecf 100755 --- a/package/usr/share/hedera-web/forms/admin/access-log/html.php +++ b/package/usr/share/hedera-web/forms/admin/access-log/html.php @@ -1,6 +1,5 @@
-
-

+ @@ -13,6 +12,11 @@ + +
+
+

+
diff --git a/package/usr/share/hedera-web/forms/admin/access-log/style.css b/package/usr/share/hedera-web/forms/admin/access-log/style.css index 6b5cae66..6dd2df0c 100755 --- a/package/usr/share/hedera-web/forms/admin/access-log/style.css +++ b/package/usr/share/hedera-web/forms/admin/access-log/style.css @@ -1,26 +1,15 @@ #access-log { - margin: 1em; + padding: 1em; min-width: 35em; } #access-log .box { max-width: 50em; margin: 0 auto; - padding: 2em; } #access-log grid tbody tr { height: 3.4em; } -/* Form */ - -#access-log table.form -{ - padding-bottom: 1.6em; -} -#access-log td.label -{ - width: 46%; -} diff --git a/package/usr/share/hedera-web/forms/admin/links/html.php b/package/usr/share/hedera-web/forms/admin/links/html.php index 26c25bed..b4450f10 100755 --- a/package/usr/share/hedera-web/forms/admin/links/html.php +++ b/package/usr/share/hedera-web/forms/admin/links/html.php @@ -1,5 +1,8 @@
+
+

+
SELECT image, name, description, link FROM link diff --git a/package/usr/share/hedera-web/forms/admin/links/style.css b/package/usr/share/hedera-web/forms/admin/links/style.css index 8e077bd8..c506dc1c 100755 --- a/package/usr/share/hedera-web/forms/admin/links/style.css +++ b/package/usr/share/hedera-web/forms/admin/links/style.css @@ -1,13 +1,12 @@ #cpanel -{ - margin: 1em; +{ + padding: 1em; } #cpanel .box { max-width: 60em; min-width: 25em; - padding: 2em; } #cpanel tbody tr { diff --git a/package/usr/share/hedera-web/forms/admin/photos/html.php b/package/usr/share/hedera-web/forms/admin/photos/html.php index 435dc0dc..4d0588ce 100755 --- a/package/usr/share/hedera-web/forms/admin/photos/html.php +++ b/package/usr/share/hedera-web/forms/admin/photos/html.php @@ -1,35 +1,37 @@
-

- -

-
-
- - - - - SELECT name, `desc` FROM image_schema ORDER BY `desc` - - -
-
- - -
-
- - -
-
- - - -
- - - +
+

+
+
+
+
+ + +
+
+ + +
+
+ + + + + SELECT name, `desc` FROM image_schema ORDER BY `desc` + + +
+
+ + + +
+ + + +
diff --git a/package/usr/share/hedera-web/forms/admin/photos/style.css b/package/usr/share/hedera-web/forms/admin/photos/style.css index e39f8bc4..43bde871 100755 --- a/package/usr/share/hedera-web/forms/admin/photos/style.css +++ b/package/usr/share/hedera-web/forms/admin/photos/style.css @@ -1,12 +1,11 @@ #photos { - margin: 1em; + padding: 1em; } #photos .box { max-width: 40em; - padding: 2em; } #photos form { diff --git a/package/usr/share/hedera-web/forms/admin/users/html.php b/package/usr/share/hedera-web/forms/admin/users/html.php index abd03f80..d452d801 100755 --- a/package/usr/share/hedera-web/forms/admin/users/html.php +++ b/package/usr/share/hedera-web/forms/admin/users/html.php @@ -1,6 +1,8 @@
-

+
+

+
diff --git a/package/usr/share/hedera-web/forms/admin/users/style.css b/package/usr/share/hedera-web/forms/admin/users/style.css index 3f5f2450..4299bb8b 100755 --- a/package/usr/share/hedera-web/forms/admin/users/style.css +++ b/package/usr/share/hedera-web/forms/admin/users/style.css @@ -1,26 +1,15 @@ #users { - margin: 1em; + padding: 1em; min-width: 35em; } #users .box { max-width: 50em; margin: 0 auto; - padding: 2em; } #users tbody tr { height: 3.4em; } -/* Form */ - -#users table.form -{ - padding-bottom: 1.6em; -} -#users td.label -{ - width: 46%; -} diff --git a/package/usr/share/hedera-web/forms/admin/visits/html.php b/package/usr/share/hedera-web/forms/admin/visits/html.php index df6ffb80..77617593 100755 --- a/package/usr/share/hedera-web/forms/admin/visits/html.php +++ b/package/usr/share/hedera-web/forms/admin/visits/html.php @@ -1,10 +1,21 @@
-

-
- - - +
+

+
+ + + +
diff --git a/package/usr/share/hedera-web/forms/admin/visits/style.css b/package/usr/share/hedera-web/forms/admin/visits/style.css index e5370993..79338e41 100755 --- a/package/usr/share/hedera-web/forms/admin/visits/style.css +++ b/package/usr/share/hedera-web/forms/admin/visits/style.css @@ -1,13 +1,12 @@ #visits { - margin: 1em; + padding: 1em; min-width: 50em; } #visits .box { max-width: 80em; margin: 0 auto; - padding: 2em; } /* Steps */ @@ -17,20 +16,3 @@ div.step display: none; } -/* Forms */ - -#visits tbody tr -{ - height: 34px; -} -#visits table.form -{ - padding-bottom: 20px; - border-collapse: separate; - border-spacing: 8px; -} -#visits td.label -{ - width: 50%; -} - diff --git a/package/usr/share/hedera-web/forms/agencies/packages/html.php b/package/usr/share/hedera-web/forms/agencies/packages/html.php index 7eaa1268..f28e8ec4 100755 --- a/package/usr/share/hedera-web/forms/agencies/packages/html.php +++ b/package/usr/share/hedera-web/forms/agencies/packages/html.php @@ -1,6 +1,8 @@
-

+
+

+
CALL vn2008.agencia_volume () diff --git a/package/usr/share/hedera-web/forms/agencies/packages/style.css b/package/usr/share/hedera-web/forms/agencies/packages/style.css index 491befd2..4f209fea 100755 --- a/package/usr/share/hedera-web/forms/agencies/packages/style.css +++ b/package/usr/share/hedera-web/forms/agencies/packages/style.css @@ -1,14 +1,9 @@ #packages { - margin: 1em; + padding: 1em; } #packages .box { max-width: 50em; margin: 0 auto; - padding: 2em; -} -#packages table.grid -{ - position: relative } diff --git a/package/usr/share/hedera-web/forms/agencies/provinces/html.php b/package/usr/share/hedera-web/forms/agencies/provinces/html.php index e23e386f..bf8f5793 100755 --- a/package/usr/share/hedera-web/forms/agencies/provinces/html.php +++ b/package/usr/share/hedera-web/forms/agencies/provinces/html.php @@ -1,10 +1,14 @@
-
+ -

+
+
+
+

+
CALL vn2008.desglose_volume (#agency) diff --git a/package/usr/share/hedera-web/forms/agencies/provinces/style.css b/package/usr/share/hedera-web/forms/agencies/provinces/style.css index 6c8cd1c9..214fcc29 100755 --- a/package/usr/share/hedera-web/forms/agencies/provinces/style.css +++ b/package/usr/share/hedera-web/forms/agencies/provinces/style.css @@ -1,14 +1,9 @@ #provinces { - margin: 1em; + padding: 1em; } #provinces .box { max-width: 50em; margin: 0 auto; - padding: 2em; -} -#provinces table.grid -{ - position: relative } diff --git a/package/usr/share/hedera-web/forms/cms/about/html.php b/package/usr/share/hedera-web/forms/cms/about/html.php index db485fb1..1b52593f 100755 --- a/package/usr/share/hedera-web/forms/cms/about/html.php +++ b/package/usr/share/hedera-web/forms/cms/about/html.php @@ -1,7 +1,9 @@
-

+
+

+

store @@ -15,19 +17,25 @@ palletizing
-

+
+

+

differentiates_us

-

+
+

+

commercial
-

+
+

+

training

@@ -36,7 +44,9 @@ youtube
-

+
+

+

auction

@@ -75,10 +85,10 @@ agencies

-
-

+

+

- logo_small + Verdnatura

diff --git a/package/usr/share/hedera-web/forms/cms/about/style.css b/package/usr/share/hedera-web/forms/cms/about/style.css index b35a31b5..f38fb3bb 100755 --- a/package/usr/share/hedera-web/forms/cms/about/style.css +++ b/package/usr/share/hedera-web/forms/cms/about/style.css @@ -1,13 +1,12 @@ #about { - margin: 1em; + padding: 1em; } #about .box { max-width: 50em; margin: 0 auto; - padding: 2em; } #about h2 { @@ -30,16 +29,19 @@ display: block; margin: 1em auto; } -#about p.summary +#summary +{ + padding-bottom: 1em; +} +#summary p { max-width: 30em; text-align: center; background-color: #FF8; - padding: 1.5em; + padding: 1em; border-radius: 0.1em; box-shadow: 0 0.2em 0.2em #AAA; - margin: 0 auto; - margin-top: 2em; + margin: 2em auto; } /* Images */ @@ -70,9 +72,4 @@ padding-left: 0.9em; vertical-align: middle; } -#about img[alt="logo_small"] -{ - padding: 0px; - padding-top: 2.5em; -} diff --git a/package/usr/share/hedera-web/forms/cms/contact/html.php b/package/usr/share/hedera-web/forms/cms/contact/html.php index edca3579..dec38396 100755 --- a/package/usr/share/hedera-web/forms/cms/contact/html.php +++ b/package/usr/share/hedera-web/forms/cms/contact/html.php @@ -1,50 +1,52 @@
-

- -

-

- -

-

- -

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -