PHP Classes

File: examples/example.custom.tpl.php

Recommend this page to a friend!
  Classes of Mark Rolich   Extended Generic Pager   examples/example.custom.tpl.php   Download  
File: examples/example.custom.tpl.php
Role: Example script
Content type: text/plain
Description: Template for customized example
Class: Extended Generic Pager
Paginate data listings from arrays, CSV or MySQL
Author: By
Last change: Update of examples/example.custom.tpl.php
Date: 2 months ago
Size: 612 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 } ?>
<tr><td colspan="5"><?php echo $stats; ?></td></tr>
</table>

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

<?php echo $pagerNav; ?>

</body>
</html>