Post Reply 
 
Thread Rating:
  • 4 Votes - 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.)
Post: #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')?>
Find all posts by this user
Quote this message in a reply
Post Reply 


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

Forum Jump:


User(s) browsing this thread: 1 Guest(s)