-
Notifications
You must be signed in to change notification settings - Fork 3
/
scoring.php
262 lines (122 loc) · 2.39 KB
/
scoring.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php
global $post;
$contest_name = get_post_meta( $post->ID, 'toast_contest_name', true );
$dashboard_name = ( empty( $contest_name ) ) ? $post->post_title : $contest_name;
?>
<title>
<?php
global $post;
echo esc_html($dashboard_name);
?>
- Scoring
<?php
if ( $_GET['scoring'] == 'dashboard' ) {
echo 'Dashboard';}
?>
</title>
<?php
wp_head();
?>
<style>
input,select {max-width: 45%; min-width: 100px;}
#scorebody { margin: 10px; background-color: #fff; padding: 15px;}
input.setscore {width: 50px;}
h2.nav-tab-wrapper {
margin:22px 0 0 0;
padding-bottom: 30px;
}
#sections {
padding:22px;
background: #fff;
border:1px solid #ccc;
border-top:0px;
}
section.nav-tab {
display:none;
}
.nav-tab-wrapper {
background-color: #efefef;
}
.nav-tab {
background-color: gray;
color: #fff;
display: inline-block;
margin-right: 5px;
border: thin solid gray;
border-bottom: none;
}
.nav-tab-active {
color: #000;
background-color: #fff;
}
section.nav-tab-active {
display:block;
border: medium solid gray;
}
.no-js h2.nav-tab-wrapper {
display:none;
}
.no-js #sections {
border-top:1px solid #ccc;
margin-top:22px;
}
.no-js section {
border-top: 1px dashed #aaa;
margin-top:22px;
padding-top:22px;
}
.no-js section:first-child {
margin:0px;
padding:0px;
border:0px;
}
a {
color: blue;
}
.other {
display: none;
}
h1, h2, h3, h4 {
clear: none;
}
.email_links {display: none;}
#voting label {
display: inline-block;
width: 100px;
}
.ballot_links_preview {
display: none;
}
input[type=checkbox],input[type=radio]{
min-width: auto !important;
}
#morecontests {
display: none;
}
.more {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: thin dotted #000;
}
body {
color: #000;
}
</style>
</head>
<body>
<div id="scorebody">
<?php
if ( isset( $_REQUEST['scoring'] ) ) {
echo toast_contest( $_REQUEST['scoring'] );
}
?>
</div>
</body>
</html>