Beispiel #1
0
            <div class='newsContent'>
                
                    <div class='newsItem'>
                        <h3>
                            <a href="../news/<?php 
    echo $row['Slug'];
    ?>
">
                                <?php 
    echo $row['Headline'];
    ?>
                            </a>
                        </h3>
                        <div class="details">
                            <?php 
    echo htmlspecialchars(dispDate($row['DateSubmitted'])) . " " . htmlspecialchars(dispTime($row['DateSubmitted']));
    ?>
                             | Author: <?php 
    echo $row['FirstName'] . " " . $row['LastName'];
    ?>

                        </div>
                        <a href="../news/<?php 
    echo $row['Slug'];
    ?>
">
                            <div class="description">
                                <img style='float:left;max-height:75px;padding-right:10px;' src='<?php 
    echo $row['Image'];
    ?>
' />
Beispiel #2
0
    }
    ?>
        </tr>
        
        <?php 
    //STRIPPED DOWN VERSION FOR ONLY ONE MOVIE
    echo "<tr style='background-color:#eee;'>";
    //the days
    for ($j = 0; $j < 7; $j++) {
        //beginning of cell
        echo '<td>';
        //the dates are in results array
        foreach ($movieSchedule as $date) {
            //the same days
            if (date('m/j', time() + 86400 * $j) == date('m/j', strtotime($date['Date']))) {
                echo dispTime($date['Date']) . '<br />';
            }
        }
        //end of cell
        echo '</td>';
    }
    //end of row
    echo '</tr>';
    ?>
        
    </table>
<?php 
}
?>
    </section>
Beispiel #3
0
for ($i = 0; $i < count($movieItems); $i++) {
    echo "<tr ";
    if ($i % 2 != 0) {
        echo "style='background-color:#eee;'";
    }
    echo "><td><a href='../movies/" . $movieItems[$i]['MovieID'] . "'>" . htmlspecialchars($movieItems[$i]['Title']) . '</a></td>';
    //the days
    for ($j = 0; $j < 7; $j++) {
        //beginning of cell
        echo '<td>';
        //the dates are in results array
        foreach ($results as $row) {
            if ($movieItems[$i]['Title'] == $row['Title']) {
                //the same days
                if (date('m/j', time() + 86400 * $j) == date('m/j', strtotime($row['Date']))) {
                    echo dispTime($row['Date']) . '<br />';
                }
            }
        }
        //end of cell
        echo '</td>';
    }
    //end of row
    echo '</tr>';
}
?>
        
    </table>
    
    <br />