Subversion Repositories SmartDukaan

Rev

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

Rev 5766 Rev 5775
Line 10... Line 10...
10
<link rel="stylesheet" href="/Support/css/lightbox_inline.css" type="text/css" media="all" />
10
<link rel="stylesheet" href="/Support/css/lightbox_inline.css" type="text/css" media="all" />
11
 
11
 
12
<script type="text/javascript">
12
<script type="text/javascript">
13
$(function() {
13
$(function() {
14
 
14
 
-
 
15
	$('#selectreason').change(function(){
-
 
16
		if($(this).val() == "Other"){
-
 
17
			$('#reason').show();
-
 
18
			$('#reason').addClass('required');
-
 
19
		}else{
-
 
20
			$('#reason').hide();
-
 
21
			$('#reason').removeClass('required');
-
 
22
			$('label.error').remove();
-
 
23
		}
-
 
24
	});
15
	
25
	
-
 
26
 
16
	$('.receiveform').live('click', function() {
27
	$('.receiveform').live('click', function() {
17
		jacketnumber = $('input[name=jacketnumber]',$(this).parent()).val()
28
		jacketnumber = $('input[name=jacketnumber]',$(this).parent()).val()
18
		ojacketnumber = $('input[name=jacketnumber]',$(this).parent()).attr('jacketnumber');
29
		ojacketnumber = $('input[name=jacketnumber]',$(this).parent()).attr('jacketnumber');
19
		if(jacketnumber != ojacketnumber){
30
		if(jacketnumber != ojacketnumber){
20
			alert("Jacket Number does not match. Enter correct jacket number.");
31
			alert("Jacket Number does not match. Enter correct jacket number.");
Line 121... Line 132...
121
			var disableAWB = '';
132
			var disableAWB = '';
122
			if(fillAWB){
133
			if(fillAWB){
123
				oldAWB =  $('td', $(this))[4].innerHTML;
134
				oldAWB =  $('td', $(this))[4].innerHTML;
124
				disableAWB = 'readonly';
135
				disableAWB = 'readonly';
125
			}
136
			}
126
			radBtn = radBtn + '<span class="rorder"><input type="checkbox" name="oid" value="' + orderId + '" checked/>' + orderId +'<input type="text" name="awb" readonly="' + disableAWB + '" value="' + oldAWB + '"/></br></span>'; 
137
			radBtn = radBtn + '<span class="rorder"><input type="checkbox" name="oid" value="' + orderId + '" checked/>' + orderId +'<input type="text" name="awb" ' + disableAWB + ' value="' + oldAWB + '"/></br></span>'; 
127
 
138
 
128
 		});
139
 		});
129
 
140
 
130
		$(".colorSelLightBoxColor .content").html(radBtn);
141
		$(".colorSelLightBoxColor .content").html(radBtn);
131
				
142
				
Line 406... Line 417...
406
#end
417
#end
407
 
418
 
408
</table>
419
</table>
409
 
420
 
410
</br>
421
</br>
411
<button type="button" onclick="this.disabled=true;openDialogue($provider.getId(), #if($provider.getPickup().getValue() == 1) true #else false #end);" >Return orders for $provider.getName()</button>
422
<button type="button" onclick="openDialogue($provider.getId(), #if($provider.getPickup().getValue() == 1) true #else false #end);" >Return orders for $provider.getName()</button>
412
</br>
423
</br>
413
#end
424
#end
414
 
425
 
415
#elseif($action.getId() == "report")
426
#elseif($action.getId() == "report")
416
	
427
	
Line 461... Line 472...
461
	<!-- /color by color lightbox -->
472
	<!-- /color by color lightbox -->
462
	
473
	
463
 
474
 
464
		<!-- color by color lightbox -->
475
		<!-- color by color lightbox -->
465
	<div style="display:none;">
476
	<div style="display:none;">
466
		<div class="cancelReasonLightBox">
477
		<div style="height:150px;" class="cancelReasonLightBox">
467
			<form name="frmColorSelName" method="post" action="$request.getContextPath()/pickup-store">
478
			<form id="frmColorSelName" name="frmColorSelName" method="post" action="$request.getContextPath()/pickup-store">
468
				<h6>Enter reason and confirm</h6>
479
				<h4>Select reason and confirm</h4>
469
				<div class="content">
480
				<div class="content">
470
				</div>
481
				</div>
471
				<div class="bigImgButton yellow-image">
482
				<div class="bigImgButton yellow-image">
472
					<input id="action" name="action" value="markrejected" type="hidden">
483
					<input id="action" name="action" value="markrejected" type="hidden">
-
 
484
					<select style="width:250px;" id="selectreason" name="selectreason">
-
 
485
						<option>Jacket tampered.</option>
-
 
486
						<option>Jacket number does not match.</option>
-
 
487
						<option>Dispatch advice not legible.</option>
-
 
488
						<option>Packet damaged.</option>
-
 
489
						<option>Other</option>
-
 
490
                    </select>
-
 
491
					</br>
-
 
492
					</br>
473
					<input type="text" id="reason" class="required number" name="reason"/>
493
					<input  style="display:none" type="text" id="reason" name="reason"/>
-
 
494
					</br>
474
					<input type="submit" value="Confirm">
495
					<input type="submit" value="Confirm">
475
				</div>
496
				</div>
476
				<div class="clearBoth"></div>
497
				<div class="clearBoth"></div>
477
			</form>
498
			</form>
478
		</div>
499
		</div>
479
	</div>
500
	</div>
480
	<!-- /color by color lightbox -->
501
	<!-- /color by color lightbox -->
481
 
502
 
482
 
503
 
-
 
504
<script type="text/javascript" charset="utf-8">
-
 
505
	$(function(){
-
 
506
    	$("form#frmColorSelName").validate();
-
 
507
	});
-
 
508
</script>
-
 
509
 
483
</html>
510
</html>
484
511