<!-- **********************************************************************************************************************************************************
    MAIN CONTENT
    *********************************************************************************************************************************************************** -->
<!--main content start-->
<?php
if ($data_testimony->num_rows() == 0) {

} else {
    foreach ($data_testimony->result() as $tes) {
        $id = $tes->id;
        $nama = $tes->nama;
        $alamat = $tes->email;
        $subject = $tes->subject;
        $testimony = $tes->pesan;
    }
}
?>
<section id="main-content">
    <section class="wrapper">
        <div class="row mt">
            <div class="col-lg-12">
                <div class="form-panel">
                    <h4 class="mb"><i class="fa fa-angle-right"></i> View Testimony</h4>
                    <form class="form-horizontal style-form" method="POST" action="<?= base_url() ?>admin/testimony/simpanData" enctype="multipart/form-data">
                        <input type="hidden" value="<?= $id ?>" name="id">
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Nama</label>
                            <div class="col-sm-10">
                                <label class="control-label"><?= $nama ?></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Email</label>
                            <div class="col-sm-10">
                                <label class="control-label"><?= $alamat ?></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Subject</label>
                            <div class="col-sm-10">
                                <label class="control-label"><?= $subject ?></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">Pesan</label>
                            <div class="col-sm-10">
                                <label class="control-label"><?= $testimony ?></label>
                            </div>
                        </div>
                        
                        <hr/>
                        <a href="<?= base_url() ?>admin/testimony">
                            <button type="button" class="btn btn-default"><i class="fa fa-arrow-left"></i> Cancel</button>
                        </a>

                    </form>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div><!--row -->
    </section>
</section>
