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

include_once("auth.php");
?>

<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();
}
function doChange2()
{
document.forms[1].submit();
}
</script>
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr>
    <TD > 
      <b><? echo ltext("stst_title1"); ?></b><br>
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<form method="post" action="statistiken_kunde1.php">
          <tr > 
            <td  colspan="4" align="left" class="titel-3" ><? echo ltext("stst_cell_title1"); ?></td>
          </tr>
          <tr >
            <td > 
              <input type="text" name="kunde">
            </td>
            <td  align="left" colspan=3 valign="middle"><? echo ltext("stst_cell_keys"); ?></td>
          </tr>
          <tr > 
            <td>&nbsp;</td>
            <td align="left" valign="middle" colspan=3><? echo std_button(ltext("stst_button1"), "javascript:doChange()"); ?></td>
          </tr>
      </form>
      <br>
      <?
if ($ergebnis == 1)
	{
?> 
        <tr > 
          <td  height="15" class="titel-3" ><? echo ltext("stst_cell_user"); ?> 
            </td>
          <td  align="left" valign="middle" height="15" class="titel-3" >
            <? echo ltext("stst_cell_name"); ?>
            </td>
          <td  align="left" valign="middle" height="15" class="titel-3" >
            <? echo ltext("stst_cell_domains"); ?>
            </td>
          <td  align="left" valign="middle" height="15" class="titel-3" >
            <? echo ltext("stst_cell_select"); ?>
            </td>
        </tr>
        <?
	for ($i = 0; $i < (count($tabelle)); $i++)
		{
		 $kunde = $tabelle[$i]["kunde"];
		 $name = $tabelle[$i]["name"];
		 $domains = $tabelle[$i]["domains"];
		 $gesperrt = $tabelle[$i]["gesperrt"];
?> 
        <tr > 
          <td  height="15"><? echo $kunde; ?>
		  <? if ($gesperrt > 0) { echo "<b><font color=\"red\">!</b>"; } ?>
		  </td>
          <td  align="left" valign="middle" height="15"><? echo $name; ?></td>
          <td  align="left" valign="middle" height="15"><? echo $domains; ?></td>
          <td  align="left" valign="middle" height="15"><a class=data href="statistiken_kunde2.php?kunde=<? echo $kunde; ?>"><? echo ltext("stst_cell_select"); ?></a></td>
        </tr>
        <?
		}
?>
      <? } ?><br>
      <br>
      <form method="post" action="statistiken_kunden.php">
          <tr > 
            <td colspan="4" align="left" class="titel-3" >
              <? echo ltext("stst_cell_features"); ?>
              </td>
          </tr>
          <tr > 
            <td ><? echo ltext("stst_cell_numberofusers"); ?></td>
            <td  align="left" valign="middle" colspan=3>
              <? echo ltext("stst_cell_orderedby"); ?>
              <input type="hidden" name="start" value="0">
              </td>
          </tr>
          <tr > 
            <td  > 
              <select name="schritte">
                <option value="5">5 <? echo ltext("stst_select_users"); ?></option>
                <option value="15">15 <? echo ltext("stst_select_users"); ?></option>
                <option value="25" selected>25 <? echo ltext("stst_select_users"); ?></option>
                <option value="50">50 <? echo ltext("stst_select_users"); ?></option>
                <option value="100">100 <? echo ltext("stst_select_users"); ?></option>
                <option value="200">200 <? echo ltext("stst_select_users"); ?></option>
              </select>
            </td>
            <td   align="left" valign="middle" colspan=3>
              <select name="order">
                <option value="benutzer" selected><? echo ltext("stst_select_orderby_user"); ?></option>
                <option value="email"><? echo ltext("stst_select_orderby_email"); ?></option>
                <option value="pop3"><? echo ltext("stst_select_orderby_pop3"); ?></option>
                <option value="atransfer"><? echo ltext("stst_select_orderby_currenttransfer"); ?></option>
                <option value="ltransfer"><? echo ltext("stst_select_orderby_lmtransfer"); ?></option>
                <option value="kb"><? echo ltext("stst_select_orderby_du"); ?></option>
              </select>
            </td>
          </tr>
          <tr > 
            <td  colspan=2>
              <input type="checkbox" name="limit" value="yes">
              
              <? echo ltext("stst_cell_limit"); ?>
              </td>
            <td align="left" valign="middle" colspan=2><? echo std_button(ltext("stst_button2"), "javascript:doChange2()"); ?></td>
          </tr>
        </table>
      </form>
      </TD>
  </TR>
  </TBODY> 
</TABLE>
</BODY>
</HTML>
