Subversion Repositories SmartDukaan

Rev

Rev 16813 | Rev 16911 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16813 Rev 16873
Line 16... Line 16...
16
    				Date From<input type="date" name="date_from" value="Date"/>
16
    				Date From<input type="date" name="date_from" value="Date"/>
17
    				Date To<input type="date" name="date_to" value="Date"/>
17
    				Date To<input type="date" name="date_to" value="Date"/>
18
    				
18
    				
19
                    <div class="input-group-btn w25px">
19
                    <div class="input-group-btn w25px">
20
                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
20
                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
21
                    
-
 
22
                </div>
21
                </div>
23
        		</div>
22
        		</div>
24
 
-
 
25
                
-
 
26
            </form>
23
            </form>
27
	
-
 
28
 
-
 
29
	<table cellpadding="0" cellspacing="0" class="table table-striped">
24
	<table cellpadding="0" cellspacing="0" class="table table-striped">
30
	<tr>
25
	<tr>
31
			<th><?php echo $this->Paginator->sort('retailer_id'); ?></th>
26
			<th><?php echo $this->Paginator->sort('retailer_id'); ?></th>
32
			<th><?php echo $this->Paginator->sort('clicks'); ?></th>
27
			<th><?php echo $this->Paginator->sort('clicks'); ?></th>
33
			<th><?php echo $this->Paginator->sort('approved'); ?></th>
28
			<th><?php echo $this->Paginator->sort('approved'); ?></th>
Line 42... Line 37...
42
		<td><?php if(!isset($appTransaction['AppTransaction']['approved'])){echo h('0');}else{echo h($appTransaction['AppTransaction']['approved']);}; ?>&nbsp;</td>
37
		<td><?php if(!isset($appTransaction['AppTransaction']['approved'])){echo h('0');}else{echo h($appTransaction['AppTransaction']['approved']);}; ?>&nbsp;</td>
43
		<td><?php if(!isset($appTransaction['AppTransaction']['conversion_percentage'])){echo h('0');}else{echo h($appTransaction['AppTransaction']['conversion_percentage']);}; ?>&nbsp;</td>
38
		<td><?php if(!isset($appTransaction['AppTransaction']['conversion_percentage'])){echo h('0');}else{echo h($appTransaction['AppTransaction']['conversion_percentage']);}; ?>&nbsp;</td>
44
	</tr>
39
	</tr>
45
<?php endforeach; ?>
40
<?php endforeach; ?>
46
	</table>
41
	</table>
47
	<p>
-
 
48
	<?php
-
 
49
	echo $this->Paginator->counter(array(
-
 
50
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
-
 
51
	));
-
 
52
	?>	</p>
-
 
53
	<div class="paging">
-
 
54
	<?php
-
 
55
		echo $this->Paginator->prev('< ' . __('previous '), array(), null, array('class' => 'prev disabled'));
-
 
56
		echo $this->Paginator->numbers(array('separator' => ' '));
-
 
57
		echo $this->Paginator->next(__(' next') . ' >', array(), null, array('class' => 'next disabled'));
-
 
58
	?>
-
 
59
	</div>
-
 
60
	<script type="text/javascript">
42
	<script type="text/javascript">
61
		$('#mySelect').on('change', function() {
43
		$('#mySelect').on('change', function() {
62
			  var value = $(this).val();
44
			  var value = $(this).val();
63
			  if(value=='yesterday'){
45
			  if(value=='yesterday'){
64
			  	 $('#date_range').hide();
46
			  	 $('#date_range').hide();
Line 79... Line 61...
79
    if($("#mySelect").val() == "today"){
61
    if($("#mySelect").val() == "today"){
80
        $("#date_range").hide();
62
        $("#date_range").hide();
81
    	}
63
    	}
82
	});
64
	});
83
	</script>
65
	</script>
84
</div>
66
</div>
85
67