<?php
error_reporting(0);
ob_start();
session_start();
include_once("../dbconnect.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="">
     <style type="text/css">

      /* Sticky footer styles
      -------------------------------------------------- */

     

    </style>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">

<?php include_once("title.php"); ?>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/main.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/logo-nav.css" rel="stylesheet">

    <!-- 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]-->
<script>

function showCustomer(str)

{
//alert("str");
var xmlhttp;    

if (str=="")

  {

  document.getElementById("txtHint").innerHTML="";

  return;

  }

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 && xmlhttp.status==200)

    {

    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;

    }

  }

xmlhttp.open("GET","test.php?q="+str,true);
$("#album_slide").html("").hide();

xmlhttp.send();

}

</script>
<script>

function showCustomer2(str)

{
//alert("str");
var xmlhttp;    

if (str=="")

  {

  document.getElementById("txtHint1").innerHTML="";

  return;

  }

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 && xmlhttp.status==200)

    {

    document.getElementById("txtHint1").innerHTML=xmlhttp.responseText;

    }

  }

xmlhttp.open("GET","test2.php?q="+str,true);
$("#album_slide").html("").hide();

xmlhttp.send();

}

</script>
</head>

<body>
     <div id="wrap">
    <!-- Navigation -->
       <?php include_once("header.php"); ?>

    <!-- Page Content -->
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
<?php
$farooq1=mysql_query("select * from mec_subsubcategories where mec_subsubid=".$_GET['mec_subsubid']);$i=1;
				$pasha1=mysql_fetch_array($farooq1);
?>
                 
                <br> <br> <br><br>
                <h1 style="text-align: center;"><?php echo $pasha1['mec_subsubname']; ?></h1>

                <div class="row">
        <div class="col-lg-12">
     



<form class="form-horizontal" action="productins.php?action=add" method="post" enctype="multipart/form-data">
<fieldset>
<br><br>
<div class="form-group">
  <label class="col-md-4 control-label" for="textinput">Name</label> 
  <div class="col-md-4">
  <input id="textinput" name="mec_pname" type="text" class="form-control input-md">
    
  </div>
</div>
<div class="form-group">
  <label class="col-md-4 control-label" for="textinput">Price</label> 
  <div class="col-md-4">
  <input id="textinput" name="mec_price" type="text" placeholder="Price" class="form-control input-md">
    
  </div>
</div>
<!--
<div class="form-group">
 <div class="col-md-4">
  <input id="textinput" name="mec_pricenme1" type="text" placeholder="Lamb" class="form-control input-md">
  </div>
  <div class="col-md-4">
  <input id="textinput" name="mec_price" type="text" placeholder="Price" class="form-control input-md">
    
  </div>
</div>
<div class="form-group">
 <div class="col-md-4">
  <input id="textinput" name="mec_pricenme2" type="text" placeholder="Goat" class="form-control input-md">
  </div>
  <div class="col-md-4">
  <input id="textinput" name="mec_price2" type="text" placeholder="Price" class="form-control input-md">
    
  </div>
</div>
<div class="form-group">
 <div class="col-md-4">
 <input id="textinput" name="mec_pricenme3" type="text" placeholder="Shrimp" class="form-control input-md">
 </div>
  <div class="col-md-4">
  <input id="textinput" name="mec_price3" type="text" placeholder="Price" class="form-control input-md">
    
  </div>
</div>
<div class="form-group">
 <div class="col-md-4">
 <input id="textinput" name="mec_pricenme4" type="text" placeholder="Chilli" class="form-control input-md">
 </div>
  <div class="col-md-4">
  <input id="textinput" name="mec_price4" type="text" placeholder="Price" class="form-control input-md">
    
  </div>
</div>
-->


<div class="form-group">
  <label class="col-md-4 control-label" for="textarea">Description</label>
  <div class="col-md-8"> 
  <!--<script src="//cdn.ckeditor.com/4.5.8/full/ckeditor.js"></script>   -->                 
    <textarea class="form-control" id="textarea" cols="80" rows="8" name="mec_description"><?php echo stripslashes($row['mec_description']); ?></textarea>
    <!--<script>
            CKEDITOR.replace( 'mec_description' );
        </script>-->
  </div>
</div>

<!-- File Button --> 
<div class="form-group">
  <label class="col-md-4 control-label" for="filebutton" style="margin-top: 5%;">Add Image</label>
  <div class="col-md-4" style="margin-top: 5%;">
    <input id="filebutton" name="prodimg1" class="input-file btn btn-danger" type="file" style="vertical-align: central">
  </div>
  
</div>
<!--<div class="form-group">
  <label class="col-md-4 control-label" for="filebutton" style="margin-top: 5%;">Add Image 2</label>
  <div class="col-md-4" style="margin-top: 5%;">
    <input id="filebutton" name="prodimg2" class="input-file btn btn-danger" type="file" style="vertical-align: central">
  </div>-->
    <!--<div class="col-md-4">
 <img src="http://placehold.it/200x150">
  </div>-->
</div><strong></strong>




    <!-- Button -->
<div class="form-group">
  <label class="col-md-4 control-label" for="singlebutton"></label>
  <div class="col-md-4">
    <button type="submit" id="singlebutton" name="singlebutton" class="btn btn-primary">Submit</button>
  </div>
</div>

</fieldset>
 <input type="hidden" name="mec_catid" value="<?php echo $_GET['mec_catid'] ?>">
 <input type="hidden" name="mec_subcatid" value="<?php echo $_GET['mec_subcatid']?>">
  <input type="hidden" name="mec_subsubid" value="<?php echo $_GET['mec_subsubid']?>">
</form>


        </div>
    </div>

                     
    </div>

        </div>

  

            </div>
            
         <div id="push"></div>
    </div>

     <?php include_once("footer.php"); ?>
   

    
    <!-- /.container -->

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

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


</body>

</html>
