Subversion Repositories SmartDukaan

Rev

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