<h2><tmpl_var name="list_head_txt"></h2>
<p><tmpl_var name="list_desc_txt"></p>

<div class="panel panel_invoice_message">

  <div class="pnl_formsarea">
    <fieldset class="inlineLabels"><legend>Message</legend>
      <div class="ctrlHolder">
      	<label for="invoice_company_id">{tmpl_var name='invoice_company_id_txt'}</label>
        <select name="invoice_company_id" id="invoice_company_id" class="selectInput">
					{tmpl_var name='invoice_company_id'}
				</select>
      </div>
      <div class="ctrlHolder">
      	<label for="client_id">{tmpl_var name='client_id_txt'}</label>
        <select name="client_id" id="client_id" class="selectInput">
					{tmpl_var name='client_id'}
				</select>
      </div>
      <div class="ctrlHolder">
      	<label for="message_template_id">{tmpl_var name='message_template_id_txt'}</label>
        <select name="message_template_id" id="message_template_id" class="selectInput" onChange="submitForm('pageForm','billing/invoice_message_edit.php?action=loadtemplate');">
					<option value="0">- No template -</option>
					{tmpl_var name='message_template_id'}
				</select>
      </div>
      <div class="ctrlHolder">
      	<label for="subject">{tmpl_var name='subject_txt'}</label>
        <input name="subject" id="subject" value="{tmpl_var name='subject'}" style="width:500px" size="30" maxlength="255" type="text" class="textInput" />
			</div>
      <div class="ctrlHolder">
      	<label for="message">{tmpl_var name='message_txt'}</label>
        <textarea name="message" id="message" rows='' cols='' style="width:500px">{tmpl_var name='message'}</textarea>
      </div>
	  <div class="ctrlHolder">
      	<label for="message_type">{tmpl_var name='message_type_txt'}</label>
       {tmpl_var name='message_type'}
      </div>
	  <div class="ctrlHolder">
      	<label for="message_sent_date">{tmpl_var name='message_sent_date_txt'}</label>
        {tmpl_var name='message_sent_date'} <input name="message_sent_date" id="message_sent_date" value="{tmpl_var name='message_sent_date'}" size="15" maxlength="15" type="hidden" />
	  </div>
	  <tmpl_if name="invoice_number">
      <div class="ctrlHolder">
      	<label for="invoice_id">{tmpl_var name='invoice_id_txt'}</label>
        Invoice No. {tmpl_var name='invoice_number'}
	  </div>
      </tmpl_if>
	  <input name="invoice_id" id="invoice_id" value="{tmpl_var name='invoice_id'}" type="hidden" />
      <div class="ctrlHolder">
      	<label for="message_status">{tmpl_var name='message_status_txt'}</label>
        {tmpl_var name='message_status'} <input name="message_status" id="message_status" value="{tmpl_var name='message_status'}" type="hidden" />
      </div>
    </fieldset>

    <input type="hidden" name="id" value="{tmpl_var name='id'}">

    <div class="buttonHolder buttons">
      <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_draft_txt'}" onClick="submitForm('pageForm','billing/invoice_message_edit.php?action=send');"><span>{tmpl_var name='btn_send_message_txt'}</span></button>
	  <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_draft_txt'}" onClick="submitForm('pageForm','billing/invoice_message_edit.php');"><span>{tmpl_var name='btn_save_draft_txt'}</span></button>
      <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('billing/invoice_message_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
    </div>
  </div>
  
</div>
