Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/example.tpl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mark Rolich  >  Extended Generic Pager  >  examples/example.tpl.php  >  Download  
File: examples/example.tpl.php
Role: Example script
Content type: text/plain
Description: General template for examples
Class: Extended Generic Pager
Paginate data listings from arrays, CSV or MySQL
Author: By
Last change:
Date: 2 years ago
Size: 560 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?php echo $pageTitle?></title>
    <link rel="stylesheet" type="text/css" href="example.css">
</head>
<body>
<?php if (!empty($data)) { ?>

<table class="data">
<?php foreach ($data as $row) { ?>
<tr><td><?php echo implode('</td><td>'$row); ?></td></tr>
<?php ?>
</table>

<?php } else { ?>
<div>No records found</div>
<?php ?>

<?php echo $pagerNav?>

</body>
</html>