Subversion Repositories SmartDukaan

Rev

Rev 14098 | Rev 14517 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13646 anikendra 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-3">
4
			<?php echo $this->Element('adminactions');?>
5
		</div>
6
		<div class="col-lg-9">
7
			<h2><?php echo __('Exceptional Nlcs'); ?></h2>
8
			<table class="table table-striped">
9
			<tr>
10
					<th><?php echo ('sku'); ?></th>
14401 anikendra 11
					<th><?php echo ('maxNlc'); ?></th>
12
					<th><?php echo ('minNlc'); ?></th>
13
					<th><?php echo ('overrideNlc'); ?></th>
13646 anikendra 14
					<th class="actions"><?php echo __('Actions'); ?></th>
15
			</tr>
16
			<?php foreach ($exceptionalnlcs as $exceptionalnlc): ?>
17
			<?php $exceptionalnlc = json_decode($exceptionalnlc,1);?>
18
			<tr>
19
				<td><?php echo h($exceptionalnlc['sku']); ?>&nbsp;</td>
14098 anikendra 20
				<td class="edit" id="maxNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['maxNlc']); ?></td>
21
				<td class="edit" id="minNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['minNlc']); ?></td>
14401 anikendra 22
				<td class="editable" id="overrideNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo $exceptionalnlc['overrideNlc']==1?'Yes':'No'; ?></td>
13646 anikendra 23
				<td class="actions">
14098 anikendra 24
					<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $exceptionalnlc['_id']['$oid'])); ?>
13646 anikendra 25
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $exceptionalnlc['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $exceptionalnlc['_id']['$oid'])); ?>
26
				</td>
27
			</tr>
28
		<?php endforeach; ?>
29
			</table>			
30
		</div>
31
	</div>
14098 anikendra 32
	<nav>
33
	  <ul class="pager">
34
	  	<?php if($page>1):?>
35
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
36
		<?php endif;?>
37
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
38
	  </ul>
39
	</nav>
13646 anikendra 40
</div>
14401 anikendra 41
<script type="text/javascript">
42
 $(document).ready(function() {    
43
	$('.editable').editable(base_url+'admin/'+controller+'/update', {
44
		data   : "{0:'No',1:'Yes'}",
45
		type   : 'select',
46
		submit : 'OK',
47
		tooltip   : 'Click to edit...',
48
		submitdata : function(value, settings) {
49
		   	return {oid: $(this).data('oid')};
50
		}
51
	});
52
});
53
</script>