<!DOCTYPE html>
<html lang="ko">

<head>
    <?php $this->load->view('adm/layout/head')?>
</head>

<body>
    <!-- start wrapper -->
    <div class="wrapper">
        <!-- start nav -->
        <?php $this->load->view('adm/layout/nav')?>
        <!-- end nav -->
        <!-- start content_wrapper -->
        <div class="content_wrapper">
            <!-- start header -->
            <?php $this->load->view('adm/layout/header')?>
            <!-- end header -->
            <div class="contents">
                <h3 style="font-size:17px;font-weight:bold;color:#aaa">기본관리 > 컨텐츠관리 > 예약설정</h3>
                <!-- 여기까지 레이아웃 상단입니다 -->
                <div class="box">
                    <div class="box-table">
                        <form method="post" action="" enctype="multipart/form-data">
                            <input type="hidden" name="redirect" value="<?php echo $this->input->server('HTTP_REFERER')?>">
                            <table class="table table-bordered">
                                <tbody>
                                    <tr>
                                        <th>아이디</th>
                                        <td>
                                            <input type="text" name="postid" class="form-control" value="<?php if(isset($post)) echo $post->idx?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>제목</th>
                                        <td>
                                            <input type="text" name="title" class="form-control" value="<?php if(isset($post)) echo convertEmoji($post->title)?>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>예약시간</th>
                                        <td>
                                            <input type="text" name="dptime" class="form-control datetimepicker" value="<?php if(isset($post->reserve_time)) echo $post->reserve_time?>">
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div style="text-align:center">
                                <a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
                                <button type="submit" class="btn btn-success">저장</button>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- 여기부터 레이아웃 하단입니다 -->
            </div>
        </div>
        <!-- end content_wrapper -->
    </div>
    <!-- end wrapper -->
    <?php $this->load->view('adm/layout/footer')?>
    <script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
    <script>
    $(function(){
        $('.datetimepicker').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss' });
    })
    </script>
</body>

</html>