This is a multi-part message in MIME format.
------=_NextPart_000_000A_01BFC6AE.0C1560C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
All,
Hello, I am new to the list and to CF. I have a quick question about CF =
programming techniques. I have a site where I am using a standard =
navigation and layout (set up using nested tables so that the content is =
always centered). I am using one cell for all of the data (See Code =
Listing Below) and would like to know how short of using a snippit I can =
insert this table without typing (I'm Lazy) . The problem is that the =
"top" part of the table and the "bottom" part of the table are static =
and the contect is dynamic. I do not want to do this:
<cfinclude template=3D"top_table.cfm">
<cfinclude template=3D"content.cfm">
<cfinclude template=3D"bottom_table.cfm">
So short of hard coding the table in all of the pages, what are my other =
options?
Code Listing to follow.
Thank You,
Kevin Queen
IBM Learner Support
1500 Riveredge Pkwy, 19E04
Atlanta, Georgia 30328
(770)644-5050 or t/l 237-5050
I have not lost my mind, it is backed up on CD somewhere.
-------------------------------------------------------------------------=
-------------------------------------------------------------------------=
-----
Current Code:
<!-- Begin the Main Table (3x1) -->
<TABLE cellpadding=3D"0" cellspacing=3D"0" cols=3D"3" align=3D"center" =
border=3D"0" name=3D"Main_Table">
<TR>
<TD width=3D"50%"><!-- Spacer Cell -->
</TD>
<TD>
<!-- Begin the Content Table (2x4) -->
<TABLE cellpadding=3D"0" cellspacing=3D"0" cols=3D"2" =
align=3D"center" border=3D"0" name=3D"Content_Table">
<TR>
<TD colspan=3D"2">
<!-- Main Title Bar -->
<IMG name=3D"Title_Bar" src=3D"images/Main_Banner.gif" =
width=3D"610" height=3D"90" alt=3D"Welcome to Tau Kappa Epsilon" =
border=3D"0">
<!-- End Main Title Bar -->
</TD>
</TR>
<TR>
<TD><IMG name=3D"ID" src=3D"images/ID_Box.gif" width=3D"110" =
height=3D"30" alt=3D"" border=3D"0">
<!-- Spacer Cell -->
</TD>
<TD>
<!-- "Tree" Navigational Bar -->
<IMG name=3D"Tree" src=3D"images/Tree_Bar.gif" width=3D"500" =
height=3D"30" alt=3D"" border=3D"0">
<!-- End "Tree" Navigational Bar -->
</TD>
</TR>
<TR>
<TD rowspan=3D"3">
<!-- Navigation Images Table Start -->
<TABLE border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =
width=3D"100">
<TR>
<!-- Spacer Images -->
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"100" =
height=3D"1" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"1" border=3D"0"></TD>
<!-- End Spacer Images -->
</TR>
<TR valign=3D"top">
<!-- Home Button -->
<TD><IMG name=3D"btnHome" usemap=3D"#Home" =
src=3D"images/Navigation_Bar/Navigation_Bar_r01_c1.gif" width=3D"100" =
height=3D"45" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"45" border=3D"0"></TD>
<!-- End Home Button -->
</TR>
<TR valign=3D"top">
<!-- Information Button -->
<TD><IMG name=3D"btnInformation" usemap=3D"#Information" =
src=3D"images/Navigation_Bar/Navigation_Bar_r02_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End Information Button -->
</TR>
<TR valign=3D"top">
<!-- Directions Button -->
<TD><IMG usemap=3D"#Directions" name=3D"btnDirections" =
src=3D"images/Navigation_Bar/Navigation_Bar_r03_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End Directions Button -->
</TR>
<TR valign=3D"top">
<!-- Scrapbook Button -->
<TD><IMG usemap=3D"#Scrapbook" name=3D"btnScrapbook" =
src=3D"images/Navigation_Bar/Navigation_Bar_r04_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End Scrapbook Button -->
</TR>
<TR valign=3D"top">
<!-- Find Information Button -->
<TD><IMG usemap=3D"#Find" name=3D"btnFind" =
src=3D"images/Navigation_Bar/Navigation_Bar_r05_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End Information Button -->
</TR>
<TR valign=3D"top">
<!-- Restricted Button -->
<TD><IMG usemap=3D"#Restricted" name=3D"btnRestricted" =
src=3D"images/Navigation_Bar/Navigation_Bar_r06_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"><TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End Restricted Button -->
</TR>
<TR valign=3D"top">
<!-- VFM Button -->
<TD><IMG usemap=3D"#VFM" name=3D"btnVFM" =
src=3D"images/Navigation_Bar/Navigation_Bar_r07_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End VFM Button -->
</TR>
<TR valign=3D"top">
<!-- Contact Button -->
<TD><IMG usemap=3D"#Contact" name=3D"btnContact" =
src=3D"images/Navigation_Bar/Navigation_Bar_r08_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End Contact Button -->
</TR>
<TR valign=3D"top">
<!-- Search Button -->
<TD><IMG usemap=3D"#Search" name=3D"btnSearch" =
src=3D"images/Navigation_Bar/Navigation_Bar_r09_c1.gif" width=3D"100" =
height=3D"35" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"35" border=3D"0"></TD>
<!-- End Search Button -->
</TR>
<TR valign=3D"top">
<!-- Empty Space -->
<TD><IMG name=3D"Navigation_Bar_r10_c1" =
src=3D"images/Navigation_Bar/Navigation_Bar_r10_c1.gif" width=3D"100" =
height=3D"225" border=3D"0"></TD>
<TD><IMG src=3D"images/Navigation_Bar/shim.gif" width=3D"1" =
height=3D"225" border=3D"0"></TD>
<!-- End Empty Space -->
</TR>
</TABLE>
<!-- End Navigation Images Table -->
</TD>
</TR>
<TR>
<TD valign=3D"top">
CONTENT GOES HERE
</TD>
</TR>
<TR>
<TD>
<!-- Spacer Cell-->
</TD>
<TD>
<!-- Spacer Cell-->
</TD>
</TR>
<TR>
<TD>
<!-- Spacer Cell -->
</TD>
<TD><!-- Copyright Bar -->
<IMG src=3D"images/Copyright_Bar.gif" width=3D"500" height=3D"30" =
alt=3D"" border=3D"0"><!-- End Copyright Bar -->
</TD>
</TR>
</TABLE>
<!-- End Content Table -->
</TD>
<TD width=3D"50%">
<!-- Spacer Cell -->
</TD>
</TR>
</TABLE>
<!-- End Main Table -->
------=_NextPart_000_000A_01BFC6AE.0C1560C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hello, I am new to the list and to =
CF. I have=20
a quick question about CF programming techniques. I have a site =
where I am=20
using a standard navigation and layout (set up using nested tables so =
that the=20
content is always centered). I am using one cell for all of the data =
(See Code=20
Listing Below) and would like to know how short of using a snippit I can =
insert=20
this table without typing (I'm Lazy) . The problem is that the =
"top" part=20
of the table and the "bottom" part of the table are static and the =
contect is=20
dynamic. I do not want to do this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><cfinclude=20
template=3D"top_table.cfm"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><cfinclude=20
template=3D"content.cfm"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><cfinclude=20
template=3D"bottom_table.cfm"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>So short of hard coding the table in =
all of the=20
pages, what are my other options?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Code Listing to follow.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank You,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Kevin Queen</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>IBM Learner Support<BR>1500 Riveredge =
Pkwy,=20
19E04<BR>Atlanta, Georgia 30328<BR>(770)644-5050 or t/l =
237-5050</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have not lost my mind, it is backed =
up on CD=20
somewhere.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>----------------------------------------------------------------=
-------------------------------------------------------------------------=
--------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Current Code:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><!-- Begin the Main Table (3x1)=20
--><BR><TABLE cellpadding=3D"0" cellspacing=3D"0" cols=3D"3" =
align=3D"center"=20
border=3D"0" =
name=3D"Main_Table"><BR> <TR><BR> <TD=20
width=3D"50%"><!-- Spacer Cell=20
--><BR> </TD><BR> <TD><BR> &nbs=
p;<!--=20
Begin the Content Table (2x4) --><BR> <TABLE=20
cellpadding=3D"0" cellspacing=3D"0" cols=3D"2" align=3D"center" =
border=3D"0"=20
name=3D"Content_Table"><BR> <TR><BR> =
; <TD=20
colspan=3D"2"><BR> <!-- Main Title =
Bar=20
--><BR> <IMG name=3D"Title_Bar"=20
src=3D"images/Main_Banner.gif" width=3D"610" height=3D"90" =
alt=3D"Welcome to Tau Kappa=20
Epsilon" border=3D"0"><BR> <!-- End =
Main Title=20
Bar=20
--><BR> </TD><BR> =
</TR><BR> <TR><BR> &n=
bsp; <TD><IMG=20
name=3D"ID" src=3D"images/ID_Box.gif" width=3D"110" height=3D"30" =
alt=3D""=20
border=3D"0"><BR> <!-- Spacer Cell=20
--><BR> </TD><BR> =
<TD><BR> <!--=20
"Tree" Navigational Bar --><BR> <IMG=20
name=3D"Tree" src=3D"images/Tree_Bar.gif" width=3D"500" height=3D"30" =
alt=3D""=20
border=3D"0"><BR> <!-- End "Tree" =
Navigational=20
Bar=20
--><BR> </TD><BR> =
</TR><BR> <TR><BR> &n=
bsp; <TD=20
rowspan=3D"3"><BR> <!-- Navigation =
Images Table=20
Start --><BR> <TABLE =
border=3D"0"=20
cellpadding=3D"0" cellspacing=3D"0"=20
width=3D"100"><BR> <TR>=
<BR> <!--=20
Spacer Images=20
--><BR> <TD><I=
MG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"100" height=3D"1"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"1"=20
border=3D"0"></TD><BR> =
<!--=20
End Spacer Images=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Home=20
Button=20
--><BR> <TD><I=
MG=20
name=3D"btnHome" usemap=3D"#Home"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r01_c1.gif" width=3D"100" =
height=3D"45"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"45"=20
border=3D"0"></TD><BR> =
<!--=20
End Home Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!--=20
Information Button=20
--><BR> <TD><I=
MG=20
name=3D"btnInformation" usemap=3D"#Information"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r02_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End Information Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Directions=20
Button=20
--><BR> <TD><I=
MG=20
usemap=3D"#Directions" name=3D"btnDirections"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r03_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End Directions Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Scrapbook=20
Button=20
--><BR> <TD><I=
MG=20
usemap=3D"#Scrapbook" name=3D"btnScrapbook"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r04_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End Scrapbook Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Find=20
Information Button=20
--><BR> <TD><I=
MG=20
usemap=3D"#Find" name=3D"btnFind"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r05_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End Information Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Restricted=20
Button=20
--><BR> <TD><I=
MG=20
usemap=3D"#Restricted" name=3D"btnRestricted"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r06_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"><TD><BR> &=
nbsp;<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End Restricted Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
VFM Button=20
--><BR> <TD><I=
MG=20
usemap=3D"#VFM" name=3D"btnVFM"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r07_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End VFM Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Contact=20
Button=20
--><BR> <TD><I=
MG=20
usemap=3D"#Contact" name=3D"btnContact"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r08_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End Contact Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Search=20
Button=20
--><BR> <TD><I=
MG=20
usemap=3D"#Search" name=3D"btnSearch"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r09_c1.gif" width=3D"100" =
height=3D"35"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"35"=20
border=3D"0"></TD><BR> =
<!--=20
End Search Button=20
--><BR> </TR><BR> =
<TR=20
valign=3D"top"><BR> <!-- =
Empty=20
Space=20
--><BR> <TD><I=
MG=20
name=3D"Navigation_Bar_r10_c1"=20
src=3D"images/Navigation_Bar/Navigation_Bar_r10_c1.gif" width=3D"100" =
height=3D"225"=20
border=3D"0"></TD><BR> =
<TD><IMG=20
src=3D"images/Navigation_Bar/shim.gif" width=3D"1" height=3D"225"=20
border=3D"0"></TD><BR> =
<!--=20
End Empty Space=20
--><BR> </TR><BR> =
</TABLE><BR> &=
nbsp; <!--=20
End Navigation Images Table=20
--><BR> </TD><BR> =
</TR><BR> <TR><BR> &n=
bsp; <TD=20
valign=3D"top"></FONT></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2> =
=20
CONTENT GOES HERE</FONT></STRONG></DIV>
<DIV><FONT face=3DArial =
size=3D2><STRONG> </STRONG> =20
</TD><BR> </TR><BR> &=
nbsp;<TR><BR> <TD><BR> &nbs=
p; <!--=20
Spacer=20
Cell--><BR> </TD><BR> &n=
bsp; <TD><BR> <!--=20
Spacer=20
Cell--><BR> </TD><BR> &n=
bsp; </TR><BR> <TR><BR> &nbs=
p; <TD><BR> <!--=20
Spacer Cell=20
--><BR> </TD><BR> =
<TD><!--=20
Copyright Bar --><BR> <IMG=20
src=3D"images/Copyright_Bar.gif" width=3D"500" height=3D"30" alt=3D""=20
border=3D"0"><!-- End Copyright Bar=20
--><BR> </TD><BR> =
</TR><BR> </TABLE><BR> &nbs=
p;<!--=20
End Content Table =
--><BR> </TD><BR> <TD=20
width=3D"50%"><BR> <!-- Spacer Cell=20
--><BR> </TD><BR> </TR><BR></TABLE><=
BR><!--=20
End Main Table --></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_000A_01BFC6AE.0C1560C0--
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.