M
Maik
Im Prinzip packst du das CSS-Modell in das echo() und bindest die Tabellen-Pakete in den entsprechenden Spalten leftCol und rightCol ein.
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php include_once("header.inc.php");
include_once("config.inc.php");?>
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td valign="top"><img src="images/leer.gif" width="5" height="3" border="0"></td>
<td class="text" valign="top">
<?php
if($infos=="normal")
{
$abfrage = "SELECT * FROM webspace_pakete WHERE id='$id'";
$ergebnis = mysql_query($abfrage);
echo mysql_error();
while($row = mysql_fetch_array($ergebnis))
{
echo"
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"300\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"titel\"> <b>" . $row['name'] . "</b></td>
<td class=\"text\"></td>
</tr>
<tr>
<td class=\"text\"> Domains</td>
<td class=\"text\"> " . $row['domains'] . "</td>
</tr>
<tr>
<td class=\"text\"> <b>Speicherplatz</b></td>
<td class=\"text\"> " . $row['mb'] . "</td>
</tr>
<tr>
<td class=\"text\"> <b>Transfervolumen</b></td>
<td class=\"text\"> " . $row['transfervolumen'] . "</td>
</tr>
<tr>
<td class=\"text\"> E-Mail Adressen</td>
<td class=\"text\"> " . $row['email_adressen'] . " x </td>
</tr>
<tr>
<td class=\"text\"> Pop3 Kontos</td>
<td class=\"text\"> " . $row['pop3'] . " x </td>
</tr>
<tr>
<td class=\"text\"> Autoresponder</td>
<td class=\"text\"> " . $row['autoresponder'] . " x </td>
</tr>
<tr>
<td class=\"text\"> FTP Benutzer</td>
<td class=\"text\"> " . $row['ftp_benutzer'] . " x </td>
</tr>
<tr>
<td class=\"text\"> MYSQL</td>
<td class=\"text\"> " . $row['mysql'] . " x</td>
</tr>
<tr>
<td class=\"text\"> Cronjobs</td>
<td class=\"text\"> " . $row['cronjob'] . " x</td>
</tr>
<tr>
<td class=\"text\"> FTP</td>
<td class=\"text\"> " . $row['ftp'] . "</td>
</tr>
<tr>
<td class=\"text\"> PHP</td>
<td class=\"text\"> " . $row['php'] . "</td>
</tr>
<tr>
<td class=\"text\"> CGI / Perl </td>
<td class=\"text\"> " . $row['cgi_perl'] . "</td>
</tr>
<tr>
<td class=\"text\"> SSI</td>
<td class=\"text\"> " . $row['ssi'] . "</td>
</tr>
<tr>
<td class=\"text\"> WAP</td>
<td class=\"text\"> " . $row['wap'] . "</td>
</tr>
<tr>
<td class=\"text\"> Directorylisting</td>
<td class=\"text\"> " . $row['directorylisting'] . "</td>
</tr>
<tr>
<td class=\"text\"> Webalizer Statistik</td>
<td class=\"text\"> " . $row['webalizer_statistik'] . "</td>
</tr>
<tr>
<td class=\"text\"> htaccess</td>
<td class=\"text\"> " . $row['htaccess'] . "</td>
</tr>
<tr>
<td class=\"text\"> WEP FTP</td>
<td class=\"text\"> " . $row['web_ftp'] . "</td>
</tr>
<tr>
<td class=\"text\"> WEB Mail</td>
<td class=\"text\"> " . $row['web_mail'] . "</td>
</tr>
<tr>
<td class=\"text\"> Eigene CGI Scripte</td>
<td class=\"text\"> " . $row['cgi_scripte'] . "</td>
</tr>
<tr>
<td class=\"text\"> Anmerkung</td>
<td class=\"text\"> " . $row['sonstiges'] . "</td>
</tr>
<tr>
<td class=\"text\"> </td>
<td class=\"text\"> " . $row['text'] . "</td>
</tr>
<tr>
<td class=\"text\"> Preis Pro Monat</td>
<td class=\"text\"> " . $row['monatspreis'] . " </td>
</tr>
<tr>
<td class=\"text\"> Einrichtungsgebühr</td>
<td class=\"text\"> " . $row['einrichtungspreis'] . "</td>
</tr>
<tr>
<td class=\"text\"> <a href=\"bestellen.php?paket=" . $row['name'] . "\">Bestellen</a></td>
<td class=\"text\"> </td>
</tr>
</table>
</td><td width=\"10\"></td><td valign=top width=\"400\" align=right><img src=\"images/pakete_bg.gif\" width=\"300\" height=\"253\" border=\"0\"></td><td width=\"100\"></td></table>
";
}
}
if($infos=="reseller")
{
$abfrage = "SELECT * FROM reseller_pakete WHERE id='$id'";
$ergebnis = mysql_query($abfrage);
echo mysql_error();
while($row = mysql_fetch_array($ergebnis))
{
echo"
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"300\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"titel\"> <b>" . $row['name'] . "</b></td>
<td class=\"text\"> </td>
</tr>
<tr>
<td class=\"text\"> Maximale Kunden</td>
<td class=\"text\"> " . $row['domains'] . "</td>
</tr>
<tr>
<td class=\"text\"> <b>Speicherplatz</b></td>
<td class=\"text\"> " . $row['mb'] . "</td>
</tr>
<tr>
<td class=\"text\"> <b>Transfervolumen</b></td>
<td class=\"text\"> " . $row['transfervolumen'] . "</td>
</tr>
<tr>
<td class=\"text\"> E-Mail Adressen</td>
<td class=\"text\"> " . $row['email_adressen'] . " x </td>
</tr>
<tr>
<td class=\"text\"> Pop3 Kontos</td>
<td class=\"text\"> " . $row['pop3'] . " x </td>
</tr>
<tr>
<td class=\"text\"> Autoresponder</td>
<td class=\"text\"> " . $row['autoresponder'] . " x </td>
</tr>
<tr>
<td class=\"text\"> FTP Benutzer</td>
<td class=\"text\"> " . $row['ftp_benutzer'] . " x </td>
</tr>
<tr>
<td class=\"text\"> MYSQL</td>
<td class=\"text\"> " . $row['mysql'] . " x</td>
</tr>
<tr>
<td class=\"text\"> Cronjobs</td>
<td class=\"text\"> " . $row['cronjob'] . " x</td>
</tr>
<tr>
<td class=\"text\"> FTP</td>
<td class=\"text\"> " . $row['ftp'] . "</td>
</tr>
<tr>
<td class=\"text\"> PHP</td>
<td class=\"text\"> " . $row['php'] . "</td>
</tr>
<tr>
<td class=\"text\"> CGI / Perl </td>
<td class=\"text\"> " . $row['cgi_perl'] . "</td>
</tr>
<tr>
<td class=\"text\"> SSI</td>
<td class=\"text\"> " . $row['ssi'] . "</td>
</tr>
<tr>
<td class=\"text\"> WAP</td>
<td class=\"text\"> " . $row['wap'] . "</td>
</tr>
<tr>
<td class=\"text\"> Directorylisting</td>
<td class=\"text\"> " . $row['directorylisting'] . "</td>
</tr>
<tr>
<td class=\"text\"> Webalizer Statistik</td>
<td class=\"text\"> " . $row['webalizer_statistik'] . "</td>
</tr>
<tr>
<td class=\"text\"> htaccess</td>
<td class=\"text\"> " . $row['htaccess'] . "</td>
</tr>
<tr>
<td class=\"text\"> WEP FTP</td>
<td class=\"text\"> " . $row['web_ftp'] . "</td>
</tr>
<tr>
<td class=\"text\"> WEB Mail</td>
<td class=\"text\"> " . $row['web_mail'] . "</td>
</tr>
<tr>
<td class=\"text\"> Eigene CGI Scripte</td>
<td class=\"text\"> " . $row['cgi_scripte'] . "</td>
</tr>
<tr>
<td class=\"text\"> Anmerkung</td>
<td class=\"text\"> " . $row['sonstiges'] . "</td>
</tr>
<tr>
<td class=\"text\"> </td>
<td class=\"text\"> " . $row['text'] . "</td>
</tr>
<tr>
<td class=\"text\"> Preis Pro Monat</td>
<td class=\"text\"> " . $row['monatspreis'] . " </td>
</tr>
<tr>
<td class=\"text\"> Einrichtungsgebühr</td>
<td class=\"text\"> " . $row['einrichtungspreis'] . "</td>
</tr>
<tr>
<td class=\"text\"> <a href=\"bestellen2.php?paket=" . $row['name'] . "\">Bestellen</a></td>
<td class=\"text\"> </td>
</tr>
</table>
</td><td width=\"10\"></td><td valign=top width=\"400\" align=right><img src=\"images/pakete_bg.gif\" width=\"300\" height=\"400\" border=\"0\"></td><td width=\"100\"></td></table>
";
}
}
if($infos=="server")
{
$abfrage = "SELECT * FROM server";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_array($ergebnis))
{
echo"
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"300\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"titel\"> <b>" . $row['name'] . "</b></td>
<td class=\"text\"> </td>
</tr>
<tr>
<td class=\"text\"> CPU</td>
<td class=\"text\"> " . $row['cpu'] . "</td>
</tr>
<tr>
<td class=\"text\"> Arbeisspeicher</td>
<td class=\"text\"> " . $row['arbeisspeicher'] . "</td>
</tr>
<tr>
<td class=\"text\"> Festplatte</td>
<td class=\"text\"> " . $row['festplatte'] . "</td>
</tr>
<tr>
<td class=\"text\"> Netzwerkkarte</td>
<td class=\"text\"> " . $row['netzwerkkarte'] . "</td>
</tr>
<tr>
<td class=\"text\"> Serverstandort</td>
<td class=\"text\"> " . $row['serverstandort'] . "</td>
</tr>
<tr>
<td class=\"text\"> Notstrom</td>
<td class=\"text\"> " . $row['notstrom'] . "</td>
</tr>
<tr>
<td class=\"text\"> Anbindung</td>
<td class=\"text\"> " . $row['anbindung'] . "</td>
</tr>
<tr>
<td class=\"text\"> Backbone</td>
<td class=\"text\"> " . $row['backbone'] . "</td>
</tr>
<tr>
<td class=\"text\"> Datentransfer (inkl Traffic)</td>
<td class=\"text\"> " . $row['datentransfer'] . "</td>
</tr>
<tr>
<td class=\"text\"> Extra Traffic </td>
<td class=\"text\"> " . $row['mehr_gb'] . "</td>
</tr>
<tr>
<td class=\"text\"> Netzverfügbarkeit</td>
<td class=\"text\"> " . $row['verfuegbarkeit'] . "</td>
</tr>
<tr>
<td class=\"text\"> Betriebssystem</td>
<td class=\"text\"> " . $row['betriebssystem'] . "</td>
</tr>
<tr>
<td class=\"text\"> Webinterface</td>
<td class=\"text\"> " . $row['webinterface'] . "</td>
</tr>
<tr>
<td class=\"text\"> Root zugriff </td>
<td class=\"text\"> " . $row['root_zugriff'] . "</td>
</tr>
<tr>
<td class=\"text\"> apache</td>
<td class=\"text\"> " . $row['apache'] . "</td>
</tr>
<tr>
<td class=\"text\"> PHP Version</td>
<td class=\"text\"> " . $row['php'] . "</td>
</tr>
<tr>
<td class=\"text\"> CGI / Perl</td>
<td class=\"text\"> " . $row['cgi_perl'] . "</td>
</tr>
<tr>
<td class=\"text\"> Mysql Datenbanken</td>
<td class=\"text\"> " . $row['mysql'] . "</td>
</tr>
<tr>
<td class=\"text\"> Sendmail</td>
<td class=\"text\"> " . $row['sendmail'] . "</td>
</tr>
<tr>
<td class=\"text\"> PROFTPD</td>
<td class=\"text\"> " . $row['proftpd'] . "</td>
</tr>
<tr>
<td class=\"text\"> Cronjob</td>
<td class=\"text\"> " . $row['cronjob'] . "</td>
</tr>
<tr>
<td class=\"text\"> Software</td>
<td class=\"text\"> " . $row['software'] . "</td>
</tr>
<tr>
<td class=\"text\"> Gameserver</td>
<td class=\"text\"> " . $row['gameserver'] . "</td>
</tr>
<tr>
<td class=\"text\"> Domains</td>
<td class=\"text\"> " . $row['domains'] . " </td>
</tr>
<tr>
<td class=\"text\"> E Mail Adressen </td>
<td class=\"text\"> " . $row['e_mail_adressen'] . " </td>
</tr>
<tr>
<td class=\"text\"> MYSQL Datenbanken </td>
<td class=\"text\"> " . $row['mysql_datenbanken'] . " </td>
</tr>
<tr>
<td class=\"text\"> Kunden</td>
<td class=\"text\"> " . $row['kunden'] . " </td>
</tr>
<tr>
<td class=\"text\"> Reseller</td>
<td class=\"text\"> " . $row['reseller'] . " </td>
</tr>
<tr>
<td class=\"text\"> Eigene IP</td>
<td class=\"text\"> " . $row['eigene_ip'] . " </td>
</tr>
<tr>
<td class=\"text\"> 24/7 Reset service</td>
<td class=\"text\"> " . $row['24_7_reset_service'] . " </td>
</tr>
<tr>
<td class=\"text\"> 24/7 Recovery System</td>
<td class=\"text\"> " . $row['24_7_recovery_system'] . " </td>
</tr>
<tr>
<td class=\"text\"> 24/7 Neuinstallation</td>
<td class=\"text\"> " . $row['24_7_neuinstallation'] . " </td>
</tr>
<tr>
<td class=\"text\"> Monatsgrundgebühr </td>
<td class=\"text\"> " . $row['monatsgrundgebuehr'] . " </td>
</tr>
<tr>
<td class=\"text\"> Einrichtungsgebühr</td>
<td class=\"text\"> " . $row['einrichtungsgebuehr'] . " </td>
</tr>
<tr>
<td class=\"text\"> Abrechnungzeitraum</td>
<td class=\"text\"> " . $row['abrechnung'] . " </td>
</tr>
<tr>
<td class=\"text\"> Mindestvertragslaufzeit</td>
<td class=\"text\"> " . $row['mindestvertragslaufzeit'] . " </td>
</tr>
<tr>
<td class=\"text\"> Kündigungsfrist</td>
<td class=\"text\"> " . $row['kuendigungsfrist'] . " </td>
</tr>
<tr>
<td class=\"text\"> Auktion</td>
<td class=\"text\"> " . $row['extra_text'] . " </td>
</tr>
<tr>
<td class=\"text\"> <a href=\"bestellen2.php?paket=" . $row['name'] . "\">Bestellen</a></td>
<td class=\"text\"> </td>
</tr>
</table>
</td><td width=\"10\"></td><td valign=top width=\"400\" align=right><img src=\"images/pakete_bg.gif\" width=\"300\" height=\"400\" border=\"0\"></td><td width=\"100\"></td></table>
";
}
}
if($infos=="vserver")
{
$abfrage = "SELECT * FROM vserver";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_array($ergebnis))
{
echo"
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"300\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td class=\"titel\"> <b>" . $row['name'] . "</b></td>
<td></td>
</tr>
<tr>
<td class=\"text\"> CPU</td>
<td class=\"text\"> " . $row['cpu'] . "</td>
</tr>
<tr>
<td class=\"text\"> Arbeisspeicher</td>
<td class=\"text\"> " . $row['arbeisspeicher'] . "</td>
</tr>
<tr>
<td class=\"text\"> Festplatte</td>
<td class=\"text\"> " . $row['festplatte'] . "</td>
</tr>
<tr>
<td class=\"text\"> Netzwerkkarte</td>
<td class=\"text\"> " . $row['netzwerkkarte'] . "</td>
</tr>
<tr>
<td class=\"text\"> Serverstandort</td>
<td class=\"text\"> " . $row['serverstandort'] . "</td>
</tr>
<tr>
<td class=\"text\"> Notstrom</td>
<td class=\"text\"> " . $row['notstrom'] . "</td>
</tr>
<tr>
<td class=\"text\"> Anbindung</td>
<td class=\"text\"> " . $row['anbindung'] . "</td>
</tr>
<tr>
<td class=\"text\"> Backbone</td>
<td class=\"text\"> " . $row['backbone'] . "</td>
</tr>
<tr>
<td class=\"text\"> Datentransfer (inkl Traffic)</td>
<td class=\"text\"> " . $row['datentransfer'] . "</td>
</tr>
<tr>
<td class=\"text\"> Extra Traffic </td>
<td class=\"text\"> " . $row['mehr_gb'] . "</td>
</tr>
<tr>
<td class=\"text\"> Netzverfügbarkeit</td>
<td class=\"text\"> " . $row['verfuegbarkeit'] . "</td>
</tr>
<tr>
<td class=\"text\"> Betriebssystem</td>
<td class=\"text\"> " . $row['betriebssystem'] . "</td>
</tr>
<tr>
<td class=\"text\"> Webinterface</td>
<td class=\"text\"> " . $row['webinterface'] . "</td>
</tr>
<tr>
<td class=\"text\"> Root zugriff </td>
<td class=\"text\"> " . $row['root_zugriff'] . "</td>
</tr>
<tr>
<td class=\"text\"> apache</td>
<td class=\"text\"> " . $row['apache'] . "</td>
</tr>
<tr>
<td class=\"text\"> PHP Version</td>
<td class=\"text\"> " . $row['php'] . "</td>
</tr>
<tr>
<td class=\"text\"> CGI / Perl</td>
<td class=\"text\"> " . $row['cgi_perl'] . "</td>
</tr>
<tr>
<td class=\"text\"> Mysql Datenbanken</td>
<td class=\"text\"> " . $row['mysql'] . "</td>
</tr>
<tr>
<td class=\"text\"> Sendmail</td>
<td class=\"text\"> " . $row['sendmail'] . "</td>
</tr>
<tr>
<td class=\"text\"> PROFTPD</td>
<td class=\"text\"> " . $row['proftpd'] . "</td>
</tr>
<tr>
<td class=\"text\"> Cronjob</td>
<td class=\"text\"> " . $row['cronjob'] . "</td>
</tr>
<tr>
<td class=\"text\"> Software</td>
<td class=\"text\"> " . $row['software'] . "</td>
</tr>
<tr>
<td class=\"text\"> Gameserver</td>
<td class=\"text\"> " . $row['gameserver'] . "</td>
</tr>
<tr>
<td class=\"text\"> Domains</td>
<td class=\"text\"> " . $row['domains'] . " </td>
</tr>
<tr>
<td class=\"text\"> E Mail Adressen </td>
<td class=\"text\"> " . $row['e_mail_adressen'] . " </td>
</tr>
<tr>
<td class=\"text\"> MYSQL Datenbanken </td>
<td class=\"text\"> " . $row['mysql_datenbanken'] . " </td>
</tr>
<tr>
<td class=\"text\"> Kunden</td>
<td class=\"text\"> " . $row['kunden'] . " </td>
</tr>
<tr>
<td class=\"text\"> Reseller</td>
<td class=\"text\"> " . $row['reseller'] . " </td>
</tr>
<tr>
<td class=\"text\"> Eigene IP</td>
<td class=\"text\"> " . $row['eigene_ip'] . " </td>
</tr>
<tr>
<td class=\"text\"> 24/7 Reset service</td>
<td class=\"text\"> " . $row['24_7_reset_service'] . " </td>
</tr>
<tr>
<td class=\"text\"> 24/7 Recovery System</td>
<td class=\"text\"> " . $row['24_7_recovery_system'] . " </td>
</tr>
<tr>
<td class=\"text\"> 24/7 Neuinstallation</td>
<td class=\"text\"> " . $row['24_7_neuinstallation'] . " </td>
</tr>
<tr>
<td class=\"text\"> Monatsgrundgebühr </td>
<td class=\"text\"> " . $row['monatsgrundgebuehr'] . " </td>
</tr>
<tr>
<td class=\"text\"> Einrichtungsgebühr</td>
<td class=\"text\"> " . $row['einrichtungsgebuehr'] . " </td>
</tr>
<tr>
<td class=\"text\"> Abrechnungzeitraum</td>
<td class=\"text\"> " . $row['abrechnung'] . " </td>
</tr>
<tr>
<td class=\"text\"> Mindestvertragslaufzeit</td>
<td class=\"text\"> " . $row['mindestvertragslaufzeit'] . " </td>
</tr>
<tr>
<td class=\"text\"> Kündigungsfrist</td>
<td class=\"text\"> " . $row['kuendigungsfrist'] . " </td>
</tr>
<tr>
<td class=\"text\"> Auktion</td>
<td class=\"text\"> " . $row['extra_text'] . " </td>
</tr>
<tr>
<td class=\"text\"> <a href=\"bestellen2.php?paket=" . $row['name'] . "\">Bestellen</a></td>
<td class=\"text\"> </td>
</tr>
</table>
</td><td width=\"10\"></td><td valign=top width=\"400\" align=right><img src=\"images/pakete_bg.gif\" width=\"300\" height=\"400\" border=\"0\"></td><td width=\"100\"></td></table>
";
}
}
?>
</td>
</tr>
</table>
<?php include_once("footer.inc.php"); ?>