[%if count($array)>0 || count($array_top)>0 %]

[%pack:public_pack-espcms_lable_select_name%] | [%pack:public_pack-espcms_lable_id_name%] | [%pack:public_pack-espcms_lable_pid_name%] | [%pack:advert_pack-espcms_advertisemen_type_atid%] | [%pack:advert_pack-espcms_advertisemen_title%] | [%pack:advert_pack-espcms_advertisemen_click%] | [%pack:advert_pack-espcms_advertisemen_adtype%] | [%pack:advert_pack-espcms_advertisemen_isline%] | [%pack:advert_pack-espcms_advertisemen_istime%] | [%pack:public_pack-espcms_lable_addtime%] | [%pack:public_pack-espcms_lable_isclass_name%] [%if @this->power('editAdvertisementType')%] | [%pack:public_pack-espcms_lable_control_name%] [%/if%]
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
[%forlist from=$array key=i%]
| [%$array[i].adid%] | [%$array[i].pid%] | [%$array[i].adtypename%] | [%$array[i].title%] | [%$array[i].click%] | [%if $array[i].adtype==1%][%pack:advert_pack-espcms_advertisemen_adtype_1%][%/if%] [%if $array[i].adtype==2%][%pack:advert_pack-espcms_advertisemen_adtype_2%][%/if%] [%if $array[i].adtype==3%][%pack:advert_pack-espcms_advertisemen_adtype_3%][%/if%] | [%if $array[i].islink==1%][%pack:advert_pack-espcms_advertisemen_isline_1%][%/if%] [%if $array[i].islink==2%][%pack:advert_pack-espcms_advertisemen_isline_2%][%/if%] [%if $array[i].islink==3%][%pack:advert_pack-espcms_advertisemen_isline_3%][%/if%] [%if $array[i].islink==4%][%pack:advert_pack-espcms_advertisemen_isline_4%][%/if%] | [%if $array[i].istime==1%] [%else%] [%/if%] | [%$array[i].addtime|espcms_timeformat(9)%] | [%if $array[i].isclass==1%] [%else%] [%/if%] | [%if @this->power('editAdvertisementType')%] [%/if%]
[%/forlist%]

[%else%]

[%pack:public_pack-espcms_no_infomessage%]

[%/if%]