HOME


Mini Shell 1.0
DIR:/home/drsekaran/public_html/admin/
Upload File :
Current File : /home/drsekaran/public_html/admin/patent_add.php
<?php
include("header.php");
?>

<?php
//include("config.php");
if(isset($_REQUEST['submit']))
{
$file_no =$_REQUEST['file_no'];
$title =$_REQUEST['title'];
$date =$_REQUEST['date'];

$sql="insert into patent(file_no,title,date) values('$file_no','$title','$date')";
mysqli_query($conn,$sql);
header('location: patent.php?msg=success');

}
?>

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="">
              
			  
			  
			  
			  <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Add Patent</h2>
          
                    <div class="clearfix"></div>
                  </div>
				 


                  <div class="x_content">
                    <br />
                   <!-- <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">-->
					
					<form id="from1" name="from1" enctype="multipart/form-data"  action="#" method="post" class="form-horizontal form-label-left" style="" autocomplete="off">
	
<div class="row">

<div class="col-md-12">
    


<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Title<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea type="text" id="title" name="title" required="required" class="form-control col-md-7 col-xs-12"></textarea>
</div>
</div>

<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Year <span class="required">*</span>
</label>
<div class="col-md-8 col-sm-8 col-xs-12">
  <input type="text" id="date" name="date" required="required" class="form-control col-md-7 col-xs-12">
</div>
</div>

<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Patent number <span class="required">*</span>
</label>
<div class="col-md-8 col-sm-8 col-xs-12">
  <input type="text" id="file_no" name="file_no" required="required" class="form-control col-md-7 col-xs-12">
</div>
</div>

</div>

</div>



                      
					  
					  					  
					  
					  
                      
<div class="form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
						
                           <button type="submit" name="submit" class="btn btn-success">Submit</button>
						   <a href="<?php echo $home_path; ?>patent.php"><button class="btn btn-primary" type="button">VIew</button></a>
						   
                        </div>
						
						<br><br>
                      </div>
                    </form>
                  </div>
                </div>
              </div>
			  
			  
			  
			  
			  
			  
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
<?php
include("footer.php");
?>