macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

CFLAYOUT content appear as the menu

Subject: CFLAYOUT content appear as the menu
From: "cyber fyb"
Date: Thu, 2 Aug 2007 19:05:35 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
I have a page with very standard zone where the top is a banner, followed by a 
menu, a zone for content and than the zone for the footer.

 I start to think about the Testimonials little zone we gonna have on the zone 
of content (something like 150px X 100px). I decided to go with CFLAYOUT and 
CFLAYOUTAREA and use the SOURCE to push some "RANDOM functionalities in this 
little dynamic zone.

 Guess what, the testimonials appear and replace the menu (which is a CFMENU). 
I do not understand because they are really not at the same place in the source 
code!!!

 Any help will be appreciated,

 <!--- Home page --->

 <cfajaximport tags="cfform, cftextarea, cftooltip, cfpod">

 <cf_zfHeader>
        <table width="800" align="center" cellspacing="0" cellpadding="0">
                <tr>
                        <td align="left" valign="top" width="630">
                                <table width="100%" cellspacing="0" 
cellpadding="0">
                                        <tr>
                                                <td align="left" valign="top" 
width="100%" colspan="3">
                                                        <!--- animated flash 
--->
                                                        <object 
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=7,0,19,0" width="630" height="200" title="Homepage Animated Pub">
                                                          <param name="movie" 
value="swf/AnimatedPub_Header_001_<cfoutput>#session.lang#</cfoutput>.swf">
                                                          <param name="quality" 
value="high">
                                                          <embed 
src="swf/AnimatedPub_Header_001_en.swf" quality="high" 
pluginspage="http://www.macromedia.com/go/getflashplayer"; 
type="application/x-shockwave-flash" width="630" height="200"></embed>
                                                        </object>               
                                
                                                 </td>
                                        </tr>
                                        <cfquery name="qGetServiceFamily" 
datasource="#Application.DSN#">
                                                SELECT ServiceFamilyID, 
ServiceFamilyName#session.lang# AS 
ServiceFamilyName, iconURL, citation#session.lang# AS Citation
                                                FROM ServiceFamily
                                                WHERE ServiceFamilyStatusID = 1
                                                ORDER BY Priority
                                        </cfquery>
                                        <cfif qGetServiceFamily.RecordCount GT 
0>
                                                <tr>
                                                        <cfloop 
index="cptServiceFamily" from="1" 
to="#qGetServiceFamily.RecordCount#">
                                                                <cfoutput>
                                                                        <td 
width="#100/qGetServiceFamily.Recordcount#%" align="left" 
valign="middle" onmouseover="this.style.backgroundColor='##CCCCCC'; 
this.style.cursor='hand';" onmouseout="this.style.backgroundColor=''; 
this.style.cursor='';">
                                                                                
<table cellspacing="1" cellpadding="1">
                                                                                
        <tr>
                                                                                
                <td align="left" valign="middle">
                                                                                
                        <img 
src="#Application.root#/img/icons/#qGetServiceFamily.iconURL[cptServiceFamily]#"
 alt="#qGetServiceFamily.ServiceFamilyName[cptServiceFamily]#" border="0">
                                                                                
                </td>
                                                                                
                <td align="left" valign="middle">
                                                                                
                        <cfset vServiceFamilyName = 
ListToArray(qGetServiceFamily.ServiceFamilyName[cptServiceFamily], " ")>
                                                                                
                        <cfif ArrayLen(vServiceFamilyName) GT 0>
                                                                                
                                <cfset vWordDarked = true>
                                                                                
                                <cfloop index="cptServiceFamilyWord" from="1" 
to="#ArrayLen(vServiceFamilyName)#">
                                                                                
                                        <cfif vWordDarked>
                                                                                
                                                <font color="333333" 
style="font-size:10pt; font-weight:200;" 
face="Arial Black">
                                                                                
                                        <cfelse>
                                                                                
                                                <font color="999999" 
style="font-size:10pt;" face="Arial">
                                                                                
                                        </cfif>
                                                                                
                                        
#vServiceFamilyName[cptServiceFamilyWord]#
                                                                                
                                        </font>
                                                                                
                                        <cfif vWordDarked>
                                                                                
                                                <cfset vWordDarked = false>
                                                                                
                                        <cfelse>
                                                                                
                                                <cfset vWordDarked = true>
                                                                                
                                        </cfif>
                                                                                
                                </cfloop>
                                                                                
                        </cfif>
                                                                                
                </td>
                                                                                
        </tr>
                                                                                
</table>
                                                                        </td>
                                                                </cfoutput>
                                                        </cfloop>
                                                </tr>
                                                <tr>
                                                        <cfloop 
index="cptServiceFamily" from="1" 
to="#qGetServiceFamily.Recordcount#">
                                                                <cfoutput>
                                                                        <td 
width="#100/qGetServiceFamily.RecordCount#%" align="left" 
valign="top">
                                                                                
<hr width="90%" align="left" />
                                                                                
<font color="333333" 
style="font-size:8pt;">#qGetServiceFamily.citation[cptServiceFamily]#</font>
                                                                                
<hr width="90%" align="left" />
                                                                        </td>
                                                                </cfoutput>
                                                        </cfloop>
                                                </tr>
                                                <tr>
                                                        <cfloop 
index="cptServiceFamily" from="1" 
to="#qGetServiceFamily.RecordCount#">
                                                                <cfoutput>
                                                                        <td 
align="left" valign="top" 
width="#100/qGetServiceFamily.RecordCount#%">
                                                                                
<ul class="zfUL">
                                                                                
        <cfquery name="qGetService" datasource="#application.DSN#">
                                                                                
                SELECT ServiceID, ServiceName#session.lang# AS ServiceName
                                                                                
                FROM Service
                                                                                
                WHERE ServiceFamilyID = 
#qGetServiceFamily.ServiceFamilyID[cptServiceFamily]#
                                                                                
                AND MotherServiceID IS NULL
                                                                                
                ORDER BY ServiceName#session.lang# ASC
                                                                                
        </cfquery>
                                                                                
        <cfif qGetService.RecordCount GT 0>
                                                                                
                <cfloop index="cptService" from="1" 
to="#qGetService.RecordCount#">
                                                                                
                        <li class="zfLI"><a 
href="#Application.Root#/Services/f/d/?ServiceID=#qGetService.ServiceID[cptServi
ce]#" title="<cfif session.lang is "fr">Cliquez ici pour en savoir plus sur 
notre service #qGetService.ServiceName[cptService]#<cfelse>Click here to learn 
more about our service #qGetService.ServiceName[cptService]#</cfif>" 
class="zfLI">#qGetService.ServiceName[cptService]#</a></li>
                                                                                
                </cfloop>
                                                                                
        </cfif>
                                                                                
</ul>
                                                                        </td>
                                                                </cfoutput>
                                                        </cfloop>
                                                </tr>
                                        <cfelse>
                                                <tr>
                                                        <td align="center" 
valign="middle">
                                                                <font 
color="red"><b>
                                                                        <cfif 
session.lang is "fr">
                                                                                
Nous sommes désolés mais nous éprouvons une difficulté à nous 
connecter à la base de données en ce moment. Veuillez ré-essayer plus tard. Une 
message a été envoyé au service technique.
                                                                        <cfelse>
                                                                                
We are sorry but we encounter difficulties to connect to the 
database at this moment. Please try again later. An email as been sent to the 
technical support.
                                                                        </cfif>
                                                                </b></font>
                                                        </td>
                                                </tr>
                                        </cfif>
                                </table>                                        
        
                        </td>
                        <td width="20"></td>
                        <td align="right" width="150" valign="top">
                                <table width="100%" cellspacing="0" 
cellpadding="0" bgcolor="white">
                                        <tr>
                                                <td align="center" valign="top">
                                                        <img 
src="<cfoutput>#Application.Root#</cfoutput>/img/manageYourAccount.jpg" 
border="0">
                                                </td>
                                        </tr>
                                        <tr>
                                                <td align="center" valign="top">
                                                        <cfform name="form1" 
action="#vForm1#" method="post" 
style="margin:0px;">
                                                                <table 
align="Center" cellspacing="1" cellpadding="1">
                                                                        <tr>
                                                                                
<td align="left" valign="top" class="fontGrey">
                                                                                
        <cfif session.lang is "fr">Nom de domaine<cfelse>Domain Name</cfif>
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top">
                                                                                
        <cfset vMessage = "Please indicate your domain name.">
                                                                                
        <cfif session.lang is "fr">
                                                                                
                <cfset vMessage = "Veuillez indiquer votre nom de domaine.">
                                                                                
        </cfif>
                                                                                
        <cfinput type="text" name="domain" required="yes" 
message="#vMessage#" validate="url">
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top" class="fontGrey">
                                                                                
        <cfif session.lang is "fr">Nom d'usager<cfelse>Username</cfif>
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top">
                                                                                
        <cfset vMessage="Please indicate your user name.">
                                                                                
        <cfif session.lang is "fr">
                                                                                
                <cfset vDescription = "Veuillez indiquer votre nom d'usager.">
                                                                                
        </cfif>
                                                                                
        <cfinput type="text" name="username" required="yes" 
message="#vMessage#" validate="noblanks">
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top" class="fontGrey">
                                                                                
        <cfif session.lang is "fr">Mot de passe<cfelse>Password</cfif>
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top">
                                                                                
        <cfset vDescription = "Please indicate your password.">
                                                                                
        <cfif session.lang is "fr">
                                                                                
                <cfset vDescription = "Veuillez indiquer votre mot de passe.">
                                                                                
        </cfif>
                                                                                
        <cfinput type="password" name="password" required="yes" 
message="#vMessage#" validate="noblanks">
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="right" valign="top">
                                                                                
        <cfinput type="image" src="#application.root#/img/loginButton.jpg" 
name="fSubmit">
                                                                                
</td>
                                                                        </tr>
                                                                </table>
                                                        </cfform>
                                                </td>
                                        </tr> 
                                </table>
                                <!--- Deuxième form --->
                                <table width="100%" cellspacing="0" 
cellpadding="0" bgcolor="white">
                                        <tr>
                                                <td align="center" valign="top">
                                                        <img 
src="<cfoutput>#Application.Root#</cfoutput>/img/checkYourEmail.jpg" border="0">
                                                </td>
                                        </tr>
                                        <tr>
                                                <td align="center" valign="top">
                                                        <cfform name="form1" 
action="#vForm2#" method="post" 
style="margin:0px;">
                                                                <table 
align="Center" cellspacing="1" cellpadding="1">
                                                                        <tr>
                                                                                
<td align="left" valign="top" class="fontGrey">
                                                                                
        <cfif session.lang is "fr">Nom d'usager<cfelse>Username</cfif>
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top">
                                                                                
        <cfset vMessage = "Please indicate your username to acces the 
Webmail.">
                                                                                
        <cfif session.lang is "fr">
                                                                                
                <cfset vMessage = "Veuillez indiquer votre nom d'usager pour 
accéder le webmail.">
                                                                                
        </cfif>
                                                                                
        <cfinput type="text" name="user" required="yes" 
message="#vMessage#" validate="noblanks">
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top" class="fontGrey">
                                                                                
        <cfif session.lang is "fr">Mot de passe<cfelse>Password</cfif>
                                                                                
</td>
                                                                        </tr>
                                                                        <tr>
                                                                                
<td align="left" valign="top">
                                                                                
        <cfset vMessage = "Please indicate your passwor

<Prev in Thread] Current Thread [Next in Thread>