チケット注文の処理
それでは、ShowTimes ページに戻り、 ボタンを追加しましょう。
最初に、テーブルにセルを (<td> タグで) 追加し、Tickets.gif イメージを配置します (<img> タグを使用)。
—ShowTimes.csp—
ShowTimes.csp
<html> <body>
<csp:class encoded=1 super="%CSP.Page,Cinema.Utils">
<csp:query
name="Times" classname="Cinema.Show"
queryname="ShowTimes"
P1='#(%request.Data("FilmID",1))#'>
<csp:object
name="Film"
classname="Cinema.Film"
objid='#(%request.Data("FilmID",1))#'>
<font><b>Today's Show Times for #(Film.Title)#</b></font>
<table cellpadding=5> <tr> ... </tr>
<csp:while condition="Times.Next()">
<tr>
<td>#(Times.Get("StartTime"))#</td>
<td>#(Times.Get("TheaterName"))#</td>
<td align="center">
<img src="Tickets.gif" width="130" height="39" border="0"
alt="Click to order tickets for this show">
</td>
</tr>
</csp:while>
</table>
</body> </html>
Tickets.gif の場所およびそのファイルが ShowTimes.csp で表示されるように配置する方法については、 をクリックしてください。