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


if (isset($HTTP_USER_AGENT) && strpos($HTTP_USER_AGENT,"IE") > 0)
$Rows = "48";
else
$Rows = "45";
?>
<?
include_once("auth.php");
db_connect($db_host, $db_user, $db_pass);

if ($ausdb != "nein")	{
    $id = safe_query( "select * from admin", TRUE );
    $werte = db_fetch_array($id);

    $emailbetreff = $werte["emailbetreff"];
    $emailadresse = $werte["emailadresse"];
    $emailname = $werte["emailname"];
    $emailtext = $werte["emailtext"];
}
?>

<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">
<? include("../fehler.inc.php"); ?><br>
<script>
function doChange()
{
document.forms[0].submit();
}
</script>
<form method="post" action="anbieter_email2.php">
<table border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF" width="470" class="tblbgcolor">
			<tr> 
                	    <td width="20%" height="26" nowrap>
				<? echo ltext("anem_cell_subject"); ?>&nbsp;
			    </td>
                	    <td width="80%">
				<input type="text" name="emailbetreff" size="<?=$Rows-10?>" value="<? echo $emailbetreff; ?>">
			    </td>
			</tr>
                	<tr> 
                	    <td width="20%" nowrap>
				<? echo ltext("anem_cell_text"); ?>&nbsp;
			    </td>
                	    <td width="80%">
		        	<textarea width="100%" name="emailtext" rows="12" cols="<?=$Rows+10?>"><? echo $emailtext; ?></textarea>
            		    </td>
                	</tr>
                	<tr> 
                	    <td width="20%" height="26" nowrap>
				<? echo ltext("anem_cell_senderemail"); ?>&nbsp;
			    </td>
                	    <td width="80%"> 
				<input type="text" name="emailadresse" size="<?=$Rows-10?>" value="<? echo $emailadresse; ?>">
                            </td>
                	</tr>
                	<tr> 
                	    <td width="20%" height="26" nowrap>
				<? echo ltext("anem_cell_sendername"); ?>&nbsp;
			    </td>
                	    <td width="80%"> 
                        	<input type="text" name="emailname" size="<?=$Rows-10?>" value="<? echo $emailname; ?>">
			    </td>
                	</tr>
			<tr>
			    <td colspan="2">
				<center>
				    <? echo std_button(ltext("anem_button1"), "javascript:doChange()"); ?>
				</center>
			    </td>
			</tr>
            	    </table>
</form>
<br>
<table class="tblbgcolor" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF" width="470">
<tr>
    <td>
	<b><? echo ltext("anem_title2"); ?></b>
    </td>
</tr>
<tr>
    <td>
	<table class="tblbgcolor" align="right" valign="top" cellpadding="0" border="0">
	    <tr>
		<td colspan="3" height="3">
		</td>
	    </tr>
	    <tr>
		<td height="18" width="2%">&nbsp;
		</td>
		<td width="20%">
		    &nbsp;##reseller##&nbsp;
		</td>
		<td width="60%">
		    &nbsp;<? echo ltext("anem_cell_varreseller"); ?>
		</td>
	    </tr>
	    <tr>
		<td colspan="3" height="1">
		</td>
	    </tr>
	    <tr>
		<td height="18" width="2%">&nbsp;
		</td>
		<td width="20%">
		    &nbsp;##password##&nbsp;
		</td>
		<td width="60%">
		    &nbsp;<? echo ltext("anem_cell_varpassword"); ?>
		</td>
	    </tr>
	    <tr>
		<td colspan="3" height="1">
		</td>
	    </tr>
	    <tr>
		<td height="18" width="2%">&nbsp;
		</td>
		<td width="20%">
		    &nbsp;##name##&nbsp;
		</td>
		<td width="60%">
		    &nbsp;<? echo ltext("anem_cell_varname"); ?>
		</td>
	    </tr>
	    <tr>
		<td colspan="3" height="1">
		</td>
	    </tr>
	    <tr class="tblbgcolor">
		<td height="18" width="2%">&nbsp;
		</td>
		<td width="20%" >
		    &nbsp;##company##&nbsp;
		</td>
		<td width="60%" >
		    &nbsp;<? echo ltext("anem_cell_varfirm"); ?>
		</td>
	    </tr>
	    <tr>
		<td colspan="3" height="1">
		</td>
	    </tr>
	    <tr class="tblbgcolor">
		<td height="18" width="2%">&nbsp;
		</td>
		<td width="20%">
		    &nbsp;##email##&nbsp;
		</td>
		<td width="60%">
		    &nbsp;<? echo ltext("anem_cell_varemail"); ?>
		</td>
	    </tr>
	    <tr>
		<td colspan="3" height="3">
		</td>
	    </tr>
	</table>
    </td>
</tr>
<tr>
    <td>
	<b><? echo ltext("anem_descr2"); ?></b>
    </td>
</tr>
</table>
</BODY>
</HTML>

<?
db_close();
?>
