Subversion Repositories SmartDukaan

Rev

Rev 12361 | Rev 12913 | Go to most recent revision | Details | Compare with Previous | 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>
12361 manish.sha 35
					<th >State</th>
5591 mandeep.dh 36
                    <th >Head</th>
37
                    <th >Head email</th>
38
                    <th >Contact Person</th>
39
                    <th >Contact email</th>
40
                    <th >Contact phone</th>
41
                    <th >Contact fax</th>
42
                    <th >Registered address</th>
43
                    <th >Communicaton address</th>
44
                </tr>
45
            </thead>
46
            <tbody >
47
                #foreach($supplier in $action.getSuppliers())
48
                    <tr >
49
                        <td >$supplier.getId()</td>
50
                        <td >
51
                            #if($action.isPermitted("supplier:edit"))
52
                                <a href="/inventory/supplier/$supplier.getId()/edit">$supplier.getName()</a>
53
                            #else
54
                                $supplier.getName()
55
                            #end
56
                        </td>
57
                        <td >$supplier.getPhone()</td>
58
                        <td >$supplier.getFax()</td>
59
                        <td >$supplier.getTin()</td>
60
                        <td >$supplier.getPan()</td>
12361 manish.sha 61
					#if($supplier.getStateId() == 0)
62
						<td >Delhi</td>
63
					#elseif($supplier.getStateId() == 1)
64
						<td >Mumbai</td>
65
					#elseif($supplier.getStateId() == 2)
66
						<td >Bangalore</td>
67
					#elseif($supplier.getStateId() == 3)
68
						<td >Haryana</td>
69
					#elseif($supplier.getStateId() == 4)
70
						<td >Rajasthan</td>
71
					#else
72
                        <td></td>
73
					#end
5591 mandeep.dh 74
                        <td >$supplier.getHeadName()</td>
75
                        <td >$supplier.getHeadEmail()</td>
76
                        <td >$supplier.getContactName()</td>
77
                        <td >$supplier.getContactEmail()</td>
78
                        <td >$supplier.getContactPhone()</td>
79
                        <td >$supplier.getContactFax()</td>
80
                        <td >$supplier.getRegisteredAddress()</td>
81
                        <td >$supplier.getCommunicationAddress()</td>
82
                    </tr>
83
                #end
84
            </tbody>
85
        </table>
86
    </body>
87
</html>