Справочник Пользователя для Red Hat Version4.1

Скачать
Страница из 156
Customizing Search Result Templates
70 Netscape Directory Server Gateway Customization Guide
<TH NOWRAP>Name<TH NOWRAP>Phone Number<TH NOWRAP>E-Mail Address<TH 
NOWRAP>Title<TH NOWRAP>Organizational Unit
</TR>
<TR>
<TD NOWRAP>
<!-- DS_ATTRIBUTE "attr=dn" "syntax=dn" "label=" -->
onMouseOver="window.status=’Click here to view this entry in detail’; 
return true">
<!-- DS_ATTRIBUTE "attr=cn" "numfields=0" "defaultvalue=name" 
"options=readonly" -->
</A>
<TD NOWRAP>
<!-- DS_ATTRIBUTE "attr=telephoneNumber" "syntax=tel" -->
<TD NOWRAP>
<!-- DS_ATTRIBUTE "attr=mail" "syntax=mail" -->
<TD NOWRAP>
<!-- DS_ATTRIBUTE "attr=title" --></TD>
<TD NOWRAP>
<!-- DS_ATTRIBUTE “attr=ou” “syntax=cis” --></TD>
</TR>
In Example 6.9, the additional HTML table heading syntax adds the 
Organizational Unit label to the heading row of the table. The additional 
DS_ATTRIBUTE directive syntax adds a cell to the body row of the table 
indicating that the information is stored in the ou attribute of the entry and the 
string is case insensitive.
Removing Information from Search Results
To remove information from a search result, remove the tag that creates the 
table head cell labeling the attribute and the tag that creates the Directory 
Server call for the corresponding attribute value from the corresponding list-
<search object>.html file.
For example, to remove the NT Domain attribute from the list-NT-People.html 
search results file, delete the <TH NOWRAP>NT Domain tag from table 
heading. The table cell containing the <!-- DS_ATTRIBUTE 
“attr=ntuserdomainid” “syntax=ntdomain” --> directive would also need to be 
removed.