Subversion Repositories SmartDukaan

Rev

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

Rev 19774 Rev 19781
Line 48... Line 48...
48
							codebutton = "<button type='button' class='btn btn-primary btn-xs getcode' data-id="+val[i]['Retailer']['id']+">Get Code</button>";
48
							codebutton = "<button type='button' class='btn btn-primary btn-xs getcode' data-id="+val[i]['Retailer']['id']+">Get Code</button>";
49
						}
49
						}
50
						else{
50
						else{
51
							codebutton = "";
51
							codebutton = "";
52
						}
52
						}
-
 
53
						var getstatus = val[i]['Retailer']['status'];
-
 
54
						var getcomment = "";
-
 
55
						if(getstatus == "pending_verification" || getstatus == "not_verified"){
-
 
56
							getcomment = val[i]['Retailer']['comments']; 
-
 
57
						}
53
						var html = "<tr><td>"+val[i]['Retailer']['title']+"</td><td>"+val[i]['Retailer']['address']+"</td><td>"+val[i]['Retailer']['contact1']+"</td><td>"+val[i]['Retailer']['contact2']+"</td><td>"+val[i]['Retailer']['pin']+"</td><td>"+val[i]['Retailer']['city']+"</td><td>"+val[i]['Retailer']['state']+"</td><td>"+val[i]['Retailer']['tinnumber']+"</td><td>"+codebutton+"</td><tr>";
58
						var html = "<tr><td>"+val[i]['Retailer']['title']+"</td><td>"+val[i]['Retailer']['address']+"</td><td>"+val[i]['Retailer']['contact1']+"</td><td>"+val[i]['Retailer']['contact2']+"</td><td>"+val[i]['Retailer']['pin']+"</td><td>"+val[i]['Retailer']['city']+"</td><td>"+val[i]['Retailer']['state']+"</td><td>"+val[i]['Retailer']['tinnumber']+"</td><td>"+getcomment+"</td><td>"+codebutton+"</td><tr>";
54
						$(".retailertable tbody").append(html);
59
						$(".retailertable tbody").append(html);
55
					}
60
					}
56
					$('.retailertable').removeClass('hidden');
61
					$('.retailertable').removeClass('hidden');
57
				}
62
				}
58
				
63
				
Line 137... Line 142...
137
                        <th><?php echo 'Contact2';?></th>
142
                        <th><?php echo 'Contact2';?></th>
138
                        <th><?php echo 'Pin';?></th>  
143
                        <th><?php echo 'Pin';?></th>  
139
                        <th><?php echo 'City';?></th>
144
                        <th><?php echo 'City';?></th>
140
                        <th><?php echo 'State';?></th>
145
                        <th><?php echo 'State';?></th>
141
                        <th><?php echo 'Tin';?></th>                     
146
                        <th><?php echo 'Tin';?></th>                     
-
 
147
                        <th><?php echo 'Comment';?></th>
142
                        <th>&nbsp;</th>
148
                        <th>&nbsp;</th>
143
                    </tr>
149
                    </tr>
144
                </thead>
150
                </thead>
145
                <tbody>
151
                <tbody>
146
                
152