<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu">
  <MNU_ADD type="link" value="" link="#" onclick="messagesAdd(); return false;" colAlign="left" colWidth="35">
    <en><![CDATA[New]]></en>
  </MNU_ADD>
  <PAGED_TABLE_FAST_SEARCH type="FastSearch" label="@G::LoadTranslation(ID_SEARCH)"/>
  <PRO_UID type="private"/>
  <messages_Edit type="private" defaultValue="../messages/messages_Edit"/>
  <messages_Delete type="private" defaultValue="../messages/messages_Delete"/>
  <PAGED_TABLE_ID type="private"/>
  <js type="javascript" replaceTags="1"><![CDATA[
var currentPagedTable = @#PAGED_TABLE_ID;
  function messagesAdd(){
		popupWindow('@G::LoadTranslation(ID_ADD_MESSAGE)', '@G::encryptlink(@#messages_Edit)?PRO_UID=@%PRO_UID' , 500, 300 );
  }
  function messagesEdit( uid ) {
		popupWindow('@G::LoadTranslation(ID_MESSAGES)', '@G::encryptlink(@#messages_Edit)?MESS_UID='+ uid , 500, 300 );
  }
  function messagesSave( form ) {
    //FCKeditorAPI.GetInstance( 'form[MESS_DESCRIPTION]' ).UpdateLinkedField();
    ajax_post( form.action, form, 'POST' );
    currentPopupWindow.remove();
    @#PAGED_TABLE_ID.refresh();
  }
  function messagesDelete( uid ) {
    ajax_function('@G::encryptlink(@#messages_Delete)','','MESS_UID='+uid,'POST');
    @#PAGED_TABLE_ID.refresh();
  }
]]></js>
  <SEARCH_FILTER_FORM type="private"/>
</dynaForm>
