{if $archive == 1 || $old == 1 } {foreach $dates as $inv} {if $countWife[$inv["date"]] > 0 } {if $countHusband[$inv["date"]] > 0 } {/if} {if $countHusband[$inv["date"]] > 0 } {if $countWife[$inv["date"]] > 0 }{else} {/if} {/if} {/foreach}
Date
For
Investigations
Print
{else} {/if} {$inv["date"]} Wife {foreach $inv.investsw as $invest}
{/foreach}
{$inv["date"]} Husband {foreach $inv.investsh as $invest}
{/foreach}
{else} {foreach $dates as $inv} {if $countWife[$inv["date"]] > 0 } {if $countHusband[$inv["date"]] > 0 } {/if} {if $countHusband[$inv["date"]] > 0 } {if $countWife[$inv["date"]] > 0 }{else} {/if} {/if} {/foreach}
Date
For
Investigations
Print Delete
{else} {/if} {$inv["date"]} Wife {foreach $inv.investsw as $invest}
{/foreach}
{$inv["date"]} Husband {foreach $inv.investsh as $invest}
{/foreach}
{/if}