<?php $this->load->view("main/bot_users/header"); ?>
<style>
	textarea{
		height: 100px !important;
		resize: none;
	}
</style>
<div class="col-lg-12">
	<section class="panel">
		
        <header class="panel-heading"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><?php echo $this->input->get("name") ?></header>
		<?php if($this->session->flashdata("type") == "succ"){ ?>
		<div class="form-group col-lg-12" style="margin-top:10px;">
		<div class="alert alert-success fade in" style="">
                                    <button class="close close-sm" type="button" data-dismiss="alert">
                                        <i class="icon-remove"></i>
                                    </button>
                                    تغیرات با موفقیت اعمال شد.
                                </div>
		</div>
		<?php } ?>
		    <form method="post" action="<?php echo base_url() ?>botuser/text_control">
                                                 <div class="panel-body">
													<div class="form-group col-lg-1 left">
													</div>
													<input type="hidden" name="postid" value="<?php echo $this->input->get("textid") ?>">
														<div class="form-group col-lg-10 left">
															<div class="form-group col-lg-12">
                                        <label for="name">سرتیتر</label>
                                        <input type="text" class="form-control" name="title"  value="<?php echo @$text[0]->title; ?>">
															</div>
														<div class="form-group col-lg-12">
										 <label for="name">متن</label>
                                        <textarea class="form-control" name="content"><?php echo @$text[0]->text; ?></textarea>
														</div>
												<div class="form-group col-lg-12">		
										<input type="submit" class="btn btn-info" value="ذخیره">
												</div>
                                    </div>
													
																						
													
												 </div>
			</form>
	</section>
</div>
 <?php $this->load->view("main/bot_users/footer"); ?>