{if $new}{/if} {if !$edit} {if $formulas} {menubutton->image_sub icon="refresh" id="formulas" script="disableGrid();ajax.exec('common', 'ajax_compute_formulas', `$smarty.const.MODULE_TICKETS`, `$ticket_id`);return false;" oid=$ticket_id autocompute=$formulas_compute title=$lang.formula_compute width=21 height=22} {/if} {if !$external} {cssbutton->window_resizeable query="op=tickets_window§ion=`$section`" string=$lang.global_new w_width=$smarty.const.TICKET_WIN_WIDTH w_height=$smarty.const.TICKET_WIN_HEIGHT} {/if} {if $ticket_id > 0 && $write_permission} {cssbutton->sub name="edit" string=$lang.global_edit} {/if} {if $ticket_status == 3 || $disable_btn_close || ($external && !$write_permission)} {cssbutton->dummy name="close" string=$lang.ticket_close} {else} {cssbutton->sub name="close" string=$lang.ticket_close confirm=$lang.ticket_close_ask script="window_open('`$SELF`?op=email_window&ticket_id=`$ticket_id`&close=true', `$smarty.const.EMAIL_WIN_WIDTH`, `$smarty.const.EMAIL_WIN_HEIGHT`, 0, 'resizeable')"} {/if} {menubutton->image_sub script="location.href='`$SELF`?op=tickets_window&ticket_id=$prev_ticket'" icon="arrow-left" title=$lang.contact_last_contact style="height:22px"} {menubutton->image_sub script="location.href='`$SELF`?op=tickets_window&ticket_id=$next_ticket'" icon="arrow-right" title=$lang.contact_next_contact style="height:22px"} {resubs->module_resub_button module_id=$smarty.const.MODULE_TICKETS oid=$ticket_id} {menubutton->image_window query="op=tickets_windowprint&ticket_id=`$ticket_id`" icon="print2" width=24 height=22 title=$lang.global_print w_width=800 scroll=1 w_height=600} {else} {cssbutton->sub name="save" string=$lang.global_save} {cssbutton->sub name="cancel" string=$lang.global_cancel} {if $delete_permission} {cssbutton->sub name="delete" string=$lang.global_delete confirm=$lang.contact_askdelete} {/if} {/if}