diff options
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 4 | ||||
-rw-r--r-- | includes/css/main.css | 49 |
2 files changed, 43 insertions, 10 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 4bf052f..cb8a4a5 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -329,7 +329,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_rev1 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev1; - if ($x !='' and $x!=$hf_username) { ('<span class="takenby">Taken</span><div class="takenby">Taken by '.$x.'</div>'); } + if ($x !='' and $x!=$hf_username) { return('<span class="takenby">Taken</span><div class="takenby">Taken by '.$x.'</div>'); } else if ($x==$hf_username) //if current user return ('<form class="unassignit" method="POST" action=""> <input type="hidden" name="cid" value="' . $c. '" /><input type="hidden" name="pid" value="' . $p1. '" /><input type="submit" name="unassignitem" value=""/> @@ -345,7 +345,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $vquery0 = "select wpgcl_rev2 from wpg_concertlogs where wpgcl_concertid=".$c ; $results = $wpdb->get_results($vquery0); foreach ( $results AS $row ) $x= $row -> wpgcl_rev2; - if ($x !='' and $x!=$hf_username) { ('<span class="takenby">Taken</span><div class="takenby">Taken by '.$x.'</div>'); } + if ($x !='' and $x!=$hf_username) { return('<span class="takenby">Taken</span><div class="takenby">Taken by '.$x.'</div>'); } else if ($x==$hf_username) //if current user return ('<form class="unassignit" method="POST" action=""> <input type="hidden" name="cid" value="' . $c. '" /><input type="hidden" name="pid" value="' . $p1. '" /><input type="submit" name="unassignitem" value=""/> diff --git a/includes/css/main.css b/includes/css/main.css index af50cfd..bf2ca4a 100644 --- a/includes/css/main.css +++ b/includes/css/main.css @@ -13,16 +13,32 @@ span.takenby color:red; } -.assignit input +input[name="assignitem"] { - background:red; + + background: transparent; + + border: none; + font-size: small; + padding: none; - background: url('/wp-content/plugins/giglogadmin/assets/images/checkedbox.png') no-repeat; - background-size: 20px 20px; + + background-image: url('/wp-content/plugins/giglogadmin/assets/images/checkedbox.png'); + + background-repeat: no-repeat; + + background-size: 15px 15px; + + width: 20px; + + height: 20px; + vertical-align: center; + } + .assignit { padding: none !important; @@ -37,15 +53,32 @@ table.assignit overflow: hidden; } -.unassignit input +input[name="unassignitem"] + { - background:red; + + background: transparent; + + border: none; + font-size: small; + padding: none; - background: url('/wp-content/plugins/giglogadmin/assets/images/redicon.png') no-repeat; - background-size: 20px 20px; + + background-image: url('/wp-content/plugins/giglogadmin/assets/images/redicon.png'); + + background-repeat: no-repeat; + + background-size: 15px 15px; + + width: 20px; + + height: 20px; + vertical-align: center; + } + .adminbuttons form { display: flex; /* 2. display flex to the rescue */ |