<?php session_start(); 
if (isset($_SESSION['logged']) && $_SESSION['logged'] == 'yes') {
?>
<div id="pad<?php echo $i ?>" class="floating-pad" style="visibility:hidden">

<div class="keyboardHeader align-center"><?php echo $description?></div>	
<div style="float:left; margin-left:5px">
<input type="button" value="7" id="button7" name="button7" class="keypad_number" onclick="insertThisInThere('7', 'input<?php echo$i ?>');" />
<input type="button" value="8" id="button8" name="button8" class="keypad_number" onclick="insertThisInThere('8', 'input<?php echo$i ?>');" />
<input type="button" value="9" id="button9" name="button9" class="keypad_number" onclick="insertThisInThere('9', 'input<?php echo$i ?>');" />		
</div>
<div style="margin-left:5px">
<input type="button" value="4" id="button4" name="button4" class="keypad_number" onclick="insertThisInThere('4', 'input<?php echo$i ?>');" />
<input type="button" value="5" id="button5" name="button5" class="keypad_number" onclick="insertThisInThere('5', 'input<?php echo$i ?>');" />	
<input type="button" value="6" id="button6" name="button6" class="keypad_number" onclick="insertThisInThere('6', 'input<?php echo$i ?>');" />	
</div>	
<div style="margin-left:5px">
<input type="button" value="1" id="button1" name="button1" class="keypad_number" onclick="insertThisInThere('1', 'input<?php echo$i ?>');" />	
<input type="button" value="2" id="button2" name="button2" class="keypad_number" onclick="insertThisInThere('2', 'input<?php echo$i ?>');" />	
<input type="button" value="3" id="button3" name="button3" class="keypad_number" onclick="insertThisInThere('3', 'input<?php echo$i ?>');" />				
</div>
<div style="margin-left:5px;">
<input type="button" value="Del" id="buttonDel" name="buttonDel" class="keypad_number" onclick="document.getElementById('input<?php echo$i ?>').value='';" />
<input type="button" value="0" id="button0" name="button0" class="keypad_number" onclick="insertThisInThere('0', 'input<?php echo$i ?>');" />	
<input type="button" value="." id="buttonDot" name="buttonDot" class="keypad_number" onclick="insertThisInThere('.', 'input<?php echo$i ?>');" />
</div>
</div>
<?php 
} else {
    header('Location: login.php');
}
?>