Subversion Repositories SmartDukaan

Rev

Rev 24938 | 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>
24923 amit.gupta 4
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
24921 amit.gupta 5
        <script type="text/javascript" src="/inventory/js/jquery.dataTables.min.js"></script>
5591 mandeep.dh 6
		<title>
7
			Suppliers
8
		</title>
24926 amit.gupta 9
		<style>
24929 amit.gupta 10
			.wrap { 
11
			   word-wrap: break-word;      /* IE */
12
			}
24926 amit.gupta 13
		</style>
5591 mandeep.dh 14
	</head>
24926 amit.gupta 15
 
5591 mandeep.dh 16
	<body>
17
        <a href="/inventory">Go to Home page</a>
18
        <br />                
19
		<h2>Suppliers</h2>
20
        <span style="color:red">
21
            $action.getErrorMessage()
22
        </span>
24927 amit.gupta 23
        <div>
5591 mandeep.dh 24
            #if($action.isPermitted("supplier:create"))
25
            <a href="/inventory/supplier/new">Add new Supplier</a>
26
            #end
27
        </div>
24935 amit.gupta 28
        <table border="1" cellspacing="0" cellpadding="0">
24927 amit.gupta 29
            <thead>
30
                <tr>
31
                    <th>Id</th>
32
                    <th>Name</th>
33
                    <th>Phone</th>
34
                    <th>Fax</th>
35
                    <th>GSTN</th>
36
                    <th>Pan</th>
37
					<th>State</th>
38
					<th>PO Validity Days Limit</th>
39
                    <th>Head</th>
40
                    <th>Head email</th>
41
                    <th>Contact Person</th>
24935 amit.gupta 42
                    <th class="wrap might-overflow">Contact email</th>
24927 amit.gupta 43
                    <th>Contact phone</th>
44
                    <th>Contact fax</th>
24939 amit.gupta 45
                    <th class="wrap">Registered address</th>
46
                    <th class="wrap">Communicaton address</th>
5591 mandeep.dh 47
                </tr>
48
            </thead>
24927 amit.gupta 49
            <tbody>
5591 mandeep.dh 50
                #foreach($supplier in $action.getSuppliers())
24927 amit.gupta 51
                    <tr>
52
                        <td>$supplier.getId()</td>
53
                        <td>
5591 mandeep.dh 54
                            #if($action.isPermitted("supplier:edit"))
55
                                <a href="/inventory/supplier/$supplier.getId()/edit">$supplier.getName()</a>
56
                            #else
57
                                $supplier.getName()
58
                            #end
59
                        </td>
21874 amit.gupta 60
                        <td>$supplier.getPhone()</td>
61
                        <td>$supplier.getFax()</td>
62
                        <td>$supplier.getGstin()</td>
63
                        <td>$supplier.getPan()</td>
64
                        <td>$action.getStateName($supplier.getStateId())</td>
65
                        <td>$supplier.getPoValidityLimit()</td>
66
                        <td>$supplier.getHeadName()</td>
67
                        <td>$supplier.getHeadEmail()</td>
68
                        <td>$supplier.getContactName()</td>
24939 amit.gupta 69
                        <td class="wrap">$supplier.getContactEmail()</td>
21874 amit.gupta 70
                        <td>$supplier.getContactPhone()</td>
71
                        <td>$supplier.getContactFax()</td>
24939 amit.gupta 72
                        <td class="wrap">$supplier.getRegisteredAddress()</td>
73
                        <td class="wrap">$supplier.getCommunicationAddress()</td>
5591 mandeep.dh 74
                    </tr>
75
                #end
76
            </tbody>
77
        </table>
78
    </body>
24924 amit.gupta 79
</html>
80
<script type="text/javascript">
81
$('table').dataTable({
24936 amit.gupta 82
		            "iDisplayLength" : 50,
24935 amit.gupta 83
		            "bAutoWidth": false,
84
			        "aoColumns" : [
85
			            { sWidth: '30px' },
86
			            { sWidth: '100px' },
87
			            { sWidth: '60px' },
24937 amit.gupta 88
			            { sWidth: '60px' },
89
			            { sWidth: '80px' },
90
			            { sWidth: '80px' },
91
			            { sWidth: '100px' },
92
			            { sWidth: '50px' },
93
			            { sWidth: '100px' },
94
			            { sWidth: '50px' },
95
			            { sWidth: '100px' },
96
			            { sWidth: '400px' },
97
			            { sWidth: '50px' },
98
			            { sWidth: '50px' },
99
			            { sWidth: '175px' },
24935 amit.gupta 100
			            { sWidth: '175px' }
101
			         ]
102
 
24924 amit.gupta 103
		        });
24935 amit.gupta 104
 
24924 amit.gupta 105
</script>