HOME


Mini Shell 1.0
DIR:/home/drsekaran/www/admin/pages/master/
Upload File :
Current File : /home/drsekaran/www/admin/pages/master/viewcv.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>CV</h2>
                    <!--<ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                          <li><a href="#">Settings 1</a>
                          </li>
                          <li><a href="#">Settings 2</a>
                          </li>
                        </ul>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul>-->
                    <div class="clearfix"></div>
                  </div>
				  
				   <!--<div class="form-group" style="float:left;">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >
                          <button class="btn btn-primary" type="button">Add Faculty</button>
						
                        </div>
                      </div>-->


                  <div class="x_content">
                    <!--<a href="<?php echo $home_path; ?>/pages/master/addlatest.php"><button class="btn btn-primary" type="button">Add Faculty</button></a>-->

                    <div id="dropzone">
						
                            <!--<form action="/upload" class="dropzone dropzone-custom needsclick" id="demo-upload">-->
		<form id="from1" name="from1" enctype="multipart/form-data"  action="<?php echo $home_path;?>/pages/master/action/cv.php" method="post" class="" style="border: 2px dashed #03a9f4;min-height: 150px;
    border: 2px solid rgba(0, 0, 0, 0.3);background: white;padding: 20px 20px;box-sizing:margin-bottom: 30px;"  autocomplete="off">
<?php
$sql=mysqli_query($conn,"select * from cv");
$rw=mysqli_fetch_array($sql);
?>	  				  
   

					<div style="margin:10px 0 30px 0;">	
						<a href="<?php echo $home_path; ?>/download/<?php echo $rw['pdff']; ?>" download="<?php echo $rw['pdff']; ?>" style="float:left;" ><button type="button" class="btn btn-animate btn-animate-side btn-primary">
						<span><i class="fa fa-download" aria-hidden="true"></i>&nbsp;Download PDF</span>
						</button>
						</a>
					</div>
					<br>
					<br>
	
				
                                <div class="dz-message needsclick download-custom">
                             	<input type="file" class="form-control" id="filebrowse" name="pdff"  accept=".csv" required >
                                   <?php if($rw['pdff']!='') { ?>
<span id="att1"><?php echo $rw['pdff'];?></span>&nbsp;
<a href="#"  onclick="selPDFDel('<?php echo $rw['id']; ?>','ctalumni');">Delete</a><br>
<?php } ?>
					
								   
								   
                                 </div>
							<br>
				
												
								<div>
								<button class="btn btn-success" type="submit">Save Change</button>

								</div>
																	 				
												
                            </form>
							
                        </div>
					
					
                  </div>
                </div>
              </div>
			  
			  
			  
			  
			  
			  
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
		
		
		<script>
			//alert(a);
		function selPDFDel(a,b){
     $.ajax({
type:'GET',
	url:'<?php echo $home_path; ?>/pages/master/action/seldelcv.php',
	data:{
	delid:a,
	pge:b
	},
	success:function(data){
		 //alert(data); 
		 if(data==1){
		     location.reload();
		 }else{
		     alert("Error!.");
		 }
	}
});
}
		
		
		
		
		</script>
		
		
		
		
		
		
		
<?php
include("../../footer.php");
?>