<div style="max-height:{$max_height}px; overflow:auto;">
    <form method="post" action="" id="overtime_payout_{$overtime_payout_my_id}">
        <fieldset class="borderbottom">
            {include file='r/input-staff.tpl' name="portlet_overtime_payout_staff" rep_name_id="portlet_overtime_payout_{$overtime_payout_my_id}_staff" title="basic_staff" data=$staff_list
                filter_extra="onchange=\"overtime_payout.overtime_payout_refresh('overtime_payout_{$overtime_payout_my_id}');\""}
        </fieldset>
        {if $has_right_payout}
            <fieldset class="borderbottom noprint">
                {include file='r/date.tpl' name="portlet_overtime_payout_date" rep_name_id="portlet_overtime_payout_{$overtime_payout_my_id}_date"
                    title="work_input_overtime_pay_date" default=$payment_date class="required"}
                <hr />
                {foreach item="rates" from=$overtime_rates_list}
                    {include file='r/input.tpl' name="portlet_overtime_payout_number_{$rates->id}" rep_name_id="portlet_overtime_payout_{$overtime_payout_my_id}_number_{$rates->id}"
                        title="{$rates->name}" labelclass="label1 labelext"
                        default=0 class="required numberi18n t-small"}
                {/foreach}
                <hr />
                {include file='r/textarea.tpl' name="portlet_overtime_payout_storage" rep_name_id="portlet_overtime_payout_{$overtime_payout_my_id}_storage"
                    title="work_input_overtime_storage" class="required t-mid" default='' maxlength=95}
            </fieldset>
        {/if}
        <fieldset class="noborder sepnext noprint">
            <a onclick="overtime_payout.overtime_payout_refresh('overtime_payout_{$overtime_payout_my_id}');" class="dialog_make_text_btn ui-corner-all">
                <span class="dialog_make_btn16 update ui-corner-all"></span>{$i.basic_update}
            </a>
            {if $has_right_others}
                {if $has_right_payout}
                    <a onclick="overtime_payout.overtime_payout_do('overtime_payout_{$overtime_payout_my_id}');" class="dialog_make_text_btn ui-corner-all">
                        <span class="dialog_make_btn16 ok ui-corner-all"></span>{$i.work_input_overtime_pay_do}
                    </a>
                    <a href="javascript:overtime_payout.overtime_print($('#portlet_overtime_payout_staff').val())"
                       class="dialog_make_text_btn ui-corner-all">
                        <span class="dialog_make_btn16 print ui-corner-all"></span>{$i.basic_print_portlet}
                    </a>
                {else}
                    <span style="float:right;" class="warningsmall warningsmaller ui-corner-all">{$i.work_input_overtime_pay_do2}</span>
                {/if}
                {if $has_right_plus}
                    <a onclick="overtime_payout.overtime_payout_del('{$overtime_payout_my_id}');" class="dialog_make_text_btn ui-corner-all">
                        <span class="dialog_make_btn16 delete_2d ui-corner-all"></span>{$i.work_input_overtime_pay_del}
                    </a>
                {else}
                    <span style="float:right;" class="warningsmall warningsmaller ui-corner-all">{$i.overtime_pay_del1}</span>
                {/if}
            {else}
                <span style="float:right; {if !$has_right_projeval}background-color: transparent; font-weight: lighter;{/if}" class="warningsmall warningsmaller ui-corner-all">{$i.work_input_overtime_pay_do1}</span>
            {/if}
        </fieldset>
    </form>
    <div id="overtime_payout_{$overtime_payout_my_id}_info">
    </div>
    <div id="overtime_payout_{$overtime_payout_my_id}_table">
        <span style="font-size:32px; padding-left:138px;">&#9757;</span>
    </div>
</div>
