?> </label> <input type="radio" value="2" name="standing_unit"> </p> </div> <?php } ?> <div id="infos"><p id="return_from_makeSum" style="margin-bottom: 0;"></p></div> </div> <div id="main"> <form method="post" name="the_form"> <?php require_once 'Manager/DatabaseManager.php'; $dbm = new DatabaseManager(); $outputDBM = $dbm->fetchItemInfos($_SESSION['item'], FALSE); foreach ($outputDBM as $rows) { $icon = 'icon/' . $_SESSION['item'] . '/' . $rows['reference'] . '.jpg'; echo '<div class="container_icon" id="container_' . $rows['reference'] . '"><table><tr><td><img class="icon" src="' . $icon . '" /></td></tr>'; echo '<tr><td>' . $rows['reference'] . '</td></tr>'; echo '<tr><td>'; echo '<input placeholder="' . ($rows['quantity'] < 0 ? 0 : $rows['quantity']) . '" type="number" min="0" max="99"'; echo ' id="' . $rows['reference'] . '" name="' . $rows['reference'] . '" onclick="makeSum(this);" onkeyup="makeSum(this);" '; echo 'onchange="switchDivDisplay(this.value, \'container_' . $rows['reference'] . '\')" '; echo 'onfocus="if(document.getElementById(\'checkvalues\').style.visibility === \'visible\') document.getElementById(\'checkvalues\').style.visibility = \'hidden\';"/>'; echo ' <span id="span_' . $rows['reference'] . '"' . ($rows['quantity'] > 0 ? '>dispo' : 'class="asterisk">*') . '</span>'; echo '</td></tr>'; echo '</table></div>'; } ?> </form>