Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
18770 manish.sha 1
<div class="container">
18781 manish.sha 2
	<div class="row">
19892 manas 3
		<div class="col-xs-12">
4
			<?php echo $this->Form->create('UserSanctions');
5
				$searchtype = array(0 => 'Default', 1=> 'Loan Amount');
6
				echo $this->Form->input('searchUserBy',array('options'=> $searchtype ));
7
				echo $this->Form->end(__('Submit'));?>
8
		</div>
9
	</div>
10
 
11
	<div class="row">
18781 manish.sha 12
		<div class="col-lg-12 table-responsive">
13
			<h3>List of User Sanctions</h3>
14
			<table class="table table-striped">
15
				<thead>
16
					<tr>
18791 manish.sha 17
						<th><?php echo ('UserId');?></th>
19729 naman 18
						<th><?php echo ('UserName');?></th>
18781 manish.sha 19
						<th><?php echo ('Creditor_Id');?></th>
20
						<th><?php echo ('Credit_limit');?></th>
21
						<th><?php echo ('Credit_blocked');?></th>
22
						<th><?php echo ('Loan');?></th>
18791 manish.sha 23
						<th><?php echo ('Credit_available');?></th>
18781 manish.sha 24
						<th><?php echo ('Status');?></th>
25
						<th><?php echo ('Created');?></th>
18791 manish.sha 26
						<th><?php echo ('Updated');?></th>
18781 manish.sha 27
						<th><?php echo ('Ticket_Size');?></th>
28
					</tr>
29
				</thead>
30
				<tbody>
31
					<?php foreach($userSanctions AS $userSanction):?>
32
						<tr>
18789 manish.sha 33
							<td><?php echo $usersMap[$userSanction['user_id']];?></td>
19729 naman 34
							<td><?php echo $usersName[$userSanction['user_id']];?></td>
18781 manish.sha 35
							<td><?php echo $userSanction['creditor_id'];?></td>
36
							<td><?php echo $userSanction['credit_limit'];?></td>
37
							<td><?php echo $userSanction['credit_blocked'];?></td>
19892 manas 38
							<?php if($userSanction['loan']!=0) {?>
39
							<td><?php echo $this->Html->link(__(h(explode('_', $userSanction['loan'])[0])), array('action' => 'outstanding/loan', $userSanction['user_id']));?>
40
							</td>
41
							<?php }else {?>
42
							<td><?php echo $userSanction['loan'];}?></td>
18783 manish.sha 43
							<td><?php echo intval($userSanction['credit_limit'])-(intval($userSanction['credit_blocked'])+intval($userSanction['loan']));?></td>
18781 manish.sha 44
							<td><?php echo $userSanction['active'];?></td>
45
							<td><?php echo date("d/m/Y H:i:s", intval($userSanction['created'])/1000);?></td>
46
							<td><?php echo date("d/m/Y H:i:s", intval($userSanction['updated'])/1000);?></td>
47
							<td><?php echo $userSanction['ticket_size'];?></td>
48
						</tr>
49
					<?php endforeach;?>
50
				</tbody>
51
			</table>
52
		</div>
53
	</div>
18770 manish.sha 54
</div>