开发者

Beautifying a table produced by PHP with Ext

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜