Subversion Repositories SmartDukaan

Rev

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