Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Kirkus Review</title>
- </head>
- <body>
- <center>
- <?php
- function col($c) {
- echo "<div class="container">
- <div class="book-detail">
- <img src=" %PUTANJA_DO_SLIKE% "></img>
- <h3> %NASLOV_KNJIGE% </h3>
- <p> %SAŽETAK_KNJIGE% </p>
- </div>
- <div class="book-review">
- <h3 class=" %KLASA_REJTINGA% "> %REJTING% </h3>
- <p> %RECENZIJA% </p>
- </div>
- </div>";
- }
- ?>
- <table>
- <?php for($c = 0, $i = 0;$i < 8;$i++): $c = $c % 2 == 0 ? 1 : 0; ?>
- <tr>
- <?php for($j = 0;$j < 8;$j++): $c = $c % 2 == 0 ? 1 : 0; ?>
- <?php col($c) ?>
- <?php endfor; ?>
- </tr>
- <?php endfor; ?>
- </table>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement