From 3c53e137026e1530504cdd268487918dcc657adc Mon Sep 17 00:00:00 2001 From: Carmine De Rosa Date: Wed, 3 Jan 2018 19:44:13 +0100 Subject: [PATCH] add lists --- blocks/login.php | 29 ++++++ cgi-bin/functions.inc | 29 ++++++ cgi-bin/params.inc | 1 + content.php | 2 +- contents.php | 5 + contents/modulistica.php | 51 ++++++++++ css/styles.css | 66 ++++++++++++- docs/files/filename1.txt | 1 + docs/files/filename2.txt | 3 + docs/files/filename3.txt | 1 + docs/modulistica/privata/filename1.txt | 1 + docs/modulistica/privata/filename2.txt | 3 + docs/modulistica/privata/filename3.txt | 1 + docs/modulistica/pubblica/filename1.txt | 1 + docs/modulistica/pubblica/filename2.txt | 3 + docs/modulistica/pubblica/filename3.txt | 1 + home.php | 31 +++--- index.php | 33 +++++-- js/scripts.js | 8 +- menu-left.php | 59 +++++------ news.php | 92 ++++++++++++++++++ notizie.php | 22 ----- .../_alert.scssc | Bin 11095 -> 11115 bytes .../_badge.scssc | Bin 12876 -> 12896 bytes .../_breadcrumb.scssc | Bin 9104 -> 9124 bytes .../_button-group.scssc | Bin 41702 -> 41722 bytes .../_buttons.scssc | Bin 30613 -> 30633 bytes .../_card.scssc | Bin 48738 -> 48778 bytes .../_carousel.scssc | Bin 37071 -> 37091 bytes .../_close.scssc | Bin 6907 -> 6927 bytes .../_code.scssc | Bin 13703 -> 13723 bytes .../_custom-forms.scssc | Bin 57132 -> 57152 bytes .../_custom.scssc | Bin 914 -> 934 bytes .../_dropdown.scssc | Bin 35590 -> 35630 bytes .../_forms.scssc | Bin 75407 -> 75467 bytes .../_grid.scssc | Bin 8778 -> 8878 bytes .../_images.scssc | Bin 8131 -> 8151 bytes .../_input-group.scssc | Bin 38247 -> 38267 bytes .../_jumbotron.scssc | Bin 5752 -> 5772 bytes .../_list-group.scssc | Bin 26272 -> 26292 bytes .../_media.scssc | Bin 2159 -> 2179 bytes .../_mixins.scssc | Bin 9188 -> 9288 bytes .../_modal.scssc | Bin 32019 -> 32039 bytes .../_nav.scssc | Bin 19834 -> 19854 bytes .../_navbar.scssc | Bin 43778 -> 43798 bytes .../_normalize.scssc | Bin 57444 -> 57464 bytes .../_pagination.scssc | Bin 15618 -> 15638 bytes .../_popover.scssc | Bin 39261 -> 39281 bytes .../_print.scssc | Bin 18313 -> 18353 bytes .../_progress.scssc | Bin 8441 -> 8461 bytes .../_reboot.scssc | Bin 56564 -> 56584 bytes .../_responsive-embed.scssc | Bin 10944 -> 10964 bytes .../_tables.scssc | Bin 24325 -> 24345 bytes .../_tooltip.scssc | Bin 23925 -> 23945 bytes .../_transitions.scssc | Bin 6390 -> 6410 bytes .../_type.scssc | Bin 29342 -> 29362 bytes .../_utilities.scssc | Bin 2161 -> 2181 bytes .../_variables.scssc | Bin 213161 -> 213281 bytes .../bootstrap.scssc | Bin 5558 -> 5578 bytes .../homepage.scssc | Bin 15403 -> 17119 bytes .../lists.scssc | Bin 0 -> 6937 bytes .../news.scssc | Bin 8766 -> 9838 bytes .../sections.scssc | Bin 774 -> 873 bytes .../_768up.scssc | Bin 21066 -> 22359 bytes .../_alert.scssc | Bin 4041 -> 4061 bytes .../_background-variant.scssc | Bin 3617 -> 3637 bytes .../_badge.scssc | Bin 2698 -> 2718 bytes .../_border-radius.scssc | Bin 7993 -> 8113 bytes .../_breakpoints.scssc | Bin 20186 -> 20193 bytes .../_buttons.scssc | Bin 21412 -> 21472 bytes .../_cards.scssc | Bin 9339 -> 9359 bytes .../_clearfix.scssc | Bin 2136 -> 2156 bytes .../_float.scssc | Bin 1882 -> 1902 bytes .../_forms.scssc | Bin 15206 -> 15226 bytes .../_gradients.scssc | Bin 17766 -> 17786 bytes .../_grid-framework.scssc | Bin 16020 -> 16060 bytes .../_grid.scssc | Bin 25882 -> 25962 bytes .../_hover.scssc | Bin 11100 -> 11240 bytes .../_image.scssc | Bin 6240 -> 6260 bytes .../_list-group.scssc | Bin 6283 -> 6303 bytes .../_lists.scssc | Bin 1758 -> 1778 bytes .../_nav-divider.scssc | Bin 3027 -> 3047 bytes .../_pagination.scssc | Bin 4929 -> 4949 bytes .../_reset-text.scssc | Bin 5117 -> 5137 bytes .../_resize.scssc | Bin 2070 -> 2090 bytes .../_screen-reader.scssc | Bin 6588 -> 6608 bytes .../_size.scssc | Bin 1775 -> 1795 bytes .../_table-row.scssc | Bin 5820 -> 5840 bytes .../_text-emphasis.scssc | Bin 3566 -> 3586 bytes .../_text-hide.scssc | Bin 2299 -> 2319 bytes .../_text-truncate.scssc | Bin 1901 -> 1921 bytes .../_transforms.scssc | Bin 2948 -> 2968 bytes .../_visibility.scssc | Bin 1270 -> 1290 bytes .../_3dx-r.scssc | Bin 11571 -> 11611 bytes .../_3dx.scssc | Bin 11471 -> 11511 bytes .../_3dxy-r.scssc | Bin 12094 -> 12134 bytes .../_3dxy.scssc | Bin 11772 -> 11812 bytes .../_3dy-r.scssc | Bin 11503 -> 11543 bytes .../_3dy.scssc | Bin 11539 -> 11579 bytes .../_arrow-r.scssc | Bin 6288 -> 6328 bytes .../_arrow.scssc | Bin 6267 -> 6307 bytes .../_arrowalt-r.scssc | Bin 14548 -> 14588 bytes .../_arrowalt.scssc | Bin 14528 -> 14568 bytes .../_arrowturn-r.scssc | Bin 5602 -> 5622 bytes .../_arrowturn.scssc | Bin 5446 -> 5466 bytes .../_boring.scssc | Bin 6398 -> 6438 bytes .../_collapse-r.scssc | Bin 18018 -> 18058 bytes .../_collapse.scssc | Bin 18171 -> 18211 bytes .../_elastic-r.scssc | Bin 12373 -> 12413 bytes .../_elastic.scssc | Bin 12343 -> 12383 bytes .../_emphatic-r.scssc | Bin 19865 -> 19905 bytes .../_emphatic.scssc | Bin 19835 -> 19875 bytes .../_minus.scssc | Bin 6418 -> 6458 bytes .../_slider-r.scssc | Bin 11366 -> 11406 bytes .../_slider.scssc | Bin 11406 -> 11446 bytes .../_spin-r.scssc | Bin 12107 -> 12147 bytes .../_spin.scssc | Bin 12077 -> 12117 bytes .../_spring-r.scssc | Bin 18091 -> 18131 bytes .../_spring.scssc | Bin 18142 -> 18182 bytes .../_squeeze.scssc | Bin 12084 -> 12124 bytes .../_stand-r.scssc | Bin 16619 -> 16659 bytes .../_stand.scssc | Bin 16521 -> 16561 bytes .../_vortex-r.scssc | Bin 10617 -> 10657 bytes .../_vortex.scssc | Bin 10395 -> 10435 bytes .../_base.scssc | Bin 17522 -> 17402 bytes .../hamburgers.scssc | Bin 14376 -> 14216 bytes .../fonts.scssc | Bin 7942 -> 7970 bytes .../forms.scssc | Bin 15758 -> 15786 bytes .../global.scssc | Bin 20774 -> 20802 bytes .../header.scssc | Bin 27037 -> 27065 bytes .../homepage.scssc | Bin 19266 -> 0 bytes .../main.scssc | Bin 2075 -> 2073 bytes .../navigation.scssc | Bin 24051 -> 24079 bytes .../variables.scssc | Bin 18743 -> 18625 bytes .../_align.scssc | Bin 4465 -> 4485 bytes .../_background.scssc | Bin 4196 -> 4216 bytes .../_borders.scssc | Bin 7809 -> 7829 bytes .../_clearfix.scssc | Bin 1199 -> 1219 bytes .../_display.scssc | Bin 7375 -> 7395 bytes .../_flex.scssc | Bin 23068 -> 23088 bytes .../_float.scssc | Bin 3442 -> 3462 bytes .../_position.scssc | Bin 5212 -> 5232 bytes .../_screenreaders.scssc | Bin 1795 -> 1815 bytes .../_sizing.scssc | Bin 4327 -> 4347 bytes .../_spacing.scssc | Bin 19883 -> 19903 bytes .../_text.scssc | Bin 13728 -> 13748 bytes .../_visibility.scssc | Bin 7895 -> 7915 bytes .../_animated.scssc | Bin 8273 -> 8293 bytes .../_bordered-pulled.scssc | Bin 8317 -> 8337 bytes .../_core.scssc | Bin 4700 -> 4720 bytes .../_fixed-width.scssc | Bin 2319 -> 2339 bytes .../_icons.scssc | Bin 500771 -> 500791 bytes .../_larger.scssc | Bin 5317 -> 5337 bytes .../_list.scssc | Bin 6045 -> 6065 bytes .../_mixins.scssc | Bin 14960 -> 14980 bytes .../_path.scssc | Bin 8783 -> 8803 bytes .../_rotated-flipped.scssc | Bin 6958 -> 6978 bytes .../_screen-reader.scssc | Bin 1832 -> 1852 bytes .../_stacked.scssc | Bin 6529 -> 6549 bytes .../_variables.scssc | Bin 174486 -> 174506 bytes scss/main.scss | 2 - scss/mediaqueries/viewports/_768up.scss | 10 ++ scss/sections/homepage.scss | 13 ++- scss/sections/lists.scss | 29 ++++++ scss/sections/news.scss | 8 ++ scss/sections/sections.scss | 1 + 166 files changed, 417 insertions(+), 89 deletions(-) create mode 100644 blocks/login.php create mode 100644 contents.php create mode 100644 contents/modulistica.php create mode 100644 docs/files/filename1.txt create mode 100644 docs/files/filename2.txt create mode 100644 docs/files/filename3.txt create mode 100644 docs/modulistica/privata/filename1.txt create mode 100644 docs/modulistica/privata/filename2.txt create mode 100644 docs/modulistica/privata/filename3.txt create mode 100644 docs/modulistica/pubblica/filename1.txt create mode 100644 docs/modulistica/pubblica/filename2.txt create mode 100644 docs/modulistica/pubblica/filename3.txt create mode 100644 news.php delete mode 100644 notizie.php create mode 100644 scss/.sass-cache/094858d67900945e1547c8ced88b84162c32e28d/lists.scssc delete mode 100644 scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/homepage.scssc create mode 100644 scss/sections/lists.scss diff --git a/blocks/login.php b/blocks/login.php new file mode 100644 index 0000000..c037c6d --- /dev/null +++ b/blocks/login.php @@ -0,0 +1,29 @@ + +
  • +
    + + + + + + +
    +
  • +
  • Richiedi dati di accesso
  • +
  • Recupera password
  • + + + +
  • +

    Accesso effettuato per:

    +

    + +
  • + + diff --git a/cgi-bin/functions.inc b/cgi-bin/functions.inc index 69cc6bb..ba56c08 100755 --- a/cgi-bin/functions.inc +++ b/cgi-bin/functions.inc @@ -17,6 +17,12 @@ function conv_data($od,$lang){ return $stres; } +function conv_date($od){ + $tmp=explode("-",substr($od,0,10)); + $stres = $tmp[2]."/".$tmp[1]."/".$tmp[0].""; + return $stres; +} + function convert($stringa){ @@ -38,6 +44,10 @@ function conv_url($text){ return str_replace($entities, $replacements, urlencode($text)); } +function get_filesize($path){ + return filesize(realpath($_SERVER["DOCUMENT_ROOT"])."".$path); +} + function save_photo($foto,$basepath,$id){ @@ -76,4 +86,23 @@ function save_photo($foto,$basepath,$id){ + + + +function item_file($file){ + + @include 'params.inc'; + + $size = get_filesize($file['path']."/".$file['filename']); + if($size > 1000){$size = ($size/1000)."Mb";}else{$size = $size."Kb";} + + echo "
    +
    ".$file['title']."
    +
    ".$size."
    +
    ".date("d/m/Y", filemtime($file['path']."/".$file['filename']))."
    +
    "; +} + + + ?> diff --git a/cgi-bin/params.inc b/cgi-bin/params.inc index 1182a0a..66d7db1 100755 --- a/cgi-bin/params.inc +++ b/cgi-bin/params.inc @@ -1,5 +1,6 @@ diff --git a/content.php b/content.php index f604113..e0f38d9 100644 --- a/content.php +++ b/content.php @@ -1,5 +1,5 @@ -
    "> +
    diff --git a/contents.php b/contents.php new file mode 100644 index 0000000..89e6f44 --- /dev/null +++ b/contents.php @@ -0,0 +1,5 @@ + + + diff --git a/contents/modulistica.php b/contents/modulistica.php new file mode 100644 index 0000000..7ae295a --- /dev/null +++ b/contents/modulistica.php @@ -0,0 +1,51 @@ + + +
    +
    +
    Modulistica privata
    +
    + +
    +
    +
    +
    nome del file
    +
    dimensione
    +
    ultima mod.
    +
    +
    + +
    +
    + + + +
    +
    +
    Modulistica pubblica
    +
    + +
    +
    +
    +
    nome del file
    +
    dimensione
    +
    ultima mod.
    +
    +
    + +
    +
    diff --git a/css/styles.css b/css/styles.css index 89d2e5d..e60a9e9 100644 --- a/css/styles.css +++ b/css/styles.css @@ -14961,24 +14961,34 @@ header .breadcrumb .container .crumbs a:hover { /* line 53, sections/homepage.scss */ .banner { - height: 90px; - margin-bottom: 4px; + height: 120px; + margin-bottom: 8px; padding: 0; + width: 50%; + float: left; +} +/* line 60, sections/homepage.scss */ +.banner:nth-child(odd) { + padding-right: 4px; +} +/* line 63, sections/homepage.scss */ +.banner:nth-child(even) { + padding-left: 4px; } -/* line 59, sections/homepage.scss */ +/* line 68, sections/homepage.scss */ .contacts { padding: 15px 25px; font-size: 0.75rem; } -/* line 62, sections/homepage.scss */ +/* line 71, sections/homepage.scss */ .contacts .fa { color: #4e984a; width: 25px; font-size: 1rem; height: 25px; } -/* line 68, sections/homepage.scss */ +/* line 77, sections/homepage.scss */ .contacts b { color: #4e984a; } @@ -15030,6 +15040,44 @@ header .breadcrumb .container .crumbs a:hover { .news .item a:hover { color: black; } +/* line 41, sections/news.scss */ +.news .append .item .size { + float: right; +} + +/* line 1, sections/lists.scss */ +.file-list { + font-size: 0.75rem; +} +/* line 3, sections/lists.scss */ +.file-list .item { + border-bottom: 1px solid #d1efb5; + padding: 8px 10px; + transition: .4s; +} +/* line 7, sections/lists.scss */ +.file-list .item .date { + color: #aa0000; +} +/* line 10, sections/lists.scss */ +.file-list .item a { + color: #666; + text-decoration: none; + transition: .4s; +} +/* line 14, sections/lists.scss */ +.file-list .item a:hover { + color: black; +} +/* line 19, sections/lists.scss */ +.file-list .item:hover { + background: #d1efb5; +} +/* line 24, sections/lists.scss */ +.file-list .item-title { + border-bottom: 1px solid #d1efb5; + padding: 8px 10px; +} @media only screen and (min-width: 768px) { /* line 5, mediaqueries/viewports/_768up.scss */ @@ -15131,4 +15179,12 @@ header .breadcrumb .container .crumbs a:hover { #MainContent { top: 160px; } + + /* line 109, mediaqueries/viewports/_768up.scss */ + .banner { + height: 90px; + padding: 0 !important; + width: 100%; + float: left; + } } diff --git a/docs/files/filename1.txt b/docs/files/filename1.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/files/filename1.txt @@ -0,0 +1 @@ + diff --git a/docs/files/filename2.txt b/docs/files/filename2.txt new file mode 100644 index 0000000..2a8d60e --- /dev/null +++ b/docs/files/filename2.txt @@ -0,0 +1,3 @@ +asdfgdjnbfghdn +g hgsfj +rtg diff --git a/docs/files/filename3.txt b/docs/files/filename3.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/files/filename3.txt @@ -0,0 +1 @@ + diff --git a/docs/modulistica/privata/filename1.txt b/docs/modulistica/privata/filename1.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/modulistica/privata/filename1.txt @@ -0,0 +1 @@ + diff --git a/docs/modulistica/privata/filename2.txt b/docs/modulistica/privata/filename2.txt new file mode 100644 index 0000000..2a8d60e --- /dev/null +++ b/docs/modulistica/privata/filename2.txt @@ -0,0 +1,3 @@ +asdfgdjnbfghdn +g hgsfj +rtg diff --git a/docs/modulistica/privata/filename3.txt b/docs/modulistica/privata/filename3.txt new file mode 100644 index 0000000..e3fc7b8 --- /dev/null +++ b/docs/modulistica/privata/filename3.txt @@ -0,0 +1 @@ +s diff --git a/docs/modulistica/pubblica/filename1.txt b/docs/modulistica/pubblica/filename1.txt new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/docs/modulistica/pubblica/filename1.txt @@ -0,0 +1 @@ + diff --git a/docs/modulistica/pubblica/filename2.txt b/docs/modulistica/pubblica/filename2.txt new file mode 100644 index 0000000..2a8d60e --- /dev/null +++ b/docs/modulistica/pubblica/filename2.txt @@ -0,0 +1,3 @@ +asdfgdjnbfghdn +g hgsfj +rtg diff --git a/docs/modulistica/pubblica/filename3.txt b/docs/modulistica/pubblica/filename3.txt new file mode 100644 index 0000000..e3fc7b8 --- /dev/null +++ b/docs/modulistica/pubblica/filename3.txt @@ -0,0 +1 @@ +s diff --git a/home.php b/home.php index a832615..8b06393 100644 --- a/home.php +++ b/home.php @@ -29,21 +29,24 @@
    -
    + -
    + -
    + -
    + -
    + -
    + -
    + -
    + -
    +
    Storia dell'Ordine
    diff --git a/index.php b/index.php index e4e7b1d..3d06f7d 100755 --- a/index.php +++ b/index.php @@ -7,6 +7,7 @@ @include 'cgi-bin/params.inc'; $GLOBALS['getQ'][0]="home"; + $GLOBALS['isHome'] = true; $GLOBALS['conn']; $conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR"); @@ -15,15 +16,31 @@ $GLOBALS['getQ']=explode("/",$_GET['q']); } + if($getQ[0]!="home"){ $isHome = false; } + + $description = " "; - /* - if($getQ[1]){ - $q=mysqli_query($conn,"SELECT * FROM `contents` WHERE id=".$getQ[1].""); - $r=mysqli_fetch_array($q); + + if($_POST['usr'] && $_POST['pwd']){ + $q=mysqli_query($conn, "SELECT * FROM board WHERE usr='".$_POST['usr']."' AND pwd='".md5($_POST['pwd'])."'"); + if(mysqli_num_rows($q)){ + $_SESSION['AUTH']=mysqli_fetch_array($q); + } } - - if(!$r['title']){$r['title']="New Media Arts";} - */ + + if($getQ[0]=="logout"){ + unset($_SESSION['AUTH']); + session_destroy(); + header('Location: '.$BASE_URL); + } +/* + $q=mysqli_query($conn,"SELECT * FROM board"); + while($r=mysqli_fetch_array($q)){ + if($r['pwd']!="-" && $r['pwd']!=""){ + mysqli_query($conn,"UPDATE board SET pwd='".md5($r['pwd'])."' WHERE id='".$r['id']."'"); + } + }*/ + ?> @@ -51,7 +68,7 @@ - +"> = 768){ $('#menuRight .banner').clone().appendTo('#menuLeft'); $('#menuRight').empty(); } if($(window).width() < 1024){ - if(!$('#MainContainer').hasClass('is-home')){ + if(!isHome){ $('html, body').animate({scrollTop: $('#MainContainer').offset().top - 74}); } } + + if($(window).width() >= 768){ + $('#menuLeft .dropdown:first-child').addClass('active'); + } diff --git a/menu-left.php b/menu-left.php index 82d77f3..35ca7f6 100644 --- a/menu-left.php +++ b/menu-left.php @@ -1,56 +1,47 @@