118 lines
4.3 KiB
PHP
118 lines
4.3 KiB
PHP
|
<link href="<?=base_url();?>bassets/jquery-tags-input/jquery-tags-input.css" rel="stylesheet">
|
||
|
<?php $this->load->view('admin/includes/header');?>
|
||
|
<style>
|
||
|
div.tagsinput span.tag {
|
||
|
|
||
|
border-radius: 20px !important;
|
||
|
color:#fff;
|
||
|
padding: 2px 10px 2px 10px!important;
|
||
|
background: #ef7f1a!important;
|
||
|
|
||
|
}
|
||
|
div.tagsinput span.tag a {
|
||
|
|
||
|
color: #fff !important;;
|
||
|
|
||
|
}
|
||
|
</style>
|
||
|
<div class="page-container">
|
||
|
<?php $this->load->view('admin/includes/sidebar');?>
|
||
|
<!-- start page content -->
|
||
|
<div class="page-content-wrapper">
|
||
|
<div class="page-content">
|
||
|
<div class="page-bar">
|
||
|
<div class="page-title-breadcrumb">
|
||
|
<div class=" pull-left">
|
||
|
<div class="page-title">Blog Add</div>
|
||
|
</div>
|
||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="index.html">Home</a> <i class="fa fa-angle-right"></i>
|
||
|
</li>
|
||
|
<li><a class="parent-item" href="<?=base_url();?>admin/blog">Blog</a> <i class="fa fa-angle-right"></i>
|
||
|
</li>
|
||
|
<li class="active">Blog Add</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php $this->load->view('admin/includes/msg');?>
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<div class="card card-topline-orange">
|
||
|
<div class="white-box">
|
||
|
<div class="card card-box">
|
||
|
<div class="card-head">
|
||
|
<header>Add Blog</header>
|
||
|
|
||
|
</div>
|
||
|
<div class="card-body ">
|
||
|
<?=form_open_multipart(base_url().'admin/add-blog');?>
|
||
|
<div class="row">
|
||
|
<div class="form-group col-md-6">
|
||
|
<label for="simpleFormEmail"> Title <span class="required">*</span></label>
|
||
|
<input type="text" name="Title" autocomplete="off" class="form-control" data-validation="required" placeholder="Title">
|
||
|
</div>
|
||
|
<div class="form-group col-md-6">
|
||
|
<label for="simpleFormEmail"> Image <span class="required">*</span> </label>
|
||
|
<input type="file" name="Image" autocomplete="off" class="form-control" data-validation="required" >
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
|
||
|
<div class="form-group col-md-6">
|
||
|
<label for="simpleFormEmail"> Tags <span class="required">*</span></label>
|
||
|
<input type="text" class="form-control tags tags-input" data-type="tags" name="tags[]" data-validation="required"/>
|
||
|
</div>
|
||
|
<div class="form-group col-md-6">
|
||
|
<label for="simpleFormEmail"> Detail <span class="required">*</span> </label>
|
||
|
<textarea name="Detail" autocomplete="off" rows="4" class="form-control" data-validation="required" placeholder="Description"></textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
<input type="submit" name="add" class="btn btn-primary" value="Submit">
|
||
|
<?=form_close();?>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!--modal -->
|
||
|
<div class="modal fade" id="rolepop" tabindex="-1" role="basic" aria-hidden="true">
|
||
|
<div class="modal-dialog">
|
||
|
<div class="modal-content">
|
||
|
<div class="viewdetails">
|
||
|
<img src="<?=base_url();?>bassets/admin/img/process.gif" class="loader-img">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php $this->load->view('admin/includes/footer');?>
|
||
|
<script type="text/javascript" src="<?=base_url();?>bassets/admin/js/jquery.cookie.min.js"></script>
|
||
|
<!--tags input-->
|
||
|
<script src="<?=base_url();?>bassets/jquery-tags-input/jquery-tags-input.js"></script>
|
||
|
<script src="<?=base_url();?>bassets/jquery-tags-input/jquery-tags-input-init.js"></script>
|
||
|
<script>
|
||
|
var base_path=$('body').attr('data-path');
|
||
|
|
||
|
|
||
|
//Common View Edit Specification
|
||
|
$('body').on('click','.roleeditpop',function(){
|
||
|
//alert("sdadsd");
|
||
|
$('#rolepop').modal('show');
|
||
|
$('.viewdetails').html('<img src='+base_path+'bassets/admin/img/process.gif class="loader-img">');
|
||
|
|
||
|
var type=$(this).attr('data-type');
|
||
|
var id=$(this).attr('data-id');
|
||
|
var url22=base_path+"role/roleaction";
|
||
|
|
||
|
$.post(url22,{type:type,id:id,csrf_test_name:$.cookie('csrf_cookie_name')},function(result){
|
||
|
|
||
|
$('.viewdetails').html(result);
|
||
|
});
|
||
|
});
|
||
|
</script>
|