Skip to main content

Modifying Order.csp

Step one is to add instructions and a text box to the Order.csp page.

—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>
    <script language="cache" runat="server">
        Set ord = %session.Data("Order")
    </script>
    <form method="post" action="Cinema.TicketConfirm.cls"     name="OrderTickets">
    <csp:loop counter="num" from=1 to=#(ord.Items.Count())#>
        . . .
    </csp:loop>
    Total Charge:    <input 
            type="text" 
            name="TotalCharge" 
            size=5
            readonly value=#($FN(ord.Total, "", 2))#> <br><br>
    If you would like confirmation of your order, 
    please enter your e-mail address
    <input type="text" name="OrderEmail" size=35> <br><br>
    <input type="submit" name="CompleteOrder" value="Complete Order">
    </form>
</csp:if>
</body> </html>
FeedbackOpens in a new tab