{if $action == ''}
  <html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
  <title>{$mail_titel}</title>
  {literal}
  <script type='text/javascript' src='CKEditor_4.6.1/ckeditor.js'></script>
  {/literal}
  </head>
  <body onload="{literal}if(document.Mail)document.Mail.betreff.focus();return false;{/literal}">
  <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
          <td>
          <div align="center">
              <table cellspacing="0" cellpadding="0" width="100%" border="0">
                  <tr>
                      <td align="left" width="1%" width="10" background="templates/{$global_template}/images/box_e1.gif">
                      <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                      <td align="left" width="98%" background="templates/{$global_template}/images/box_top.gif" valign="top" colspan="2">
                      <img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
                      <font class="hd">{$mail_titel}</font><br>
                      <img height="5" src="templates/{$global_template}/images/blank.gif" width="1"></td>
                      <td align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
                      <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                  </tr>
                  <tr>
                      <td width="1%" background="templates/{$global_template}/images/box_l.gif">
                      <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                      <td colspan="2">
                      <form action=?action=ausgabe2 method=POST name=Mail>
                        <table width="100%"  border="0">
                          <tr>
                            <td width="30%" valign="top"><b>{$mail_field_abs}</b></td>
                            <td width="70%" valign="top">{$mail_vorname} {$mail_nachname}
                            <input name="sender" type="hidden" value="{$mail_vorname} {$mail_nachname}" id="sender" size="66"></td>
                          </tr>
                          <tr>
                            <td width="30%" valign="top"><b>{$mail_field_mailabs}</b></td>
                            <td width="70%" valign="top">{$mail_mailadr}
                            <input name="sendermail" type="hidden" value="{$mail_mailadr}" id="sendermail" size="66"></td>
                          </tr>
                          </tr>
                          <tr>
                            <td width="30%" valign="top">&nbsp;</td>
                            <td width="70%" valign="top">&nbsp;</td>
                          </tr>
                          <tr>
                            <td width="30%" valign="top"><b>{$mail_field_betreff}</b></td>
                            <td width="70%" valign="top"><input name="betreff" type="text" id="betreff" size="66"></td>
                          </tr>
                          <tr>
                            <td width="30%" valign="top"><b>{$mail_field_mess}</b></td>
                            <td width="70%" valign="top">

                               <textarea id='inhalt' name='inhalt'></textarea>
                             {literal}
                               <script type='text/javascript'>
                                 CKEDITOR.replace( 'inhalt', {
                                                   height: 180,
                                                   enterMode : CKEDITOR.ENTER_BR
                                                   } );
                               </script>
                             {/literal}
                            </td>
                          </tr>
                          <tr>
                            <td width="30%" valign="top">&nbsp;</td>
                            <td width="70%" valign="top"><input type=checkbox NAME="kopie">Kopie der Mail erhalten</td>
                          </tr>
                        </table>
                        <br>
                        <input type="submit" value="Abschicken" name="B1" size="20">
                        </form>
                        </td>
                      <td width="1%" background="templates/{$global_template}/images/box_r.gif">
                      <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                  </tr>
                  <tr>
                      <td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
                      <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                      <td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
                      <img height="16" src="templates/{$global_template}/images/blank.gif" width="8"></td>
                      <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
                      <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"> </td>
                  </tr>
              </table>
          </div>
          </td>
      </tr>
  </table>
  </body>
  </html>
{/if}

{if $action == 'ausgabe2'}
  {if $mail_mandatory == '1'}
    <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
        <title>{$mail_mandatory_titel}</title>
        </head>
        <body>
        <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
            <tr>
                <td>
                <div align="center">
                    <table cellspacing="0" cellpadding="0" width="550" border="0">
                        <tr>
                            <td width="10" background="templates/{$global_template}/images/box_e1.gif">
                            <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                            <td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
                            <td width="95%" background="templates/{$global_template}/images/box_top.gif">
                            <img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
                            <font class="hd">{$mail_mandatory_titel}</font><br>
                            <img height="5" src="templates/{$global_template}/images/blank.gif" width="1"></td>
                            <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
                            <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        </tr>
                        <tr>
                            <td width="1%" background="templates/{$global_template}/images/box_l.gif">
                            <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                            <td colspan="2"><br><p align="center"><b>{$mail_mandatory_text}</b>
                            <p></p>
                            <p></p>
                            <p align="center"><a href="javascript:history.back()">
                            <img border="0" src="templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
                            </td>
                            <td width="1%" background="templates/{$global_template}/images/box_r.gif">
                            <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
                            <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                            <td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
                            <img height="16" src="templates/{$global_template}/images/blank.gif" width="8"></td>
                            <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
                            <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"> </td>
                        </tr>
                    </table>
                </div>
                </td>
            </tr>
        </table>
        </body>
        </html>
  {/if}

  {if $mail_success == '1'}
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$mail_success_titel}</title>
    </head>
    <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
        <tr>
            <td>
            <div align="center">
                <table cellspacing="0" cellpadding="0" width="550" border="0">
                    <tr>
                        <td width="10" background="templates/{$global_template}/images/box_e1.gif">
                        <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
                        <td width="95%" background="templates/{$global_template}/images/box_top.gif">
                        <img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
                        <font class="hd">{$mail_success_titel}</font><br>
                        <img height="5" src="templates/{$global_template}/images/blank.gif" width="1"></td>
                        <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
                        <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                    </tr>
                    <tr>
                        <td width="1%" background="templates/{$global_template}/images/box_l.gif">
                        <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td colspan="2"><br><p align="center"><b>{$mail_success_text}</b>
                        <p></p>
                        <p></p>
                        <p align="center"><a href="hauptframe.php">
                        <img border="0" src="templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
                        </td>
                        <td width="1%" background="templates/{$global_template}/images/box_r.gif">
                        <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
                        <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
                        <img height="16" src="templates/{$global_template}/images/blank.gif" width="8"></td>
                        <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
                        <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"> </td>
                    </tr>
                </table>
            </div>
            </td>
        </tr>
    </table>
    </body>
    </html>
  {/if}

  {if $mail_success == '2'}
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$mail_unsuccess_titel}</title>
    </head>
    <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
        <tr>
            <td>
            <div align="center">
                <table cellspacing="0" cellpadding="0" width="550" border="0">
                    <tr>
                        <td width="10" background="templates/{$global_template}/images/box_e1.gif">
                        <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
                        <td width="95%" background="templates/{$global_template}/images/box_top.gif">
                        <img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
                        <font class="hd">{$mail_unsuccess_titel}</font><br>
                        <img height="5" src="templates/{$global_template}/images/blank.gif" width="1"></td>
                        <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
                        <img height="40" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                    </tr>
                    <tr>
                        <td width="1%" background="templates/{$global_template}/images/box_l.gif">
                        <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td colspan="2"><br><p align="center">{$mail_unsuccess_text}
                        <p></p>
                        <p></p>
                        <p align="center"><a href="javascript:history.back()">
                        <img border="0" src="templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
                        </td>
                        <td width="1%" background="templates/{$global_template}/images/box_r.gif">
                        <img height="1" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
                        <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
                        <img height="16" src="templates/{$global_template}/images/blank.gif" width="8"></td>
                        <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
                        <img height="16" src="templates/{$global_template}/images/blank.gif" width="22"> </td>
                    </tr>
                </table>
            </div>
            </td>
        </tr>
    </table>
    </body>
    </html>
  {/if}

{/if}