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

include_once("auth.php");

## mysql verbindung aufbauen
db_connect($db_host, $db_user, $db_pass);
## /mysql verbindung aufbauen

## anbieter in array
$id = safe_query("SELECT anbieter, firma, gesperrt FROM anbieter ORDER BY number");
while ($werte = db_fetch_array($id))
	{
	 $anbieter = $werte["anbieter"];
	 $firma = $werte["firma"];
	 $gesperrt = $werte["gesperrt"];
	 if (istleer($firma)) { $firma = "<font color=#666666>".ltext("anaeli_nofirm").""; }
	 $tabelle[] = array("anbieter" => $anbieter, "firma" => $firma, "gesperrt" => $gesperrt);
	}

## /anbieter in array

?>
<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>
function doChange()
{
document.forms[0].submit();
}
</script>
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<script>
<?
echo js_f_call_help('', 'anaeli_title1');
?>
</script>

  <TR> 
      <? if (count($tabelle) > 0)
 { ?>
          <td class="titel-3" >
            <? echo ltext("anaeli_cell_reseller"); ?>
            </td>
          <td  align="left" valign="middle" height="15" class="titel-3" >
            <? echo ltext("anaeli_cell_firm"); ?>
            </td>
          <td  align="left" valign="middle" height="15" class="titel-3" >
            <? echo ltext("anaeli_cell_select"); ?>
            </td>
        </tr>
        <?

for ($i = 0; $i < (count($tabelle)); $i++) {

$anbieter = $tabelle[$i]["anbieter"];
$firma = $tabelle[$i]["firma"];
$gesperrt = $tabelle[$i]["gesperrt"];

?>
        <tr > 
          <td  height="15">
            <a class="data" href="resredirect.php?type=<?=USERTYPE_RESELLER?>&reseller=<? echo $anbieter; ?>" target="_blank"><? echo $anbieter; ?></a><? if ($gesperrt > 0) { echo "<b><font color=\"red\">!</font></b>"; } ?></td>
          <td  align="left" valign="middle" height="15">
            <? echo $firma; ?>
            </td>
          <td  align="left" valign="middle" height="15"><a class=data href="anbieter_aendern_fwd.php?anbieter=<? echo $anbieter; ?>&aktion=<? echo $aktion; ?>">
            <? echo ltext("anaeli_cell_select"); ?>
            </a></td>
        </tr>
        <? } ?>
      </table>
      <? } else { echo ltext("anaeli_noreseller"); }

 ?>
</BODY>
</HTML>

<?
db_close();
?>
