For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > November 2006 > QuickForm_Renderer_Tableless - template help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author QuickForm_Renderer_Tableless - template help
Chuck Reynolds

2006-11-20, 9:57 pm

I don't understand how to rebuild the template so I don't have ordered lists
for each fieldset when using HTML_QuickForm_Renderer_Tableless.

outputted source code looks like this:

<form action="/estimate.php"
method="post"
name="frmEstimate" id="frmEstimate">
<div
style=
"display: none;"></div>
<fieldset>
<
legend>Your Information</legend>
<ol>
<
li><label
for="txtFullName" class="element"><
span class="required"
>*</span>Full Name:</label><

div class="element"><input id=
"txtFullName"
name="txtFullName" type="text"/>
</div></li>


I'd like to know how to change that and I simply can't get the renderer to
work.

Thanks


--
Chuck rYno
chuckryno@gmail.com

Mark Wiesemann

2006-11-21, 7:58 am

Chuck Reynolds wrote:

> I don't understand how to rebuild the template so I don't have ordered lists
> for each fieldset when using HTML_QuickForm_Renderer_Tableless.


You would need to remove all <ol> and <li> (and the according closing
tags) from all templates that have them. To do this, look at the source
code and call the corresponding $renderer->set...Template() methods with
the altered templates.

Please note that you maybe also need to add <br /> tags at the end of
the elements template to get the right line breaks. And you need to
alter the stylesheet, of course.

A look at an older stylesheet from one of the previous releases (which
hadn't had the ordered lists) might help you.

Regards,
Mark
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com