HOME


Mini Shell 1.0
DIR:/home/drsekaran/www/admin/pages/master/
Upload File :
Current File : /home/drsekaran/www/admin/pages/master/editpublication.php
<?php
include("../../header.php");
?>
        <!-- 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 Publication</h2>
          
                    <div class="clearfix"></div>
                  </div>
	<?php if(isset($_GET['msg']) && $_GET['msg']=='success'){ ?>			 
				<div class="alert alert-success alert-dismissible fade in" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" onClick="myfunc();">×</span>
                    </button>
                    <strong>Success!</strong> Form updated.
                </div>
	<?php }else if(isset($_GET['msg']) && $_GET['msg']=='error'){ ?>
				<div class="alert alert-danger alert-dismissible fade in" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" onClick="myfunc();">×</span>
                    </button>
                    <strong>Error!</strong> Form not submitted.
                </div>
	<?php } ?>
                  <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="<?php echo $home_path;?>/pages/master/action/editpublication.php" 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 publication where id='".$_GET['id']."'");
$rw=mysqli_fetch_array($sql);
?>


<div class="row">


<div class="col-md-6">
<div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Publication Types<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        <select name="pubtype" id="pubtype" class="form-control">
					
						
  <option value="Book publications"<?php echo ($rw['pubtype']=='Book publications')?'selected':''; ?> >Book publications</option>
  
  
  <option value="Books Edited and chapters contributed"<?php echo ($rw['pubtype']=='Books Edited and chapters contributed')?'selected':''; ?> >Books Edited and chapters contributed</option>
  
  
  <option value="Publications in Referred Journals"<?php echo ($rw['pubtype']=='Publications in Referred Journals')?'selected':''; ?> >Publications in Referred Journals </option>
  
  <option value="Executive Reports on International projects"<?php echo ($rw['pubtype']=='Executive Reports on International projects')?'selected':''; ?> > Executive Reports on International projects  </option>
  
  <option value="Invited key note address in International conferences/symposiums"<?php echo ($rw['pubtype']=='Invited key note address in International conferences/symposiums')?'selected':''; ?> > Invited key note address in International conferences/symposiums </option>
  
   <option value="International Conferences"<?php echo ($rw['pubtype']=='International Conferences')?'selected':''; ?> > International Conferences </option>
    <option value="National Conferences"<?php echo ($rw['pubtype']=='National Conferences')?'selected':''; ?> > National Conferences </option>
 
</select>
                        </div>
                      </div>
					  
					  
					  
					                         <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">
                          <input type="text" id="fname" name="title" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['title']; ?>">
                        </div>
                      </div>
					  
					  
					   <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Description<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fname" name="description" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['description']; ?>">
                        </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="fname" name="year" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['year']; ?>">
                        </div>
                      </div>
					  
                      
                       <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Author 1<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fname" name="author1"  class="form-control col-md-7 col-xs-12" value="<?php echo $rw['author1']; ?>">
                        </div>
                      </div>
					  
					   <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Author 2<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fname" name="author2"  class="form-control col-md-7 col-xs-12" value="<?php echo $rw['author2']; ?>">
                        </div>
                      </div>
</div>
<div class="col-md-6">

<div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Author 3<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fname" name="author3"  class="form-control col-md-7 col-xs-12" value="<?php echo $rw['author3']; ?>">
                        </div>
                      </div>
					  
					   <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Author 4<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fname" name="author4"  class="form-control col-md-7 col-xs-12" value="<?php echo $rw['author4']; ?>">
                        </div>
                      </div>
					  
					   <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Author 5<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fname" name="author5"  class="form-control col-md-7 col-xs-12" value="<?php echo $rw['author5']; ?>">
                        </div>
                      </div>
					  
					   <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Name of Publisher<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fname" name="pubname" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['pubname']; ?>">
                        </div>
                      </div>
					  <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Pages <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fdesig" name="pages"  class="form-control col-md-7 col-xs-12" value="<?php echo $rw['pages']; ?>">
                        </div>
                      </div>
					  
					  <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">ISBN <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="fdesig" name="isbn" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['isbn']; ?>">
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Display Order <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="dorder" name="dorder" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo $rw['isbn']; ?>">
                        </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" class="btn btn-success">Update</button>
						   <a href="<?php echo $home_path; ?>/pages/master/viewpublication.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");
?>