<script type="text/javascript" src="<?php echo $this->config->item('ckeditor_basepath'); ?>ckeditor.js"></script>
<ul class="breadcrumb">
    <li><a href="<?= site_url('admin/dashboard') ?>">Home</a></li> 
    <li class="active"><?php echo $breadcum ?></li> 
</ul>
<div class="page-content-wrap">
    <div class="row">
        <div class="col-md-12">
            <form action="" class="form-horizontal" method="post" enctype="multipart/form-data">
                <div class="panel panel-default">
                    <div class="panel-heading">                       
                        <h3 class="panel-title"><?php echo $breadcum ?></h3>
                        <ul class="panel-controls">
                            <li><a href="<?php echo site_url() ?>admin/meta-tag-list"><span class="fa fa-backward" title="Back"></span></a></li>
                        </ul>
                    </div>
                    <div class="panel-body form-group-separated">
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Meta Tag Title *</label>
                            <div class="col-md-6 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" name="metatag_title" class="form-control" value="<?= $metatag_title ?>"/>
                                </div>                                            
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('metatag_title')) ?></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Meta Tag Keywords *</label>
                            <div class="col-md-9 col-xs-12">                                            
                                <textarea class="form-control" id="ckeditor" name="metatag_keyword"><?= $metatag_keyword ?></textarea>
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('metatag_keyword')) ?></span>                         
                            </div>                         
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Meta Tag Description *</label>
                            <div class="col-md-9 col-xs-12">                                            
                                <textarea class="form-control" id="ckeditor" name="metatag_description"><?= $metatag_description ?></textarea>
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('metatag_description')) ?></span>                         
                            </div>                         
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Meta Tag URL</label>
                            <div class="col-md-6 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" name="metatag_url" class="form-control" value="<?= $metatag_url ?>"/>
                                </div>   
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('metatag_url')) ?></span>       
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Page Banner Image *</label>
                            <div class="col-md-6 col-xs-12">  
                                Please Choose a file: <input type="file"  class="fileinput btn-primary" onChange="readURL(this);" id="header_image" name="header_image" value="<?= $header_image ?>" title="Browse file" ><br/>
                                <?php if (isset($header_image) && $header_image != '') { ?>
                                    <img id="header_image_preview" src="<?= base_url() ?>assets/uploads/$header_images/<?= $header_image ?>" width="50px" height="50px">
                                <?php } else { ?>
                                    <img id="header_image_preview" src="<?= $this->config->item('adminassets'); ?>img/upload_image.png" width="50px" height="50px">
                                <?php } ?>                            
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('header_image')) ?></span>
                            </div>
                        </div> 

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Page Background Image *</label>
                            <div class="col-md-6 col-xs-12">  
                                Please Choose a file: <input type="file"  class="fileinput btn-primary" onChange="readURL(this);" id="background_image" name="background_image" value="<?= $background_image ?>" title="Browse file" ><br/>
                                <?php if (isset($background_image) && $background_image != '') { ?>
                                    <img id="background_image_preview" src="<?= base_url() ?>assets/uploads/background_images/<?= $background_image ?>" width="50px" height="50px">
                                <?php } else { ?>
                                    <img id="background_image_preview" src="<?= $this->config->item('adminassets'); ?>img/upload_image.png" width="50px" height="50px">
                                <?php } ?>                            
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('background_image')) ?></span>
                            </div>
                        </div> 
                    </div>
                    <div class="panel-footer">
                        <button class="btn btn-default" type="reset">Clear Form</button>                                    
                        <button class="btn btn-primary pull-right">Submit</button>
                    </div>
                </div>
            </form>
        </div>
    </div> 
</div>