{runquery 1}
{translatestatictext 'Guest Message'.{const language}}

- {translatestatictext 'Recipient'.{const language}}
  {dif {field 1.xcms_id.0}=0}{/dif}{else}{field 1.GuestName} {/else}
- {translatestatictext 'Room Number'.{const language}}
  {field 1.yrms_shortdesc}
- {translatestatictext 'Date and Time'.{const language}}
  {field 1.ymes_deliveredtime} {dif {field 1.ymes_receivedtype}=1}Received: {/dif} {dif {field 1.ymes_receivedtype}=1}{field 1.ymes_receiveddate}{/dif}
- {translatestatictext 'From'.{const language}}
  {dif '{field 1.YMES_Contactinfo}'=''}{field 1.YMES_FROMWHOM}{/dif}{else} {dif '{field 1.YMES_FROMWHOM}'=''}{field 1.YMES_Contactinfo}{/dif}{else} {field 1.YMES_FROMWHOM} / {field 1.YMES_Contactinfo}{/else}{/else}
- {translatestatictext 'Taken by'.{const language}}
  {field 1.EmployeeName}
- {translatestatictext 'Message'.{const language}}
  {field 1.YMNT_TEXT}
{dif {field 1.ymes_receivedtype}=1}
- {translatestatictext 'Delivered by'.{const language}}
  {field 1.ReceiverName}
{/dif}