<?php
include ('session.php');
include('connection.php');

$b=$_GET['srno'];

mysqli_query($GLOBALS["___mysqli_ston"], "SET NAMES utf8");
$my="SELECT * FROM `administrate` where srno='$b'";
		

$n=mysqli_query($GLOBALS["___mysqli_ston"], $my) or die ("Query Fail:".mysqli_error($GLOBALS["___mysqli_ston"]));
if(mysqli_num_rows($n)>0)
{
while($rw=mysqli_fetch_assoc($n)) 
{
$name=$rw['officer_name_marathi'];
$name_eng=$rw['officer_name'];
$padnam_mar=$rw['designation'];
$padnam=$rw['designation_marathi'];
//$taluka=$rw['taluka'];
$office_name=$rw['office_name'];
$office_name_marathi=$rw['office_name_marathi'];
$area_eng=$rw['area_eng'];
$add=$rw['add'];
$add_eng=$rw['add_eng'];
$contact=$rw['mobileno'];
$email=$rw['e-mail'];

				}
}

?>
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="samarth10" >

    <title>SB Admin 2 - Bootstrap Admin Theme</title>
 
    <!-- Bootstrap Core CSS -->
            
    <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- MetisMenu CSS -->
    <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
 
    <!-- Custom CSS -->
     <link href="dist/css/sb-admin-2.css" rel="stylesheet">
 
    <!-- Custom Fonts -->
    <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> 
   
 
 <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
 
<script src="dist/js/jquery-1.7.1.min.js"></script>
 
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<link rel="stylesheet" href="dist/css/bootstrap-datepicker.css">

<link rel="stylesheet" href="tinybox/style_tiny.css" />
<script type="text/javascript" src="tinybox/tinybox.js"></script>

<script src="dist/js/bootstrap-datepicker.js"></script>
<script src="dist/js/bootstrap-datepicker.min.js"></script>

        <script type="text/javascript" >

$(function()
{
$('#dp1').datepicker();	
	
	});
</script>


</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
       <!--  <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button> -->
             
<!--         </nav> -->

        
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                
                                    <form role="form" action="update_sadsy_file1.php" method="POST" id="yourElem"  enctype="multipart/form-data" class="contact_form">
                                       <div class="form-group">
                                            <label>sr:</label>
                                            <input class="form-control" placeholder="Enter Marathi Full Name" id="name1" name="name1" value="<?php echo $b;?>" required="required" >
                                        </div>
                                         <div class="form-group">
                                            <label>Name Marathi:</label>
                                            <input class="form-control" placeholder="Enter Marathi Full Name" id="name" name="name" value="<?php echo $name;?>" required="required">
                                        </div>
                                        
																																				<div class="form-group">
                                            <label>Name English:</label>
                                            <input class="form-control" placeholder="Enter English Full Name" id="name_eng" name="name_eng" value="<?php echo $name_eng;?>" required="required">
                                        </div>                                        
                                        
																																			<div class="form-group">
                                            <label>Padnam Marathi:</label>
                                            <input class="form-control" placeholder="Enter Marathi Padnam" id="padnam_mar" name="padnam_mar" value="<?php echo $padnam_mar;?>" required="required">
                                       </div>

                                       <div class="form-group">
                                            <label>Padnam English:</label>
                                            <input class="form-control" placeholder="Enter English Padnam" id="padnam" name="padnam" value="<?php echo $padnam;?>" required="required">
                                       </div>                                       
                                       
                                      <div class="form-group">
                                            <label>Office Name:</label>
                                            <input class="form-control" placeholder="Enter Taluka Marathi" id="office_name_marathi" name="office_name_marathi" value="<?php echo $office_name_marathi;?>" required="required">
                                       </div>
                                       
                                       <div class="form-group">
                                            <label>Office Name Marathi:</label>
                                            <input class="form-control" placeholder="Enter Taluka English" id="office_name" name="office_name" value="<?php echo $office_name;?>" required="required">
                                       </div>
                                       

                                       <div class="form-group">
                                            <label>Contact  No:</label>
                                            <input class="form-control" placeholder="Enter Contact No" id="contact" name="contact" value="<?php echo $contact;?>" required="required">
                                       </div>
                                       
                                       <div class="form-group">
                                            <label>Email ID:</label>
                                            <input class="form-control" placeholder="Enter Email Id" id="email" name="email" value="<?php echo $email;?>">
                                       </div>
                                            
                                    <input type="submit"  name="submit" value="submit" required="required" />
                                              
                                    </form>

                                </div>
                                <!-- /.col-lg-6 (nested) -->
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                      <div id="search_res" style="width:100%;" >                    
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="../bower_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="dist/js/sb-admin-2.js"></script>

</body>

</html>