Subversion Repositories ALCASAR

Rev

Rev 1277 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1277 Rev 1281
Line 46... Line 46...
46
	}	
46
	}	
47
	// Conversion en entier de nbtickets 
47
	// Conversion en entier de nbtickets 
48
	nbtickets = parseInt(nbtickets)
48
	nbtickets = parseInt(nbtickets)
49
	// Configuration et envoie du formulaire
49
	// Configuration et envoie du formulaire
50
	arg.nbtickets.value = nbtickets
50
	arg.nbtickets.value = nbtickets
51
	arg.action = "vouchers_new.php";
51
	arg.action = "ticket_voucher.php";
52
	arg.submit();
52
	arg.submit();
53
	
-
 
54
	return true;
53
	return true;
55
}
54
}
56
</script>
55
</script>
57
</head>
56
</head>
58
<body>
57
<body>
Line 80... Line 79...
80
	<tr><td>   
79
	<tr><td>   
81
<?php 
80
<?php 
82
function sec_imp($time)
81
function sec_imp($time)
83
	/* Formatage des secondes avant l'impression */
82
	/* Formatage des secondes avant l'impression */
84
    {
83
    {
85
	$heure=0;$minute=0;$seconde=0;
84
	$jour = 0;$heure = 0;$minute = 0;$seconde = 0;
-
 
85
	$jour = floor($time/86400);
-
 
86
	$reste = $time%86400;
-
 
87
    	if ($jour!=0) $result = $jour.' J ';
86
	$heure = floor($time/3600);
88
	$heure = floor($reste/3600);
87
    	$reste = $time%3600;
89
    	$reste = $reste%3600;
88
    	if ($heure!=0) $result = $heure.' H ';
90
    	if ($heure!=0) $result = $result.$heure.' H ';
89
	$minute = floor($reste/60);
91
	$minute = floor($reste/60);
90
    	if ($minute!=0) $result = $result.$minute.' min ';
92
    	if ($minute!=0) $result = $result.$minute.' min ';
91
	$seconde = $reste%60;
93
	$seconde = $reste%60;
92
    	if ($seconde!=0) $result = $result.$seconde.' s ';
94
    	if ($seconde!=0) $result = $result.$seconde.' s ';
93
   	return $result;
95
   	return $result;