Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4016 > unrolled thread
| Started by | Mike S <mscir@yahoo.com> |
|---|---|
| First post | 2011-12-07 12:51 -0800 |
| Last post | 2011-12-07 22:28 +0000 |
| Articles | 8 — 4 participants |
Back to article view | Back to comp.lang.php
Poll software recommendations Mike S <mscir@yahoo.com> - 2011-12-07 12:51 -0800
Re: Poll software recommendations Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-07 16:47 -0500
Re: Poll software recommendations... resolved Mike S <mscir@yahoo.com> - 2011-12-07 20:12 -0800
Re: Poll software recommendations... resolved Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-08 07:58 -0500
Re: Poll software recommendations... resolved rataplanpupum <rataplanpupum> - 2011-12-08 19:00 +0100
Re: Poll software recommendations... resolved The Natural Philosopher <tnp@invalid.invalid> - 2011-12-08 18:11 +0000
Re: Poll software recommendations... resolved Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-08 14:00 -0500
Re: Poll software recommendations The Natural Philosopher <tnp@invalid.invalid> - 2011-12-07 22:28 +0000
| From | Mike S <mscir@yahoo.com> |
|---|---|
| Date | 2011-12-07 12:51 -0800 |
| Subject | Poll software recommendations |
| Message-ID | <jbojkd$naq$1@dont-email.me> |
I am looking for a free poll software package to create and display results for simple polls for a PHP site. I would like to hear if you have found a poll software package you liked.
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-12-07 16:47 -0500 |
| Message-ID | <jbomt4$cmb$2@dont-email.me> |
| In reply to | #4016 |
On 12/7/2011 3:51 PM, Mike S wrote: > I am looking for a free poll software package to create and display > results for simple polls for a PHP site. I would like to hear if you > have found a poll software package you liked. And your PHP question is? Any time I want a poll I just write the code myself. It's pretty simple - and takes less time than finding a poll, figuring out how to integrate it into my site and modifying the code. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Mike S <mscir@yahoo.com> |
|---|---|
| Date | 2011-12-07 20:12 -0800 |
| Subject | Re: Poll software recommendations... resolved |
| Message-ID | <jbpdei$sbo$1@dont-email.me> |
| In reply to | #4017 |
On 12/7/2011 1:47 PM, Jerry Stuckle wrote: > On 12/7/2011 3:51 PM, Mike S wrote: >> I am looking for a free poll software package to create and display >> results for simple polls for a PHP site. I would like to hear if you >> have found a poll software package you liked. > > And your PHP question is? > > Any time I want a poll I just write the code myself. It's pretty simple > - and takes less time than finding a poll, figuring out how to integrate > it into my site and modifying the code. I thought there might be a basic package made available, I don't want to write the admin panel right now as I don't have a lot of time. I'll declare this topic closed as I will either find one or write one.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-12-08 07:58 -0500 |
| Subject | Re: Poll software recommendations... resolved |
| Message-ID | <jbqca4$uef$2@dont-email.me> |
| In reply to | #4020 |
On 12/7/2011 11:12 PM, Mike S wrote: > On 12/7/2011 1:47 PM, Jerry Stuckle wrote: >> On 12/7/2011 3:51 PM, Mike S wrote: >>> I am looking for a free poll software package to create and display >>> results for simple polls for a PHP site. I would like to hear if you >>> have found a poll software package you liked. >> >> And your PHP question is? >> >> Any time I want a poll I just write the code myself. It's pretty simple >> - and takes less time than finding a poll, figuring out how to integrate >> it into my site and modifying the code. > > I thought there might be a basic package made available, I don't want to > write the admin panel right now as I don't have a lot of time. I'll > declare this topic closed as I will either find one or write one. > There's not that much to it. Last time I wrote a poll the whole thing took less than half a day. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | rataplanpupum <rataplanpupum> |
|---|---|
| Date | 2011-12-08 19:00 +0100 |
| Subject | Re: Poll software recommendations... resolved |
| Message-ID | <4ee0fb21$0$1380$4fafbaef@reader2.news.tin.it> |
| In reply to | #4022 |
> There's not that much to it. Last time I wrote a poll the whole thing > took less than half a day. > oh... wounderful...
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2011-12-08 18:11 +0000 |
| Subject | Re: Poll software recommendations... resolved |
| Message-ID | <jbqul7$pfr$1@news.albasani.net> |
| In reply to | #4025 |
rataplanpupum wrote:
>
>> There's not that much to it. Last time I wrote a poll the whole thing
>> took less than half a day.
>>
>
> oh... wounderful...
Mine took a bit longer..the graphic artist wanted pretty colors and bars
on it..
Here's the display bit of it..assumes an open database with values of
for against neutral and didn't vote at all (NULL) in it
The databases insertion is just from a form..
function display_votes($x,$y)
{
$maxwidth=100; // simple enough.
$framey=$y+40;
$framex=$x-15;
//
?>
<div style="position: absolute; top:<? echo $framey -48; ?>px; left: <?
echo $framex ?>px; width: 180px; color:#47295C; text-align: center;
font-weight: bold;font-style: italic;font-size:8pt ">
Are you against, for, or neutral about this development?</div>
<div style="position: absolute; top:<? echo $framey; ?>px; left: <?
echo $framex ?>px;"><img src="images/Pollometer.gif" border="0";
alt="poll-o-meter bezel"></div>
<?
$y+=50;
$x-=25;
// get pixel width of the three possible results. We ignore those who
didnt vote (yet)
$neutral=mysql_result(mysql_query("select count(voted) as total from
people where voted='neutral'"),0,'total');
$for=mysql_result(mysql_query("select count(voted) as total from
people where voted='for'"),0,'total');
$against=mysql_result(mysql_query("select count(voted) as total from
people where voted='against'"),0,'total');
$total=$against+$for+$neutral;
$forx= round(($for/$total) * $maxwidth);
$neutralx= round(($neutral/$total) * $maxwidth);
$againstx= round(($against/$total) * $maxwidth);
/*$forx=10;
$neutralx=7;*/
// Right. Now draw three coloured bars.
?>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y?>px; height: 10px; width:<? echo $againstx?>px;
background-color:#BD3880;"></div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+15?>px; height: 10px; width:<? echo $forx?>px;
background-color:#000080;"></div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+30?>px; height: 10px; width:<? echo $neutralx?>px;
background-color:#505050;"></div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y?>px; height: 10px; width:100px;text-align:center; color:#FFFFFF;
font-size: 7pt"><?echo $againstx?>%</div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+15?>px; height: 10px; width:100px;text-align:center; color:#FFFFFF;
font-size: 7pt"><?echo $forx?>%</div>
<div style="Position: absolute; left:<?echo $x+20?>px;top:<? echo
$y+30?>px; height: 10px; width:100px;text-align:center; color:#FFFFFF;
font-size: 7pt"><?echo $neutralx?>%</div>
<div style="Position: absolute; left:<?echo $x+125?>px;top:<? echo
$y?>px; height: 10px; width:100px;text-align:left; color:#FFFFFF;
;font-size: 7pt">Against (<?=$against?>)</div>
<div style="Position: absolute; left:<?echo $x+125?>px;top:<? echo
$y+15?>px; height: 10px; width:100px;text-align:left; color:#FFFFFF;
font-size: 7pt">For (<?=$for?>)</div>
<div style="Position: absolute; left:<?echo $x+125?>px;top:<? echo
$y+30?>px; height: 10px; width:100px;text-align:left; color:#FFFFFF;
font-size: 7pt">Neutral (<?=$neutral?>)</div>
<div style="Position: absolute; left:<?echo $framex?>px;top:<? echo
$y+50?>px; height: 30px; width:180px;text-align:center; color:#FFFFFF;
font-size: 8pt">Poll Results:<? echo $total?> votes cast</div>
<div style="position: absolute; top:<? echo $framey +90; ?>px; left: <?
echo $framex ?>px; width: 180px; color:#47295C; text-align: center;
font-style: italic;font-size:9pt ">
<A HREF="contact-1.php" target="_self">Contact us to register and
vote</a></div>
<?
}
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-12-08 14:00 -0500 |
| Subject | Re: Poll software recommendations... resolved |
| Message-ID | <jbr1fv$3sc$1@dont-email.me> |
| In reply to | #4025 |
On 12/8/2011 1:00 PM, rataplanpupum wrote: > >> There's not that much to it. Last time I wrote a poll the whole thing >> took less than half a day. >> > > oh... wounderful... How much time have you already spent trying to find a poll? And once you find it, how much time will it take you to integrate it into your existing site? That half-day included graphs, btw. It's not rocket science. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2011-12-07 22:28 +0000 |
| Message-ID | <jbopa0$lc0$1@news.albasani.net> |
| In reply to | #4016 |
Mike S wrote: > I am looking for a free poll software package to create and display > results for simple polls for a PHP site. I would like to hear if you > have found a poll software package you liked. I wrote my own. Its hardly rocket science.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web