开发者

Beautifying a table produced by PHP with Ext

开发者 https://www.devze.com 2023-03-10 23:47 出处:网络
I have some code in HTML, PHP, and MySQL. I have an input form with some checkboxes and text boxes. Submitting the form runs a PHP script which generates an HTML page with a <table> on it with s

I have some code in HTML, PHP, and MySQL. I have an input form with some checkboxes and text boxes. Submitting the form runs a PHP script which generates an HTML page with a <table> on it with some data rows.

The PHP code is calling many scripts and functions to dynamically开发者_StackOverflow create a MySQL query and runs it.

I want to beautify my table and forms using Ext, but I am a beginner to XAMPP and totally new to Ext.

  1. HTML input form
  2. Table

I would like to fix the table first, but how do I do this?

Currently I am doing:

echo '<html><table><tr>........</html>' // in PHP.

Any examples would be nice.


Take a look at "From Markup Grid Example" in the ExtJS examples, the relevant bit is in transform-dom.js and is:

// create the grid
var grid = Ext.create('Ext.ux.grid.TransformGrid', "the-table", {
    stripeRows: true,
    height: 130
});
grid.render();

Basically, this takes an existing table with an id of the-table and turns it into an ExtJS grid.

0

精彩评论

暂无评论...
验证码 换一张
取 消