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?

Order ページの生成

これが Order ページの最初です。まず、<csp:class> タグを使用して (ShowTimes ページで行ったように) スーパー・クラスとして %CSP.PageOpens in a new tabCinema.UtilsOpens in a new tab を宣言します。この設定で定義されたユーティリティ・メソッドを簡単に呼び出すことができるように Cinema.UtilsOpens in a new tab をスーパー・クラスとして宣言します。

次に、Order の値が Session オブジェクトで定義されているかどうかをテストする <csp:if> タグを使用します。定義されていない場合、Order ページは空白で何もできません。

Session オブジェクトに Order の値がある (注文がある) 場合、YourTicketOrder アイコンから始まるページ・コンテンツを表示します。

—Order.csp—
Order.csp
<html> <head></head>
<body>
<csp:class super="%CSP.Page,Cinema.Utils">
<csp:if condition='$D(%session.Data("Order"))'>
    <img src="YourTicketOrder.gif"><br>
</csp:if>
</body> </html>
FeedbackOpens in a new tab