{strip}

<h3>{l}Articles{/l} <span class="small" style="margin-left:1em;">({$ArticlePaging.first}-{$ArticlePaging.last} of {$ArticlePaging.total})</span></h3>
<table width="99%" class="list">
   {foreach from=$list_articles item=val key=key name=list}
   <tr>
      <td align="left">
         <h4><a class="readMore" href="{$smarty.const.DOC_ROOT}/{if $smarty.const.ENABLE_REWRITE}articles/article-{$val.ID}.html{else}article.php?id={$val.ID}{/if}" title="{l}Browse{/l}: {$val.TITLE|escape}">{$val.TITLE|escape}</a></h4>

         <p>{$val.DESCRIPTION|escape|trim}</p>
      </td>
   </tr>
   
   <tr>
    <td colspan="2">
    {if $val.rights.editArt eq 1}
    <a href="{$smarty.const.DOC_ROOT}/inplace_editart.php?ID={$val.ID}&TB_iframe=true&height=400&width=600" onclick="return showThickbox(this);" class="thickbox">
    <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/edit.gif" width="14" height="14" style="border: none;" alt="edit article" class="float_tiny"/>
    </a>
    {/if}
    {if $val.rights.delArt eq 1}  
    <a href="{$smarty.const.DOC_ROOT}/inplace_editart.php?ID={$val.ID}&mode=del&TB_iframe=true&height=100&width=250"  class="thickbox" onclick="{literal}question = confirm('Are you sure you want to delete this article?');if (question !='0'){return showThickbox(this);} else return false;{/literal}">
    <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/delete.gif" width="14" height="14" style="border: none;" alt="delete article" class="float_tiny"/>
    </a>
    {/if}
    {if ($val.STATUS<2) && ($val.rights.editArt eq 1)}
        <a href="{$smarty.const.DOC_ROOT}/inplace_editart.php?ID={$val.ID}&mode=active&TB_iframe=true&height=100&width=250"  class="thickbox" onclick="{literal}question = confirm('Are you sure you want to make this article active?');if (question !='0'){return showThickbox(this);} else return false;{/literal}">
        <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/active.gif" width="14" height="14" style="border: none;" alt="article is inactive" class="float_tiny"/>
        </a>
    {/if}
    {if $val.rights.editArt eq 1 || $val.rights.delArt eq 1}
     {if $val.has_payment > 0}
         <div class="float_tiny" style="color: green; font-weight: bold;">$</div>
     {/if}
    {/if}
    </td>
</tr>
   {/foreach}
</table>

{if !empty($ArticlePaging) and $ArticlePaging.total > 1}
<p>
   {paginate_prev id="ArticlePaging"} {paginate_middle id="ArticlePaging" prefix="" suffix="" link_prefix=" [" link_suffix="] " current_page_prefix="" current_page_suffix=""} {paginate_next id="ArticlePaging"}
</p>
{/if}

{/strip}