コード例 #1
0
					<?php 
        echo $entry->getQty();
        ?>
					<?php 
        if ($entry->isSponsor()) {
            ?>
						Table Sponsorship (8 Tickets)
					<?php 
        }
        ?>
				</td>
			</tr>
			<tr>
				<th>Meal Type:</th>
				<td><?php 
        echo $entry->isUpgraded() ? 'Prime Rib Dinner' : 'Turkey or Vegetarian Dinner';
        ?>
</td>
			</tr>
			<?php 
        if (!$entry->isUpgraded()) {
            ?>
				<tr>
					<th>Vegetarian Meals:</th>
					<td><?php 
            echo $entry->getVegetarianQty();
            ?>
</td>
				</tr>
			<?php 
        }
コード例 #2
0
							</select>
						</td>
					</tr>
					<tr>
						<th>Price Per Ticket or Table:</th>
						<td><input name="price_per_qty" value="$<?php 
                        echo number_format($entry->getPricePerQty(), 2);
                        ?>
"></td>
					</tr>
					<tr>
						<th>Upgraded Meal:</th>
						<td>
							<select name="is_upgraded">
								<option value="0"<?php 
                        if (!$entry->isUpgraded()) {
                            ?>
 selected<?php 
                        }
                        ?>
>
									No
								</option>
								<option value="1"<?php 
                        if ($entry->isUpgraded()) {
                            ?>
 selected<?php 
                        }
                        ?>
>
									Yes