![MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Скачать руководство пользователя страница 47](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-cfml-language/coldfusion-4-5-cfml-language_reference_3287257047.webp)
Chapter 1: ColdFusion Tags
23
CFCOL
Defines table column header, width, alignment, and text. Only used inside a
CFTABLE
.
Syntax
<CFCOL HEADER="text"
WIDTH="number"
ALIGN="position"
TEXT="text">
HEADER
The text to use for the column’s header.
WIDTH
The width of the column in characters (the default is 20). If the length of the data
displayed exceeds the width value, the data is truncated to fit.
ALIGN
Column alignment, Left, Right, or Center.
TEXT
Double-quote delimited text that determines what displays in the column. The
rules for the text attribute are identical to the rules for CFOUTPUT sections,
meaning that it can consist of a combination of literal text, HTML tags, and query
record set field references. This means you can embed hyperlinks, image
references, and even input controls within table columns.
Example
<!--- This example shows the use of CFCOL and CFTABLE
to align information returned from a query --->
<!--- this query selects employee information from the
cfsnippets data source --->
<CFQUERY NAME="GetEmployees" DATASOURCE="cfsnippets">
SELECT Emp_ID, FirstName, LastName, EMail, Phone, Department
FROM Employees
</CFQUERY>
<HTML>
<HEAD>
<TITLE>
CFCOL Example
</TITLE>
</HEAD>
<BODY>
<H3>CFCOL Example</H3>
<!--- Note the use of the HTMLTABLE attribute to display the
CFTABLE as an HTML table, rather simply as PRE formatted information --->
<CFTABLE QUERY="GetEmployees" STARTROW="1" COLSPACING="3" HTMLTABLE>
<!--- each CFCOL tag sets the width of a column in the table,
Содержание COLDFUSION 4.5-CFML LANGUAGE
Страница 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Страница 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Страница 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Страница 296: ...272 CFMLLanguageReference INPUT TYPE text NAME number2 BR INPUT TYPE submit NAME submit VALUE Add FORM BODY HTML...
Страница 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Страница 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Страница 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Страница 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Страница 557: ...Chapter 2 ColdFusion Functions 533 P CFOUTPUT Value i is employee keysToStruct i CFOUTPUT P CFLOOP CFIF BODY HTML...
Страница 584: ...560 CFMLLanguageReference...
Страница 594: ...570 CFMLLanguageReference...