<?php 
include('inc/header.php');
$clientObj->select($org_id); 
if(isset($_GET['id']))
{
	$id=sanitize($_GET['id']);
	$std_categoryObj->select($id);
}
if(isset($_POST['std_category_submit']))
{
	$std_categoryObj->std_category=sanitize($_POST['std_category']);
	$std_categoryObj->org_id=$org_id;
	$std_categoryObj->update($id);
	$msg=1;
}
?>
<!-- mobile navigation -->
			<nav id="mobile_navigation"></nav>
			
			<section id="breadcrumbs">
				<div class="container">
					<ul>
						<li><a href="#">Web school </a></li>
                        <li><a href="#">General Settings </a></li>
						<li><span>Edit Student Category</span></li>						
					</ul>
				</div>
			</section>
			<section class="container clearfix main_section">
				<div id="main_content_outer" class="clearfix">
					<div id="main_content">
						<div class="alert alert-info"><strong>Edit Student Category</strong></div>
                       
                        <?php if($msg==1){ ?>
                        <div class="success">Student Category  has been updated successfully</div>
                        <?php } ?> 
                         
						<!-- main content -->
        
                        <form action="#" method="POST" id="editstdcategory" name="editstdcategory" enctype="multipart/form-data">
                          
						<div class="row">
							<div class="col-sm-12">
								<div class="panel panel-default">
									<!--<div class="panel-heading">
										<h4 class="panel-title">Simple Validation</h4>
									</div>-->
									<div class="panel-body">
											<div class="form_sep">
												<label for="reg_input_name" class="req">Student Category Name</label>
												<input type="text" id="std_category" name="std_category" class="form-control" value="<?php echo $std_categoryObj->std_category; ?>" data-required="true" >
											</div>  
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-sm-5">
							<div class="form_sep">
							<button class="btn btn-success" type="submit" name="std_category_submit" id="std_category_submit" >Update</button>
							</div>
                            </div>
                                
                            
						</div>
						</form>
                        
							
						</div>
					</div>
				
			</section>
			<div id="footer_space"></div>
		</div>
	<?php include('inc/footer.php'); ?>