Subversion Repositories SmartDukaan

Rev

Rev 12361 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5591 mandeep.dh 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
	<head>
4
        <script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
5
		<title>
6
			Suppliers
7
		</title>
8
        <script>
9
            $(document).ready(function() {
10
                $('td').css('white-space', 'nowrap');
11
            });
12
        </script>
13
	</head>
14
	<body>
15
        <a href="/inventory">Go to Home page</a>
16
        <br />                
17
		<h2>Suppliers</h2>
18
        <span style="color:red">
19
            $action.getErrorMessage()
20
        </span>
21
        <div >
22
            #if($action.isPermitted("supplier:create"))
23
            <a href="/inventory/supplier/new">Add new Supplier</a>
24
            #end
25
        </div>
26
        <table border="1">
27
            <thead >
28
                <tr >
29
                    <th >Id</th>
30
                    <th >Name</th>
31
                    <th >Phone</th>
32
                    <th >Fax</th>
33
                    <th >Tin</th>
34
                    <th >Pan</th>
35
                    <th >Head</th>
36
                    <th >Head email</th>
37
                    <th >Contact Person</th>
38
                    <th >Contact email</th>
39
                    <th >Contact phone</th>
40
                    <th >Contact fax</th>
41
                    <th >Registered address</th>
42
                    <th >Communicaton address</th>
43
                </tr>
44
            </thead>
45
            <tbody >
46
                #foreach($supplier in $action.getSuppliers())
47
                    <tr >
48
                        <td >$supplier.getId()</td>
49
                        <td >
50
                            #if($action.isPermitted("supplier:edit"))
51
                                <a href="/inventory/supplier/$supplier.getId()/edit">$supplier.getName()</a>
52
                            #else
53
                                $supplier.getName()
54
                            #end
55
                        </td>
56
                        <td >$supplier.getPhone()</td>
57
                        <td >$supplier.getFax()</td>
58
                        <td >$supplier.getTin()</td>
59
                        <td >$supplier.getPan()</td>
60
                        <td >$supplier.getHeadName()</td>
61
                        <td >$supplier.getHeadEmail()</td>
62
                        <td >$supplier.getContactName()</td>
63
                        <td >$supplier.getContactEmail()</td>
64
                        <td >$supplier.getContactPhone()</td>
65
                        <td >$supplier.getContactFax()</td>
66
                        <td >$supplier.getRegisteredAddress()</td>
67
                        <td >$supplier.getCommunicationAddress()</td>
68
                    </tr>
69
                #end
70
            </tbody>
71
        </table>
72
    </body>
73
</html>