/
README
56 lines (43 loc) · 2.37 KB
/
README
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
=head1 NAME
quickpoll- Quick poll for Interchange
=head1 VERSION
1.1
=head1 SYNOPSIS
[control-set]
[component]quickpoll[/component]
[code]1[/code]
[/control-set]
=head1 DESCRIPTION
This feature adds a "Quick Poll" feature to an interchange catalog. To implement,
place the "quickpoll" component in a page (or take the page code from
templates/components/quickpoll and incorporate it).
It creates two tables, "quickpoll" and "quickpoll_answer". It is tested on
MySQL, but should run on Postgres as well.
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| code | int(11) | | PRI | NULL | auto_increment |
| poll_id | varchar(128) | YES | | NULL | |
| owner | varchar(128) | YES | | NULL | |
| title | varchar(128) | YES | | NULL | |
| question | varchar(255) | YES | | NULL | |
| choices | text | YES | | NULL | |
| colors | text | YES | | NULL | |
| num_answers | varchar(128) | YES | | NULL | |
+-------------+--------------+------+-----+---------+----------------+
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| code | int(11) | | PRI | NULL | auto_increment |
| poll_id | int(11) | YES | | NULL | |
| question_id | int(11) | YES | MUL | NULL | |
| answer | varchar(255) | YES | | NULL | |
| comment | text | YES | | NULL | |
| answer_date | varchar(128) | YES | | NULL | |
| ipaddr | varchar(128) | YES | | NULL | |
| username | varchar(128) | YES | | NULL | |
| login_table | varchar(128) | YES | | NULL | |
+-------------+--------------+------+-----+---------+----------------+
To create a poll, go to Tables->quickpoll->New Entry in the admin UI.
=head1 AUTHOR
Mike Heins, Perusion, <mikeh@perusion.com>.