<?php include 'sets.php';?>
<?php
$superuser="0";
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Webadmin <?php echo $domain ?></title>
<?php include 'codes.php';?>
</head>
<body>

<?php include 'navbar.php';?>
    
<div class="container">
<div class="frame">
<div class="frametitles fadd"><?php echo $adminadd ?>
<div class="floatright"><a href="list-days.php"><img src="img/list.png" alt="<?php echo $adminlist ?>" title="<?php echo $adminlist ?>"></a></div>
</div>
<div class="framein">

<form name="forma" method="post" enctype="multipart/form-data">
<?php 
if  (isset($_POST['submit'])) {
$nr1 = $mysqli->real_escape_string(stripslashes($_REQUEST['nr1']));	 
$nr2 = $mysqli->real_escape_string(stripslashes($_REQUEST['nr2']));	 

$mysqli->query("INSERT INTO days (nr1, nr2) VALUES ('$nr1', '$nr2')");
} ?>

<table>
  
  <tr>
    <td>
      <input name="nr1" type="text" id="nr1" size="3" maxlength="11" class="inputauto">
      &harr;        
      <input name="nr2" type="text" id="nr2" size="3" maxlength="11" class="inputauto">
      </td>
  </tr>
    </table>
 
     <hr>
  <div class="divallbuttons">
<div class="divlist"><a href="list-days.php" title="<?php echo $adminlist ?>" class="icstyle1 color1"><span class="icon fa-tasks"></span></a></div>
<div class="divbuttons">
  <button type="submit" name="submit" class="button"><span class="icon fa-check"></span> <?php echo $adminsubmit ?></button>
  <button type="reset" name="reset" class="button buttondelete"><span class="icon fa-refresh"></span> <?php echo $adminreset ?></button> 
</div>
   </div>
   
</form>  

</div>
</div>
</div>

<?php include 'menudown.php';?>

</body>
</html>