-
Notifications
You must be signed in to change notification settings - Fork 2
/
poll_template.php
182 lines (152 loc) · 3.96 KB
/
poll_template.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| Copyright (C) 2001-2002 Steve Dunstan ([email protected])
| Copyright (C) 2008-2010 e107 Inc (e107.org)
|
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
*/
if (!defined('e107_INIT')) { exit; }
/* ################################# */
/* template for polls when user HASN'T voted ... */
$POLL_NOTVOTED_START = "
<div class='poll'>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'>{QUESTION}</h3>
</div>
<div class='panel-body'>
<p>";
$POLL_NOTVOTED_LOOP = "
<label class='checkbox radio' >{OPTIONBUTTON} {OPTION} </label>";
$POLL_NOTVOTED_END = "
</p>
<div class='text-center'>
{SUBMITBUTTON}
<p></p>
</div>
</div>
<div class='panel-footer'>
<span class='badge'>{AUTHOR}</span>
<span class='badge'>{VOTE_TOTAL}</span>
<span class='badge'>{COMMENTS}</span>
<span class='badge'>{OLDPOLLS}</span>
</div>
</div>
</div>";
/* ################################# */
/* template for polls when user HAS voted ... */
$POLL_VOTED_START = "
<div class='poll'>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'>{QUESTION}</h3>
</div>
<ul class='list-group'>";
$POLL_VOTED_LOOP = "
<li class='list-group-item'>{OPTION} - {VOTES} <span class='badge pull-right '> {PERCENTAGE}</span>
<div class='spacer'>{BAR}</div>
<div class='clearfix'></div>
</li>
";
$POLL_VOTED_END = "
</ul>
<div class='panel-footer'>
<span class='badge'>{AUTHOR}</span>
<span class='badge'>{VOTE_TOTAL}</span>
<span class='badge'>{COMMENTS}</span>
<span class='badge'>{OLDPOLLS}</span>
</div>
</div>
</div>";
/* ################################# */
/* template for polls when user CANNOT vote ... */
$POLL_DISALLOWED_START = "
<div class='poll'>
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'>{QUESTION}</h3>
</div>
<ul class='list-group'>";
$POLL_DISALLOWED_LOOP = "
<li class='list-group-item'>
<label class='checkbox radio' >{OPTIONBUTTON} {OPTION} </label>
<div class='clearfix'></div>
</li>";
$POLL_DISALLOWED_END = "
</ul>
<div class='alert alert-danger '>
{DISALLOWMESSAGE}
</div>
<div class='panel-footer'>
<span class='badge'>{AUTHOR}</span>
<span class='badge'>{VOTE_TOTAL}</span>
<span class='badge'>{COMMENTS}</span>
<span class='badge'>{OLDPOLLS}</span>
</div>
</div>
</div>";
/* ################################# */
/* template for forum polls when user HASN'T voted*/
$POLL_FORUM_NOTVOTED_START = "
<div style='text-align:center; margin-left: auto; margin-right: auto;'>
<table class='fborder' style='width: 350px;'>
<tr>
<td class='forumheader' style='width: 100%; text-align: center;'>
<b><i>{QUESTION}</i></b>
</td>
</tr>
<tr>
<td class='forumheader3' style='width: 100%;'>";
$POLL_FORUM_NOTVOTED_LOOP = "
<label for='{OPTION}'>{OPTIONBUTTON}{OPTION}</label>
";
$POLL_FORUM_NOTVOTED_END = "
</td>
</tr>
<tr>
<td class='forumheader' style='width: 100%;'>
<div style='text-align:center' class='smalltext'>
{SUBMITBUTTON}
</div>
</td>
</tr>
</table>
</div>";
/* ################################# */
/* template for forum polls when user HAS voted */
$POLL_FORUM_VOTED_START = "
<div style='text-align:center; margin-left: auto; margin-right: auto;'>
<table class='fborder' style='width: 350px;'>
<tr>
<td class='forumheader' style='width: 100%; text-align: center;'>
<b><i>{QUESTION}</i></b>
</td>
</tr>
<tr>
<td class='forumheader3' style='width: 100%;'>
";
$POLL_FORUM_VOTED_LOOP = "
<b>{OPTION}</b>
<br />{BAR}<br />
<span class='smalltext'>{VOTES} | {PERCENTAGE}</span>
<br /><br />
";
$POLL_FORUM_VOTED_END = "
</td>
</tr>
<tr>
<td class='forumheader' style='width: 100%;'>
<div style='text-align:center' class='smalltext'>
{VOTE_TOTAL}
</div>
</td>
</tr>
</table>
</div>
";
?>