/* 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(); /* Define fields to show */ $objGrid->FormatColumn("genre", "জুতার ধরনের নং", 30, 30, 0, "150", "left"); $objGrid->FormatColumn("type", "জুতার ধরন", 30, 30, 0, "150", "left"); $objGrid->setHeader(); ?> </head> <body>
$objGrid->conectadb("localhost", "root", "", "avijatry"); /* Select the table to use */ $objGrid->tabla("other_expenses"); $objGrid->friendlyHTML(); //$objGrid -> pathtoimages("./images/"); $objGrid->closeTags(true); $objGrid->form('employee', true); $objGrid->methodForm("post"); $objGrid->searchby("table_index,expense_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->noorderarrows(); /* Define fields to show */ $objGrid->FormatColumn("expense_name", "ব্যাংক", 30, 30, 0, "150", "left"); $objGrid->FormatColumn("phone", "ফোন", 30, 30, 0, "150", "left"); $objGrid->setHeader(); ?> </head> <body> <?php
<?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'>© 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 */ $objGrid->noorderarrows(); $objGrid->FormatColumn("id", "ID Employee", 5, 5, 1, "50", "center", "integer"); $objGrid->FormatColumn("name", "Name", 30, 30, 0, "150", "left"); $objGrid->FormatColumn("lastname", "Last name", 30, 30, 0, "150", "left"); $objGrid->FormatColumn("age", "Age", 5, 5, 0, "50", "right"); $objGrid->FormatColumn("afiliation", "Afiliation Date", 10, 10, 0, "100", "center", "date:dmy:/"); $objGrid->FormatColumn("status", "Status", 5, 5, 0, "60", "left", "select:1_Single:2_Married:3_Divorced");
$objGrid->tabla("inventory"); $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,pid"); //$objGrid -> linkparam("sess=".$_REQUEST["sess"]."&username="******"username"]); $objGrid->decimalDigits(2); $objGrid->decimalPoint(","); /* Select the table to use */ $objGrid->tabla("inventory"); $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->noorderarrows(); /* Define fields to show */ $objGrid->FormatColumn("table_index", "ইনডেক্স", 5, 5, "4", "50", "center"); //inputtype 4 blocks from editing $objGrid->FormatColumn("factory_name", "কারখানা", 30, 30, "4", "150", "left"); $objGrid->FormatColumn("pid", "আইডি", 30, 30, "4", "150", "left"); $objGrid->FormatColumn("total_qty", "জোড়া", 30, 30, "4", "150", "left"); $objGrid->FormatColumn("cost_price", "ডজন দাম", 30, 30, 0, "150", "left"); $objGrid->FormatColumn("retail_price", "গায়ের দাম", 30, 30, 0, "150", "left"); $objGrid->setHeader();