<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <div class="page-header">
                <h1>
                    Data Post
                    <small>
                        <i class="ace-icon fa fa-angle-double-right"></i>
                        Tambah Post
                    </small>
                </h1>
            </div><!-- /.page-header -->
        </div>
        <form class="form-horizontal" role="form" action="view/view/modul/mod_post/aksi_post.php?aksi=tambah" method="post" enctype="multipart/form-data" >
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Judul </label>
                    <div class="col-sm-9">
                        <input type="text" id="form-field-1" placeholder="Judul" name="judul" class="col-xs-10 col-sm-5" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Isi </label>
                    <div class="col-sm-9">
                        <textarea id="myTextarea" name="isi"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Keterangan </label>
                    <div class="col-sm-9">
                        <textarea id="form-field-1" placeholder="Keterangan" name="keterangan" class="col-xs-10 col-sm-5"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Kategori </label>
                    <div class="col-sm-9">
                        <select id="form-field-select-1" class="col-xs-10 col-sm-5" name="kategori">
                            <?php
                                $k = $kategori->listkategoripost();

                                while($i<count($k)){
                                    ?>
                                        <option value="<?php echo $k[$i][id]; ?>"><?php echo $k[$i][nama]; ?></option>
                                    <?php
                                    $i++;
                                }
                                unset($i);
                            ?>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Gambar </label>
                    <div class="col-sm-4">
                        <input type="file" id="id-input-file-2" placeholder="Gambar" name="gambar" />
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit" name="key" value="2">
                            <i class="ace-icon fa fa-check bigger-110"></i>
                            Simpan
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <button class="btn btn-info" type="submit" name="key" value="1">
                            <i class="ace-icon fa fa-check bigger-110"></i>
                            Post
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <button class="btn" type="reset">
                            <i class="ace-icon fa fa-undo bigger-110"></i>
                            Reset
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <a href="index.php?module=post">
                            <button class="btn" type="button">
                                <i class="ace-icon fa fa-undo bigger-110"></i>
                                Cancel
                            </button>
                        </a>
                    </div>
                </div>
            </div>                           
        </form>
    </div><!-- /.row -->
</div><!-- /.page-content -->