コード例 #1
0
		
		 <strong>Order by:</strong>
		<select name="orderBy">
			<option value="title">Title</option>
			<option value="rating">Rating</option>
		</select>
		<br />
		<input type="submit" value="Search Movies" name="searchForm" />
		</form>
		
		<hr> <br />
		<div style="float: left">
		<?php 
//Displays all products by default
if (!isset($_GET['searchForm'])) {
    $records = displayAllMovies();
} else {
    $records = filterProucts();
}
foreach ($records as $record) {
    echo "<a target='getMoreInformationIframe' href='getMoreInformation.php?movie_id=" . $record['movie_id'] . "'>";
    echo $record['title'];
    echo "</a>";
    echo " - " . $record['description'];
    echo " - " . $record['rating'];
    echo " - " . $record['categoryname'] . "<br />";
}
?>
		</div>
		<div style="float: left">
			<iframe src="getMoreInformation.php" name="getMoreInformationIframe" width="250" height="300" frameborder="0">
コード例 #2
0
            <li role="presentation"><a href="#users" aria-controls="users" role="tab" data-toggle="tab">Utilisateurs</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="movies">
                <table class="table table-hover table-condensed">
                    <thead>
                        <tr>
                            <th>Titre</th>
                            <th>Réalisateur</th>
                            <th>Année de sortie</th>
                            <th>Actions</th>
                        </tr>
                    </thead>            
                    <tbody>
                        <?php 
displayAllMovies();
?>
                    </tbody>
                </table>
            </div>
            <div role="tabpanel" class="tab-pane" id="users">
                <table class="table table-hover table-condensed">
                    <thead>
                        <tr>
                            <th>Nom d'utilisateur</th>
                            <th>Mot de passe</th>
                            <th>Action</th>
                        </tr>
                    </thead>            
                    <tbody>
                        <?php