Thread Rating:
  • 4 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bringing WebERP into a New Tableless UI Design
10-09-2012, 12:13 AM, (This post was last modified: 10-09-2012, 12:18 AM by echpoh.)
#61
RE: Bringing WebERP into a New Tableless UI Design
#1

since you are in favor of fixing this

Would like to confirm can we stick by this format?
the change is not just matching up colums but it also propose to use tags like thead, th, tbody, tfoot where the column titles are repeated again in the tfoot

<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>
</tbody>
<tfoot>
<tr>
<th>Col1</th>
<th>Col2</th>
<th>Col3</th>
<th>Col4</th>
<th colspan="2">Actions</th>
</tr>
</tfoot>
</table>


#2
I am also in favor in code readability and neatness

please take a look at the code again

-----------------------------------------------------------
echo '<div>
<h3>' . $title . '</h3>
</div>';
------------------------------------------------------------
v/s
------------------------------------------------------------
<div>
<h3><?php echo $title?></h3>
</div>
-----------------------------------------------------

Really the second method is much easier and less prone to error there are no [;] , [.] and ['] to keep track of, the php parts only serve to echo variables. its basically html with php as the variables

so long as there is anything dynamic, just copy paste this structure <?php echo _('title')?>
Reply


Messages In This Thread
RE: Bringing WebERP into a New Tableless UI Design - by echpoh - 10-09-2012, 12:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)