コード例 #1
0
ファイル: receipt.php プロジェクト: Splerge/splerge.github.io
		<tr>
			<td>Total:</td>
			<td><?php 
echo $_SESSION['receipt']['sum'];
?>
</td>
		</tr>
	</table>
	<?php 
foreach ($_SESSION['receipt']['cart'] as $k => $v) {
    foreach ($_SESSION['receipt']['cart'][$k]['seats'] as $k2 => $v2) {
        for ($i = 0; $i < (int) $v2; $i++) {
            echo "<table>";
            echo "<tr><td>Silverado</td></tr>";
            echo "<tr><td>Session Time:</td><td>";
            echo $_SESSION['receipt']['cart'][$k]["sessiontime"];
            echo " " . date("l", $_SESSION['receipt']['cart'][$k]["date"]);
            echo "</td></tr>";
            echo "<tr><td>Movie:</td><td>";
            echo getMovieName($k);
            echo "</td></tr><tr><td>Ticket:</td><td>";
            echo getSeatTypeName($k2);
            echo "</td></tr>";
            echo "</table>";
        }
    }
}
?>
	
</body>
</html>
コード例 #2
0
ファイル: forum.php プロジェクト: a4501150/CS425
                <h3>Topics Regarding Movie</h3> <br>
				<p> <?php 
displayMovieTopics();
?>
 </p>
                <div class="clear"></div>
				
				
				<?php 
if (isset($_SESSION['LoginName'])) {
    echo '<button class=flip1> editor </button>';
    echo "\n\t\t\t\t<form class=editorf1 action=\"\" method=\"post\">\n\t\t\t\t<textarea name=\"tinM\" cols=\"100\" rows=\"1\" name=\"contents\" \\'>Type your title here.</textarea>\n\t\t\t\t<textarea name=\"cinM\" cols=\"100\" rows=\"10\" name=\"contents\" \\'>Type your content here.</textarea>\n\t\t\t\t<br><input type=\"submit\" value=\"submit thread\">\n\t\t\t\t\n\t\t\t\tchoose a movie <select name=\"mselect\" required> ";
    echo '<option value =\'\' selected=\'selected\' >----must select one---</option>';
    foreach (fetchMovieOptions() as $rows) {
        foreach ($rows as $value) {
            echo "<option value ={$value} >" . getMovieName($value) . '</option>';
        }
    }
    echo "</select>\n\t\t\t\t\n\t\t\t\t</form>";
}
?>
				
				<!-- fantastic required html5 mark -->
				
            </div>

            <div class="container">
                <h3>Topics Regarding Theatre</h3> <br>
				<p> <?php 
displayTheatreTopics();
?>
コード例 #3
0
ファイル: cart.php プロジェクト: Splerge/splerge.github.io
 	<header>
		<h1><center>Silverado Cinema's</center></h1>
	
	</header>
	
	<?php 
require_once "nav-view.php";
echo "{$nav}";
?>
	<div class="content">
	<?php 
if (array_key_exists('cart', $_SESSION)) {
    echo "<form action=\"cart\" method=\"POST\"><table style=\"width:35%\">";
    foreach ($_SESSION['cart'] as $k => $v) {
        //echo "<tr><th>";
        $mvename = getMovieName($k);
        echo "<p class=\"moviep\">{$mvename}</p> <button type='submit' name='deleteFromCart' value='{$k}'>Delete From Cart</button>";
        echo "<table>";
        echo "<tr><th>Session Time:</th><td>";
        echo date("l", (double) $v['date']);
        echo " ";
        echo $v['sessiontime'];
        echo "</td></tr>";
        echo "<tr>";
        echo "<th rowspan=\"";
        echo count($v['seats']);
        echo "\">Ticket Type:</th>";
        foreach ($v['seats'] as $k2 => $v2) {
            echo "<td>{$v2} ";
            echo str_repeat('&nbsp;', 1);
            echo getSeatTypeName($k2);