HOME


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

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

$sql="update patent SET file_no='$file_no', title='$title', date='$date' where id=".$id;
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>Edit 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">
					    
<input type="hidden" id="idD" name="idD" value="<?php echo $_GET['id']; ?>" >
<?php
$sql=mysqli_query($conn,"select * from patent where id='".$_GET['id']."'");
$rw=mysqli_fetch_array($sql);
?>


<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"><?php echo $rw['title']; ?></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-6 col-sm-6 col-xs-12">
<input type="text" id="date" name="date" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['date']; ?>">
</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-6 col-sm-6 col-xs-12">
<input type="text" id="file_no" name="file_no" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['file_no']; ?>">
</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="update" class="btn btn-success">Update</button>
						   <a href="<?php echo $home_path; ?>patent.php"><button class="btn btn-primary" type="button">VIew</button></a>
						   
                        </div>
                      </div>
					  
                    </form>
                  </div>
                </div>
              </div>
			  
			  
			  
			  
			  
			  
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
		
		<script>
		function myfunc(){
			document.location.href="<?php echo $home_path; ?>/pages/master/editpublication.php?id=<?php echo $_GET['id']; ?>"
			
		}
		
		</script>
<?php
include("footer.php");
?>