add aktive counter

git-svn-id: svn://svn.cccv.de/engel-system@264 29ba0400-6e00-0410-a75a-ca02368028f8
main
cookie 17 years ago
parent aa85cbd2b8
commit 4ef096e843

@ -58,8 +58,7 @@ $Erg = mysql_query($SQL, $con);
echo mysql_error($con); echo mysql_error($con);
$rowcount = mysql_num_rows($Erg); $rowcount = mysql_num_rows($Erg);
echo "Anzahl eintraege: $rowcount<br><br>"; $aktivecount=0;
for ($i=0; $i<$rowcount; $i++) for ($i=0; $i<$rowcount; $i++)
{ {
echo "\n\n\t<tr class=\"content\">\n"; echo "\n\n\t<tr class=\"content\">\n";
@ -71,6 +70,7 @@ for ($i=0; $i<$rowcount; $i++)
{ {
if( $_POST["Anzahl"] < mysql_result($Erg, $i, "LEN") ) if( $_POST["Anzahl"] < mysql_result($Erg, $i, "LEN") )
{ {
$aktivecount++;
if( $_POST["SendType"]=="Show..") if( $_POST["SendType"]=="Show..")
echo "show set"; echo "show set";
else else
@ -90,6 +90,8 @@ for ($i=0; $i<$rowcount; $i++)
echo "</table>"; echo "</table>";
echo "<br>Anzahl eintraege: $aktivecount / $rowcount (Aktive/Mitschichten)<br><br>";
include ("./inc/footer.php"); include ("./inc/footer.php");
?> ?>

Loading…
Cancel
Save