} echo $key; echo '</div>'; if ($x % 2 == 0) { echo '<div class="numberPurchased even">'; } else { echo '<div class="numberPurchased odd">'; } echo $value; echo '</div>'; if ($x % 2 == 0) { echo '<div class="pieces even">'; } else { echo '<div class="pieces odd">'; } echo number_format(countPieces($customerInfo)); echo '</div>'; $y = 0; echo '<div class="subContent">'; foreach ($customerInfo as $value) { echo '<div class="dateClick">'; echo '<p class="dateExpand">' . $value->getDate() . '</p>'; if ($y % 2 == 0) { echo '<div class="subBlock even">'; } else { echo '<div class="subBlock odd">'; } echo '<p class="mainSubTitle"> Quote for ' . $value->getDate() . "</p>"; echo '<div class="subName">'; echo '<p class="subTitle"> Name </p>'; echo '<p>' . $value->Getname() . '</p>';
<span class="top"> Number of Quotes in <?php echo $textMonths[$currentMonth - 1]; ?> </span> <p> <?php echo $numQuotes = count($testing); ?> </p> </section> <section class="numberContainer"> <span class="top">Number of Quoted Pieces in <?php echo $textMonths[$currentMonth - 1]; ?> </span> <p> <?php $numPieces = countPieces($testing); echo number_format($numPieces); ?> </p> </section> <section class="numberContainer"> <span class="top">Average Job Size in <?php echo $textMonths[$currentMonth - 1]; ?> </span> <p> <?php $avgJobSize = $numPieces / $numQuotes; echo number_format($avgJobSize, 1); ?> </p>
include 'nav.php'; ?> <main> <h1> Quote Statistics </h1> <section class="numberContainer"> <span class="top"> Number of Quotes </span> <p> <?php echo $numQuotes = count($quotes); ?> </p> </section> <section class="numberContainer"> <span class="top">Number of Quoted Pieces </span> <p> <?php $numPieces = countPieces($quotes); echo number_format($numPieces); ?> </p> </section> <section class="numberContainer"> <span class="top">Average Job Size </span> <p> <?php $avgJobSize = $numPieces / $numQuotes; echo number_format($avgJobSize, 1); ?> </p> </section> <section class="numberContainer">
} return "{$result}</table>"; } function error() { echo "<h1>Invalid chess board</h1>"; die; } $json = array(); $result = 'OK'; $board = array(); $rows = preg_split('/\\//', $input, -1, PREG_SPLIT_NO_EMPTY); if (count($rows) === 8) { for ($i = 0; $i < count($rows); $i++) { $board[$i] = preg_split('/\\-/', $rows[$i], -1); if (count($board[$i]) === 8) { countPieces($board[$i]); } else { error(); } } } else { error(); } echo drawBoard($board); if (count($json) > 0) { ksort($json); echo json_encode($json); } else { echo "{}"; }
echo $Theyear; ?> </span> <p> <?php echo $numQuotes = count($monthlyQuotes); ?> </p> </section> <section class="numberContainer"> <span class="top">Number of Quoted Pieces in <?php echo $Theyear; ?> </span> <p> <?php $numPieces = countPieces($monthlyQuotes); echo number_format($numPieces); ?> </p> </section> <section class="numberContainer"> <span class="top">Average Job Size in <?php echo $Theyear; ?> </span> <p> <?php $avgJobSize = $numPieces / $numQuotes; echo number_format($avgJobSize, 1); ?> </p>