diff --git a/ADMIN/menu.php b/ADMIN/menu.php index 75bd744..ab27f32 100644 --- a/ADMIN/menu.php +++ b/ADMIN/menu.php @@ -2,12 +2,12 @@ + diff --git a/ADMIN/sheets/user/list.php b/ADMIN/sheets/user/list.php new file mode 100644 index 0000000..ded9b05 --- /dev/null +++ b/ADMIN/sheets/user/list.php @@ -0,0 +1,105 @@ + + + +
+
+
Elenco utenti
+
+ +
+ +
+ +
+ + ".strtoupper($initial[$i]).""; + } + ?> +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+
+ + +
+ + 1){ + + $query="WHERE ("; + foreach($keys as $k=>$value){ + if($k>0){$query .= " OR";} + $query .= " first_name LIKE '%$value%' "; + } + + $query .= " OR first_name LIKE '%".addslashes($_POST['q'])."%' OR last_name LIKE '%".addslashes($_POST['q'])."%') AND ("; + + foreach($keys as $k=>$value){ + if($k>0){$query .= " OR";} + $query .= " last_name LIKE '%$value%' "; + } + + $query .= ") "; + + }else{ + $query="WHERE first_name LIKE '%".$keys[0]."%' OR last_name LIKE '%".$keys[0]."%'"; + } + + $q = mysqli_query($conn, "SELECT * FROM board $query ORDER BY last_name"); + } + + $cnt=0; + + while($r = mysqli_fetch_array($q)){ + $cnt++; + $bg = ($cnt%2) ? "bg-light-grey" : "bg-white"; + echo "
+ ".$r['last_name']." ".$r['first_name']." +
"; + } + + + ?> + +
+ +
+
+ diff --git a/albo.php b/albo.php index 42f5333..2f2a6a8 100644 --- a/albo.php +++ b/albo.php @@ -7,6 +7,7 @@ $qTotal = mysqli_query($conn, "SELECT COUNT(id) FROM board"); $rUpdate = mysqli_fetch_array($qUpdate); $rTotal = mysqli_fetch_array($qTotal); + ?> diff --git a/css/admin.css b/css/admin.css index 80b2c33..005b007 100644 --- a/css/admin.css +++ b/css/admin.css @@ -122,15 +122,34 @@ .sheet-box { border: 1px solid #4e984a; background: white; + min-height: calc(100vh - 170px); +} + +/* line 18, admin.scss */ +.admin-list-item { + width: 100%; + padding: 5px; + position: relative; + transition: .4s; +} +/* line 24, admin.scss */ +.admin-list-item:hover { + /* opacity: .7; */ +} +/* line 28, admin.scss */ +.admin-list-item .right { + position: absolute; + right: 5px; + top: 0; } @media only screen and (min-width: 768px) { - /* line 18, admin.scss */ + /* line 42, admin.scss */ #MainContent { margin-top: 120px; } - /* line 21, admin.scss */ + /* line 45, admin.scss */ #menuLeft { min-height: calc(100vh - 120px); } diff --git a/css/styles.css b/css/styles.css index 5462aae..25d726e 100644 --- a/css/styles.css +++ b/css/styles.css @@ -14273,6 +14273,11 @@ a.text-dark:hover, a.text-dark:focus { color: #aa0000; } +/* line 49, fonts.scss */ +.text-grey { + color: #aaa; +} + /* line 1, global.scss */ body { font-family: 'Roboto'; @@ -14389,6 +14394,21 @@ a:hover { } /* line 106, global.scss */ +.bg-grey { + background: #aaa; +} + +/* line 109, global.scss */ +.bg-light-grey { + background: #d1efb5; +} + +/* line 112, global.scss */ +.bg-white { + background: white; +} + +/* line 116, global.scss */ #MainContent { position: relative; margin-top: 40px; @@ -14397,7 +14417,7 @@ a:hover { overflow: hidden; } -/* line 114, global.scss */ +/* line 124, global.scss */ #map { width: 100%; border-radius: 3px; @@ -14405,33 +14425,6 @@ a:hover { padding: 10px; } -/* - -.ui-datepicker-header{ - .ui-datepicker-prev, - .ui-datepicker-next{ - background: none; - margin: 4px 0 !important; - border: none !important; - &.ui-state-hover{ - margin: 4px 0 !important; - border: none !important; - background: none; - top: 2px; - } - } - - .ui-datepicker-next{ - .ui-icon{ - &.ui-icon-circle-triangle-e{ - &:after{ - content: '\f101'; - font-family: 'FontAwesome'; - } - } - } - } -}*/ /* line 2, forms.scss */ .button, input, @@ -14521,12 +14514,17 @@ input[type=submit]:hover, button:hover { opacity: .7; color: white; - /* - background-color: $grey; - */ +} +/* line 62, forms.scss */ +.button.button-small, +input[type=button].button-small, +input[type=submit].button-small, +button.button-small { + padding: 3px 20px; + line-height: unset; } -/* line 68, forms.scss */ +/* line 70, forms.scss */ select { appearance: none; -moz-appearance: none; @@ -14538,12 +14536,12 @@ select { padding-right: 30px; } -/* line 80, forms.scss */ +/* line 82, forms.scss */ input[type="radio"], input[type="checkbox"] { display: none; } -/* line 84, forms.scss */ +/* line 86, forms.scss */ input[type="radio"] + label::before, input[type="checkbox"] + label::before { content: ""; @@ -14559,7 +14557,7 @@ input[type="checkbox"] + label::before { line-height: 14px; border-radius: 2px; } -/* line 100, forms.scss */ +/* line 102, forms.scss */ input[type="radio"]:checked + label::before, input[type="checkbox"]:checked + label::before { font-family: 'FontAwesome'; @@ -14568,16 +14566,16 @@ input[type="checkbox"]:checked + label::before { color: #4e984a; } -/* line 110, forms.scss */ +/* line 112, forms.scss */ input[type="radio"] + label::before { border-radius: 16px; } -/* line 118, forms.scss */ +/* line 120, forms.scss */ form { width: 100%; } -/* line 121, forms.scss */ +/* line 123, forms.scss */ form#login-form, form#adv-form { display: none; } diff --git a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/fonts.scssc b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/fonts.scssc index 494bd5e..443e62c 100644 Binary files a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/fonts.scssc and b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/fonts.scssc differ diff --git a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc index 0c41781..74c01cd 100644 Binary files a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc and b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc differ diff --git a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/global.scssc b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/global.scssc index 5185c71..1569d7b 100644 Binary files a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/global.scssc and b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/global.scssc differ diff --git a/scss/fonts.scss b/scss/fonts.scss index 0ab2a5c..21e196f 100644 --- a/scss/fonts.scss +++ b/scss/fonts.scss @@ -46,3 +46,6 @@ .text-red{ color: $red; } +.text-grey{ + color: $grey; +} diff --git a/scss/forms.scss b/scss/forms.scss index 2cd6938..880bbb4 100644 --- a/scss/forms.scss +++ b/scss/forms.scss @@ -57,9 +57,11 @@ button{ &:hover{ opacity: .7; color: white; - /* - background-color: $grey; - */ + } + + &.button-small{ + padding: 3px 20px; + line-height: unset; } } diff --git a/scss/global.scss b/scss/global.scss index 32e553f..3390a67 100644 --- a/scss/global.scss +++ b/scss/global.scss @@ -103,6 +103,16 @@ a{ +.bg-grey{ + background: $grey; +} +.bg-light-grey{ + background: $light-grey; +} +.bg-white{ + background: white; +} + #MainContent{ position: relative; margin-top: 40px; @@ -118,35 +128,3 @@ a{ padding: 10px; } - - - - - -/* - -.ui-datepicker-header{ - .ui-datepicker-prev, - .ui-datepicker-next{ - background: none; - margin: 4px 0 !important; - border: none !important; - &.ui-state-hover{ - margin: 4px 0 !important; - border: none !important; - background: none; - top: 2px; - } - } - - .ui-datepicker-next{ - .ui-icon{ - &.ui-icon-circle-triangle-e{ - &:after{ - content: '\f101'; - font-family: 'FontAwesome'; - } - } - } - } -}*/