{#foreach $T.connectPnns as record1}
{#if ($T.record1$index%20)==0}
{#if ($T.record1$index/20)>0}
{parseInt($T.record1$index/20)+1}
{#else}
{parseInt($T.record1$index/20)+1}
{#/if}
{#/if}
{*Gan tong so records cho "ipTotalPage"*}
{#if ($T.record1$index==0)}
{#/if}
{#if ($T.record1$index%20)==19}
{#/if}
{#/for}