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
10-09-2012, 07:21 AM, (This post was last modified: 10-09-2012, 07:27 AM by phil.)
#62
RE: Bringing WebERP into a New Tableless UI Design
#1
Yes I can see the usefulness of having the header repeated at the bottom - although it could be confusing also where there is no data below it.
If
<thead>
<tbody>
<tfoot>
etc are all required as best practise then these are worthy additions - and would give more scope to the theme css

#2
I prefer the first - there is no <?php ?> in it. In webERP scripts mostly there is just a single <?php at the start and a single ?> at the end!!
I would have it indented though:
Code:
echo '<div>
         <h3>' . $title . '</h3>
     </div>';

Shouldn't there be a ; after echo $title;

Code:
?>
<div>
      <h3><?php echo $title;?></h3>
</div>
<?php

I strongly prefer to stay inside the php interpretor than continually go in and out.

I prefer the readability of the :

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

over

Code:
?>
<div>
      <h3><?php echo $title;?></h3>
</div>
<?php

but really the difference is minimal - and certainly NOT worth putting any additional effort into IMHO
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
10-09-2012, 11:57 AM, (This post was last modified: 10-09-2012, 12:08 PM by echpoh.)
#63
RE: Bringing WebERP into a New Tableless UI Design
in a single line, single statement in php <?php echo $title?> the ; isnt required.

Alright, so when can we get started with proposal #1

how can we coordinate this in a way that does not override each others work
Reply
12-22-2012, 06:20 PM,
#64
RE: Bringing WebERP into a New Tableless UI Design
http://www.weberp.org/forum/showthread.php?tid=462
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
05-13-2013, 06:23 AM,
#65
Thumbs Up  RE: Bringing WebERP into a New Tableless UI Design
(09-19-2012, 02:06 AM)hindraj Wrote: .. ..

PS: Please don't give up! Big Grin

Best regards,
Hindra Joshua


Hi Hindra

I am new to webERP but I'd followed your posts and I really appreciate you. I believe that your idea about UI is as important as the other aspects of this great software.
Thanks for your nice designs and your assiduity. Heart

Would you please let me know how can I download the latest RTL theme for webERP 4.10 ?

Regards
Farbod
Reply
01-26-2016, 07:05 PM,
#66
RE: Bringing WebERP into a New Tableless UI Design
I suppose we possibly will use this for footer and header and find the proper solution of css for the additional themes lacking too much of a problem.
Reply
07-16-2016, 03:06 PM,
#67
RE: Bringing WebERP into a New Tableless UI Design
Really appreciate it! thank you alot!
สุดยอดเว็บไซด์คาสิโน บาคาร่าออนไลน์ โป๊กเกอร์ สล๊อตออนไลน์ พร้อมลุ้นแจ๊กพอตกว่าหนึ่งล้านบาท สมัคร บาคาร่าออนไลน์
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)