<!-- BEGIN {$smarty.template} -->

</div>  <!-- end div mainsect -->
</div>  <!-- end div content -->

{if $sidebar}
<div id="infosect">
<div class="dist">

{if is_array($info.bills) && count($info.bills)}
<div class="blist">
<h2>{t}Unpaid bills{/t}</h2>
<ul class="unpaid">
  {foreach from=$info.bills item=b}
  <li>
    <a href="bill.php?id={$b.bill_id}">{$b.bill_number|wash} / {$b.bill_date|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}<br>
      <span>{$b.cpn_name|wash}</span></a>
  </li>
  {/foreach}
</ul>
</div>
{/if}

{if is_array($info.unbilled) && isset($info.unbilled.rows) && is_array($info.unbilled.rows) && count($info.unbilled.rows)}
<div class="blist">
<h2>{t}Unbilled hours{/t}</h2>
<ul class="unbilled">
  {foreach from=$info.unbilled.rows item=u}
  <li>
    <a href="project.php?id={$u.prj_id}">{$u.prj_title|wash}<br>
      <span>{$u.prj_duration|phpaga_minutes2duration}</span></a>
  </li>
  {/foreach}
</ul>
</div>
{/if}

</div>
</div>
{/if}

<div id="footer"></div>

<script language="javascript" type="text/javascript">
var clockTimer = setInterval("clockTimerAction()",300000);
</script>

</body>
</html>

<!-- END {$smarty.template} -->
