Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

view.vm

By: fanjava on Oct 5th, 2012  |  syntax: HTML  |  size: 0.59 KB  |  views: 46  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include("includes/header.vm")
  2.  
  3. <table bgcolor="#CCCCCC" cellspacing="1" cellpadding="5" width="70%">
  4.        
  5.         <tr>
  6.                 <th bgcolor="#F2F2F2">Name</th>
  7.                 <th bgcolor="#F2F2F2">Job</th>
  8.                 <th bgcolor="#F2F2F2">Salary</th>
  9.                 <th bgcolor="#F2F2F2">Action</th>
  10.         </tr>
  11.        
  12.         #foreach($emp in $listPegawai)
  13.         <tr>
  14.                 <td bgcolor="#FFFFFF">$emp.name</td>
  15.                 <td bgcolor="#FFFFFF">$emp.job</td>
  16.                 <td bgcolor="#FFFFFF">Rp $emp.salary</td>
  17.                 <td bgcolor="#FFFFFF">
  18.                         <a href="./view.action?id=$emp.id">Edit</a> :: <a href="">Delete</a>
  19.                 </td>
  20.         </tr>
  21.         #end
  22.        
  23. </table>
  24.  
  25. #include("includes/footer.vm")
clone this paste RAW Paste Data