<?php /* Smarty version 2.6.26, created on 2011-04-11 23:09:14
         compiled from post.htm */ ?>
<script type="text/javascript">
	window.scroll(0,0);
</script>

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


<?php if ($this->_tpl_vars['error'] == 'verify'): ?>
	<div id="post" class="error">
		<p>
			提交失败，请不要重复提交！<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>
	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == 'toplimit'): ?>
	<div id="post" class="error">
		<p>
			提交失败，已超过人数上限！<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>
	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == 'status'): ?>
	<div id="post" class="error">
		<p>
			提交失败，表单还未启用！<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>		
	</div>	
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == 'expire'): ?>
	<div id="post" class="error">
		<p>
			提交失败，表单已经过期！<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>		
	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == 'cookie'): ?>
	<div id="post" class="error">
		<p>
			提交失败，当前计算机已经提交过了？<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>		
	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == 'ip'): ?>
	<div id="post" class="error">
		<p>
			提交失败，当前计算机已经提交过了！<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>		
	</div>	
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == 'number'): ?>
	<div id="post" class="error">
		<p>
			提交失败，每位用户只能参加 <?php echo $this->_tpl_vars['FR']['FORM_NUMBER']; ?>
 次！<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>		
	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == 'null'): ?>
	<div id="post" class="error">
		<p>
			提交失败，没有收到数据！<a href="?id=<?php echo $this->_tpl_vars['fid']; ?>
" onclick="javascript:history.back(); return false;">返回操作</a>
		</p>		
	</div>	
<?php endif; ?>

<?php if ($this->_tpl_vars['error'] == ""): ?>
	<div id="post">
		<p>
			提交成功，谢谢您的参与！<a href="?action=result&id=<?php echo $this->_tpl_vars['fid']; ?>
">查看结果</a>
		</p>		
	</div>
    
    
    <?php if ($this->_tpl_vars['form']['quote'] && $this->_tpl_vars['FR']['PAGE_REDIRECT']): ?>
        <?php if ($this->_tpl_vars['FR']['PAGE_REDIRECT'] == 'A'): ?>
        	<?php echo '<script type="text/javascript">window.setTimeout(function(){window.open("'; ?>
<?php echo $this->_tpl_vars['form']['quote']; ?>
<?php echo '")},2000)</script>'; ?>

        <?php else: ?>
         	<?php echo '<script type="text/javascript">window.setTimeout(function(){top.location.href="'; ?>
<?php echo $this->_tpl_vars['form']['quote']; ?>
<?php echo '";},2000)</script>'; ?>

        <?php endif; ?>	
    <?php endif; ?>
    
<?php endif; ?>