maxhugen
Posts: 272
|
| Posted: 06/26/2008, 11:48 PM |
|
I let people register for a free 14 day trial of an online subscription service.
In an include page which has the Menu items, I'd like to add a Panel which would show various messages, eg:
"You have x days left of your Free 14 day Trial."
"Your Free 14 day Trial has Expired. Please <a href='Subscribe.php'>Subscribe</a> now."
The html for the Panel in the Menu include page could look something like this:
<!-- BEGIN Panel Panel_Trial -->
<tr valign="top" height="26">
<td>
<table>
<tr>
<td>The message goes here!</td>
</tr>
</table>
</td>
</tr>
<!-- END Panel Panel_Trial -->
I have no problem with showing/hiding the Panel, but I'm having a mental block on how I can change the message inside it using PHP code.
Can anyone suggest how I should do this pls?
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
wkempees
Posts: 1679
|
| Posted: 06/27/2008, 2:06 AM |
|
The Message goes here! ..replace it with a Label.
Label will have a BeforeShow.
The Panel sas a Before Show
The Page has a Before Show.
All of which let you set the content of the label.
Friday morning huh....
Well, apparently for me too, as I just now read the words "menu" and "include page"......
Ahum..
Well try it anyway, another approach would be 3 panels each with their own text, all visible No, then in BeforeShow change as needed.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
maxhugen
Posts: 272
|
| Posted: 06/27/2008, 7:24 PM |
|
Thanks Walter
Using the Label worked in the Include menu page.
Cheers, Max
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
|