{if $messagesrow ne ""} {section name=j loop=$messagesrow} {/section} {/if}
{$smarty.const.TITLE_MESSAGE_QUEUE}
{$smarty.const.SNO} {$smarty.const.SUBJECT} {$smarty.const.DELAY} {$smarty.const.MESSAGE_SENT} {$smarty.const.MESSAGE_READ} {$smarty.const.READ_ONLINE} {$smarty.const.EDIT} {$smarty.const.DELETE}
{$startposition++} {$messagesrow[j][2]} {$messagesrow[j][5]} {$messagesrow[j][7]} {$messagesrow[j][8]} {$messagesrow[j][9]}
  {$smarty.const.PAGE_NO} {section name=m loop=$totalpages} {$var++} {/section}