<?php
//include('lock.php');
include('test.php');
include ('session.php');
?> 
<!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()
{
$('#date').datepicker();	
	
	});
</script>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>
<script type="text/javascript" >
function view()
{
var srno=document.getElementById('srno').value;		
var srno_mar=document.getElementById('srno_mar').value;		
var office=document.getElementById('office').value;		
var officer=document.getElementById('officer').value;		
var offr_mar=document.getElementById('offr_mar').value;	
var off_mar=document.getElementById('off_mar').value;		
var phone=document.getElementById('phone').value;		
var phone_mar=document.getElementById('phone_mar').value;		
var no=document.getElementById('no').value;		
var no_mar=document.getElementById('no_mar').value;		
var date=document.getElementById('date').value;
var desg_mar=document.getElementById('desg_mar').value;
var desg=document.getElementById('desg').value;
var email=document.getElementById('email').value;

if(off_mar==''||offr_mar==''||no_mar=='')
{
alert('Please enter all details..?');
	}
	else
	{  	
  	if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
	xmlhttp.onreadystatechange=function()
	{

    if (xmlhttp.readyState==4) 
	{
     //alert(xmlhttp.responseText);
      if(xmlhttp.responseText==1)	   {
					alert("Inserted successfully");
	  			window.location.reload(true);
      
		
  }
  	  
  }
  }
			var que ="?&office="+office+"&srno="+srno+"&officer="+officer+"&phone="+phone+"&no="+no+"&date="+date+"&offr_mar="+offr_mar+"&off_mar="+off_mar+"&off_mar="+off_mar+"&phone_mar="+phone_mar+"&no_mar="+no_mar+"&srno_mar="+srno_mar+"&desg_mar="+desg_mar+"&desg="+desg+"&email="+email;
// alert(que);
  xmlhttp.open("GET","admininsertone.php" + que, true);
  xmlhttp.send();
//   alert("Inserted successfully");
 //  window.location.reload();
}

}


function view5(i)
{
//	alert(i);


	{  	
  	if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
	xmlhttp.onreadystatechange=function()
	{

    if (xmlhttp.readyState==4) 
	{
  //alert(xmlhttp.responseText);
      if(xmlhttp.responseText==1)	   {

	  // alert("Inserted Successfully");
       window.location.reload();
		
  }
  	  
  }
  }
//var res="&srno="+srno+"&date="+date+"&option="+option;
	//alert(res);
  xmlhttp.open("GET","disablee_adminone.php?srno="+i,true);
  xmlhttp.send(null); 
	 
}
}


function view1()
{
//alert('hi');
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4)
		 {
		 	
	//alert(xmlhttp.responseText);
		//window.location.href="Update_EmpRecord_Design.php";
				var msg=xmlhttp.responseText;
				document.getElementById('search_res').innerHTML=msg;
		 }
	}

	//		var res ="?uname="+uname;
//alert(res);

		xmlhttp.open("GET", "adminview12.php" , true); 
				xmlhttp.send(null); 
		//document.getElementById('submit').disabled=true;
					 	
	}




function update_company(i)
		{
	//		alert(i)
			var Sr=i;
	//		alert(Sr);
														//	var xr=document.getElementById('x'+i).value;
															//alert(xr);
		TINY.box.show({iframe:"adminupdate1.php?srno="+i,boxid:'frameless',width:660,height:800,fixed:false,maskid:'bluemask',maskopacity:40,closejs:function(){closeJS()}});	
		
	
		
			}


 function numbersonly(myfield, e, dec)
{
  	var specialKeys = new Array();
        specialKeys.push(8); //Backspace
           var keyCode = e.which ? e.which : e.keyCode
            var ret = ((keyCode >= 48 && keyCode <= 57) || specialKeys.indexOf(keyCode) != -1);
         //   document.getElementById("error").style.display = ret ? "none" : "inline";
            return ret;
}
function lettersOnly(evt) {
        evt = (evt) ? evt : event;
        var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode :
          ((evt.which) ? evt.which : 0));
        if (charCode == 32)
            return true;
        if (charCode > 31 && (charCode < 65 || charCode > 90) &&
          (charCode < 97 || charCode > 122)) {
            return false;
        }
        else
            return true;
    }

</script>
    <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> -->
                                                                            <?php include("menu22.php"); ?>

<!--             </div> -->

                         <?php include("header.php"); ?> 
           

<!--         </nav> -->


        <!-- Page Content -->
       <!--  <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12"> -->
                       
                        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Administrative Officer One Entry</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row"><!-- <h4 style="color:green;" align="center"><b><?php echo constant("jilha"); ?></b></h4>
<br>
<div class="s-12 l-4">  
 <div class="item active">
 <div><img u="image" src="img/DSC_9179.jpg" align="center" style="position:absulute;width:90%;height:120%;" />	
 </div>
 </div>
 </div> -->
<!-- 
<div class="s-12 l-6 ">
			
<p style="word-wrap: break-word !important;white-space: normal !important">
<?php echo constant("Welcome to"); ?>
</p> -->

                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Important Information
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <form role="form">
                                         <div class="form-group">
                                            <label>Sr.no</label>
                                            <input class="form-control" onkeypress="if(event.keyCode!=9) return numbersonly(this, event);" placeholder="Enter Number" id="srno" name="srno">

                                        </div>
                                        <div class="form-group">
                                            <label>Sr.no Marathi</label>
                                            <input class="form-control"  placeholder="Enter Number" id="srno_mar" name="srno_mar">

                                        </div>
                                         
                                         <div class="form-group">
                                             <label>Date:</label>
                                            <input class="form-control" placeholder="date" id="date" name="date">
                                        </div>
                                        <div class="form-group">
                                            <label>Office Name</label>
                                            <input class="form-control" onkeypress="return lettersOnly(event)" placeholder="Enter Text" id="office" name="office">

                                        </div>
                                         
                                        
                                        
                                         <div class="form-group">
                                            <label>Office Name in Marathi</label>
                                            <input class="form-control" placeholder="Enter Text" id="off_mar" name="off_mar">
                                        </div>
                                        
                                        <div class="form-group">
                                            <label>Designation</label>
                                            <input class="form-control" onkeypress="return lettersOnly(event)" placeholder="Enter Text" id="desg" name="desg">

                                        </div>
                                        
                                        <div class="form-group">
                                            <label>Designation in Marathi</label>
                                            <input class="form-control" onkeypress="return lettersOnly(event)" placeholder="Enter Text" id="desg_mar" name="desg_mar">

                                        </div>
                                        
                                        <div class="form-group">
                                            <label>Officer Name</label>
                                            <input class="form-control" onkeypress="return lettersOnly(event)" placeholder="Enter Text" id="officer" name="officer">

                                        </div>
                                         <div class="form-group">
                                            <label>Oficer Name in Marathi</label>
                                            <input class="form-control" placeholder="Enter Text" id="offr_mar" name="offr_mar">
                                        </div>
                                        <div class="form-group">
                                            <label>Phone No</label>
                                            <input class="form-control" onkeypress="if(event.keyCode!=9) return numbersonly(this, event);" placeholder="Enter PhoneNo." id="phone" name="phone">

                                        </div>
                                        <div class="form-group">
                                            <label>Phone No Marathi</label>
                                            <input class="form-control" placeholder="Enter PhoneNo." id="phone_mar" name="phone_mar">

                                        </div>
                                         
                                        <div class="form-group">
                                            <label>Mobile No</label>
                                            <input class="form-control" onkeypress="if(event.keyCode!=9) return numbersonly(this, event);" placeholder="Enter MobileNo." id="no" name="no">

                                        </div>
                                        <div class="form-group">
                                            <label>Mobile No Marathi</label>
                                            <input class="form-control" placeholder="Enter MobileNo." id="no_mar" name="no_mar">

                                        </div>
                                         
                                         <div class="form-group">
                                            <label>Email</label>
                                            <input class="form-control" placeholder="Enter Email." id="email" name="email">

                                        </div>
                                       
                                        
                                        <button type="button" onclick="view();" class="submit">Submit</button>
                                        <button type="button" onclick="view1();" class="submit">View</button>

                                               
<!--                                          <button type="reset" class="btn btn-default">Reset Button</button>  -->
                                    </form>
                                </div>
                                <!-- /.col-lg-6 (nested) -->
                                
                                <!-- /.col-lg-6 (nested) -->
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                            <div id="search_res" style="width:100%;" >
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        
                       
                       
                   
                       
                       </div>
                       
                    </div>
                    <!-- /.col-lg-12 -->
                
                <!-- /.row -->
            
            <!-- /.container-fluid -->
        


        <!-- /#page-wrapper -->

   
    <!-- /#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>
