<?php echo $this->render('admin/header.phtml'); ?>

<?php

//	$val = $this->ProductFieldnameInfo;
//	var_dump($val);die();
?>

<style>
.formLabelMarginTopNW{
    white-space: nowrap;
}
</style>

<script type="text/javascript" language="javascript">

	$(document).ready(function () {

		<?php if( isset( $this->editnamesProductSuccess ) ){ ?>
			alertify.success("<i class='fa fa-check'></i> <?php echo @Lib_Lang::translate(admin_product_editnames_success); ?>");
		<?php } ?>
		
	});

</script>

<div class="container">		

<?php echo $this->render('admin/menu.phtml'); ?>
<?php echo $this->render('admin/productmenu.phtml'); ?>


<script type="text/javascript" language="javascript">

	$(document).ready(function () {	
	
	
	});

</script>

	
	<div class="row">
		<div class="col-xs-3 col-sm-3 col-md-3">
			<h3><?php echo @Lib_Lang::translate(admin_product_edit_top); ?><br /><small><?php echo$this->ProductInfo['product_name']; ?></small></h3>
			
		</div>
		<div class="col-xs-9 col-sm-9 col-md-9 text-right">
		</div>
	</div>

	<?php echo $this->render('admin/producteditmenu.phtml'); ?>

		
	<form id="formEditProduct" method="post" class="form-horizontal">
	
	
	

	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Wymiary"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_size]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size']; ?>" />
		</div>	
		
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Nagłówek "Wymiary"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_size_top]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_top']; ?>" />
		</div>



		
		
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Wysokość"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_height]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_height']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Standardowe wysokości"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_heightstand]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_heightstand']; ?>" />
		</div>	



		
		
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Szerokość"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_width]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_width']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Standardowe szerokości"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_widthstand]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_widthstand']; ?>" />
		</div>	



		
		
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Głębokość"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_depth]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_depth']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Standardowe głębokości"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_depthstand]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_depthstand']; ?>" />
		</div>	
		
		
		
		
		
		
		
		<?php if( $this->ProductInfo['product_shelf'] == 1 ){ ?>
		
		<br /><br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Nagłówek "Półki"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_shelf_top]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_shelf_top']; ?>" />
		</div>
		
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Ilość półek"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_shelf]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_shelf']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Standardowe ilości półek"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_shelfstand]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_shelfstand']; ?>" />
		</div>
		
		<?php } ?>
		
		
		
		
		
		
		<?php 
		
		$lit = array('A','B','C','D','E');
		foreach( $lit as $key => $l ){
		if( $this->ProductInfo['product_wysszer'.$l] == 1 ){ 
		?>
		
		<br /><br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Wysokość/Szerokość <?php echo$l; ?>"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_wysszer<?php echo$l; ?>_top]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_wysszer'.$l.'_top']; ?>" />
		</div>
		
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Wartości" (<?php echo$l; ?>)
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_wysszer<?php echo$l; ?>]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_wysszer'.$l]; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Standardowe parametry" (<?php echo$l; ?>)
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_size_wysszer<?php echo$l; ?>stand]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_size_wysszer'.$l.'stand']; ?>" />
		</div>
		
		<?php 
		} 
		}
		?>
		
		
		
		
		
		
	</div>
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	
	
	

	<?php if( $this->ProductInfo['product_body'] == 1 ){ ?>
	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Korpusy"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_body]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_body']; ?>" />
		</div>		
	</div>
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	<?php } ?>
	
	
	

	<?php if( $this->ProductInfo['product_front'] == 1 ){ ?>
	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Fronty"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_front]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_front']; ?>" />
		</div>		
	</div>
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	<?php } ?>
	
	
	

	<?php if( $this->ProductInfo['product_type'] == 1 ){ ?>
	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Typy"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_type]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_type']; ?>" />
		</div>		
	</div>
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	<?php } ?>
	
	
	

	<?php if( $this->ProductInfo['product_accessories'] == 1 ){ ?>
	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Akcesoria"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_accessories]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_accessories']; ?>" />
		</div>		
	</div>
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	<?php } ?>
	
	
	

	<?php if( $this->ProductInfo['product_legs'] == 1 ){ ?>
	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Złącza"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_legs]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_legs']; ?>" />
		</div>		
	</div>
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	<?php } ?>
	
	
	

	<?php if( $this->ProductInfo['product_handles'] == 1 ){ ?>
	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Uchwyty"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_handles]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_handles']; ?>" />
		</div>		
	</div>
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	<?php } ?>
	
	
	

	<?php if( $this->ProductInfo['product_options'] == 1 OR $this->ProductInfo['product_options2'] == 1 ){ ?>
	<div class="row">	
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			Tytuł belki "Zaawansowane"
		</div>
		<div class="col-xs-10 col-sm-10 col-md-10">
			<input maxlength="100" name="fieldnames[product_fieldname_options]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options']; ?>" />
		</div>		
	</div>
	
		
	<?php if( $this->ProductInfo['product_options'] == 1 ){ ?>
		<br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Opuszczenie boku prawego"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options1_1]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options1_1']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Opuszczenie boku lewego"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options1_2]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options1_2']; ?>" />
		</div>
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Wysunięcie boku prawego"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options1_3]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options1_3']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Wysunięcie boku lewego"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options1_4]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options1_4']; ?>" />
		</div>
	<?php } ?>
	
		
	<?php if( $this->ProductInfo['product_options2'] == 1 ){ ?>
		<br /><br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Wieniec wpuszczany"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options2_1]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options2_1']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"Wieniec nakładany"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options2_2]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options2_2']; ?>" />
		</div>
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"plecy z wypustem"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options2_3]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options2_3']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"plecy wręgowane"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options2_4]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options2_4']; ?>" />
		</div>
		<br /><br />
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
			"plecy nakładane"
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
			<input maxlength="100" name="fieldnames[product_fieldname_options2_5]" class="form-control" value="<?php echo$this->ProductFieldnameInfo['product_fieldname_options2_5']; ?>" />
		</div>			
		
		<div class="col-xs-2 col-sm-2 col-md-2 text-right formLabelMarginTop formLabelMarginTopNW">
		</div>
		<div class="col-xs-4 col-sm-4 col-md-4">
		</div>
	<?php } ?>
	
	
	
	
	
	
	
	
	
	
	<div class="row"><hr style="background: red;height: 2px;" /></div>	
	<?php } ?>
		
	
	
	
	<div class="row">
		<div class="col-xs-2 col-sm-2 col-md-2 text-right"></div>
		<div class="col-xs-10 col-sm-10 col-md-10"><input name="admin_editnamesproduct" class="btn btn-info form-control" type="submit" value="<?php echo @Lib_Lang::translate(admin_product_editnames_button); ?>" /></div>
	</div>
	
	
	
	</form>	
		
</div>

<?php echo $this->render('admin/footer.phtml'); ?>