Subversion Repositories SmartDukaan

Rev

Rev 18907 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18808 manish.sha 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-12 table-responsive">
4
			<h3>Credit History Transactions</h3>
5
			<table class="table table-striped">
6
				<thead>
7
					<tr>
8
						<th><?php echo ('Id');?></th>
9
						<th><?php echo ('UserId');?></th>
19728 naman 10
						<th><?php echo ('UserName');?></th>
18808 manish.sha 11
						<th><?php echo ('Creditor_Id');?></th>
12
						<th><?php echo ('Payment_id');?></th>
13
						<th><?php echo ('Amount');?></th>
14
						<th><?php echo ('Transaction_type');?></th>
15
						<th><?php echo ('Created');?></th>
16
						<th><?php echo ('Shipping_id');?></th>
17
					</tr>
18
				</thead>
19
				<tbody>
20
					<?php foreach($creditHistory AS $creditH):?>
21
						<tr>
22
							<td><?php echo $creditH['id'];?></td>
18850 naman 23
							<td>
18857 naman 24
							<?php echo $this->Html->link($usersMap[$creditH['user_id']], array('controller' => 'users', 'action' => 'credithistory',$usersMap[$creditH['user_id']])); ?>
18850 naman 25
							<?php //echo $usersMap[$creditH['user_id']];?>							
26
							</td>
19728 naman 27
							<td><?php echo $usersName[$creditH['user_id']];?></td>
18808 manish.sha 28
							<td><?php echo $creditH['creditor_id'];?></td>
29
							<td><?php echo $creditH['payment_id'];?></td>
30
							<td><?php echo $creditH['amount'];?></td>
31
							<td><?php echo $creditH['credit_type'];?></td>
32
							<td><?php echo $creditH['created'];?></td>
33
							<td><?php echo $creditH['shipping_id'];?></td>
34
						</tr>
35
					<?php endforeach;?>
36
				</tbody>
37
			</table>
38
		</div>
39
	</div>
18850 naman 40
	<ul class="pager">
41
	  	<?php if($page>1):?>
18907 naman 42
	    	<li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
18850 naman 43
		<?php endif;?>
18907 naman 44
		<?php if($hasMore == true):?>
45
	    	<li><a href="?page=<?php echo $page+1;?>">Next</a></li>
46
	    <?php endif;?>
18850 naman 47
  	</ul>
18808 manish.sha 48
</div>