function show_edit()
{
global $name,$pass;
global $table_accounts, $table_banner, $table_groups, $table_stats, $datei_endung;
$sql = "select * from $table_banner where archiv='nein' order by id";
$sql_id = mysql_query($sql);
?>
Accounts bearbeiten
while($banner = mysql_fetch_row($sql_id))
{
$count++;
$sql2 = "select kunde from $table_accounts where id = $banner[0]";
$sql_id2 = mysql_query($sql2);
while($kunden = mysql_fetch_row($sql_id2))
{
$kunde = $kunden[0];
}
if($count == 1)
{
?>
| Account |
Kunde |
ausst. Einblendungen |
ausst. Klicks |
bis Datum |
}
$banner_noch_ads = $banner[1];
$banner_noch_klicks = $banner[2];
$banner_datum = $banner[3];
if($banner_noch_ads <= 0)
{
$banner_noch_ads = 0;
}
if($banner_noch_klicks <= 0)
{
$banner_noch_klicks = 0;
}
echo "
| $banner[0] |
$kunde |
$banner_noch_ads |
$banner_noch_klicks |
$banner_datum |
";
}
if(!$count)
{
?>
Es sind keine Accounts verfügbar
}
?>
include ("footer.inc");
}
?>