<?php /* Smarty version Smarty-3.1.19, created on 2020-10-05 20:23:47
         compiled from "/home/visionwe/public_html/mateckk/themes/default-bootstrap/product-form-5511.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10185927745f7b64b3b659f0-20836607%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '83a28cfe4fca0ff7e24bbf7548d381e2bb9fe59e' => 
    array (
      0 => '/home/visionwe/public_html/mateckk/themes/default-bootstrap/product-form-5511.tpl',
      1 => 1601922198,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10185927745f7b64b3b659f0-20836607',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'product' => 0,
    'stf_secure_key' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5f7b64b3bb7530_38057877',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5f7b64b3bb7530_38057877')) {function content_5f7b64b3bb7530_38057877($_smarty_tpl) {?><div class="info-productm"></div>
<form id="envioVWP">
<div class="info-product">
	<div class="row">
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom1">*<?php echo smartyTranslate(array('s'=>"Name"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom1" id="custom1" />
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom2"><?php echo smartyTranslate(array('s'=>"Firma/Institut"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom2" id="custom2" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom3">*<?php echo smartyTranslate(array('s'=>"Email"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom3" id="custom3" />
			</div>
		</div>
	</div>
	<hr/>
	<div class="row">
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom4">*<?php echo smartyTranslate(array('s'=>"Menge"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom4" id="custom4" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom5">*<?php echo smartyTranslate(array('s'=>"Material"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom5" id="custom5" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom6">*<?php echo smartyTranslate(array('s'=>"Dicke A (mm)"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom6" id="custom6" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom7">*<?php echo smartyTranslate(array('s'=>"Durchmesser B (mm)"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom7" id="custom7" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom15">*<?php echo smartyTranslate(array('s'=>"Abmessung C (mm)"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom15" id="custom15" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom16">*<?php echo smartyTranslate(array('s'=>"Abmessung D"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom16" id="custom16" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom17">*<?php echo smartyTranslate(array('s'=>"Abmessung E"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom17" id="custom17" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom18">*<?php echo smartyTranslate(array('s'=>"Durchmesser F"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom18" id="custom18" />
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-12">		
			<div class="checkbox">
				<label>
				  <input type="checkbox" name="custom8" id="custom8"> <?php echo smartyTranslate(array('s'=>"As cut"),$_smarty_tpl);?>

				</label>
			</div>
		</div>
	</div>
	<hr/>
	<div class="row">
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom9"><?php echo smartyTranslate(array('s'=>"Politur mit einer Rauheit (Ra) < 0,01 μm"),$_smarty_tpl);?>
:</label>
				<select class="form-control" id="custom9" name="custom9">
					<option value="" selected="selected"></option>
					<option value="<?php echo smartyTranslate(array('s'=>'einseitige Politur','mod'=>'infoproduct'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'einseitige Politur','mod'=>'infoproduct'),$_smarty_tpl);?>
</option>
					<option value="<?php echo smartyTranslate(array('s'=>'beidseitige Politur','mod'=>'infoproduct'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'beidseitige Politur','mod'=>'infoproduct'),$_smarty_tpl);?>
</option>
				</select>
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom10"><?php echo smartyTranslate(array('s'=>"Orientierungsgenauigkeit"),$_smarty_tpl);?>
:</label>
				<select class="form-control" id="custom10" name="custom10">
					<option value="" selected="selected"></option>
					<option value="<?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 2°','mod'=>'infoproduct'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 2°','mod'=>'infoproduct'),$_smarty_tpl);?>
</option>
					<option value="<?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 1°','mod'=>'infoproduct'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 1°','mod'=>'infoproduct'),$_smarty_tpl);?>
</option>
					<option value="<?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 0,4°','mod'=>'infoproduct'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 0,4°','mod'=>'infoproduct'),$_smarty_tpl);?>
</option>
					<option value="<?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 0,1°','mod'=>'infoproduct'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Orientierungsgenauigkeit < 0,1°','mod'=>'infoproduct'),$_smarty_tpl);?>
</option>
				</select>
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom11"><?php echo smartyTranslate(array('s'=>"Orientierung"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom11" id="custom11" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom12"><?php echo smartyTranslate(array('s'=>"Zweite Orientierung"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom12" id="custom12" />
			</div>
		</div>
		<div class="col-sm-6">
			<div class="form-group">
				<label for="custom13"><?php echo smartyTranslate(array('s'=>"Referenz Flat"),$_smarty_tpl);?>
:</label>
				<input type="text" class="form-control" name="custom13" id="custom13" />
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-12">
			<div class="form-group">
				<label for="custom14"><?php echo smartyTranslate(array('s'=>"Bemerkung"),$_smarty_tpl);?>
:</label>
				<textarea class="form-control" id="custom14" name="custom14" ></textarea>
			</div>
		</div>
		<div class="col-sm-12">
			<div class="checkbox">
				<label>
				  <input type="checkbox" id="copia" name="copia"> <?php echo smartyTranslate(array('s'=>"Eine Kopie dieser Nachricht an meine E-Mail Adresse"),$_smarty_tpl);?>

				</label>
			</div>
		</div>
		<div class="col-sm-12 text-right">
			<input id="idProduct" name="id_product" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['product']->value->id;?>
" />
			<a class="btn btn-mateck" id="enviarinfo"><?php echo smartyTranslate(array('s'=>'Request now!'),$_smarty_tpl);?>
</a>
		</div>
	</div>
</div>
</form>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('stf_secure_key'=>$_smarty_tpl->tpl_vars['stf_secure_key']->value),$_smarty_tpl);?>

<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_success')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_success'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Your e-mail has been sent successfully','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_success'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_error')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_error'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Your e-mail could not be sent. Please check the e-mail address and try again.','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_error'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_title')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_title'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Send to a friend','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_title'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_required')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_required'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'You did not fill required fields','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_required'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>



<script type="text/javascript">
$(document).ready(function(){
	$('#enviarinfo').click(function(){
		var id_product = $('#idProduct').val();
		var custom1 = $('#custom1').val();
		var custom2 = $('#custom2').val();
		var custom3 = $('#custom3').val();
		var custom4 = $('#custom4').val();
		var custom5 = $('#custom5').val();
		var custom6 = $('#custom6').val();
		var custom7 = $('#custom7').val();
		var custom8 = $('#custom8').val();
		var custom9 = $('#custom9').val();
		var custom10 = $('#custom10').val();
		var custom11 = $('#custom11').val();
		var custom12 = $('#custom12').val();
		var custom13 = $('#custom13').val();
		var custom14 = $('#custom14').val();
		var custom15 = $('#custom15').val();
		var custom16 = $('#custom16').val();
		var custom17 = $('#custom17').val();
		var custom18 = $('#custom18').val();
		if(custom1=='' || custom3=='' || custom4=='' || custom5=='' || custom6=='' || custom7=='' || custom15=='' || custom16=='' || custom17=='' || custom18==''){
			alert('error');
			return;
		}
		if (!isNaN(id_product))
		{
			$.ajax({
				url: baseDir + 'modules/sendtoafriend/sendtoinfo.php?rand=' + new Date().getTime(),
				type: "POST",
				headers: {"cache-control": "no-cache"},
				data: {
					action: 'sendToMyInfo', 
					secure_key: stf_secure_key,
					formulario: id_product,
					parametro1 : custom1, 
					parametro2 : custom2, 
					parametro3 : custom3, 
					parametro4 : custom4, 
					parametro5 : custom5, 
					parametro6 : custom6, 
					parametro7 : custom7, 
					parametro8 : custom8, 
					parametro9 : custom9, 
					parametro10 : custom10, 
					parametro11 : custom11, 
					parametro12 : custom12, 
					parametro13 : custom13, 
					parametro14 : custom14, 
					parametro15 : custom15, 
					parametro16 : custom16, 
					parametro17 : custom17, 
					parametro18 : custom18, 
					id_product: id_product
				},
				dataType: "json",
				success: function(result) {
					$('.info-productm').text((result ? stf_msg_success : stf_msg_error), stf_msg_title);
				}
			});
		}
		else
			$('.info-productm').text(stf_msg_required);
	});
});

</script>
<?php }} ?>
