<div class="program {$group.type} {if $listing.sticky}sticky{/if}">
<div class="title clearfix">
{if $listing.new}<div class="new">{t}new{/t}</div>{/if}
<a class="name" href="{"?a=go&lid=`$listing.id`"|encurl}" target=_blank>{$listing.name|escape:html}</a>
{if $listing.hot}<div class="hot_wrap">
{if $listing.hot >= 1}<span>{t}hot{/t}</span> {/if}
{if $listing.hot >= 2}<span>{t}hot{/t}</span> {/if}
{if $listing.hot >= 3}<span>{t}hot{/t}</span> {/if}
</div>{/if}
<ul>
{if !$detailed}
  <li><a href="{"?a=details&lid=`$listing.id`"|encurl}">{t}Details{/t}</a></li>
{/if}
  <li><a href="{"?a=add_vote&lid=`$listing.id`"|encurl}">{t}Vote Now{/t}</a></li>
  <li><a href="{"?a=statistics&lid=`$listing.id`"|encurl}">{t}Payouts{/t}</a></li>
  <li><a href="{"?a=traffic&lid=`$listing.id`"|encurl}">{t}Traffic{/t}</a></li>
  <li><a href="{"?a=whois&lid=`$listing.id`"|encurl}">{t}Whois{/t}</a></li>
  <li><a href="{"?a=report_scam&lid=`$listing.id`"|encurl}">{t}Report Scam{/t}</a></li>
{if $settings.refback_enabled && $listing.rcb_status == 1}
  <li><a href="{"?a=refback&lid=`$listing.id`"|encurl}">{t}Request RCB{/t}</a></li>
{/if}
  <li><a href="{"?a=get_code&lid=`$listing.id`"|encurl}">{t}Get Code{/t}</a></li>
  <li>{if $listing.bookmark}<a href="{"?a=bookmarks&action=remove&lid=`$listing.id`"|encurl}" onclick="return confirm('Do you really want to remove the program from bookmarks?')">- {t}Bookmark{/t}</a>{else}<a href="{"?a=bookmarks&action=add&lid=`$listing.id`"|encurl}">{t}Bookmark{/t}</a>{/if}</li>
</ul>
</div>
<div class="main clearfix">
<div class="col1 clearfix">
{if $listing.image}
  <img src="{$listing.image|escape:html}" alt="{$listing.name|escape:html} screenshot">
{else}
  <img src="http://mozshot.nemui.org/shot/120x90?{$listing.url}" alt="{$listing.name|escape:html} screenshot">
{/if}
  <div class="support"> 
  {if $listing.support_email} <a href="mailto:{$listing.support_email}"><img src="{"`$theme`images/smail.gif"|encurl}" alt="{t}Support E-mail{/t}" title="{t}Support E-mail{/t}"></a>{/if}
  {if $listing.support_form}  <a href="{$listing.support_form}" target=_blank><img src="{"`$theme`images/sform.gif"|encurl}" alt="{t}Support Form{/t}" title="{t}Support Form{/t}"></a>{/if}
  {if $listing.support_forum} <a href="{$listing.support_forum}" target=_blank><img src="{"`$theme`images/sforum.gif"|encurl}" alt="{t}Support Forum{/t}" title="{t}Support Forum{/t}"></a>{/if}
  {if $listing.support_phone} <img src="{"`$theme`images/sphone.gif"|encurl}" alt="Phone: {$listing.support_phone}" title="{t}Phone:{/t} {$listing.support_phone}">{/if}
  {if $listing.support_aim}   <img src="{"`$theme`images/smsn.gif"|encurl}" alt="{$listing.support_aim}" title="{$listing.support_aim}">{/if}
  </div>
  <div class="forums">
   <a href="http://www.allhyipmonitors.com/search/?keyword={$listing.url|escape:url}&status={$listing.hyip_status}&lid={$listing.id}&ref={$settings.site_url|parse_url:1}" target=_blank>AHM</a>
   {section name=p loop=$listing.forums}<a href="{$listing.forums[p].url|escape:htmlall}" target=_blank>{$listing.forums[p].name}</a> {/section}
  </div>
</div>
<div class="col2">
  <div class="status status{$listing.hyip_status}">
  {if $listing.hyip_status == 1}{t}Paying{/t}
  {elseif $listing.hyip_status == 2}{t}Waiting{/t}
  {elseif $listing.hyip_status == 3}{t}Problem{/t}
  {elseif $listing.hyip_status == 4}{t}Not Paying{/t}
  {elseif $listing.hyip_status == 5}{t}Not Monitored{/t}{/if}
  </div>
  {if $group.can_upgrade}<div class="upgrade"><a href="{"?a=add&display=upgrade&lid=`$listing.id`"}">{t}Upgrade{/t}</a></div>{/if}
   <table class="pratios" {*width=100 height=8 border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"*}>
     <tr>
  {section name=i loop=$listing.pratios}
  {if $listing.pratios[i].val == 100}
        <td class="full"><div></div></td>
  {else}
        <td class="partial"><div style="width: {$listing.pratios[i].val}%"></div></td>
  {/if}
  {/section}
     </tr>
  </table>
  <div class="percents">{$listing.percents|escape:html|nl2br}</div>
  <div class="amountdiv">{t}Min/Max:{/t} <b class="min">{$listing.min_spend}</b> / <b class="max">{$listing.max_spend|default:"No Limit"}</b></div>
  <div class="referral">{t}Referral:{/t}  <b>{$listing.referral|default:"No"}</b></div>
  <div class="withdrawal">{t}Withdrawal{/t}: <b>
  {if $listing.withdrawal_type == 1}{t}Manual{/t}
  {elseif $listing.withdrawal_type == 2}{t}Instant{/t}
  {elseif $listing.withdrawal_type == 3}{t}Automatic{/t}{/if}
  </b></div>                       
{if $listing.rcb}
  <div class="max_rcb"><a href="{"?a=refback&lid=`$listing.id`"|encurl}">{t}Ref. Back:{/t} {$listing.rcb|number_format}%</a></div>    
{/if}                   
{if $listing.insurance}
  <div class="insurance"><a href="{"?a=insurance&lid=`$listing.id`"|encurl}">{t}Insurance:{/t} {$listing.insurance|nl2br}</a></div>    
{/if}                   
</div>
<div class="col3 clearfix">
  <div class="votes_summary">
  <div class="summary mood3">
   <div class="mood"></div>
   <div class="rate">{$listing.votes_summary.3.count}</div>
  </div>
  <div class="summary mood2">
   <div class="mood"></div>
   <div class="rate">{$listing.votes_summary.2.count}</div>
  </div>
  <div class="summary mood1">
   <div class="mood"></div>
   <div class="rate">{$listing.votes_summary.1.count}</div>
  </div>
  <div class="summary mood0">
   <div class="mood"></div>
   <div class="rate">{$listing.votes_summary.0.count}</div>
  </div>
  </div>

  <div class="ourrating">
    <div class="rating">{t}Our Rating:{/t}</div>
    <div class="emptystars"><div class="fullstars" style="width: {$listing.ourrating}%"></div></div>
  </div>
  <div class="usrrating">
    <div class="rating">{t}Users Rating:{/t}</div>
    <div class="emptystars"><div class="fullstars" style="width: {$listing.usrrating}%" title="{$listing.avg_vote} / {$listing.cvotes} votes"></div></div>
  </div>

  <!--div class="clearall"></div-->

  <div class="clearall"></div>
  {if $listing.spend > 0}
  <div class="investment">{t}Our Investment:{/t} <b>${$listing.spend}</b></div>
  <div class="ratio">{t}Payout Ratio:{/t} <b>{$listing.ratio*100}%</b> {if $listing.ratio >= 1}<span class="inprofit">{t}in profit{/t}</span>{/if}</div>
  <div class="lastpayout">{t}Last Payout:{/t} <b>{$listing.lastpayout|default:"No Payouts"}</b></div>
  {/if}
  <div class="added">{t}Added:{/t} <b>{$listing.added}</b></div>
  <div class="monitored">{t}Monitored:{/t} <b>{$listing.monitored}</b> {t}days{/t}</div>
  {if $listing.lifetime}
  <div class="lifetime">{t}Lifetime:{/t} <b>{$listing.lifetime}</b> {t}days{/t}</div>
  {/if}
</div>

</div>
<div class="description">{$listing.description}</div>
<div class="paysystems">{section name=p loop=$listing.payments}<img src="{"`$theme`images/`$listing.payments[p].name`.gif"|encurl}" alt="{$listing.payments[p].name}" title="{$listing.payments[p].name}"> {/section}</div>
<div class="options">{section name=p loop=$listing.options}<img src="{"`$theme`images/`$listing.options[p].name`.gif"|encurl}" alt="{$listing.options[p].name}" title="{$listing.options[p].name}"> {/section}</div>

{if $settings.show_admin_note && $listing.admin_note}
<div class="adminnote"><b>{t}Admin Note:{/t}</b> {$listing.admin_note}</div>
{/if}

</div>
<div class="clearall"></div>