<?
########## Confixx(R) 3.0 Professional ############
####### Copyright SWsoft, Inc. 2004-2005 ##########
#### http://www.sw-soft.com - info@sw-soft.com ####

include_once("auth.php");

db_connect($db_host, $db_user, $db_pass);
$loUser = new SQLString($PHP_AUTH_USER);
$id = safe_query2( "SELECT frontpage, cssl, maxmysql FROM anbieter WHERE anbieter=?", $loUser);
$werte = db_fetch_array($id);
$skfrontpage = $werte["frontpage"];
$skssl = $werte["cssl"];
$maxmysql = $werte["maxmysql"];
if ($maxmysql != 0) $skmysql = 1;

if ($datenausdbholen != "nein")
	{

		$id = safe_query2( "SELECT * FROM anbieter WHERE anbieter=?", $loUser);
	 $werte = db_fetch_array($id);
	 if ($ident != "standard")
		{
		 $ident = addslashes($ident);
		 $id = safe_query( "SELECT * FROM angebote WHERE anbieter = ? AND ident='$ident'", $loUser);
		 $werte = db_fetch_array($id);
		}
	 $emailname = $werte["emailname"];
	 $emailtext = $werte["emailtext"];
	 $emailbetreff = $werte["emailbetreff"];
	 $emailadresse = $werte["emailemailadresse"];
	 $emailbcc = $werte["emailbcc"];
	}
else
	{
	 noMagic($emailname);
	 noMagic($emailtext);
	 noMagic($emailbetreff);
	 noMagic($emailadresse);
	 noMagic($emailbcc);
	}
?>

<HTML>
<HEAD>
<META content="text/html; charset=<? echo $lang_html_charset; ?>" http-equiv=Content-Type>
<LINK href="<?=$strSkinName?>/style.css" rel=stylesheet type=text/css>
</HEAD>

<BODY bgColor=#ffffff bottomMargin=0 leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<br><? include("../fehler.inc.php"); ?>
<script>
<?
echo js_f_call_help('kuem2_title1', 'kuem2_descr1');
?>
function doChange()
{
document.forms[0].submit();
}
</script>
      <form method="post" action="kunden_email3.php">
<table class="tblbgcolor" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr>
    <TD valign="top" class="titel-3"  colspan=3>
      <? echo ltext("kuem2_title2"); ?>
      </td></tr> 
        <tr> 
          <td>##user##</td>
          <td>
       
            <? echo ltext("kuem2_cell_user"); ?>
            </td>
        </tr>
        <tr> 
          <td>##password##</td>
          <td>
       
            <? echo ltext("kuem2_cell_pw"); ?>
            </td>
        </tr>
        <tr> 
          <td>##domain##</td>
          <td >
       
            <? echo ltext("kuem2_cell_domain"); ?>
            </td>
        </tr>
        <tr> 
          <td>##domains##</td>
          <td >
       
            <? echo ltext("kuem2_cell_domains"); ?>
            </td>
        </tr>
        <tr> 
          <td>##name##</td>
          <td >
            <? echo ltext("kuem2_cell_name"); ?>
            *</td>
        </tr>
        <tr> 
          <td>##company##</td>
          <td >
       
            <? echo ltext("kuem2_cell_company"); ?>
            *</td>
        </tr>
        <tr> 
          <td>##email##</td>
          <td >
       
            <? echo ltext("kuem2_cell_email"); ?>
            *</td>
        </tr>
      <tr><td colspan=2>* 
       
      <? echo ltext("kuem2_descr2"); ?>
      </TD>
  </TR>
          <tr > 
            <td colspan="2"  class="titel-3" >
       
              <? echo ltext("kuem2_cell_mailtemplate"); ?>
              </td>
          </tr>
          <tr > 
            <td >
       
              <? echo ltext("kuem2_cell_subject"); ?>
              </td>
            <td> 
              <input type="text" name="emailbetreff" size="62" value="<? echo $emailbetreff; ?>">
            </td>
          </tr>
          <tr > 
            <td >
              <? echo ltext("kuem2_cell_text"); ?>
              </td>
            <td> 
              <textarea name="emailtext" cols="60" rows="8"><? echo HTMLSpecialChars($emailtext); ?></textarea>
            </td>
          </tr>
          <tr > 
            <td><? echo ltext("kuem2_cell_senderemail"); ?></td>
            <td  > 
              <input type="text" name="emailadresse" value="<? echo $emailadresse; ?>">
              </td>
          </tr>
          <tr > 
            <td><? echo ltext("kuem2_cell_sendername"); ?></td>
            <td > 
              <input type="text" name="emailname" value="<? echo $emailname; ?>">
              </td>
          </tr>
          <tr > 
            <td><? echo ltext("kuem2_cell_bcc"); ?></td>
            <td  >
              <input type="text" name="emailbcc" value="<? echo $emailbcc; ?>">
              </td>
          </tr>
          <tr >
            <td>&nbsp;</td>
            <td>
	      <input type="hidden" name="ident" value="<? echo $ident; ?>">
	      <? echo std_button(ltext("kuem2_button1"), "javascript:doChange()"); ?></td>
          </tr>
</table>
</form>
</BODY>
</HTML>

<?
db_close();
?>
