Example #1
0
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<title>Cineworld Listings For
<?php 
if (isset($_GET["CINEMA"])) {
    $cinema_name = get_cinema_name($_GET["CINEMA"]);
    print $cinema_name;
}
?>
</title>
<link title="style" type="text/css" rel="stylesheet" href="iphone.css"/>

<?php 
if (isset($_GET["CINEMA"])) {
    get_films($_GET["CINEMA"]);
    ?>

<script type="text/javascript">
<!--
function renderEntries()
{
    var output = document.getElementById("listings");
    //document.writeln("length: " + entries.films.length);
    /*
    document.writeln("length: " + testEntries.prefs.length + "<br>");
    for(var i = 0; i < testEntries.prefs.length; i++) {
        document.writeln("title: " + testEntries.prefs[i].title + "<br>");
        document.writeln("director: " + testEntries.prefs[i].director + "<br>");
    }
    */
Example #2
0
<?php

require '../model/functions.php';
get_header();
get_films();
get_footer();