RE: [SMARTY] Popup text

From: Date: Wed, 21 Aug 2002 14:18:50 +0000
Subject: RE: [SMARTY] Popup text
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5796@lists.php.net to get a copy of this message
Maybe interesting as an example: It generates a list of names, with the possibility to open a popup with address-data. All data comes from a MySqlDB. <table border="0" cellpadding="0" cellspacing="0" width="70%"> {section name=leden loop=$leden} {capture name=popupcaption}{$leden[leden]->voornaam} {$leden[leden]->naam} <a href=mailto:{$leden[leden]->email}><img src={$PATH2IMGS}/icons/mailsmall_icon.gif width=10 height=7 border=0 alt=e-mail></a>{/capture} {capture name=popuptext}{$leden[leden]->instelling}<br>{$leden[leden]->adres}<br>{$le den[leden]->postnr} {$leden[leden]->woonplaats}<br>t. {$leden[leden]->tel}<br>f. {$leden[leden]->fax}{/capture} <tr><td nowrap width="300">{$leden[leden]->voornaam} {$leden[leden]->naam} <a href="#" {popup trigger=onClick sticky=true caption=$smarty.capture.popupcaption text=$smarty.capture.popuptext capcolor="#000000" bgcolor="#d2c800" fgbackground="$PATH2IMGS/div_achtergrond.gif" closecolor="#000000" closetext="X" offsety="-2"}><img src="{$PATH2IMGS}/inline021.gif" width="12" height="12" border="0" alt=""></a></td><td nowrap>{$leden[leden]->instelling}</td></tr> {/section} </table> This works, but its necessary to have the {capture}content{/capture} on 1 same line (so no linebreaks or carriage returns) else overlib complains. The captured content also cannot contain double or single quotes. Tom -----Oorspronkelijk bericht----- Van: Ben Godfrey [mailto:ben@hypothetical.co.uk] Verzonden: woensdag 21 augustus 2002 15:39 Aan: smarty-general@lists.php.net Onderwerp: Re: [SMARTY] Popup text > <a href="blabla.php" {popup > text="$docs[n].description"}>Bla</a> This won't work because Smarty/PHP stops looking for text describing the variable at the dot. Same thing with the slash in PHP vs slash in Smarty problem posted earlier today. Ben (q) Ben Godfrey? (a) Developer and Designer, See http://aftnn.org/ for details -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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