Create wrapper for popup function with input from PEAR_QuickForm!!??

From: Date: Tue, 27 Apr 2004 11:58:14 +0000
Subject: Create wrapper for popup function with input from PEAR_QuickForm!!??
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11309@lists.php.net to get a copy of this message
Hi all Strange problem - I know - but I will try my best to describe! What I need to combine: - Smarty templates - PEAR QuickForm - Smarty popup function utilizing Overlib Which behaviour I want: I have smarty templates with forms generated by PEAR QuickForm and I want "user-friendly" field labels meaning field-labels with added functionality. When I position the mouse on top of a label there should be a popup box (from overlib) with short information about this particular form element. This is quite easy to accomplish using the ordinary popup function in Smarty. But I would also like the label to be "clickable" meaning that clicking the mouse launches a "real" popup window (new browser instance) linking to more comprehensive information about the form field. I would also like to be able to control the properties of this popup! This was a very long explation - but here's an extract from a template where all $form-variables are controlled by QuickForm. <td>{popupadvanced formfield="{$form.title.label}" header="Title" helptext="Helptext describing form field." helpitem="helpitemidentifier"}</td> <td>{$form.title.html}</td> When this template has been parsed by Smarty I would like the following output ($form.title.label = 'Title:'): <td><a href="/admin/helppopup.php?id=helpitemidentifier" target="ticmshelp" onclick="link_popup(this);return false" onmouseover="return overlib('Helptext describing form field.' ,DELAY,'400',LEFT,OFFSETX,'15',OFFSETY,'-60',CAPTION,'Title');" onmouseout="nd();">Titel:</a></td> <td><input name="title" type="text" maxlength="255" class="textinput" style="width:24em;" value="Forside" /></td> I think the problem is with the array variable $form.title.label - if it was just $formtitlelabel it would be ok, but I can't figure out how to solve this... Hope you can help me out here... Cheers, Tommy

« previous php.smarty.general (#11309) next »