<?php /* Smarty version 2.6.26, created on 2011-04-18 14:53:12
         compiled from view.htm */ ?>
<?php echo '
<script type="text/javascript">
Mo.ready(
		 
	function(){
		
		Mo("#select-vote li").bind(\'click\',function( ele, index ){
			
			Mo("#select-vote li").each(function(){			
				this.className = this.className.replace(" active","");			
			});
			
			this.className += " active";
			
			Mo("#OBJECT").value( this.getAttribute("rel") );

		});
				
		Mo("#form").bind(\'submit\',function(){
			var result= Mo.Form( this, function(i){
				/*未加载 Effect 组件*/
				if( Mo.Array(Mo.plugin).indexOf("effect") == -1 ){
					alert(i);
				}else{
					Mo.Message( \'error\', i, 3, { "unique" : "error" } );
				}

			});
			return result;
		});
	}
);
</script>
'; ?>


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


	<form id='form' name='form' enctype='multipart/form-data' method='post' action='?action=post&id=<?php echo $this->_tpl_vars['fid']; ?>
'>
		<input type='hidden' value='<?php echo $this->_tpl_vars['verify']; ?>
' name='verify' />
        
        <ul id="select-vote">
			<li id="posi-box" class="positive" rel="POSITIVE"><?php echo $this->_tpl_vars['config']['POSITIVE_POINT']; ?>
<b id="posi-vote"><?php echo $this->_tpl_vars['config']['POSITIVE_RESULT']; ?>
(<?php echo $this->_tpl_vars['config']['POSITIVE']; ?>
)</b> </li>
			<li id="nega-box" class="negative" rel="NEGATIVE"><?php echo $this->_tpl_vars['config']['NEGATIVE_POINT']; ?>
<b id="nega-vote"><?php echo $this->_tpl_vars['config']['NEGATIVE_RESULT']; ?>
(<?php echo $this->_tpl_vars['config']['NEGATIVE']; ?>
)</b> </li>
		</ul>

		<?php if ($this->_tpl_vars['config']['HIDE_MESSAGE'] == 'N'): ?>
	
			<div id='message'>
			
				<p>我的评论：</p>
				<p>
					<textarea name='MESSAGE' id='MESSAGE' cols='50' rows='4' fix_name='我的评论' fix_null='yes'></textarea>
				</p>
			
				<p id='form-smile' class='smile'></p>
				
				<input type='hidden' name='OBJECT' id='OBJECT' value='' fix_name='正反方' fix_null='yes' />
			
			</div>
		
		<?php endif; ?>
	
		<div id='send'>
        
            <?php if ($this->_tpl_vars['config']['USER_MODE'] == 'ANY' && ( $this->_tpl_vars['config']['ANY_ACCOUNT'] || $this->_tpl_vars['config']['ANY_NAME'] || $this->_tpl_vars['config']['ANY_PHONE'] || $this->_tpl_vars['config']['ANY_IDCARD'] )): ?>
                
                <p>
                	<?php if ($this->_tpl_vars['config']['ANY_ACCOUNT']): ?>
                    用户名：<input type="text" size="20" name="ACCOUNT" class="text" value="<?php echo $this->_tpl_vars['member']['account']; ?>
" fix_name="您的用户名" fix_null="yes" />
                    <?php endif; ?>
                    <?php if ($this->_tpl_vars['config']['ANY_NAME']): ?>
                    姓名：<input type="text" size="20" name="NAME" class="text" value="<?php echo $this->_tpl_vars['member']['name']; ?>
" fix_name="您的姓名" fix_null="yes" />
                    <?php endif; ?>
                    <?php if ($this->_tpl_vars['config']['ANY_PHONE']): ?>
                    电话：<input type="text" size="20" name="PHONE" class="text" value="<?php echo $this->_tpl_vars['member']['phone']; ?>
" fix_name="您的电话" fix_null="yes" fix_number="yes" />
                    <?php endif; ?>
                    <?php if ($this->_tpl_vars['config']['ANY_IDCARD']): ?>
                    身份证：<input type="text" size="20" name="IDCARD" class="text" value="<?php echo $this->_tpl_vars['member']['idcard']; ?>
" fix_name="您的身份证" fix_card="yes" />
                    <?php endif; ?>
                </p>
            <?php endif; ?>
        
			<p>
			<input type='submit' class='submit' value='提交表单' />
			<input type='button' class='submit' name='button' onclick='location.href="?mode=&action=result&id=<?php echo $this->_tpl_vars['fid']; ?>
&skin=default#top";' value='查看结果' />			
			</p>
		</div>
	
	</form>
