{if $new}{/if} {if !$edit} {if $series} {cssbutton->image w_width=$smarty.const.DATES_SERIES_WIN_WIDTH w_height=$smarty.const.DATES_SERIES_WIN_HEIGHT query="op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_ORDERS`&sel_date=" disabled="disabled" string=$lang.proto_serie icon_left="serie"} {/if} {if $show_refresh_button && !$formulas} {menubutton->image_sub icon="refresh" width=21 height=22 title=$lang.global_refresh} {/if} {if $show_refresh_button && $formulas} {menubutton->image_sub icon="refresh" width=21 height=22 script="disableGrid();ajax.exec('common', 'ajax_compute_formulas', `$smarty.const.MODULE_ORDERS`, `$order_id`);return false;" oid=$order_id autocompute=$formulas_compute title=$lang.formula_compute} {/if} {else} {if !$new} {if $series} {cssbutton->modal id="serie_off" style="display:none" w_width=$smarty.const.DATES_SERIES_WIN_WIDTH w_height=$smarty.const.DATES_SERIES_WIN_HEIGHT query="op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_ORDERS`" string=$lang.proto_serie} {cssbutton->image id="serie_on" script="window_open('`$SELF`?op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_ORDERS`', `$smarty.const.DATES_SERIES_WIN_WIDTH`, `$smarty.const.DATES_SERIES_WIN_HEIGHT`, 'auto', 'normal')" string=$lang.proto_serie icon_left="serie"} {else} {cssbutton->modal id="serie_off" w_width=$smarty.const.DATES_SERIES_WIN_WIDTH w_height=$smarty.const.DATES_SERIES_WIN_HEIGHT query="op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_ORDERS`" string=$lang.proto_serie} {cssbutton->image id="serie_on" style="display:none" script="window_open('`$SELF`?op=common_serieswindow&serie_id=`$data`&modul=`$smarty.const.MODULE_ORDERS`', `$smarty.const.DATES_SERIES_WIN_WIDTH`, `$smarty.const.DATES_SERIES_WIN_HEIGHT`, 'auto', 'normal')" string=$lang.proto_serie icon_left="serie"} {/if} {/if} {/if} {foreach item='button' from=$action_buttons} {if $button.type == 'action'} {if $button.icon} {cssbutton->image icon_left=$button.icon query=$button.query title=$button.title id=$button.id name="ac" value=$button.value confirm=$button.confirm script=$button.script width=21 height=22 type="submit"} {else} {cssbutton->sub name="ac" value=$button.value string=$button.title confirm=$button.confirm script=$button.script} {/if} {elseif $button.type == 'modal'} {menubutton->modal w_width=$smarty.const.CONTACT_WIN_WIDTH w_height=$smarty.const.CONTACT_WIN_HEIGHT query=$button.query string=$button.title} {/if} {/foreach} {if !$edit} {resubs->module_resub_button module_id=$smarty.const.MODULE_ORDERS oid=$data} {menubutton->image_window query="op=orders_print&orderid=`$data`" icon="print2" width=24 height=22 title=$lang.global_print w_width=800 scroll=1 w_height=600} {/if}