<p class="formstyle {if isset($collapse)}{$collapse}{/if} {if isset($row_no)}row_no{$row_no}{/if}"
    {if isset($hide) && $hide} style="display:none;"{/if}>
    {include file="r/parts/pre_field.tpl"}
    <span id="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}">
        <span class="dialog_make_btn16 smallbtns move_left0 for_year" title="{$i.filter_prev_month}" 
              onclick="dateTime.changeDateFromToPrevMonth('{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}');"></span>{*
        *}<span class="ui-corner-all ui-datepicker-input">
            {include file='r/input-only.tpl' class="dateselect datefrom `$class`" name="`$name`__from" default="{if isset($default)}{$default.from}{/if}" deactivate=false}
        </span>
        &nbsp;{$i.filter_fromto}:&nbsp;
        <span class="ui-corner-all ui-datepicker-input">
            {include file='r/input-only.tpl' class="dateselect dateto `$class`" name="`$name`__to" default="{if isset($default)}{$default.to}{/if}" deactivate=false}
        </span>{*
        *}<span class="dialog_make_btn16 smallbtns move_right0 for_year" title="{$i.filter_this_month}" 
              onclick="dateTime.changeDateFromToThisMonth('{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}');"></span>
    </span>
    {include file="r/parts/past_field.tpl"}
</p>