Extension:VoteSystem

With this module, you can create a vote. To control the vote created a special page. Users who have the right to edit wiki-pages, also have access to this page.

Creating a new vote
Go to special page Vote_System. Click +New vote. It opens a form to create a new vote. Fields:
 * Title - Vote theme
 * Type
 * one answer - you can choose only one answer
 * multiple answers - you can choose multiple answers
 * Access
 * view results - wiki groups, comma separated, are allowed to view the overall results for this vote
 * record - wiki groups, comma separated, are allowed to respond to this vote

After pressing Save will be created a new vote. This will open a list of vote themes, and the newly created voting will be shown in it. After creating the new vote, to add answer choices and choose additional options, edit newly created vote.

Editing vote
To edit a vote click on the name of the desired vote in the list. Initially, the right to edit the vote is a creator of this survey, as well as a group "Administrators" Editing permissions can be extended in the field Access to editing (wiki group, as well as users, separated by commas). By default, if user have the right to reply to a question, after the answer he loses the right (identification by user name or P-address). To remove this restriction, you need to tick to allow multiple voting.

Editing answers
To add an answer click on the link +New answer. To edit a variant of the answer you should click on its name in the list of answers. This will open editing answer form.

Voting theme is presented in the form of reference, when you click on that you can return to form for editing the vote. Field Text - text of answer. If you tick +text input field, then the answer will be displayed with an additional field for manual input response. After you click "Save" answer option recorded, and the transition to the editing vote form.

A list of answers is shown in a table that has fields "Text", "Actions", "Results". Delete unnecessary answer by clicking on the x in the "Actions". If this vote had someone answered, then in the "Results" you will see the overall results of voting for each answer. And also at the bottom a link to download log-file detailed statistics on the results of the survey.

Inserting the vote module
To insert a module of a vote on a page, go to the edit form of voting, copy the contents of the field Code insertion in the clipboard and open for editing a page and put in the right place to copy the code insertion. After you save the page module voting will be displayed in accordance with the rights described in the Access form editing voting.

Installation
To install this extension
 * Create folder "/extensions/VoteSystem"
 * Create files: (see Code section)
 * VoteSystem.php
 * VoteSystem.i18n.php
 * VoteSystem_body.php
 * VoteSystem_module.php
 * votesystem.css
 * Copy these files in the folder "/extensions/VoteSystem"
 * Create folder "/extensions/VoteSystem/img" with files:
 * down_arrow.gif
 * up_arrow.gif
 * Create tables in your database (see Tables definition section)
 * Add the following to LocalSettings.php:

Code

 * VoteSystem.php
 * VoteSystem.i18n.php
 * VoteSystem_body.php
 * VoteSystem_module.php
 * votesystem.css