Thread Rating:
  • 4 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bringing WebERP into a New Tableless UI Design
10-08-2012, 03:32 PM, (This post was last modified: 10-08-2012, 03:49 PM by echpoh.)
#59
RE: Bringing WebERP into a New Tableless UI Design
I would like to volunteer on this collaborative effort into bringing the UI to use proper HTML tags.

I would like to help out to rectify the tags in these particular sections

1) Table data (when data is output in rows)
2) PHP + HTML

#1: Currently the format has a few flaws;

the header section has x columns but the rows has x+2 columns (due to the presence of edit and delete action)
I would like to propose that the header be:
x+1 column, the last column will have a colspan=2, the label for the last column: Actions

then I also propose the headers appear at the top and the bottom and to use thead, tbody and tfoot tags

so here is an example of the generated html for record output;

<table class="selected">
<thead>
<tr>
<th>Col1</th>
<th>Col2</th>
<th>Col3</th>
<th>Col4</th>
<th colspan="2">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Edit</td>
<td>Delete</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Edit</td>
<td>Delete</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Data</td>
<td>Edit</td>
<td>Delete</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Col1</th>
<th>Col2</th>
<th>Col3</th>
<th>Col4</th>
<th colspan="2">Actions</th>
</tr>
</tfoot>
</table>


#2: PHP + HTML what I mean by this is;

Instead of embedding html code like this;

-----------------------------------------------------------

echo '<div>
<h3>' . $title . '</h3>
</div>';

------------------------------------------------------------

Lets write it like this;
------------------------------------------------------------
?>

<div>
<h3><?php echo $title?></h3>
</div>

<?php
-----------------------------------------------------

The example above is very simplified, but when it gets complicated, it can be very hard to read the code, expecially if the echo statement is spanned in multiple lines

If the administration agrees; I shall be ready to receive my share of assignment.
Reply


Messages In This Thread
RE: Bringing WebERP into a New Tableless UI Design - by echpoh - 10-08-2012, 03:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)