Rev 12913 | Rev 21874 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript" src="/js/jquery-1.4.2.js"></script><title>Suppliers</title><script>$(document).ready(function() {$('td').css('white-space', 'nowrap');});</script></head><body><a href="/inventory">Go to Home page</a><br /><h2>Suppliers</h2><span style="color:red">$action.getErrorMessage()</span><div >#if($action.isPermitted("supplier:create"))<a href="/inventory/supplier/new">Add new Supplier</a>#end</div><table border="1"><thead ><tr ><th >Id</th><th >Name</th><th >Phone</th><th >Fax</th><th >Tin</th><th >Pan</th><th >State</th><th >PO Validity Days Limit</th><th >Head</th><th >Head email</th><th >Contact Person</th><th >Contact email</th><th >Contact phone</th><th >Contact fax</th><th >Registered address</th><th >Communicaton address</th></tr></thead><tbody >#foreach($supplier in $action.getSuppliers())<tr ><td >$supplier.getId()</td><td >#if($action.isPermitted("supplier:edit"))<a href="/inventory/supplier/$supplier.getId()/edit">$supplier.getName()</a>#else$supplier.getName()#end</td><td >$supplier.getPhone()</td><td >$supplier.getFax()</td><td >$supplier.getTin()</td><td >$supplier.getPan()</td>#if($supplier.getStateId() == 0)<td >Delhi</td>#elseif($supplier.getStateId() == 1)<td >Mumbai</td>#elseif($supplier.getStateId() == 2)<td >Bangalore</td>#elseif($supplier.getStateId() == 3)<td >Haryana</td>#elseif($supplier.getStateId() == 4)<td >Rajasthan</td>#elseif($supplier.getStateId() == 5)<td >Telangana</td>#elseif($supplier.getStateId() == 6)<td >Gujrat</td>#else<td></td>#end<td >$supplier.getPoValidityLimit()</td><td >$supplier.getHeadName()</td><td >$supplier.getHeadEmail()</td><td >$supplier.getContactName()</td><td >$supplier.getContactEmail()</td><td >$supplier.getContactPhone()</td><td >$supplier.getContactFax()</td><td >$supplier.getRegisteredAddress()</td><td >$supplier.getCommunicationAddress()</td></tr>#end</tbody></table></body></html>