How to define the grid STYLE using PHP
Hi there,
I would like to change the style of my grid (Width and Length).
My code is thi one:
<html>
<head>
<title>ActiveWidgets Grid :: PHP Example</title>
<style>
body, html {margin:0px; padding: 0px; overflow: hidden;font: menu;border: none;}
#grid1 {height: 200px; width: 400px; border: 2px inset; background: white;}
</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 `TUsers` limit 0,20";
// database connection
$connection = mysql_connect("localhost", "root", "");
mysql_select_db("BDAdvogest");
// query results
$data = mysql_query($query, $connection);
// add grid to the page
echo activewidgets_grid($name, $data);
?>
</body>
</html>
It seams that the "#grid1 {height: 200px; width: 400px; border: 2px inset; background: white;}" is not working...
Any Idea
Thanks
I would like to change the style of my grid (Width and Length).
My code is thi one:
<html>
<head>
<title>ActiveWidgets Grid :: PHP Example</title>
<style>
body, html {margin:0px; padding: 0px; overflow: hidden;font: menu;border: none;}
#grid1 {height: 200px; width: 400px; border: 2px inset; background: white;}
</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 `TUsers` limit 0,20";
// database connection
$connection = mysql_connect("localhost", "root", "");
mysql_select_db("BDAdvogest");
// query results
$data = mysql_query($query, $connection);
// add grid to the page
echo activewidgets_grid($name, $data);
?>
</body>
</html>
It seams that the "#grid1 {height: 200px; width: 400px; border: 2px inset; background: white;}" is not working...
Any Idea
Thanks
Hugo Abreu
September 12,