{include file="header.tpl"}

<h3>{t}Portfolio{/t}</h3>

<div class="list">
{foreach from=$listings item=listing}
{*include file="program_details.tpl" listing=$listings[l] group=$listings[l]*}
<div class="program">
<div class="title clearfix">
<a class="name">{$listing.name|escape:html}</a>
<ul>
  <li><a href="{$listing.portfolio_link}" target=_blank>{t}Detailed Referral Info{/t}</a></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="forums">
   {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>
  <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}                   
</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 Invetment:{/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 $listing.portfolio_info}
<div class="adminnote">{$listing.portfolio_info|nl2br}</div>
{/if}

</div>
<div class="clearall"></div>
{foreachelse}
<br />
{t}Currently there are no portfolio items{/t}
<br />
{/foreach}
</div>

{include file="footer.tpl"}