<?php 

     include 'header.php'; 


?>
<script src="https://cdn.ckeditor.com/4.15.1/standard/ckeditor.js"></script>
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
		<div class="row">
			<ol class="breadcrumb">
				<li><a href="#">
					<em class="fa fa-home"></em>
				</a></li>
				<li class="active">Kategori Ayarları</li>
			</ol>
		</div><!--/.row-->
		
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header">Kategori Ayarları</h1>
			</div>
		</div><!--/.row-->

		<div class="row">
			<div class="col-md-15">
				<div class="panel panel-default articles">

				<div class="panel panel-default">
					<div class="panel-heading">
						Kategori Ekle
						<?php
if (isset($_GET['durum'])) {
    $durum = $_GET['durum'];

    if ($durum == "ok") {
        echo '<b style="color:green;">İşlem Başarılı</b>';
    } elseif ($durum == "no") {
        echo '<b style="color:red;">İşlem Başarısız</b>';
    } else {
        echo '<b style="color:orange;">Geçersiz durum</b>';
    }
} 
?>
						<ul class="pull-right panel-settings panel-button-tab-right">
							<li class="dropdown"><a class="pull-right dropdown-toggle" data-toggle="dropdown" href="#">
								<em class="fa fa-cogs"></em>
							</a>
								
							</li>
							 
						</ul>
						<span class="pull-right clickable panel-toggle panel-button-tab-left"><em class="fa fa-toggle-up"></em></span></div>
					<div class="panel-body">
						 <form action="../kariyersoft/control.php" method="POST" enctype="multipart/form-data"  data-parsley-validate class="form-horizontal form-label-left">
							<fieldset>
								<!-- Name input-->
								<div class="form-group">
									<label class="col-md-3 control-label" for="name">Kategori İsmi *</label>
									<div class="col-md-9">
										<input id="name" name="kategori_ad"  type="text" placeholder="Başlık" class="form-control">
									</div>
								</div>
							
							
								
								<div class="form-group">
									<label class="col-md-3 control-label" for="email">Kategori Sırası *</label>
									<div class="col-md-9">
										<input id="name" name="kategori_sira" type="text" placeholder="Sırası" class="form-control">
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-3 control-label" for="email">Kategori Durum *</label>
									<div class="col-md-9">
										<select id="text" class="form-control" name="kategori_durum" required>
									</div>
								</div>
								
								  <option value="1" >Aktif</option>

                                  <option value="0" >Pasif</option>
                 
                                </select>
								
							
								<!-- Form actions -->
								<div class="form-group">
									<div class="col-md-12 widget-right">
										<button type="submit" name="kategoriekle" class="btn btn-default btn-md pull-right">Güncelle</button>
									</div>
								</div>
							</fieldset>
						</form>
					</div>
				</div>
			</div><!--/.col-->
			
		</div><!--/.row-->
	</div>	<!--/.main-->
	 <?php include 'footer.php'; ?>
	
</body>
</html>
