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')?>
|