Submitted by ramez.hanna on Sun, 13/06/2004 - 07:04.

i created a reservation module (finally) for drupal that works like a poll but i would record who is chose what option so that we can count who is coming to events and who isn't
still needs a little tweaking but should be ready by noon today yippiiieee :D


good work

Alaa's picture

since you already hacked poll module, we'll also need a vote module, this will be used for our voting system (to seperate votes from polls and to make calculation of quorum and majority automatic).

can you prototype this?

cheers,
Alaa


http://www.manalaa.net

ok

ramez.hanna's picture

ok so give me the specs


the best things in life are free --- so as myself

spec is the charter

Alaa's picture

spec is the charter I suppose, but we haven't decided the details yet so I just ask for a prototype.

the module should.

  • calculate quorum by querying the number of senior users, admis and moderators (user roles) and display a message saying n many votes needed to reach quorum.
  • keep track of voting period, it should have a counter saying n days left for poll, there should be a way to edit the value of the counter manualy but it should default ot 10 and decrement once every day.
  • it should highlight majority, majority is defined in the charter not as simply the the option with more votes but as the option with more votes that gets at least a minimum number of votes, if an option reaches this minimum is should be highlighted (displayed in different colors)
  • if a poll fails to reach majority or quorum it is an failed poll and needs to be repeated, indicate this somehow after passing half the voting period so people would know before hand.

maybe we could automate the vote repeat process too, dunno, as I said it will be a prototype only there is still much to consider and think about.

cheers,
Alaa


http://www.manalaa.net

need database table structure

Alaa's picture

Hey, I tried using reservation module today but it needs a reservation database table.

whats the table structure?? preferably send me the create table SQL statement.

cheers, Alaa


http://www.manalaa.net

"u know i once dream that the office of mobinil is from el 7`os :S and the one that answer u and tell u rasidak a girl called ghada"

just copy the polls tables 1

ramez.hanna's picture

just copy the polls tables
1- create reservation,reservation_choices that are identical to poll,poll_choices
2- alter reservation_choices and add a field "chusers" of type "longinteger"


the best things in life are free --- so as myself

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.