Subversion Repositories SmartDukaan

Rev

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

Rev 14098 Rev 14401
Line 6... Line 6...
6
		<div class="col-lg-9">
6
		<div class="col-lg-9">
7
			<h2><?php echo __('Exceptional Nlcs'); ?></h2>
7
			<h2><?php echo __('Exceptional Nlcs'); ?></h2>
8
			<table class="table table-striped">
8
			<table class="table table-striped">
9
			<tr>
9
			<tr>
10
					<th><?php echo ('sku'); ?></th>
10
					<th><?php echo ('sku'); ?></th>
11
					<th><?php echo ('max Nlc'); ?></th>
11
					<th><?php echo ('maxNlc'); ?></th>
12
					<th><?php echo ('min Nlc'); ?></th>
12
					<th><?php echo ('minNlc'); ?></th>
-
 
13
					<th><?php echo ('overrideNlc'); ?></th>
13
					<th class="actions"><?php echo __('Actions'); ?></th>
14
					<th class="actions"><?php echo __('Actions'); ?></th>
14
			</tr>
15
			</tr>
15
			<?php foreach ($exceptionalnlcs as $exceptionalnlc): ?>
16
			<?php foreach ($exceptionalnlcs as $exceptionalnlc): ?>
16
			<?php $exceptionalnlc = json_decode($exceptionalnlc,1);?>
17
			<?php $exceptionalnlc = json_decode($exceptionalnlc,1);?>
17
			<tr>
18
			<tr>
18
				<td><?php echo h($exceptionalnlc['sku']); ?>&nbsp;</td>
19
				<td><?php echo h($exceptionalnlc['sku']); ?>&nbsp;</td>
19
				<td class="edit" id="maxNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['maxNlc']); ?></td>
20
				<td class="edit" id="maxNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['maxNlc']); ?></td>
20
				<td class="edit" id="minNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['minNlc']); ?></td>
21
				<td class="edit" id="minNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo h($exceptionalnlc['minNlc']); ?></td>
-
 
22
				<td class="editable" id="overrideNlc" data-oid="<?php echo $exceptionalnlc['_id']['$oid'];?>"><?php echo $exceptionalnlc['overrideNlc']==1?'Yes':'No'; ?></td>
21
				<td class="actions">
23
				<td class="actions">
22
					<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $exceptionalnlc['_id']['$oid'])); ?>
24
					<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $exceptionalnlc['_id']['$oid'])); ?>
23
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $exceptionalnlc['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $exceptionalnlc['_id']['$oid'])); ?>
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'])); ?>
24
				</td>
26
				</td>
25
			</tr>
27
			</tr>
Line 34... Line 36...
34
		<?php endif;?>
36
		<?php endif;?>
35
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
37
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
36
	  </ul>
38
	  </ul>
37
	</nav>
39
	</nav>
38
</div>
40
</div>
-
 
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>
39
54