<?php /* Smarty version 2.6.31, created on 2024-05-20 11:47:39
         compiled from db:formmail_form.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'db:formmail_form.html', 47, false),)), $this); ?>
<script src='https://www.google.com/recaptcha/api.js'></script>

<script type="text/javascript">


	var kakunin_data = 0;

	function syncerRecaptchaCallback( code )
	{
		if(code != "")
		{
			kakunin_data = 1;
		}
	}

	$(function(){

		$('#fsend').on('click',function(){
				if(kakunin_data == 0) {
	     		alert("チェックを入れてくださいね！");
					return false;
			  }
				$('#sendform').submit();
		});
	});




</script>

<?php echo $this->_tpl_vars['formmail']['javascript']; ?>


<h1 class="btitle"><?php echo $this->_tpl_vars['formmail']['title']; ?>
</h1>

<div class="padded">

<div><?php echo $this->_tpl_vars['text_form']; ?>
<br /></div>

<form name="<?php echo $this->_tpl_vars['formmail']['name']; ?>
" action="<?php echo $this->_tpl_vars['formmail']['action']; ?>
" id="sendform" method="<?php echo $this->_tpl_vars['formmail']['method']; ?>
" <?php echo $this->_tpl_vars['formmail']['extra']; ?>
>
<table cellspacing="1" class="outer">
  <?php $_from = $this->_tpl_vars['formmail']['elements']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['element']):
?>
    <?php if ($this->_tpl_vars['element']['hidden'] != true): ?>
      <tr>
	     <td class="formmail_head"><?php echo $this->_tpl_vars['element']['caption']; ?>
</td>
	     <?php if ($this->_tpl_vars['element']['caption'] == $this->_tpl_vars['ATTESTATION_CODE']): ?>
	       <td class="<?php echo smarty_function_cycle(array('values' => "formmail_even,formmail_odd"), $this);?>
">
	         <table border="0">
	           <tr>
	             <td>
	               <?php echo $this->_tpl_vars['element']['body']; ?>

	             </td>
	             <td>
	               <?php echo $this->_tpl_vars['md5ninsyo']; ?>

	             </td>
	           </tr>
	           <tr>
	             <td colspan="2">
	               <?php echo $this->_tpl_vars['ATTESTATION_MESSAGE']; ?>

	             </td>
	           </tr>
	         </table>
	     <?php else: ?>
	       <td class="<?php echo smarty_function_cycle(array('values' => "formmail_even,formmail_odd"), $this);?>
"><?php echo $this->_tpl_vars['element']['body']; ?>

	     <?php endif; ?>
	    </td>
     </tr>
    <?php endif; ?>
  <?php endforeach; endif; unset($_from); ?>
  <?php if ($this->_tpl_vars['formmail_spam'] == 1): ?>
  <tr>
  <td class="formmail_head">SPAM CHECK</td>
  <td class="formmail_even">
    <div class="g-recaptcha" data-callback="syncerRecaptchaCallback" data-sitekey="6LcC-R4UAAAAANjFgqZv0AKhyMvDztv_wuV49ID2"></div>
  </td>
  </tr>
  <?php endif; ?>
  <tr>
		<td class="formmail_head"></td>
  	<td class="formmail_even"><button class="green" id="fsend">送信</button></td>
  </tr>
</table>

<input type="hidden" name="submit" value="1">
  <?php $_from = $this->_tpl_vars['formmail']['elements']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['element']):
?>
    <?php if ($this->_tpl_vars['element']['hidden'] == true): ?>
	    <?php echo $this->_tpl_vars['element']['body']; ?>

    <?php endif; ?>
  <?php endforeach; endif; unset($_from); ?>
</form>
</div>