
					
					
					
					
				<?php if( $this->rowProduct['product_options'] == 1 OR $this->rowProduct['product_options2'] == 1 ){ ?>
					<div class="configuratorMenuElement" data-field="optionsBox"><?php if( $this->ProductFieldnameInfo['product_fieldname_options'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options']; else echo @Lib_Lang::translate(front_configurator_options); ?><div class="configuratorMenuElementZR"><?php echo @Lib_Lang::translate(front_configurator_zr); ?></div></div>
					
					
				<div class="configuratorDiv">
				
				
				
				<div class="configuratorDivElement" id="optionsBox">
				
				
				
				
				
				
					
				<?php if( $this->rowProduct['product_options'] == 1 ){ ?>
					<div>					
						<h4><?php if( $this->ProductFieldnameInfo['product_fieldname_options'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options']; else echo @Lib_Lang::translate(front_configurator_options); ?></h4>					
					
					
					<div class="row" style="margin:5px;">
					<script type="text/javascript" language="javascript">

						$(document).ready(function () {	
					
							$(".elementItemOptions").click(function(){
								$(".elementItemOptions").removeClass('activ');
								$(this).addClass('activ');	
								
							});
					
							$(".elementItemOptions2").click(function(){
								$(".elementItemOptions2").removeClass('activ');
								$(this).addClass('activ');	
								
							});
							
							$('#opti1H').hover(function(){
								$('.wizualizacjaop').hide();
								$('#opti1').show();
							});
							
							$('#opti2H').hover(function(){
								$('.wizualizacjaop').hide();
								$('#opti2').show();
							});
							
							$('#opti3H').hover(function(){
								$('.wizualizacjaop').hide();
								$('#opti3').show();
							});
							
							$('#opti4H').hover(function(){
								$('.wizualizacjaop').hide();
								$('#opti4').show();
							});
							
							$('[name^="product_options_"]').change(function(){
								var idProduct = <?php echo$this->idProduct;?>;
								var pole = $(this).attr('name');
								var value = $(this).val();
								if( value > 150 ){
									$(this).val(150);
									value = 150;
								}
								if( value < 0 ){
									$(this).val(0);
									value = 0;
								}
								
								$( "#shopProduct" ).load( "<?php echo $this->url(array('controller' => 'product', 'action' => 'productshop'), 'default', true); ?>", {product_id: idProduct, product_field: pole, product_value: value}, function(){$('#productTable').load( "<?php echo $this->url(array('controller' => 'product', 'action' => 'productshoptable'), 'default', true); ?>", {product_id: <?php echo$this->idProduct; ?>}, function(){} );} );								
							});
							
						});

					</script>
					
					<table width="100%">
						<tr>
						<td>
						
						<table width="100%" class="tr12">
							<tr id="opti1H">
								<td width="200px"><?php if( $this->ProductFieldnameInfo['product_fieldname_options1_1'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options1_1']; else echo @Lib_Lang::translate(front_option1); ?></td>
								<td style="text-align:right;"><input style="width:60px;" name="product_options_1" type="number" step="1" min="0" max="150" value="<?php echo$this->dataSelect['product_options_1'];?>" /></td>
							</tr>
							<tr id="opti2H">
								<td width="200px"><?php if( $this->ProductFieldnameInfo['product_fieldname_options1_2'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options1_2']; else echo @Lib_Lang::translate(front_option2); ?></td>
								<td style="text-align:right;"><input style="width:60px;" name="product_options_2" type="number" step="1" min="0" max="150" value="<?php echo$this->dataSelect['product_options_2'];?>" /></td>
							</tr>
							<tr id="opti3H">
								<td width="200px"><?php if( $this->ProductFieldnameInfo['product_fieldname_options1_3'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options1_3']; else echo @Lib_Lang::translate(front_option3); ?></td>
								<td style="text-align:right;"><input style="width:60px;" name="product_options_3" type="number" step="1" min="0" max="150" value="<?php echo$this->dataSelect['product_options_3'];?>" /></td>
							</tr>
							<tr id="opti4H">
								<td width="200px"><?php if( $this->ProductFieldnameInfo['product_fieldname_options1_4'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options1_4']; else echo @Lib_Lang::translate(front_option4); ?></td>
								<td style="text-align:right;"><input style="width:60px;" name="product_options_4" type="number" step="1" min="0" max="150" value="<?php echo$this->dataSelect['product_options_4'];?>" /></td>
							</tr>
						</table>
						
						</td>
						<td width="210px" height="290px" align="center" style="background-color:#fff;">
						
							<?php								
								for( $iJ = 1; $iJ <= 4; $iJ++ ){
								if( $this->rowProduct['product_options_'.$iJ.'_img'] != '' ){
							?>
							<div class="wizualizacjaop" id="opti<?php echo$iJ; ?>" style="display:none;"><img src="<?php echo $this->escape($this->baseUrl); ?>/public/uploads/options/<?php echo$this->rowProduct['product_options_'.$iJ.'_img']; ?>.jpeg" style="width:140px;" /></div>
							<?php		
								}
								}
							?>
							
							<?php /*
							<div class="wizualizacjaop" id="opti2" style="display:none;"><img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/o2.jpg" style="width:140px;" /></div>
							<div class="wizualizacjaop" id="opti3" style="display:none;"><img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/o3.jpg" style="width:140px;" /></div>
							<div class="wizualizacjaop" id="opti4" style="display:none;"><img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/o4.jpg" style="width:140px;" /></div>
							*/ ?>
						</td>
						</tr>
					</table>
					
					</div>
					</div>
					
				<?php } ?>
					
					
					
					
				<?php if( $this->rowProduct['product_options2'] == 1 ){ ?>
					<div>							
					
					
					<div class="row" style="margin:5px;">
					
					
					
					
					<div style="width:100%;float:left;margin-top:15px;margin-bottom:15px;">
						<div class="elementItem elementItemOptions<?php if($this->dataSelect['product_options_id']==0)echo' activ';?><?php echo' hand';?>" data-field="product_options_id" data-value="0">	
							<?php /* ?>
								<div style="background-color:#fff;width:100%;height: 95px;margin-bottom:3px;text-align:center;padding-top:15px;">
									<img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/ww0.jpg" />
								</div>
							<?php */ ?>
							<?php if( $this->rowProduct['product_options2_img1'] ){ ?>
								<div style="background: url('<?php echo $this->escape($this->baseUrl); ?>/public/uploads/options/<?php echo$this->rowProduct['product_options2_img1']; ?>.jpeg');background-repeat: no-repeat;background-size:cover;background-position:center;width:100%;height:95px;margin-bottom:3px;"></div>
							<?php }else{ ?>			
								<div style="width:100%;height:95px;margin-bottom:3px;">
								</div>
							<?php } ?>
							<center><?php if( $this->ProductFieldnameInfo['product_fieldname_options2_1'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options2_1']; else echo @Lib_Lang::translate(front_optionww0); ?></center>
						</div>					
						
						<div class="elementItem elementItemOptions<?php if($this->dataSelect['product_options_id']==1)echo' activ';?><?php echo' hand';?>" data-field="product_options_id" data-value="1">	
							<?php /* ?>
								<div style="background-color:#fff;width:100%;height: 95px;margin-bottom:3px;text-align:center;padding-top:15px;">
									<img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/ww1.jpg" />
								</div>
							<?php */ ?>
							<?php if( $this->rowProduct['product_options2_img2'] ){ ?>
								<div style="background: url('<?php echo $this->escape($this->baseUrl); ?>/public/uploads/options/<?php echo$this->rowProduct['product_options2_img2']; ?>.jpeg');background-repeat: no-repeat;background-size:cover;background-position:center;width:100%;height:95px;margin-bottom:3px;"></div>
							<?php }else{ ?>			
								<div style="width:100%;height:95px;margin-bottom:3px;">
								</div>
							<?php } ?>
							<center><?php if( $this->ProductFieldnameInfo['product_fieldname_options2_2'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options2_2']; else echo @Lib_Lang::translate(front_optionww1); ?></center>
						</div>	
					</div>
					
					
					<div style="width:100%;float:left;margin-top:15px;margin-bottom:15px;">
						<div class="elementItem elementItemOptions2<?php if($this->dataSelect['product_options_id2']==0)echo' activ';?><?php echo' hand';?>" data-field="product_options_id2" data-value="0">	
							<?php /* ?>
								<div style="background-color:#fff;width:100%;height: 95px;margin-bottom:3px;text-align:center;padding-top:15px;">
									<img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/pp0.jpg" />
								</div>
							<?php */ ?>
							<?php if( $this->rowProduct['product_options2_img3'] ){ ?>
								<div style="background: url('<?php echo $this->escape($this->baseUrl); ?>/public/uploads/options/<?php echo$this->rowProduct['product_options2_img3']; ?>.jpeg');background-repeat: no-repeat;background-size:cover;background-position:center;width:100%;height:95px;margin-bottom:3px;"></div>
							<?php }else{ ?>			
								<div style="width:100%;height:95px;margin-bottom:3px;">
								</div>
							<?php } ?>
							<center><?php if( $this->ProductFieldnameInfo['product_fieldname_options2_3'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options2_3']; else echo @Lib_Lang::translate(front_optionpp1); ?></center>
						</div>					
						
						<div class="elementItem elementItemOptions2<?php if($this->dataSelect['product_options_id2']==1)echo' activ';?><?php echo' hand';?>" data-field="product_options_id2" data-value="1">	
							<?php /* ?>
								<div style="background-color:#fff;width:100%;height: 95px;margin-bottom:3px;text-align:center;padding-top:15px;">
									<img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/pp1.jpg" />
								</div>
							<?php */ ?>
							<?php if( $this->rowProduct['product_options2_img4'] ){ ?>
								<div style="background: url('<?php echo $this->escape($this->baseUrl); ?>/public/uploads/options/<?php echo$this->rowProduct['product_options2_img4']; ?>.jpeg');background-repeat: no-repeat;background-size:cover;background-position:center;width:100%;height:95px;margin-bottom:3px;"></div>
							<?php }else{ ?>			
								<div style="width:100%;height:95px;margin-bottom:3px;">
								</div>
							<?php } ?>
							<center><?php if( $this->ProductFieldnameInfo['product_fieldname_options2_4'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options2_4']; else echo @Lib_Lang::translate(front_optionpp2); ?></center>
						</div>				
						
						<div class="elementItem elementItemOptions2<?php if($this->dataSelect['product_options_id2']==2)echo' activ';?><?php echo' hand';?>" data-field="product_options_id2" data-value="2">
							<?php /* ?>	
								<div style="background-color:#fff;width:100%;height: 95px;margin-bottom:3px;text-align:center;padding-top:15px;">
									<img src="<?php echo $this->escape($this->baseUrl); ?>/public/images/pp2.jpg" />
								</div>
							<?php */ ?>
							<?php if( $this->rowProduct['product_options2_img5'] ){ ?>
								<div style="background: url('<?php echo $this->escape($this->baseUrl); ?>/public/uploads/options/<?php echo$this->rowProduct['product_options2_img5']; ?>.jpeg');background-repeat: no-repeat;background-size:cover;background-position:center;width:100%;height:95px;margin-bottom:3px;"></div>
							<?php }else{ ?>			
								<div style="width:100%;height:95px;margin-bottom:3px;">
								</div>
							<?php } ?>
							<center><?php if( $this->ProductFieldnameInfo['product_fieldname_options2_5'] != '' ) echo $this->ProductFieldnameInfo['product_fieldname_options2_5']; else echo @Lib_Lang::translate(front_optionpp3); ?></center>
						</div>	
					</div>
					
					 
					
					</div>
					</div>
				<?php } ?>
				
				
				
				
				
				</div>
				
				
				
				
				
				
				
				
				
				
				
				
				
				</div>




				
				<?php } ?>