<?php $this->load->view("main/bot_users/header"); ?>
	<style>
		.folder{
	   width: 130px;
	   height: 130px;
	   padding: 10px;
	   border: 1px solid #ddd;
	   float: right;
	   margin-left:15px;
	   cursor: pointer;
	   border-radius: 5px;
	   margin-bottom:10px;
	   position: relative;
}
.folder:hover{
	   border: 1px solid rgb(112,146,190);
	   color: rgb(112,146,190) !important;
}
.add:hover,.back:hover{
	 border: 1px solid green;
	   color: green !important;   
}
.folder i {
	   font-size: 85px;
	   text-align: center;
	   margin-right:5px;
}
.add i
{
	   margin-right:20px !important;
}
.folder span{
	   width: 100%;
	   display: block;
	   text-align: center;
	   font-size: 12px;
}
.folder img{
	   width: 100%;
	   height: 90px;
}
.add_folder,.display_images,.change_name{
	   width: 100%;
	   height: 100%;
	   position: fixed;
	   top: 0;
	   left: 0;
	   z-index: 3000;
	   background: rgba(0,0,0,0.5);
}
#delete_sl{
	width: 100%;
	height: 100%;
	position: absolute;
	background: rgba(0,0,0,0.7);
	top: 0;
	left: 0;
	border-radius: 5px;
}
#delete_sl button{
	margin:67px 19px;
}
textarea{
		height: 100px !important;
		resize: none;
	}
	</style>
<div class="col-lg-12">
	
	<section class="panel">
        <header class="panel-heading">تماس با ما</header>
		   <div class="panel-body">
			<form method="post" action="<?php echo base_url(); ?>panel/set_contact" >
													<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="phone"  value="<?php echo @$contact[0]->phone ?>">
															</div>
														<div class="form-group col-lg-12">
										 <label for="name">آدرس</label>
                                        <input type="text" class="form-control" name="address"  value="<?php echo @$contact[0]->address ?>">
										 <label for="name">توظیحات</label>
                                        <textarea class="form-control" name="discription"><?php echo @$contact[0]->discription; ?></textarea>
										<div class="form-group col-lg-12" style="margin-top:15px;">		
										<input type="submit" class="btn btn-info" value="ذخیره">
												</div>
														</div>
			</form>
													
                                    </div>
													
																						
													
												 </div>
	</section>
</div>
 <?php $this->load->view("main/bot_users/footer"); ?>
 <script>
	 $(".close").click(function(){
		  $(".add_folder").css({"display":"none"});
		});
	 $(".folder").mouseenter(function(){
		$(this).find("#delete_sl").css({"display":"block"});
		});
	 $(".folder").mouseleave(function(){
		$(this).find("#delete_sl").css({"display":"none"});
		
		});
	 $(".add").click(function(){
			  $(".add_folder").css({"display":"block"});
			  });
	 $(".btn-danger").click(function(){
		$image = $(this).parent().parent();
		$name = $(this).parent().parent().attr("data_name");
		$.post("<?php echo base_url(); ?>botuser/delete_image_control",{filename:$name,folderid:"<?php echo $this->input->get("textid"); ?>"},function(e){
			if (e == "done") {
				$image.remove();
			}
			
			});
		});
 </script>