<?php $this->load->view("main/drs/header"); ?>
<style>
	textarea{
		resize: none;
		height: 200px !important;
	}
	.right *{
		float: left;
	}
	.right input{
		margin-right:10px;
	}
</style>
<div class="col-lg-12">
<section class="panel">
        <header class="panel-heading">درجه مقالات</header>
		<?php if($this->session->flashdata('type') == "succ"){ ?>
		<div class="alert alert-success fade in">
                                    <button class="close close-sm" type="button" data-dismiss="alert">
                                        <i class="icon-remove"></i>
                                    </button>
                                   مقاله ی مورد نظر با موفقیت ایجاد شد.
                             
                                </div>
		<?php } ?>
                            <div class="panel-body">
								<form action="<?php echo base_url() ?>panel/set_articles_control" method="post">
								<div class="form-group col-lg-12 left">
                                        <label for="name">تاریخ</label>
                                        <input type="text" class="form-control" name="date"  id="name" value="<?php echo $today ?>">
                                    </div>
								<div class="form-group col-lg-12 left">
                                        <label for="name">عنوان مقاله</label>
                                        <input type="text" class="form-control" name="title"  id="name" >
                                    </div>
								<div class="form-group col-lg-12 left">
                                        <label for="name">متن مقاله</label>
                                        <textarea type="text" class="form-control" name="contant"  id="name" ></textarea>
                                    </div>
								<div class="form-group col-lg-12 right">
								<input type="submit" class="btn btn-info" value="ثبت">
								<a href="<?php echo base_url() ?>panel/list_articles" class="btn btn-warning">انصراف</a>
								</div>
								</form>
							</div>
</section>
</div>
<?php $this->load->view("main/drs/footer"); ?>