How To Create Advanced Html Tables Using TableGear

01.<?php
02.include("src/TableGear1.5.2.php");
03.
04.$table = new TableGear(array(
05."database"=> array("username" => "USERNAME",
06."password" => "PASSWORD",
07."database" => "DATABASE",
08."table" => "TABLE",
09."key" => "PRIMARY_KEY"
10.),
11."editable" => "all",
12."sortable" => "all"
13.);
14.
15.?>
16.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
18.<head>
19.<title>TableGear Demo</title>
20.<link type="text/css" rel="stylesheet" href="stylesheets/TableGear.css" />
21.<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
22.</head>
23.<body>
24.<?= $table->getTable(); ?>
26.<script type="text/javascript" src="javascripts/TableGear1.5.2.js"></script>
27.<?= $table->getJavascript(); ?>
28.</body>
29.</html>

Source : http://www.catswhocode.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: