Subversion Repositories SmartDukaan

Rev

Rev 31075 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31075 Rev 34060
Line 1... Line 1...
1
<section class="wrapper">
1
<section class="wrapper">
2
	<div class="row">
-
 
3
		<div class="col-lg-12">
-
 
4
			<h3 class="page-header"><i class="icon_document_alt"></i>LOGISTICS</h3>
-
 
5
			<ol class="breadcrumb">
-
 
6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
-
 
7
				<li><i class="icon_document_alt"></i>Provider</li>	
-
 
8
			  	  	
-
 
9
			</ol>
-
 
10
		</div>
-
 
11
	</div>
-
 
12
	
-
 
13
		<form id="promoter-info-form">
-
 
14
		<div id="promoter-details" style="background:white;background-color:white;padding:10px;">
-
 
15
			<h4 class="modelHeaderCustom" style="font-size:22px;">Provider Information</h4>
-
 
16
			<div>
-
 
17
				<div class = "row">
-
 
18
					<div class="col-lg-2 form-group">
-
 
19
					   	<input placeholder="Name" id="providerName" name="providerName" type="text" value="" class="form-control input-sm">
-
 
20
					</div>
-
 
21
					
-
 
22
					<div class="col-lg-2 form-group">
-
 
23
					   	<input placeholder="email" id="promoterEmail" name="promoterEmail" type="text" value="" class="form-control input-sm">
-
 
24
					</div>
-
 
25
					
-
 
26
					<div class="col-lg-2 form-group">
-
 
27
					   	<input placeholder="mobile" id="providerMobile" maxlength="10" minlength="10" name="providerMobile" type="text" value="" class="form-control input-sm">
-
 
28
					</div>
-
 
29
					
-
 
30
						<div class="col-lg-2 form-group">
-
 
31
					   	<input placeholder="Account Number" id="accountNo"  name="accountNo" type="text" value="" class="form-control input-sm">
-
 
32
					</div>
-
 
33
					
-
 
34
							
-
 
35
						<div class="col-lg-2">
-
 
36
						<select  class="form-control input-sm" id ="provideractive" placeholder="Status">
-
 
37
							 <option value="" disabled selected>Status</option>
-
 
38
							  <option value="false">False</option>
-
 
39
							  <option value="true">True</option>
-
 
40
						</select>
-
 
41
						</div>
-
 
42
					
-
 
43
								
-
 
44
				<div class="col-lg-2">
-
 
45
						<input class="btn btn-primary create-provider"  type="button" value="create provider">	
-
 
46
					</div>
-
 
47
				</div>	
-
 
48
						
-
 
49
					
-
 
50
				</div>
-
 
51
			
-
 
52
				
-
 
53
		</div>
-
 
54
		</div>
-
 
55
	
-
 
56
	</form>
-
 
57
	
-
 
58
	
-
 
59
	<div class="col-lg-12">
-
 
60
				 <table id="providerdetails" class="table table-striped table-advance table-hover" style="width:100%">
-
 
61
				 <thead>
-
 
62
	    				<tr>
-
 
63
	    				<th>Id</th>
-
 
64
	    				<th>Provider Name</th>
-
 
65
	    				<th>Email</th>
-
 
66
	    				<th>Phone</th>
-
 
67
	    				<th>Account No</th>
-
 
68
	    			    <th>Delivery Type</th>
-
 
69
	    				
-
 
70
	    				<th>Status</th>
-
 
71
	    				
-
 
72
	    				</tr>
-
 
73
				 </thead>
-
 
74
	    			<tbody>
-
 
75
	    			    #foreach($provider in $providers)
-
 
76
	    				<tr>
-
 
77
	    	 		     <td>$provider.getId()</td>
-
 
78
	    	 		     <td>$provider.getName()</td>
-
 
79
	    	 		     #if($providerDetails.get($provider.getId()).getEmail())
-
 
80
	    	 		     <td>$providerDetails.get($provider.getId()).getEmail()</td>
-
 
81
	    	 		     #else
-
 
82
	    	 		     <td>-</td>
-
 
83
	    	 		     #end
-
 
84
	    	 		     #if($providerDetails.get($provider.getId()).getPhone())
-
 
85
	    	 		     <td>$providerDetails.get($provider.getId()).getPhone()</td>
-
 
86
	    	 		     #else
-
 
87
	    	 		      <td>-</td>
-
 
88
	    	 		     #end
-
 
89
	    	 		     #if($providerDetails.get($provider.getId()).getAccountNo())
-
 
90
    	 		         <td>$providerDetails.get($provider.getId()).getAccountNo()</td>
-
 
91
    	 		         #else
-
 
92
    	 		         <td>-</td>
-
 
93
    	 		         #end
-
 
94
    	 		         #if($providerDetails.get($provider.getId()).getType())
-
 
95
	    	 		     <td>$providerDetails.get($provider.getId()).getType()</td>
-
 
96
	    	 		     #else
-
 
97
	    	 		      <td>-</td>
-
 
98
	    	 		     #end
-
 
99
	    	 		   
-
 
100
	    	 		     <td>$provider.isActive()</td>
-
 
101
	    	 		   
-
 
102
	    				</tr>
-
 
103
	    				#end
-
 
104
	    		    </tbody>
-
 
105
	    		</table>
-
 
106
						</div>
-
 
107
						
-
 
108
		
-
 
109
			
-
 
110
 
-
 
111
	
-
 
112
	</section>
-
 
113
	
-
 
114
	<script>
-
 
115
	
-
 
116
	$(document).ready(function() {
-
 
117
 
-
 
118
  
-
 
119
		  var table = $('#providerdetails').DataTable( {
-
 
120
		   "scrollX": true,
-
 
121
		        orderCellsTop: true,
-
 
122
		        fixedHeader: true
-
 
123
		    } );
-
 
124
		});
-
 
125
	</script>
-
 
126
2
    <div class="row">
-
 
3
        <div class="col-lg-12">
-
 
4
            <h3 class="page-header"><i class="icon_document_alt"></i>LOGISTICS</h3>
-
 
5
            <ol class="breadcrumb">
-
 
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
-
 
7
                <li><i class="icon_document_alt"></i>Provider</li>
-
 
8
 
-
 
9
            </ol>
-
 
10
        </div>
-
 
11
    </div>
-
 
12
 
-
 
13
    <form id="promoter-info-form">
-
 
14
        <div id="promoter-details" style="background:white;background-color:white;padding:10px;">
-
 
15
            <h4 class="modelHeaderCustom" style="font-size:22px;">Provider Information</h4>
-
 
16
            <div>
-
 
17
                <div class="row">
-
 
18
                    <div class="col-lg-2 form-group">
-
 
19
                        <input placeholder="Name" id="providerName" name="providerName" type="text" value=""
-
 
20
                               class="form-control input-sm">
-
 
21
                    </div>
-
 
22
 
-
 
23
                    <div class="col-lg-2 form-group">
-
 
24
                        <input placeholder="email" id="promoterEmail" name="promoterEmail" type="text" value=""
-
 
25
                               class="form-control input-sm">
-
 
26
                    </div>
-
 
27
 
-
 
28
                    <div class="col-lg-2 form-group">
-
 
29
                        <input placeholder="mobile" id="providerMobile" maxlength="10" minlength="10"
-
 
30
                               name="providerMobile" type="text" value="" class="form-control input-sm">
-
 
31
                    </div>
-
 
32
 
-
 
33
                    <div class="col-lg-2 form-group">
-
 
34
                        <input placeholder="Account Number" id="accountNo" name="accountNo" type="text" value=""
-
 
35
                               class="form-control input-sm">
-
 
36
                    </div>
-
 
37
 
-
 
38
 
-
 
39
                    <div class="col-lg-2">
-
 
40
                        <select class="form-control input-sm" id="provideractive" placeholder="Status">
-
 
41
                            <option value="" disabled selected>Status</option>
-
 
42
                            <option value="false">False</option>
-
 
43
                            <option value="true">True</option>
-
 
44
                        </select>
-
 
45
                    </div>
-
 
46
 
-
 
47
 
-
 
48
                    <div class="col-lg-2">
-
 
49
                        <input class="btn btn-primary create-provider" type="button" value="create provider">
-
 
50
                    </div>
-
 
51
                </div>
-
 
52
 
-
 
53
 
-
 
54
            </div>
-
 
55
 
-
 
56
 
-
 
57
        </div>
-
 
58
        </div>
-
 
59
 
-
 
60
    </form>
-
 
61
    <hr>
-
 
62
    <div class="row">
-
 
63
        <div class="provider-filter-by-status col-md-2" style="margin-left: 40%">
-
 
64
            <label>View By Status </label>
-
 
65
            <select class="form-control input-sm form-control" name="provider-status-filter">
-
 
66
                <option value="true" #if($selectedStatus==true) selected #end >Active Provider</option>
-
 
67
                <option value="false" #if($selectedStatus==false) selected #end>Inactive Provider</option>
-
 
68
            </select>
-
 
69
        </div>
-
 
70
    </div>
-
 
71
    <div class="col-lg-12">
-
 
72
        <table id="providerdetails" class="table  table-advance table-bordered table-hover" style="width:100%">
-
 
73
            <thead>
-
 
74
            <tr>
-
 
75
                <th>Id</th>
-
 
76
                <th>Provider Name</th>
-
 
77
                <th>Email</th>
-
 
78
                <th>Phone</th>
-
 
79
                <th>Account No</th>
-
 
80
                <th>Delivery Type</th>
-
 
81
 
-
 
82
                <th>Status</th>
-
 
83
 
-
 
84
            </tr>
-
 
85
            </thead>
-
 
86
            <tbody>
-
 
87
                #foreach($provider in $providers)
-
 
88
                <tr #if($provider.isActive())
-
 
89
                        style="background-color: rgba(200,245,208,0.31)"
-
 
90
                #else
-
 
91
                        style="background-color: rgba(245,191,191,0.37)"
-
 
92
                #end>
-
 
93
                    <td>$provider.getId()</td>
-
 
94
                    <td>$provider.getName()</td>
-
 
95
                    #if($providerDetails.get($provider.getId()).getEmail())
-
 
96
                        <td>$providerDetails.get($provider.getId()).getEmail()</td>
-
 
97
                    #else
-
 
98
                        <td>-</td>
-
 
99
                    #end
-
 
100
                    #if($providerDetails.get($provider.getId()).getPhone())
-
 
101
                        <td>$providerDetails.get($provider.getId()).getPhone()</td>
-
 
102
                    #else
-
 
103
                        <td>-</td>
-
 
104
                    #end
-
 
105
                    #if($providerDetails.get($provider.getId()).getAccountNo())
-
 
106
                        <td>$providerDetails.get($provider.getId()).getAccountNo()</td>
-
 
107
                    #else
-
 
108
                        <td>-</td>
-
 
109
                    #end
-
 
110
                    #if($providerDetails.get($provider.getId()).getType())
-
 
111
                        <td>$providerDetails.get($provider.getId()).getType()</td>
-
 
112
                    #else
-
 
113
                        <td>-</td>
-
 
114
                    #end
-
 
115
 
-
 
116
                    <td align="center">
-
 
117
                        <select class="form-control mk-provider-status" data-id="$provider.getId()">
-
 
118
                            <option value="true" #if($provider.isActive() == true) selected #end>Active
-
 
119
                            </option>
-
 
120
                            <option value="false" #if($provider.isActive() == false) selected #end>Inactive
-
 
121
                            </option>
-
 
122
                        </select>
-
 
123
                    </td>
-
 
124
 
-
 
125
                </tr>
-
 
126
                #end
-
 
127
            </tbody>
-
 
128
        </table>
-
 
129
    </div>
-
 
130
 
-
 
131
 
-
 
132
</section>
-
 
133
 
-
 
134
<script>
-
 
135
 
-
 
136
    $(document).ready(function () {
-
 
137
 
-
 
138
 
-
 
139
        var table = $('#providerdetails').DataTable({
-
 
140
            "scrollX": true,
-
 
141
            orderCellsTop: true,
-
 
142
            fixedHeader: true
-
 
143
        });
-
 
144
    });
-
 
145
</script>
-
 
146
127
147