Subversion Repositories SmartDukaan

Rev

Rev 24921 | Rev 24924 | 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>
9
        <script>
10
            $(document).ready(function() {
11
                $('td').css('white-space', 'nowrap');
24921 amit.gupta 12
                $('table').dataTable({
13
					"sPaginationType": "full_numbers",
14
		            "aaSorting" : [ [ 1, 'desc' ] ],
15
		            "bAutoWidth": true,
16
		            "iDisplayLength" : 25,
17
		            "sDom" : 'T<"clear">lfrtip',
18
		            "oTableTools" : {
19
		                "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
20
		            },
21
		        });
5591 mandeep.dh 22
            });
23
        </script>
24
	</head>
25
	<body>
26
        <a href="/inventory">Go to Home page</a>
27
        <br />                
28
		<h2>Suppliers</h2>
29
        <span style="color:red">
30
            $action.getErrorMessage()
31
        </span>
32
        <div >
33
            #if($action.isPermitted("supplier:create"))
34
            <a href="/inventory/supplier/new">Add new Supplier</a>
35
            #end
36
        </div>
37
        <table border="1">
38
            <thead >
39
                <tr >
40
                    <th >Id</th>
41
                    <th >Name</th>
42
                    <th >Phone</th>
43
                    <th >Fax</th>
21873 amit.gupta 44
                    <th >GSTN</th>
5591 mandeep.dh 45
                    <th >Pan</th>
12361 manish.sha 46
					<th >State</th>
14072 manish.sha 47
					<th >PO Validity Days Limit</th>
5591 mandeep.dh 48
                    <th >Head</th>
49
                    <th >Head email</th>
50
                    <th >Contact Person</th>
51
                    <th >Contact email</th>
52
                    <th >Contact phone</th>
53
                    <th >Contact fax</th>
54
                    <th >Registered address</th>
55
                    <th >Communicaton address</th>
56
                </tr>
57
            </thead>
58
            <tbody >
59
                #foreach($supplier in $action.getSuppliers())
60
                    <tr >
61
                        <td >$supplier.getId()</td>
62
                        <td >
63
                            #if($action.isPermitted("supplier:edit"))
64
                                <a href="/inventory/supplier/$supplier.getId()/edit">$supplier.getName()</a>
65
                            #else
66
                                $supplier.getName()
67
                            #end
68
                        </td>
21874 amit.gupta 69
                        <td>$supplier.getPhone()</td>
70
                        <td>$supplier.getFax()</td>
71
                        <td>$supplier.getGstin()</td>
72
                        <td>$supplier.getPan()</td>
73
                        <td>$action.getStateName($supplier.getStateId())</td>
74
                        <td>$supplier.getPoValidityLimit()</td>
75
                        <td>$supplier.getHeadName()</td>
76
                        <td>$supplier.getHeadEmail()</td>
77
                        <td>$supplier.getContactName()</td>
78
                        <td>$supplier.getContactEmail()</td>
79
                        <td>$supplier.getContactPhone()</td>
80
                        <td>$supplier.getContactFax()</td>
81
                        <td>$supplier.getRegisteredAddress()</td>
82
                        <td>$supplier.getCommunicationAddress()</td>
5591 mandeep.dh 83
                    </tr>
84
                #end
85
            </tbody>
86
        </table>
87
    </body>
88
</html>