Login   Register  
PHP Classes
elePHPant
Icontem

File: index

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Carlos Miguel Guevara  >  Data Grid  >  index  >  Download  
File: index
Role: Example script
Content type: text/plain
Description: Example
Class: Data Grid
Display MySQL query results in HTML tables
Author: By
Last change: -
Date: 8 years ago
Size: 996 bytes
 

Contents

Class file image Download
<link href="estilo.css" rel="stylesheet" type="text/css">

<link href="estilo.css" rel="stylesheet" type="text/css">

<?
include("classDatagrid.php");
mysql_connect("localhost","root","");
mysql_select_db("radio");

$oDataGrid= new classDatagrid;
$oDataGrid->set_query("select * from banners where username like '%mt%'","rowId");
$oDataGrid->set_title("<center>This is my title<center>");

$oDataGrid->set_col_name("username","Nombre");
$oDataGrid->set_col_type("filePath","IMG");
$oDataGrid->set_page_size(10);

$oDataGrid->set_col_type("totalShows","LNK","http://algo.php/index.php");
$oDataGrid->set_col_type("username","LNK","http://algo.com/index.php","texto opcional");

$oDataGrid->set_col_type("UNIX_TIMESTAMP(timestamp)","DATE","M d Y-G:i");
$oDataGrid->show_checkbox(false);
$oDataGrid->set_tool("TXT","delete","index.php");
$oDataGrid->set_tool("IMG","drop.gif","index.php");
$oDataGrid->set_tool("TXT","view","index.php");
?>
<?
$oDataGrid
->display();
?>