<?php /* Smarty version 2.6.25, created on 2012-08-12 01:42:14
         compiled from article.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'article.tpl', 1, false),array('modifier', 'trim', 'article.tpl', 1, false),array('modifier', 'nl2br', 'article.tpl', 117, false),)), $this); ?>
<?php ob_start(); ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
<?php $this->_smarty_vars['capture']['title'] = ob_get_contents(); ob_end_clean(); ?>
<?php ob_start(); ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('in_page_title', ob_get_contents());ob_end_clean(); ?>
<?php ob_start(); ?>Article Details<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('description', ob_get_contents());ob_end_clean(); ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top_bar.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<!--strip-->
<?php if ($this->_tpl_vars['error']): ?>
   <div class="err">
      <img src="admin/images/no_22.gif" align="baseline" alt="Error" title="Error" />
      <p>Error: <?php echo $this->_tpl_vars['error']; ?>
</p>
   </div>
<?php else: ?>
   <table align="center" border="0" width="100%">
   <tbody>
   <tr>
      <td class="smallDesc"><h3><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</h3></td>
   </tr>
   <tr>
      <td class="smallDesc">Date Added: <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['DATE_ADDED'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</td>
   </tr>
   <tr>
      <td class="smallDesc">Author: <?php echo ((is_array($_tmp=$this->_tpl_vars['NAME'])) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</td>
   </tr>
    <tr>
 <td class="smallDesc">Category: <a href="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['CATEGORY_URL'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['CATEGORY_TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['CACHE_TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</a></td>
 </tr>
   <tr>
      <td class="smallDesc" style="text-align:justify;" id="article_content_<?php echo $this->_tpl_vars['ID']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['ARTICLE'])) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</td>
   </tr>
<tr>
    <td>
        <div style="float: right;">
        <?php if ($this->_tpl_vars['rights']['editArt'] == 1): ?>
        <a href="<?php echo @DOC_ROOT; ?>
/inplace_editart.php?ID=<?php echo $this->_tpl_vars['ID']; ?>
&detail=1&TB_iframe=true&height=400&width=600" onclick="return showThickbox(this);" class="thickbox">
        <img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/edit.gif" width="14" height="14" style="border: none;" alt="edit article"/>
        </a> 
        <?php endif; ?>
        <?php if ($this->_tpl_vars['rights']['delArt'] == 1): ?>  
        <a href="<?php echo @DOC_ROOT; ?>
/inplace_editart.php?ID=<?php echo $this->_tpl_vars['ID']; ?>
&mode=del&detail=1&TB_iframe=true&height=100&width=250" onclick="<?php echo 'question = confirm(\'Are you sure you want to delete this article?\');if (question !=\'0\'){return showThickbox(this);} else return false;'; ?>
" class="thickbox">
        <img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/delete.gif" width="14" height="14" style="border: none;" alt="delete article"/>
        </a>
        <?php endif; ?>
        <?php if ($this->_tpl_vars['STATUS'] < 2 && $this->_tpl_vars['rights']['editArt'] == 1): ?>
        <a href="<?php echo @DOC_ROOT; ?>
/inplace_editart.php?ID=<?php echo $this->_tpl_vars['ID']; ?>
&detail=1&mode=active&TB_iframe=true&height=100&width=250" onclick="<?php echo 'question = confirm(\'Are you sure you want to make this article active?\');if (question !=\'0\'){return showThickbox(this);} else return false;'; ?>
" class="thickbox">
            <img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/active.gif" width="14" height="14" style="border: none;" alt="article is inactive" class="float_tiny"/>
        </a>
        <?php endif; ?>
        <?php if ($this->_tpl_vars['rights']['editArt'] == 1 || $this->_tpl_vars['rights']['delArt'] == 1): ?>
        <?php if ($this->_tpl_vars['has_payment'] > 0): ?>
            <div class="float_tiny" style="color: green; font-weight: bold;">$</div>
        <?php endif; ?>
        <?php endif; ?>
        </div>
    </td>
</tr>
<?php if ($this->_tpl_vars['uLevel'] == 1): ?>
<tr>
    <td align="center" colspan="2">
        <a href="<?php echo @DOC_ROOT; ?>
/admin/article_edit.php?action=E:<?php echo $this->_tpl_vars['ID']; ?>
" target="blank" title="Edit as Admin">Edit as Admin</a>
    </td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['ratings_on'] == 1): ?>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
<tr>
   <td>
<fieldset>
<legend>Ratings</legend>
    <b>Average rating:</b> <?php echo $this->_tpl_vars['RATING']; ?>
 (<?php if (! $this->_tpl_vars['VOTES']): ?>0<?php else: ?><?php echo $this->_tpl_vars['VOTES']; ?>
<?php endif; ?> votes)<br/>
   <?php if ($this->_tpl_vars['logged_rating'] == 1): ?>
      <?php if ($this->_tpl_vars['ratingError']): ?><div class="errForm">Please choose your rating, and after this click Rate.</div><?php endif; ?>
      <label for="RATING">Rate the article: &nbsp;</a>
      <form name="rating" action="<?php echo @DOC_ROOT; ?>
/article.php?action=R:<?php echo $this->_tpl_vars['ID']; ?>
" method="post">
         <select id="RATING" name="RATING" class="text" <?php echo $this->_tpl_vars['rating_disabled']; ?>
>
           <option value=""></option>
           <option value="1">1</option>
           <option value="2">2</option>
           <option value="3">3</option>
           <option value="4">4</option>
           <option value="5">5</option>
           <option value="6">6</option>
           <option value="7">7</option>
           <option value="8">8</option>
           <option value="9">9</option>
           <option value="10">10</option>
         </select>
         &nbsp;<input type="submit" value="Rate" class="btn" <?php echo $this->_tpl_vars['rating_disabled']; ?>
>
      </form>
      &nbsp;&nbsp;
   <?php else: ?>
      <center><a href="<?php echo @DOC_ROOT; ?>
/login.php" class="error">You must be logged in to leave a rating.</a><br> <?php endif; ?>
   <?php endif; ?>
</fieldset>
</td>
</tr>
<?php endif; ?>



<?php if ($this->_tpl_vars['comments_on'] == 1): ?>
<tr>
   <td>
      <fieldset>
         <legend>Comments</legend>
         <!-- Printing Comments -->
         <?php $_from = $this->_tpl_vars['comments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['items'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['items']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['comment']):
        $this->_foreach['items']['iteration']++;
?>
            <table class="comment" cellspacing="0" cellpadding="0" width="100%">
               <tr class="comment">
                  <td><?php echo $this->_tpl_vars['comment']['USER_NAME']; ?>
:</td>
                  <td align="right"><?php echo $this->_tpl_vars['comment']['DATE_ADDED']; ?>
</td>
               </tr>
               <tr height="50" valign="top">
                  <td class="descr" colspan="2"><?php echo ((is_array($_tmp=$this->_tpl_vars['comment']['COMMENT'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</td>
               </tr>
            </table>
         <?php endforeach; else: ?>
            <h3>No Comments Yet.</h3>
         <?php endif; unset($_from); ?>

		 <?php if ($this->_tpl_vars['comm_posted'] == 1 && $this->_tpl_vars['needs_approval_msg'] == 1): ?>
		 <p style="color: green">Comment posted and awaiting admin approval.</p>
		 <?php endif; ?>

         <?php if ($this->_tpl_vars['logged_comment'] == 1): ?>
            <br>
            <form id="commentForm" action="<?php echo @DOC_ROOT; ?>
/article.php?action=C:<?php echo $this->_tpl_vars['ID']; ?>
" method="post">
            <table width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <label for="comment"><b>Leave your comment:</b><br>
                    <textarea id="comment" name="comment" rows="4" cols="60" class="text"><?php echo $this->_tpl_vars['COMMENT']; ?>
</textarea>
                    <?php if ($this->_tpl_vars['commentError']): ?><div class="errForm">You need to enter comment before Submit.</div><?php endif; ?>

                </td>
            </tr>
            <tr>
                <td>
                 <?php if (@VISUAL_CONFIRM_COMMENTS == 1 && @VISUAL_CONFIRM == 1): ?>
                   <?php if ($this->_tpl_vars['rights']['editLink'] != 1 && $this->_tpl_vars['rights']['addLink'] != 1 && $this->_tpl_vars['rights']['delLink'] != 1): ?>
                   <?php if ($this->_tpl_vars['img_verification_error']): ?>
                      <span class="error"><font color=red>Verification error, please enter the code again</font></span><br>
                   <?php endif; ?>
                   <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="<?php echo $this->_tpl_vars['imagehash']; ?>
" />
                   <img src="<?php echo @DOC_ROOT; ?>
/captcha.php?imagehash=<?php echo $this->_tpl_vars['imagehash']; ?>
" class="captcha" alt="Visual Confirmation Security Code" title="Visual Confirmation Security Code" />
                   <br><br><span class='req'>*</span>Enter the code shown:
                   &nbsp;<input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="<?php echo @CAPTCHA_PHRASE_LENGTH; ?>
" maxlength="<?php echo @CAPTCHA_PHRASE_LENGTH; ?>
" class="text" /><br><br>
                   <?php endif; ?>
                <?php endif; ?>
   <?php if (@VISUAL_CONFIRM_COMMENTS == 1 && @VISUAL_CONFIRM == 2): ?>
		<span style="color: red;">
				<?php $_from = $this->_tpl_vars['error_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['errorList'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['errorList']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['errorKey'] => $this->_tpl_vars['errorItem']):
        $this->_foreach['errorList']['iteration']++;
?>
					<?php if ($this->_tpl_vars['errorKey'] == 'DO_MATH'): ?>
						<?php if (is_array ( $this->_tpl_vars['errorItem'] )): ?>
							<?php echo $this->_tpl_vars['errorItem']['remote']; ?>
<br/>
						<?php else: ?>
							<?php echo $this->_tpl_vars['errorItem']; ?>
<br/>
						<?php endif; ?>
					<?php endif; ?>
				<?php endforeach; endif; unset($_from); ?>
			</span>
		<span class='req'>*</span>Do the Math:
                   &nbsp;	<font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;"><?php echo $this->_tpl_vars['DO_MATH_N1']; ?>
 + <?php echo $this->_tpl_vars['DO_MATH_N2']; ?>
 = </font><input type="text" id="DO_MATH" name="DO_MATH" value='<?php echo $this->_tpl_vars['DO_MATH']; ?>
' class="text" style="width: 60px;"/>
		<br/>
		<br/>

<?php endif; ?>
                <input type="hidden" name="formSubmitted" value="1" />
                <input type="submit" value="Submit" class="btn">
                </td>
            </tr>
            </table>
            </form>
         <?php else: ?>
             <br><a href="<?php echo @DOC_ROOT; ?>
/login.php" class="error">You must be logged in to leave a Comment.</a><br>
         <?php endif; ?>
      </fieldset>
   </td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php $_from = $this->_tpl_vars['widgets']['ARTICLE_DETAIL']['BOT']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
    <?php if ($this->_tpl_vars['v']['SETTINGS']['DISPLAY_IN_BOX'] == 'Yes'): ?>
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "widget_central_top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <?php endif; ?>
    <?php echo $this->_tpl_vars['v']['CONTENT']; ?>

    <?php if ($this->_tpl_vars['v']['SETTINGS']['DISPLAY_IN_BOX'] == 'Yes'): ?>
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "widget_central_bot.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <?php endif; ?>
<?php endforeach; endif; unset($_from); ?>



<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>