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.
<html>
<head>
<style>
a:link {color: white; text-decoration: none; font-family: Verdana; size: 8px; }
a:visited {color: white; text-decoration: none; font-family: Verdana; size: 8px; }
a:active {color: white; text-decoration: none; font-family: Verdana; size: 8px; }
a:hover {color: #00ff00; text-decoration: none; font-family: Verdana; size: 8px; }
</style>
<script language="JavaScript" type="text/javascript">
<!--
var width=400;
var height=290;
window.resizeTo(width,height);
//-->
</script>
</head>
<body>
<font color="#FFFFFF">
<?php
include("inc_header.php");
$query_handle_download = mysql_query
("SELECT * from mad_downloads WHERE id=$id", $db_handle);
$dldata = mysql_fetch_array($query_handle_download);
$comments = explode("|", $dldata[comments]);
if(isset($send_comment)) {
$thisdate = get_id();
$writecomment_comment = make_mysqlable($writecomment_comment);
$writecomment_name = make_mysqlable($writecomment_name);
if(count($comments)<3) {
$comments=array($writecomment_comment, $thisdate, $writecomment_name);
} else {
$comments[] = $writecomment_comment;
$comments[] = $thisdate;
$comments[] = $writecomment_name;
}
$dldata[comments] = implode("|", $comments);
mysql_query("UPDATE mad_downloads SET comments='$dldata[comments]' WHERE id=$id", $db_handle);
}
if(isset($send_rating)) {
if($dldata[rating]!="0") $dldata[rating] = round((($dldata[rating]+$sendrating_rating)/2),2);
else $dldata[rating]=$sendrating_rating;
mysql_query("UPDATE mad_downloads SET rating='$dldata[rating]' WHERE id=$id", $db_handle);
}
$viewdate = get_date($dldata[id]);
$howmuch_comments = round(count($comments)/3);
$mirrors = explode("§",$dldata[url]);
$hosters = explode("§",$dldata[hoster]);
$i=1;
foreach($mirrors AS $url) {
$i2 = $i-1;
$mirrorsview .= "<option><a href=\"download_download.php?id=$dldata[id]&url=$url\">Mirror $i</a> <small>($hosters[$i2])</small></option><br>";
$i++;
}
?>
<script type="text/javascript">
<!--
function checkComment()
{
if(document.comment.writecomment_name.value == "") {
alert("Bitte Ihren Namen eingeben!");
document.comment.writecomment_name.focus();
return false;
}
if(document.comment.writecomment_comment.value == "") {
alert("Bitte einen Text eingeben!");
document.comment.writecomment_comment.focus();
return false;
}
}
//-->
</script>
</font>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<div align="left">
<table class="content" bgcolor="#535356" style="border-collapse: collapse" border="1" bordercolor="#DCD903" width="400" height="290">
<tr>
<td class="cell2" width="35%" height="5%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">Titel
</font>
</td>
<td class="cell2" width="70%" height="5%">
<font face="Verdana" size="1" color="#FFFFFF">
<?php echo $dldata[headline]; ?>
</font>
</td>
</tr>
<tr>
<td class="cell1" width="35%" height="5%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">Autor
</font>
</td>
<td class="cell1" width="70%" height="5%">
<font face="Verdana" size="1" color="#FFFFFF">
<?php echo $dldata[autor]; ?>
</font>
</td>
</tr>
<tr>
<td class="cell2" width="35%" height="5%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">Dateigröße
</font>
</td>
<td class="cell2" width="70%" height="5%">
<font face="Verdana" size="1" color="#FFFFFF">
<?php echo $dldata[size]; ?>
</font>
</td>
</tr>
<tr>
<td class="cell2" width="35%" height="5%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">Downloads</font></td>
<td class="cell2" width="166" height="5%">
<font face="Verdana" size="1" color="#FFFFFF">
<?php echo $dldata[downloads]; ?>
</font>
</td>
</tr>
<tr>
<td class="cell2" colspan="2" align="center" valign="top" height="1%">
<div align="center">
<font color="#FFFFFF">
<?
$minuten = 60;
$modem = 7;
$isdn = 8;
$dsl = 96;
$dsl1k = 125;
$dsl2k = 250;
$dsl3k = 375;
$tausend = 1000;
$berechnung_modem = $dldata[size] * $tausend / $modem / $minuten;
$berechnung_isdn = $dldata[size] * $tausend / $isdn / $minuten;
$berechnung_dsl = $dldata[size] * $tausend / $dsl / $minuten;
$berechnung_dsl1k = $dldata[size] * $tausend / $dsl1k / $minuten;
$berechnung_dsl2k = $dldata[size] * $tausend / $dsl2k/ $minuten;
$berechnung_dsl3k = $dldata[size] * $tausend / $dsl3k / $minuten;
$ergebnis_modem = round ($berechnung_modem);
$ergebnis_isdn = round ($berechnung_isdn);
$ergebnis_dsl = round ($berechnung_dsl);
$ergebnis_dsl1k = round ($berechnung_dsl1k);
$ergebnis_dsl2k = round ($berechnung_dsl2k);
$ergebnis_dsl3k = round ($berechnung_dsl3k);
?>
</font>
<table border="0" width="80%" style="border-collapse: collapse">
<tr>
<td width="50%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">Modem</font></td>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF"><? echo $ergebnis_modem; ?> Minuten</font></td>
</tr>
<tr>
<td width="50%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">ISDN
</font></td>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF"><? echo $ergebnis_isdn; ?> Minuten</font></td>
</tr>
<tr>
<td width="50%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">DSL</font></td>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF"><? echo $ergebnis_dsl; ?> Minuten</font></td>
</tr>
<tr>
<td width="50%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">DSL 1000</font></td>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF"><? echo $ergebnis_dsl1k; ?> Minuten</font></td>
</tr>
<tr>
<td width="50%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">DSL 2000</font></td>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF"><? echo $ergebnis_dsl2k; ?> Minuten</font></td>
</tr>
<tr>
<td width="50%">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF">DSL 3000</font></td>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#FFFFFF"><? echo $ergebnis_dsl3k; ?> Minuten</font></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="cell2" colspan="2" align="center" height="102" valign="top">
<p style="margin-top: 0; margin-bottom: 0">
<form target="_blank" method="POST" action="download_download.php?id=<? echo $dldata[id]; ?>&url=<? echo $url; ?>">
<select size="1" name="mirrors" style="color: #FFFFFF; font-size: 8pt; font-family: Verdana; border: 1px solid #00FF00; background-color: #535356">
<?php echo $mirrorsview; ?>
</select>
<input type="submit" value="Download" name="download" style="color: #FFFFFF; font-size: 8pt; font-family: Verdana; border: 1px solid #00FF00; background-color: #535356"></p>
</form>
</td>
</tr>
</table>
</div><font color="#FFFFFF"><br>
</font>
</body>
</html>
<?
include("inc_footer.php");
?>
$mirrorsview .=
$mirrorsview =
$query = mysql_query("SELECT * FROM tabelle WHERE id = '".$_GET['id']."'");
while ($result = mysql_fetch_array($query))
{
?>
<option value="<?=$result['url']?>"><?=$result['hoster']?></option>
<?
}
?>