Skip to content

Instantly share code, notes, and snippets.

@optikalefx
Last active October 10, 2015 22:58
Show Gist options
  • Save optikalefx/3764056 to your computer and use it in GitHub Desktop.
Save optikalefx/3764056 to your computer and use it in GitHub Desktop.
OpenJSGrid v2
<?php
require_once("grid.php");
$grid = new Grid("users", array(
"save"=>true,
"delete"=>true
));
?>
<table class="users" action="ajax.php">
<tr>
<th col="Username">Username</th>
<th col="FirstName">First Name</th>
<th col="Lastname">Last Name</th>
<th col="Email">Email</th>
</tr>
</table>
<script>
$(function() {
$(".users").grid();
});
</script>
@ioconnor
Copy link

Wouldn't an sql schema file also be important to include here? And perhaps a setup.bsh file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment