Revisions for scry/polls.php

Location: [ Horde ] / scry / polls.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.52 (+2 -2 lines) 04/15/2008 01:06 AM Chuck Hagenbuch chuck

- Use .html.php for view templates (or whatever format is appropriate, like .xml.php)
- simplify templates directory depth

1.51 (+2 -2 lines) 01/02/2008 06:13 AM Jan Schneider jan

Happy New Year

1.50 (+2 -1 lines) 11/26/2007 03:33 AM Duck duck

Include files missed by autoloader.

1.49 (+2 -2 lines) 11/24/2007 07:00 AM Duck duck

- check if poll is existing directly in getPoll()
- use count() for hasVoted inseted selecting data
- avoid some warnings

1.48 (+17 -22 lines) 11/23/2007 09:35 PM Duck duck

First optimization step reducing the number of queries and simplify query types:
- use just one simple query in getPolls() as retrieving polls ID separated is not needed and choices are retrieved by getVotes()
- track choice count on vote instead of having a join query to get the choices count
- cannot find any usage of poll_results_to so remove it
- use div and CSS insted of requesting the server for the pixel.php colored image
- add a dedicated and cached get poll function (getPoll still is called when lisitng polls several times for every poll)
- make getVotes() statis as we get them in the poll list then again later when chekig individual poll actions in isEditabe()
- remove settings the group permission. poll_group was droped last year so the cast to set the group permission never occurs
- use scry_voted cookie even to reduce DB access in hasVoted()

Permissions
- Avoid permission check overhead for common poll show/read task by do not set the permission of every poll as default permission on poll creation time. Create the default permission only when you actually pass to the permission editing form. Check the default permissions in the Scry::hasPermission function for non existing permissions.

Demographics
- Added demographics.php config file to define demographics groups
- Added hook to detect user demographics group belonging
- Add a drop down to which display between demographics groups in poll view

Others changes:
- spited read support in sql driver
- template -> view
- php5 constants and function definitions
- replace deprecated is_a with interface of
- autoload

1.47 (+2 -2 lines) 01/02/2007 07:48 AM Jan Schneider jan

Happy New Year

1.46 (+5 -3 lines) 01/01/2007 07:41 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.45 (+2 -38 lines) 11/18/2006 01:58 AM Ben Klang bklang

* Standardized poll management links
* Changed $scry->isVotable() to accept a poll_id for API consistency
* Remove need to pass $votes to $scry->isEditable()
* Only allow group to be set on poll creation.  Further permissions editing will be done with a new UI

1.44 (+3 -3 lines) 11/17/2006 10:21 AM Ben Klang bklang

* Change $scry->isOpen() to accept a poll_id for API consistency
* Properly check for editable polls

1.43 (+4 -4 lines) 11/17/2006 01:22 AM Ben Klang bklang

* Implement per-poll permissions
* Scry::isEditable() no longer returns true if the poll is closed
* Drop storage of the poll group in the SQL driver

ToDo: Allow existing polls' permissions to be edited by users with PERMS_EDIT.  Probably will reuse Perms_UI if possible.

1.42 (+2 -2 lines) 01/01/2006 04:11 PM Jan Schneider jan

Happy new year\!

1.41 (+2 -2 lines) 05/28/2005 11:12 PM Chuck Hagenbuch chuck

- make sure correct tab is always selected
- remove <br /> tags after menu
- add accesskeys
- select Polls in the menu if we clicked on index.php

1.40 (+2 -2 lines) 05/18/2005 06:38 AM Jan Schneider jan

Fix viral method name typo.

1.39 (+2 -2 lines) 01/03/2005 09:35 AM Jan Schneider jan

Happy New Year

1.38 (+5 -1 lines) 11/09/2004 05:44 AM Jan Schneider jan

Error checking.

1.37 (+2 -2 lines) 11/03/2004 03:59 PM Chuck Hagenbuch chuck

Use new menus.

1.36 (+6 -5 lines) 10/29/2004 11:50 AM Chuck Hagenbuch chuck

Apps using Horde_UI_Tabs should call Horde::applicationUrl() on their own. Makes javascript: urls much simpler to handle, etc.

1.35 (+2 -2 lines) 10/18/2004 08:46 PM Chuck Hagenbuch chuck

Registry::getParam() -> Registry::get().

1.34 (+18 -2 lines) 10/03/2004 11:26 AM Chuck Hagenbuch chuck

Implement polls paging.

Submitted by: Duck <duck@obala.net>

1.33 (+3 -3 lines) 04/07/2004 10:43 AM Chuck Hagenbuch chuck

No more HORDE_LIBS.

1.32 (+9 -5 lines) 02/25/2004 02:12 PM eraserhd

* Use Variables:: instead of Horde_Form_Vars:: in UI widgets.

1.31 (+3 -2 lines) 02/22/2004 12:12 AM eraserhd

* Add $vars and $config parameters to widget constructor.
* Update Horde_UI_Widget:: and derived classes to use a Horde_Form_Vars:: to
access the variable space.

1.30 (+2 -2 lines) 01/17/2004 05:57 PM Jan Schneider jan

All footers look the same, so why not use only one.

1.29 (+2 -2 lines) 01/01/2004 10:16 AM Jan Schneider jan

Happy new year everyone.

1.28 (+2 -2 lines) 11/25/2003 05:56 PM Chuck Hagenbuch chuck

Don't re-fetch votes.

1.27 (+2 -2 lines) 11/22/2003 07:40 PM Chuck Hagenbuch chuck

Clean up the generation and passing of the 'url' parameter to make sure that
we return to from whence we came.

1.26 (+10 -2 lines) 11/22/2003 11:25 AM Chuck Hagenbuch chuck

Implement manual conclusion of polls (just sets the end date to the current time)
- stops voting.

1.25 (+18 -2 lines) 11/21/2003 10:53 PM Chuck Hagenbuch chuck

make message match the current polls filter.

1.24 (+7 -7 lines) 11/21/2003 10:49 PM Chuck Hagenbuch chuck

- tweak poll display html
- avoid double bars in the percentage bar graphs

1.23 (+20 -3 lines) 11/21/2003 05:37 PM Chuck Hagenbuch chuck

Add more poll state filters, and add tabs across the top of the poll list for switching
between open, all, closed, and disabled (only for admins) polls.

1.22 (+6 -9 lines) 11/20/2003 02:59 PM Chuck Hagenbuch chuck

Minor tweaks/cleanups.

1.21 (+10 -9 lines) 11/11/2003 06:41 PM Chuck Hagenbuch chuck

Use template dividers

1.20 (+3 -4 lines) 09/29/2003 07:32 AM mdjukic

don't default to formatted menu, generate full menu parts and use them in the templates

1.19 (+9 -9 lines) 09/18/2003 12:34 PM Jan Schneider jan

Class name changes. Missed that module completely.

1.18 (+3 -3 lines) 09/18/2003 09:11 AM mdjukic

fix class name

1.17 (+12 -20 lines) 07/10/2003 04:40 PM Chuck Hagenbuch chuck

- remove global $scry_template variable (helps avoid lots of scope problems)
- clean up blocks a bit
- shorten the polls summary display
- display better title in the poll block; still need to fix inlining and voting here.

1.16 (+6 -2 lines) 07/08/2003 12:32 PM Chuck Hagenbuch chuck

- page titles
- message if there aren't any polls
- string consistency

1.15 (+8 -4 lines) 07/07/2003 04:14 PM Chuck Hagenbuch chuck

- clean up vote checking
- allow a local scry admin

1.14 (+31 -20 lines) 05/06/2003 11:25 PM mdjukic

do some basic permission checking for showing links or not, at the moment only admin gets to see the edit/delete links

1.13 (+9 -11 lines) 05/05/2003 01:36 PM mdjukic

date formatting using Scry::getDate(), isEditable() checking

1.12 (+11 -8 lines) 05/04/2003 06:36 PM mdjukic

add new vote link and change $template to $scry_template

1.11 (+18 -2 lines) 05/03/2003 10:03 PM mdjukic

action links for individual polls

1.10 (+4 -5 lines) 05/03/2003 05:32 PM mdjukic

typo in key, use /templates

1.9 (+3 -4 lines) 02/20/2003 03:29 PM Chuck Hagenbuch chuck

More useful results for polls, some cleanup.

1.8 (+3 -11 lines) 02/01/2003 07:39 PM mdjukic

cleaning, graphs now done in Scry::getResultsGraph(),  initiated in base.php

1.7 (+9 -2 lines) 02/01/2003 12:32 AM Chuck Hagenbuch chuck

- remove unnecessary sql call
- improve display of enable/disabled and null start/end dates.

1.6 (+3 -2 lines) 02/01/2003 12:24 AM Chuck Hagenbuch chuck

add missing $notification->notify() to a few scripts.

1.5 (+4 -4 lines) 01/29/2003 12:23 PM mdjukic

use better naming scheme for the backend

1.4 (+3 -3 lines) 01/28/2003 07:46 AM Jan Schneider jan

Silence warnings.

1.3 (+19 -12 lines) 01/23/2003 01:33 PM Chuck Hagenbuch chuck

- check for all required templates
- better error checking
- style
- harder to create a fatal error (that gives the user an ugly PHP
message or no feedback) now.

1.2 (+13 -14 lines) 01/21/2003 10:13 PM mdjukic

get rid of code which is now available as function in the Scry:: class

1.1 01/21/2003 12:25 PM mdjukic

start page for scry