0
1
Fork 0
This commit is contained in:
Juan Ferrer Toribio 2016-07-22 22:00:27 +02:00
parent 19731fd618
commit 69ae21e9fd
663 changed files with 2255 additions and 1486 deletions

View File

@ -1,6 +1,7 @@
# Alias /hedera-web /usr/share/hedera-web/ # Alias /hedera-web /usr/share/hedera-web/web/
# Alias /vn-image-data /var/cache/hedera-web/image/
<Directory /usr/share/hedera-web/> <Directory /usr/share/hedera-web/web/>
Options -Indexes -FollowSymLinks Options -Indexes -FollowSymLinks
AllowOverride None AllowOverride None
@ -20,3 +21,14 @@
</Directory> </Directory>
<Directory /var/cache/hedera-web/image/>
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo Options
Order Allow,Deny
Allow From All
Require all granted
</Directory>

View File

@ -19,11 +19,11 @@ return [
* Database parameters. * Database parameters.
**/ **/
'db' => [ 'db' => [
'host' => 'db.verdnatura.es' 'host' => 'localhost'
,'port' => 3306 ,'port' => 3306
,'schema' => 'hedera-web' ,'schema' => 'hedera-web'
,'user' => 'hedera-web' ,'user' => 'hedera-web'
,'pass' => 'base64pass' ,'pass' => ''
] ]
]; ];

View File

@ -1,9 +1,6 @@
<?php <?php
namespace Vn\Hedera; require_once (__DIR__.'/../php-vn-lib/configure.php');
require_once (__DIR__.'/../php-vn-web/configure.php');
require_once (__DIR__.'/../vn-image/configure.php');
set_include_path set_include_path
( (
@ -14,5 +11,6 @@ set_include_path
const _DEVELOPER_MODE = TRUE; const _DEVELOPER_MODE = TRUE;
const _CONFIG_DIR = '/home/juan/.config'; const _CONFIG_DIR = '/home/juan/.config';
const _LOG_DIR = '/tmp'; const _LOG_DIR = '/tmp';
const _DATA_DIR = '/tmp';
?> ?>

17
debian/install vendored
View File

@ -1,4 +1,17 @@
debian/conf/* etc/hedera-web conf/* etc/hedera-web
vn usr/share/php vn usr/share/php
doc/* usr/share/doc/hedera-web doc/* usr/share/doc/hedera-web
web/* usr/share/hedera-web forms usr/share/hedera-web/web
image usr/share/hedera-web/web
js usr/share/hedera-web/web
locale usr/share/hedera-web/web
pages usr/share/hedera-web/web
reports usr/share/hedera-web/web
rest usr/share/hedera-web/web
rest-json usr/share/hedera-web/web
index.php usr/share/hedera-web/web
rest.php usr/share/hedera-web/web
rest-json.php usr/share/hedera-web/web
hedera.php usr/share/hedera-web/bin
tasks usr/share/hedera-web/bin

View File

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

View File

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 298 KiB

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 285 KiB

After

Width:  |  Height:  |  Size: 285 KiB

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 426 KiB

After

Width:  |  Height:  |  Size: 426 KiB

View File

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 192 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

View File

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 129 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

Before

Width:  |  Height:  |  Size: 297 KiB

After

Width:  |  Height:  |  Size: 297 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 153 KiB

View File

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 133 KiB

View File

@ -0,0 +1,44 @@
Vn.Contact = new Class
({
Extends: Vn.Form
,activate: function ()
{
var self = this;
var form = this.$('contact-form').onsubmit = function ()
{ self.onSubmit (); return false; };
this.refreshCaptcha ();
}
,refreshCaptcha: function ()
{
var url = 'rest.php?method=captcha';
this.$('captcha-img').src = url +'&stamp='+ new Date ().getTime ();
}
,onSubmit: function ()
{
var request = new Vn.JsonRequest ();
request.sendForm (this.$('contact-form'),
this.onResponse.bind (this));
}
,onResponse: function (request, json, error)
{
var form = this.$('contact-form');
if (json)
{
form.reset ();
Htk.Toast.showMessage (_('DataSentSuccess'));
}
else
Htk.Toast.showError (_('ErrorSendingData'));
form['captcha'].value = '';
this.refreshCaptcha ();
}
});

View File

@ -46,10 +46,10 @@
.captcha img .captcha img
{ {
vertical-align: middle; vertical-align: middle;
margin-left: 1em;
} }
.captcha input .captcha input
{ {
margin-left: 1em;
max-width: 8em; max-width: 8em;
} }

View File

@ -11,7 +11,10 @@
<p> <p>
<t>OrCallUs</t> <t>OrCallUs</t>
</p> </p>
<form action="forms/cms/contact/send-data.php" method="post" id="contact-form"> <form
id="contact-form"
method="post"
action="rest.php?method=contact">
<div class="form-group"> <div class="form-group">
<label><t>Name</t></label> <label><t>Name</t></label>
<input type="text" name="name"/> <input type="text" name="name"/>

View File

@ -16,7 +16,6 @@
<db-model property="model"> <db-model property="model">
<custom> <custom>
SELECT title, date_time, text, image, id FROM news SELECT title, date_time, text, image, id FROM news
WHERE tag != 'course'
ORDER BY priority, date_time DESC ORDER BY priority, date_time DESC
</custom> </custom>
</db-model> </db-model>

View File

@ -18,6 +18,11 @@ Vn.Basket = new Class
this.loadUi (); this.loadUi ();
} }
,activate: function ()
{
this.$('items').setInfo ('i', 'basket_item', 'hedera');
}
,onConfigureClick: function () ,onConfigureClick: function ()
{ {
Htk.Toast.showWarning (_('RememberReconfiguringImpact')); Htk.Toast.showWarning (_('RememberReconfiguringImpact'));

View File

@ -3,14 +3,12 @@ Vn.Invoices = new Class
({ ({
Extends: Vn.Form Extends: Vn.Form
,activate: function () {}
,onDownloadClick: function (column, invoiceId) ,onDownloadClick: function (column, invoiceId)
{ {
if (!invoiceId) if (!invoiceId)
return; return;
var url = '//www.verdnatura.es/hedera-web/forms/ecomerce/invoices/download.php?invoice='+ invoiceId; var url = 'rest.php?method=invoice&invoice='+ invoiceId;
window.open (url, '_blank'); window.open (url, '_blank');
} }
}); });

Some files were not shown because too many files have changed in this diff Show More