<?php /* Smarty version 2.6.22, created on 2014-02-11 20:40:02
         compiled from /home/joomaria/public_html/zipmarket/apps/quiz/views/index.html */ ?>

  <div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href='/' class="first">صفحه اصلی </a>

             / <a href="#">کسب درآمد</a>
 /
      </div>

<h1 class="page-title">        امتحان برای نویسندگی
        
</h1>
      
    </div>


  </div>


    <div id="content">
      <div class="container">
	  		<?php echo $this->_tpl_vars['errorMessage']; ?>

			
<p>شما باید به تمامی سوالات پاسخ درست بدهید تا نویسنده سایت شوید .</p>

  		<form action="" method="post">
		
				<?php if ($this->_tpl_vars['questions']): ?>
					<?php $_from = $this->_tpl_vars['questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['q']):
        $this->_foreach['foo']['iteration']++;
?>
						<h3 class="underlined"><?php echo $this->_tpl_vars['lang']['question']; ?>
 <?php echo ($this->_foreach['foo']['iteration']-1)+1; ?>
</h3>
				    <?php echo $this->_tpl_vars['q']['name']; ?>

				    <br />
				    
				    <?php if (isset ( $this->_tpl_vars['answers'][$this->_tpl_vars['q']['id']] )): ?>
				    	<?php $_from = $this->_tpl_vars['answers'][$this->_tpl_vars['q']['id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a']):
?>
						    <br /><input id="answers_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
_<?php echo $this->_tpl_vars['a']['id']; ?>
" name="answers[<?php echo $this->_tpl_vars['q']['id']; ?>
]" type="radio" value="<?php echo $this->_tpl_vars['a']['id']; ?>
" />
						    <?php echo $this->_tpl_vars['a']['name']; ?>
  
					    <?php endforeach; endif; unset($_from); ?>
				    <?php endif; ?>
				  			
				    <br /><br />
			    <?php endforeach; endif; unset($_from); ?>
					
						  <div class="form-submit-left" href="javascript: void(0);" onclick="$('#btn-sbm').click();">
                           <button type="submit" name="submit" id="btn-sbm" class="btn-icon submit"><?php echo $this->_tpl_vars['lang']['check_quiz']; ?>
</button>
                           </div>

		    <?php endif; ?>
				
		  </form>	
      </div>
    </div>