diff --git a/ADMIN/js/scripts.js b/ADMIN/js/scripts.js index b8fca96..08a6825 100644 --- a/ADMIN/js/scripts.js +++ b/ADMIN/js/scripts.js @@ -40,8 +40,8 @@ $(document).ready( function(){ $('.files-list .add-file').on('click', function(e){ e.preventDefault(); - console.log($(this).siblings('.files-list')); - $(this).siblings('.list').append($('')); + var master = $(this).siblings('.list').find('.master:first-child').clone(); + $(this).siblings('.list').append($(master)); }); }); diff --git a/ADMIN/menu.php b/ADMIN/menu.php index 8eab017..1839826 100644 --- a/ADMIN/menu.php +++ b/ADMIN/menu.php @@ -11,7 +11,6 @@ - + + diff --git a/ADMIN/sheets/files/add.php b/ADMIN/sheets/files/add.php new file mode 100755 index 0000000..9570468 --- /dev/null +++ b/ADMIN/sheets/files/add.php @@ -0,0 +1,76 @@ +
+
+
Aggiungi file
+
+
+ +
+ + $file) { + if(is_uploaded_file($file['tmp_name'])){ + $filename = preg_replace('/[^a-zA-Z0-9\-\._]/','', $file['name']); + $filesize = ($file['size'] < 1000000) ? round($file['size'] / 1000)."k" : round($file['size'] / 1000000)."M"; + $title = $_POST['titles'][$index]; + $path = $_POST['path']; + + move_uploaded_file($file['tmp_name'], "..$path/$filename"); + $qf=mysqli_query($conn, "INSERT INTO files VALUES(null, '$title', '$filename', '".$path."', NOW(), '$filesize')"); + } + } + } + + echo '
+

+ File aggiunto correttamente! +
'; + + + }else{ + ?> +
+
+
+ Carica in + +
+ +
+ Files +
+
+
+
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ + + +
+ +
+
+ diff --git a/ADMIN/sheets/files/del.php b/ADMIN/sheets/files/del.php new file mode 100644 index 0000000..3185ca7 --- /dev/null +++ b/ADMIN/sheets/files/del.php @@ -0,0 +1,128 @@ +
+
+
Elimina notizia
+
+
+ +
+ + +

+ Notizia eliminata correttamente! +
'; + + }else{ + + if($getQ[3]){ + + $q=mysqli_query($conn, "SELECT * FROM news WHERE id = ".trim($getQ[3])); + $r=mysqli_fetch_array($q); + + ?> +
+
+
+ Data +

+
+
+ Titolo notizia +

+
+
+ Testo notizia +

+
+ +
+ Allegato/i +
+
+ ".$rca['title']." +
+ + +
"; + } + ?> +
+
+ +
+
+ +
+
+ + + +
+
+
+
+ Seleziona una notizia +
+
+
+
+ +
+
+ +
+
+
+
+ + + +
+ + + + diff --git a/ADMIN/sheets/news/add.php b/ADMIN/sheets/news/add.php index a4f8608..ddbe228 100755 --- a/ADMIN/sheets/news/add.php +++ b/ADMIN/sheets/news/add.php @@ -17,8 +17,11 @@ if(is_uploaded_file($file['tmp_name'])){ $filename = preg_replace('/[^a-zA-Z0-9\-\._]/','', $file['name']); $filesize = ($file['size'] < 1000000) ? round($file['size'] / 1000)."k" : round($file['size'] / 1000000)."M"; - move_uploaded_file($file['tmp_name'], "../docs/files/news/$filename"); - $qf=mysqli_query($conn, "INSERT INTO files VALUES(null, '$filename', '$filename', '/docs/files/news', NOW(), '$filesize')"); + $title = $_POST['titles'][$index]; + $path = '/docs/files/news'; + + move_uploaded_file($file['tmp_name'], "..$path/$filename"); + $qf=mysqli_query($conn, "INSERT INTO files VALUES(null, '$title', '$filename', '".$path."', NOW(), '$filesize')"); $append[$index] = mysqli_insert_id($conn); } } @@ -30,7 +33,7 @@ echo '

- Notizia aggiunto correttamente! + Notizia aggiunta correttamente!
'; @@ -51,11 +54,18 @@ -
+
Allegato/i
- +
+
+ +
+
+ +
+
diff --git a/ADMIN/sheets/news/mod.php b/ADMIN/sheets/news/mod.php index 287a3f4..6f5a55a 100644 --- a/ADMIN/sheets/news/mod.php +++ b/ADMIN/sheets/news/mod.php @@ -21,8 +21,11 @@ if(is_uploaded_file($file['tmp_name'])){ $filename = preg_replace('/[^a-zA-Z0-9\-\._]/','', $file['name']); $filesize = ($file['size'] < 1000000) ? round($file['size'] / 1000)."k" : round($file['size'] / 1000000)."M"; - move_uploaded_file($file['tmp_name'], "../docs/files/news/$filename"); - $qf=mysqli_query($conn, "INSERT INTO files VALUES(null, '$filename', '$filename', '/docs/files/news', NOW(), '$filesize')"); + $title = $_POST['titles'][$index]; + $path = '/docs/files/news'; + + move_uploaded_file($file['tmp_name'], "..$path/$filename"); + $qf=mysqli_query($conn, "INSERT INTO files VALUES(null, '$title', '$filename', '".$path."', NOW(), '$filesize')"); $append[$index] = mysqli_insert_id($conn); } } @@ -94,7 +97,14 @@ ?>
- +
+
+ +
+
+ +
+
diff --git a/cgi-bin/functions.inc b/cgi-bin/functions.inc index 00a30eb..6b2f5e5 100755 --- a/cgi-bin/functions.inc +++ b/cgi-bin/functions.inc @@ -96,7 +96,7 @@ function save_photo($foto,$basepath,$id){ function item_file($file){ @include 'params.inc'; echo "
-
".$file['title']."
+
".$file['title']."
".$file['size']."
".conv_date($file['date'])."
"; diff --git a/css/styles.css b/css/styles.css index 62a11a4..05ae888 100644 --- a/css/styles.css +++ b/css/styles.css @@ -14574,6 +14574,7 @@ input[type="radio"] + label::before { /* line 119, forms.scss */ input[type="file"] { width: 100%; + background: #f0f0f0; /*display: none; &+label{ @@ -14595,11 +14596,11 @@ input[type="file"] { }*/ } -/* line 142, forms.scss */ +/* line 143, forms.scss */ form { width: 100%; } -/* line 145, forms.scss */ +/* line 146, forms.scss */ form#login-form, form#adv-form { display: none; } diff --git a/docs/farmaci-ritirati/filename1.txt b/docs/farmaci-ritirati/filename1.txt old mode 100644 new mode 100755 diff --git a/docs/farmaci-ritirati/filename2.txt b/docs/farmaci-ritirati/filename2.txt old mode 100644 new mode 100755 diff --git a/docs/farmaci-ritirati/filename3.txt b/docs/farmaci-ritirati/filename3.txt old mode 100644 new mode 100755 diff --git a/docs/files/advertisement/COZe-NegozioLivelli.pdf b/docs/files/advertisement/COZe-NegozioLivelli.pdf old mode 100644 new mode 100755 diff --git a/docs/files/advertisement/package-lock.json b/docs/files/advertisement/package-lock.json old mode 100644 new mode 100755 diff --git a/docs/files/filename1.txt b/docs/files/filename1.txt old mode 100644 new mode 100755 diff --git a/docs/files/filename2.txt b/docs/files/filename2.txt old mode 100644 new mode 100755 diff --git a/docs/files/filename3.txt b/docs/files/filename3.txt old mode 100644 new mode 100755 diff --git a/docs/files/news/COZe.svg b/docs/files/news/COZe.svg old mode 100644 new mode 100755 diff --git a/docs/files/news/g46375.png b/docs/files/news/g46375.png old mode 100644 new mode 100755 diff --git a/docs/files/news/gitKraken.png b/docs/files/news/gitKraken.png new file mode 100644 index 0000000..eef79cc Binary files /dev/null and b/docs/files/news/gitKraken.png differ diff --git a/docs/files/news/git_dots-classic.png b/docs/files/news/git_dots-classic.png new file mode 100644 index 0000000..752adcf Binary files /dev/null and b/docs/files/news/git_dots-classic.png differ diff --git a/docs/files/news/store.png b/docs/files/news/store.png old mode 100644 new mode 100755 diff --git a/docs/modulistica/privata/filename1.txt b/docs/modulistica/privata/filename1.txt old mode 100644 new mode 100755 diff --git a/docs/modulistica/privata/filename2.txt b/docs/modulistica/privata/filename2.txt old mode 100644 new mode 100755 diff --git a/docs/modulistica/privata/filename3.txt b/docs/modulistica/privata/filename3.txt old mode 100644 new mode 100755 diff --git a/docs/modulistica/pubblica/COZeAnimDemo.zip b/docs/modulistica/pubblica/COZeAnimDemo.zip new file mode 100644 index 0000000..7d887ab Binary files /dev/null and b/docs/modulistica/pubblica/COZeAnimDemo.zip differ diff --git a/docs/modulistica/pubblica/distribuited.png b/docs/modulistica/pubblica/distribuited.png new file mode 100644 index 0000000..6aaadc0 Binary files /dev/null and b/docs/modulistica/pubblica/distribuited.png differ diff --git a/docs/modulistica/pubblica/filename1.txt b/docs/modulistica/pubblica/filename1.txt old mode 100644 new mode 100755 diff --git a/docs/modulistica/pubblica/filename2.txt b/docs/modulistica/pubblica/filename2.txt old mode 100644 new mode 100755 diff --git a/docs/modulistica/pubblica/filename3.txt b/docs/modulistica/pubblica/filename3.txt old mode 100644 new mode 100755 diff --git a/docs/modulistica/pubblica/git-logo.png b/docs/modulistica/pubblica/git-logo.png new file mode 100644 index 0000000..afb7663 Binary files /dev/null and b/docs/modulistica/pubblica/git-logo.png differ diff --git a/docs/modulistica/pubblica/git_classic-dev-0.png b/docs/modulistica/pubblica/git_classic-dev-0.png new file mode 100644 index 0000000..0ace909 Binary files /dev/null and b/docs/modulistica/pubblica/git_classic-dev-0.png differ diff --git a/mailoutput.html b/mailoutput.html deleted file mode 100644 index c05bef0..0000000 --- a/mailoutput.html +++ /dev/null @@ -1,16 +0,0 @@ -Email:dslaky@gmail.com -
Email:0 -
Email CC:0 -
Subject:Reset dei dati di accesso -

CONTENT: -
- - - - -
-Ordine dei Farmacisti di Salerno

Reset dei dati di accesso11/02/2018
Ricevi questa mail perchè hai richiesto il reset dei tuoi dati di accesso, ti sono stati assegnati dei nuovi dati di accesso, se vuoi modificarli accedi al tuo account e fai click su "Modifica dati di accesso".

Riepilogo dati
Username: dslaky
Password: f31602d155
Email: dslaky@gmail.com
N. iscrizione: 1921

Questa e-mail contiene informazioni di proprietà e di natura confidenziale. Se non siete il destinatario corretto di questo messaggio, vi ricordiamo che ogni diffusione, distribuzione o copia di questo messaggio è severamente proibita. Se avete ricevuto questo messaggio per errore, siete pregati di cancellarlo immediatamente. Quanto precede ai fini del rispetto del D.L. n. 196/03 sulla tutela dei dati personali.
-
This e-mail (and any attachments) is strictly confidential and for use only by intendend recipients. If you are not an intended recipients, we point you that any diffusion, distribution or copy of this message is severely forbidden. If you have received t his message by mistake please destroy it immediately (under the observance of D.L. n. 196/03 which protects personal data).
Rispetta l'ambiente. Non stampare questa mail se non è necessaria.
- diff --git a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc index fc91bb3..1e6194a 100644 Binary files a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc and b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc differ diff --git a/scss/forms.scss b/scss/forms.scss index 973dc29..3f60af2 100644 --- a/scss/forms.scss +++ b/scss/forms.scss @@ -118,6 +118,7 @@ input[type="radio"]{ input[type="file"]{ width: 100%; + background: $lighter-grey; /*display: none; &+label{