<style type="text/css">
    #txtcontent{
        height: 400px;
    }
</style>
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="#">Settings</a>
            </li>
            <li class="active">Reports</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->
    <!-- Page Header -->
    <div class="page-header position-relative">
        <div class="header-title">
            <h1>
                Reports
            </h1>
        </div>
        <!--Header Buttons-->
        <div class="header-buttons">
            <a class="sidebar-toggler" href="#">
                <i class="fa fa-arrows-h"></i>
            </a>
            <a class="refresh" id="refresh-toggler" href="">
                <i class="glyphicon glyphicon-refresh"></i>
            </a>
            <a class="fullscreen" id="fullscreen-toggler" href="#">
                <i class="glyphicon glyphicon-fullscreen"></i>
            </a>
        </div>
        <!--Header Buttons End-->
    </div>
    <!-- /Page Header -->
    <!-- Page Body -->
    <!-- End Page Body -->
    <div class="page-body">
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div class="row">
                    <div class="col-xs-12 col-md-12">
                        <div class="widget">
                            <div class="widget-body">

                                <div class = "row center">
                                    <div class="col-lg-12 col-sm-12 col-xs-12">
                                        <div class="widget center">
<div>
    <div id="horizontal-form">
        <form class="form-horizontal" role="form" method="POST" action="<?php echo site_url('settings/reports/add')?>">
            <input type="hidden" name="id" value="<?php echo !empty($editdata)?$editdata[0]->ID:''?>">
            
            
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">Name</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="name" placeholder="Name" value="<?php echo!empty($editdata)?$editdata[0]->REPORTNAME:'' ?>">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">Content</label>
                <div class="col-sm-10">
<textarea class="form-control" name="content" id="txtcontent" placeholder="Content"><?php echo !empty($editdata)?$editdata[0]->CONTENT:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<report>
<title>REPORT NAME</title>
<script><![CDATA[ SELECT * FROM TABLENAME WHERE ? ]]></script>
<filters>
<filter title="" field="" name="" type="" operator="" value="" />
</filters>
<groups>
    <group field="" align="" type="" sum="" />
</groups>
<limit value="" />
<columns>
        <column title="" field="" width="" align="" type="" sum="" />
</columns>
</report>' ?></textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-success">
                    <span class="fa fa-check"></span>
                    Save</button>
                    <a id="close" href="<?php echo site_url('settings/reports')?>" class="btn btn-danger">
                        <span class="fa fa-close"></span>
                        Close
                    </a>
                </div>
            </div>
        </form>
    </div>
</div>
                                        </div>
                                    </div> 
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- End Page Content -->