{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} {if $menubutton_new && count($menubutton_new) == 1} {cssbutton->window_resizeable string=$lang.global_new w_width=$smarty.const.TICKET_WIN_WIDTH w_height=$smarty.const.TICKET_WIN_HEIGHT query="op=tickets_window§ion=`$menubutton_new.0.section`"} {elseif $menubutton_new} {menubutton->menu items=$menubutton_new string=$lang.global_new title=$lang.global_new} {/if} {/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"} {if $ticket_id > 0 && $copy_permission} {menubutton->image_window query="op=tickets_window&ticket_copy_id=`$ticket_id`" icon="copy" width=24 height=22 title=$lang.global_copy w_width=$smarty.const.TICKET_WIN_WIDTH w_height=$smarty.const.TICKET_WIN_HEIGHT} {/if} {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}