
<style rel="stylesheet" type="text/css">

textarea {
	  background-color: white;
	    overflow: auto;
border: none;
}

    .style1
    {
        width: 192px;
    }
    .style2
    {
        width: 177px;
    }
    .auto-style1 {
        width: 115px;
    }
</style>

</head>
<?

if (isset($_REQUEST['cat_id'])){

	$cat_id = $_REQUEST['cat_id']; 

}else{

	$cat_id = 1;
	
}


include("configi.php");

		$queryclient="select * from " . $_COOKIE['phxcrmclient_id'] . "_code_lookup WHERE code_pk=" . $cat_id;
	//	echo $queryprod;
		$resultclient=mysqli_query($conn, $queryclient);

		while($row=mysqli_fetch_array($resultclient)) { 
		
			$cat_id				=	$row['code_pk'];
			$cat_name			=	$row['code_value'];
			$display_status		=	$row['code_additional'];
		//	$display_menu		=	$row['display_menu'];
			
			

		}
		

								
								
								


?>
<form id="producteditform" >



        <div class="section full mt-2">
       
                <form>
                    <div class="form-group boxed">
                        <div class="input-wrapper">
						 <input id="cv_cat_id" type="hidden"   class="form-control"   value="<?php echo htmlspecialchars($cat_id); ?>"/>
						<label class="label" for="cat_name_edit">Category Name</label>
                            <input id="cat_name_edit" type="text"  onchange="javascript: update_field_category('cat_name', 'input', this.value)"  class="form-control"   value="<?php echo htmlspecialchars($cat_name); ?>">
						<label class="label" for="cont_name_edit">Status</label>
										<?

	
include("../php/configi.php");

$querycy="SELECT * FROM 1_general_codes where code_type = 'deptstatus' order by code_value";
//echo $querycy;
$resultcy=mysqli_query($conn, $querycy);

?>
		<select    class="form-control"   id = "c_country" name="c_country" style="width: 100%;"  onchange="javascript: update_field_category('display_status', 'input', this.options[this.selectedIndex].value)"  >

<?php

 while($rowcy=mysqli_fetch_array($resultcy)) {

?>
		<option 
		<?php if ($rowcy['code_value'] == $display_status){echo " selected ";} ?> 
		value="<? echo $rowcy["code_value"]; ?>"><? echo $rowcy["code_value"]; ?></option>

		<?


}


	 
?>
</select>



	
</div>	
</div>

 
	



	
</div>
	


  <input name="MM_insert" type="hidden" value="form1" />
</form>
