-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzeitanzeige.php
52 lines (50 loc) · 1.4 KB
/
zeitanzeige.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
include("_settings.php");
include("_mysql.php");
include("_functions.php");
$dsatz["aktion_start"]=$_GET['start'];
$dsatz["aktion_ende"]=$_GET['ende'];
?>
<table width="100%">
<tr>
<td colspan="2"><b><?php echo text_ausgabe("dauer", 0, $bg['sprache']) ?></b></td>
</tr>
<tr>
<td>Zeit:</td>
<td class="tdright"><?php echo zeit_anzeigen($dsatz["aktion_ende"]-time()); ?></td>
</tr>
<!-- Platzhalter zwischen den Tabellen -->
<tr><td><br /></td></tr>
<!-- Platzhalter zwischen den Tabellen -->
<tr>
<td colspan="2" class="tdcenter">
<?php
$min=$dsatz["aktion_start"];
$value=time();
$max=$dsatz["aktion_ende"];
$max=$max-$min;
$value=$value-$min;
$min=$min-$min;
?>
<script>
var $jq = jQuery.noConflict();
$jq(function() {
$jq( "#progressbar" ).progressbar({
value: <?php echo $value; ?>,
max: <?php echo $max; ?>
});
});
</script>
<div id="progressbar"></div>
<?php
if ($value==$max) {
?>
<script type="text/javascript">
location.reload();
</script>';
<?php
}
?>
</td>
</tr>
</table>