Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
19460 naman 1
<script>
2
	$(document).ready(function(){
3
		$("#UserRefundType").change(function(){
4
			if($("#UserRefundType").val() == "Adjustment"){
5
				$('.store').removeClass('hidden');
6
			}
7
			else if($("#UserRefundType").val() == "Refund"){
8
				$('.store').addClass('hidden');
9
			}
10
		})
11
 
12
	});
13
</script>
14
<div class="container">
15
	<div class="row">
16
		<div class="col-lg-3">
17
			<?php echo $this->Element('adminactions');?>
18
		</div>
19
		<div class="col-lg-9">
20
			<?php echo $this->Form->create('UserRefund'); ?>
21
				<fieldset>
22
					<legend><?php echo __('Add Refund Data'); ?></legend>
23
				<?php
24
					echo $this->Form->input('user_id',array('value'=>$id,'type'=>'text','readonly'=> true));
25
					echo $this->Form->input('email_id',array('value'=>$email,'type'=>'text','readonly'=> true));
26
 
27
					echo $this->Form->input('mobile',array('value'=>$phone,'readonly'=>true));
21091 amit.gupta 28
					echo $this->Form->input('amount',array('type'=>'number','required'=>1, 'min'=>"0",'max'=>"5000"));
19460 naman 29
 
30
					$type=array('Refund'=>'Refund','Adjustment'=>'Adjustment');
31
    				echo $this->Form->input('type', array('options'=>$type, 'selected'=>'Refund'));
32
    			?>
33
    			<div class = "store hidden">
34
    				<?php 
35
    				$storelist = array(''=> '' , 1=> 'Amazon',2=>'Flipkart' ,3 => 'Snapdeal', 4=>'Sahoic',5=>'Shopclues',6=>'Paytm',7=>'Homeshop18');
36
    				echo $this->Form->input('store',array('options'=>$storelist,'selected'=> ''));
37
    				?>
38
    			</div>
39
    			<?php 
40
    				echo $this->Form->input('reference_no',array('required'=>1));
41
    				echo $this->Form->input('reference_description',array('type' => 'textarea','required'=> 1));
42
				?>
43
				</fieldset>
44
			<?php echo $this->Form->end(__('Submit')); ?>
45
			</div>
46
		</div>
47
	</div>
48
</div>
49