<?php require('includes/head.php');
require 'connection/conn.php';
 if(isset($_POST['submit']))
 {
     
	 $n=$_POST['name'];

	
	 $add="insert into `company`( `company_name`)
     values('$n')";
	 $conn->query($add);
	
	 
	 
	 
	 
	 
	  echo "<script type='text/javascript'>
		           window.location.href='company_list.php'
		        </script>";
 }
?>


<div class="container">
          <div class="page-inner">
            <div class="page-header">
              <h3 class="fw-bold mb-3">کۆمپانیای تازە</h3>
              <ul class="breadcrumbs mb-3">
                <li class="nav-home">
                  <a href="home.php">
                    <i class="icon-home"></i>
                  </a>
                </li>
                <li class="separator">
                  <i class="icon-arrow-right"></i>
                </li>
                <li class="nav-item">
                  <a href="#"></a>
                </li>
                <li class="separator">
                  <i class="icon-arrow-right"></i>
                </li>
                <li class="nav-item">
                  <a href="#"></a>
                </li>
              </ul>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="card">
                  
                  <div class="card-body">
                    <div class="table-responsive">
                      <table
                        id="basic-datatables"
                        class="display table table-striped table-hover"
                      >
<form action="" method="post">
	
	<tr >
		<td>ناو</td><td><input type="text" name="name" required></td>
	</tr>
	
	<tr >
		<td></td><td><input type="submit" name="submit" value="زیاد کردن"></td>
	</tr>
  </table>
 
</form>

</div>
                  </div>
                </div>
              </div>
			  
			  </div>
          </div>
        </div>
<?php require'includes/foot.php';?>