Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.16

Bug #5154 Too few examples in QuickForm
Submitted: 2005-08-19 15:09 UTC
From: mdjones0978-php at yahoo dot com Assigned:
Status: Bogus Package: HTML_QuickForm
PHP Version: 5.0.2 OS: XP/Linux (both)
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2006-06-03 15:59 UTC
Package:
Bug Type:
Summary:
From: mdjones0978-php at yahoo dot com
New email:
PHP Version: Package Version: OS:

 

 [2005-08-19 15:09 UTC] mdjones0978-php at yahoo dot com
Description: ------------ I would love to see more samples in the documentation, and once I figure things out I would be more than happy to post them as comments like you can on the main PHP site. Code and Template are included below. Test script: --------------- $repeat = array(); $repeat[] = $form->addElement('radio', 'repeat', 'none', null, 'none'); $repeat[] = $form->addElement('radio', 'repeat', 'repeat', null, 'repeat'); $repeat[] = $form->addElement('radio', 'repeat', 'repeaton', null, 'reapeaton'); $form->addGroup($repeat, 'repeat', '', '<br />'); $form->addElement('select', 'repeatevery', '', array('Every' => 'Every', 'Every Other' => 'Every Other')); $form->addElement('select', 'repeateverywhat', '', array('Day' => 'Day', 'Week' => 'Week', 'Month' => 'Month', 'Year' => 'Year', 'MWF' => 'Mon, Wed, Fri', 'TuesThurs' => 'Tue & Thu', 'Weekdays' => 'Mon Thru Fri', 'Weekends' => 'Sat & Sun')); $enddate = array(); $enddate[] = $form->addElement('radio', 'ends', 'none', null, 'none'); $enddate[] = $form->addElement('radio', 'ends', 'endon', null, 'endon'); $form->addGroup($enddate, 'ends', '', '<br />'); $form->addElement('date', 'enddate', 'Date:', array('format' => 'F d, Y', 'minYear' => date('Y'), 'maxYear' => date('Y')+10, 'addEmptyOption' => true, 'emptyOptionText' => ' ')); Expected result: ---------------- <tr><th colspan="2">{$form.header.showtimes}</th></tr> <tr> <td class="label">{$form.newshowtime.label}</td> <td class="element">{$form.newshowtime.html}</td> </tr> <tr> <TD CLASS='label'>Repeating:</TD> <TD CLASS='element'> {$form.repeat.none.html} This event does not repeat <BR>{$form.repeat.repeat.html} Repeat {$form.repeatevery.html} {$form.repeateverywhat.html}</TD> </tr> <tr> <TD CLASS='label'>End Date:</TD> <TD CLASS='element'> {$form.ends.none.html} No End Date <BR>{$form.ends.endon.html} Repeat until {$form.enddate.html}</TD> </tr>

Comments

 [2006-06-03 15:59 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!