<p class="formstyle {if isset($collapse)}{$collapse}{/if} form_viewonly">
    {include file="r/parts/pre_field.tpl"}
    <span class="likeinput">
        <span id="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}" {if isset($class)}class="{$class} form_viewonly"{else}class="form_viewonly"{/if} 
              {if isset($poptitle)}title="{if isset($i.$poptitle)}{$i.$poptitle}{else}{$poptitle}{/if}"{/if}
              {if isset($main_style)}style="{$main_style}"{/if}>{if isset($default)}{$default}{/if}</span>
    </span>
    {include file="r/parts/past_field.tpl"}
</p>