asset manager initial check in
This commit is contained in:
parent
4bc4974ecc
commit
f7dd3b0577
320 changed files with 15398 additions and 0 deletions
37
www/extras/assetManager/ActiveWidgets/examples/php/basic.php
Executable file
37
www/extras/assetManager/ActiveWidgets/examples/php/basic.php
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>ActiveWidgets Grid :: PHP Example</title>
|
||||
<style> body, html {margin:0px; padding: 0px; overflow: hidden;font: menu;border: none;} </style>
|
||||
|
||||
<!-- ActiveWidgets stylesheet and scripts -->
|
||||
<link href="../../runtime/styles/xp/grid.css" rel="stylesheet" type="text/css" ></link>
|
||||
<script src="../../runtime/lib/grid.js"></script>
|
||||
|
||||
<!-- ActiveWidgets PHP functions -->
|
||||
<?php include("activewidgets.php") ?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
// grid object name
|
||||
$name = "obj";
|
||||
|
||||
// SQL query
|
||||
$query = "select * from `table` limit 0,20";
|
||||
|
||||
// database connection
|
||||
$connection = mysql_connect("localhost", "user", "password");
|
||||
mysql_select_db("database");
|
||||
|
||||
// query results
|
||||
$data = mysql_query($query, $connection);
|
||||
|
||||
// add grid to the page
|
||||
echo activewidgets_grid($name, $data);
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue