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?

2 ページ間のリンク

これで、URL、さらに Request オブジェクトを介して、FilmID がどのように ShowTimes ページに反映されるのか、またクエリで FilmID がどのように使用されるかを理解したと思います。TopPicks ページに戻って、ユーザが ShowTimes の表示のためにクリックするボタンを追加しましょう。

最初に、ボタンを表すイメージ・タグ generated description: showtimessample.gif を追加します。

<img src="ShowTimes.gif" width="130" height="39" border="0">

このイメージ (img) タグは、以下のように TopPicks.csp ページ内に配置されています。

—TopPicks.csp—
TopPicks.csp
<html> <body>
<h2><font color="#0000FF">Today's Top Picks</font></h2>
<table border=0>
<csp:query name=FilmList classname="Cinema.Film" queryname="TopFilms">
<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>
    <img src="ShowTimes.gif" width="130" height="39" border="0">
    </td>
    </tr>
    </csp:while>
    </table>
</body> </html>

ShowTimes.gif の場所およびそのファイルを TopPicks.csp で表示されるように配置する方法については、generated description: handson.gif をクリックしてください。

FeedbackOpens in a new tab