Exemple #1
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>phpMyDatagrid - Sample file</title>

<?php 
include "phpmydatagrid.class.php";
$objGrid = new datagrid();
$objGrid->friendlyHTML();
$objGrid->pathtoimages("./images/");
$objGrid->closeTags(true);
$objGrid->form('employee', true);
$objGrid->methodForm("post");
$objGrid->total("salary,workeddays");
$objGrid->searchby("id,name,lastname,afiliation");
$objGrid->linkparam("sess=" . $_REQUEST["sess"] . "&username="******"username"]);
$objGrid->decimalDigits(2);
$objGrid->decimalPoint(",");
$objGrid->conectadb("127.0.0.1", "phpclasses", "test", "guru");
$objGrid->tabla("employees");
$objGrid->TituloGrid("phpMyDataGrid Sample page");
$objGrid->FooterGrid("<div style='float:left'>&copy; 2007 Gurusistemas.com</div>");
/* Define the number of rows to show per page */
$objGrid->datarows(5);
/* Define the desired pagination style */
$objGrid->paginationmode('links');
/* Define the initial ordering field and its direction */
$objGrid->orderby("age", "DESC");
/* Define that ordering arrows will not be available to users */
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>avijatry inventory</title>

<?php 
include "phpmydatagrid.class.php";
$objGrid = new datagrid();
/* Connect with the database */
$objGrid->conectadb("localhost", "root", "", "avijatry");
/* Select the table to use */
$objGrid->tabla("inventory_config_types");
$objGrid->friendlyHTML();
//$objGrid -> pathtoimages("./images/");
$objGrid->closeTags(true);
$objGrid->form('employee', true);
$objGrid->methodForm("post");
$objGrid->total("total_qty");
$objGrid->searchby("table_index,factory_name");
//$objGrid -> linkparam("sess=".$_REQUEST["sess"]."&username="******"username"]);
$objGrid->decimalDigits(2);
$objGrid->decimalPoint(",");
/* Select the table to use */
$objGrid->buttons(true, true, true, true);
$objGrid->salt("Some Code4Stronger(Protection)");
$objGrid->TituloGrid("অভিযাত্রী সুজ বিক্রি তথ্য");
$objGrid->FooterGrid("");
$objGrid->datarows(30);
$objGrid->paginationmode('links');
$objGrid->keyfield("table_index");
$objGrid->orderby("table_index", "DESC");
$objGrid->tabla("inventory_config_types");
$objGrid->noorderarrows();
Exemple #3
0
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>phpMyDatagrid - Sample file</title>

<?php 
include "phpmydatagrid.class.php";
$objGrid = new datagrid();
/* Connect with the database */
$objGrid->conectadb("localhost", "root", "", "avijatry_beta_v2");
/* Select the table to use */
$objGrid->tabla("factories");
$objGrid->friendlyHTML();
//$objGrid -> pathtoimages("./images/");
$objGrid->closeTags(true);
$objGrid->form('employee', true);
$objGrid->methodForm("post");
$objGrid->total("table_index");
$objGrid->searchby("table_index,factory_name");
//$objGrid -> linkparam("sess=".$_REQUEST["sess"]."&username="******"username"]);
$objGrid->decimalDigits(2);
$objGrid->decimalPoint(",");
/* Select the table to use */
$objGrid->tabla("factories");
$objGrid->buttons(true, true, true, true);
$objGrid->keyfield("table_index");
$objGrid->salt("Some Code4Stronger(Protection)");
$objGrid->TituloGrid("phpMyDataGrid Sample page");
$objGrid->FooterGrid("<div style='float:left'>&copy; 2007 Gurusistemas.com</div>");
$objGrid->datarows(5);
$objGrid->paginationmode('links');
$objGrid->orderby("table_index", "DESC");
$objGrid->noorderarrows();