Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

検索結果の表示

SearchResults ページは、タイトル文と映画リスト以外は TopPicks ページと同様の構成で表示されます。

ここでは異なるクエリを使用して、ページの変更方法を学習します。

—SearchResults.csp—
SearchResults.csp
<html> <body>
<font color="#0000FF" size="+2"><b>Search Results</b></font>
<table border=0>
<!--Query goes here-->
<csp:while condition="FilmList.Next()">
    <tr>
    <td>
    <b>#(FilmList.Get("Title"))#</b><br>
    #(FilmList.Get("Description"))#<br>
    <b>Genre</b> #(FilmList.Get("CategoryName"))#
    <b>Length</b> #(FilmList.Get("Length"))#
    <b>Rating</b> #(FilmList.Get("Rating"))#<br>
    <br>
    </td>
    <td>
    <a href='ShowTimes.csp?FilmID=#(FilmList.Get("ID"))#'>
        <img src="ShowTimes.gif" width="130" height="39" border="0">
    </a>
    </td>
    </tr>
</csp:while>
</table>
</body> </html>
FeedbackOpens in a new tab