<?xml version="1.0" encoding="UTF-8"?>

 
<output>
     
    <ticket>
        <line size="0">
            <text align="center" length="42"  bold="false" underline="true"> Welcome</text>
        </line>
        
        <line size="0">
               <text align="left" length="8"  bold="true"  underline="false">Date</text>
               <text align="left" length="20"  bold="false"  underline="true">May 08, 2008</text>
        </line>
        <line size="0">
               <text align="left" length="8"  bold="true"  underline="false">Guest:</text>
               <text align="right" length="8"  bold="false"  underline="true">8</text>
               <text align="left" length="5"  bold="false"  underline="false"> </text>
               <text align="left" length="8"  bold="true"  underline="false">Ticket:</text>
               <text align="left" length="8"  bold="false"  underline="true">0001</text>
        </line>
        
        <line size="0">
               <text align="left" length="8"  bold="true"  underline="false">Table:</text>
               <text align="left" length="29"  bold="false"  underline="true">B1, B2</text>
        </line>
        
        <line size="0">
               <text align="left" length="8"  bold="true"  underline="false">Adult:</text>
               <text align="right" length="8"  bold="false"  underline="true">5</text>
               <text align="left" length="5"  bold="false"  underline="false"> </text>
               <text align="left" length="8"  bold="true"  underline="false">K(1-3):</text>
               <text align="right" length="8"  bold="false"  underline="true">2</text>
        </line>
        <line size="0">
               <text align="left" length="8"  bold="true"  underline="false">K(4-7):</text>
               <text align="right" length="8"  bold="false"  underline="true">1</text>
               <text align="left" length="5"  bold="false"  underline="false"> </text>
               <text align="left" length="8"  bold="true"  underline="false">K(7-11):</text>
               <text align="right" length="8"  bold="false"  underline="true">0</text>

        </line>
        
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
            
        <cut></cut>
        
        <line size="0">
            <text align="center" length="42"  bold="false" underline="true"> $subject.</text>
        </line>
        <line size="0">
               <text align="center" length="42"  bold="true"  underline="true"> | CK| DC| SP| LM| DR| ST| UT| WT| VP| F </text>
        </line>
        #foreach ($ticketline in $ticket)
        <line size="0">
             #if ($ticketline.CustomerType == "Child(4-16)")
             <text align="left" length="2"   bold="true"  underline="false">K4</text>
             #end

             #if ($ticketline.CustomerType == "Child(0-3)")
             <text align="left" length="2"   bold="true"  underline="false">K1</text>
             #end

             #if ($ticketline.CustomerType == "Senior")
             <text align="left" length="2"   bold="true"  underline="false">Sr</text>
             #end
             
             #if ($ticketline.CustomerType == "Adult")
             <text align="left" length="2"   bold="true"  underline="false">Ad</text>
             #end

             <text align="left" length="40"   bold="false"  underline="false">|   |   |   |   |   |   |   |   |   |   </text>


        </line> 
        <line size="0">
            
             <text align="right" length="2"   bold="true"  underline="true">$ticketline.Customer</text>
            
             <text align="left" length="40"   bold="false"  underline="true">|   |   |   |   |   |   |   |   |   |   </text>

        </line> 
       #end 
               <line size="0"> <text  align="left" length="42"   bold="false"  underline="false">------------------------------------------</text></line> 
               <line size="0"> <text  align="center" length="40"   bold="false"  underline="false">Thank you.</text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
               <line size="0"> <text  align="left" length="40"   bold="false"  underline="false"> </text></line> 
       <cut></cut>
     </ticket>


</output>
