{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_CONTACTS`, `$data`);return false;" oid=$data autocompute=$formulas_compute title=$lang.formula_compute width=21 height=22} {/if} {if $create_permission} {cssbutton->window_resizeable query="op=contacts_index&new=true" string=$lang.global_new w_width=$smarty.const.CONTACT_WIN_WIDTH w_height=$smarty.const.CONTACT_WIN_HEIGHT} {/if} {if $data > 0 && $write_permission} {cssbutton->sub name="edit" string=$lang.global_edit} {/if} {cssbutton->window_resizeable w_width=$smarty.const.LAST20_WIN_WIDTH w_height=$smarty.const.LAST20_WIN_HEIGHT query="op=contacts_last20" string=$lang.contact_last20} {menubutton->image_sub script="location.href='`$SELF`?op=contacts_index&op=contacts_index&data=$prev_contact'" icon="arrow-left" title=$lang.contact_last_contact style="height:22px"} {menubutton->image_sub script="location.href='`$SELF`?op=contacts_index&op=contacts_index&data=$next_contact'" icon="arrow-right" title=$lang.contact_next_contact style="height:22px"} {resubs->module_resub_button module_id=$smarty.const.MODULE_CONTACTS oid=$data} {menubutton->image_window query="op=contacts_print&cid=`$data`" 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} {if $data} {cssbutton->sub name="cancel" string=$lang.global_cancel} {else} {cssbutton->click script="window.close();" string=$lang.global_cancel} {/if} {if $delete_permission} {cssbutton->sub name="delete" string=$lang.global_delete confirm=$lang.contact_askdelete} {/if} {/if}