<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>Admin - Tambah Artikel</title>
    <link href="assets/css/yeti-bootstrap.min.css" rel="stylesheet"/>
    <link href="assets/css/general.css" rel="stylesheet"/>
    <link href="assets/css/select2.min.css" rel="stylesheet"/>
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>    
    <script src="assets/js/select2.min.js"></script>   
    <style type="text/css">
    .hi{
        background-image: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)), url('vitaminbg.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    .dark{
        background-color: #000;
        color: #000;
    }
    .page-header{
        color: #fff;
    }
    .latar{
        background-color: #636e72;
    }
    .tambah{
        background-color:   #353b48;
    }
    .tambah:hover{
        background-color:   #718093;
        color: #fff;
    }
    .edit{
        background-color: #2f3640;
    }
    .edit:hover{
        background-color:   #718093;
        color: #fff;
    }
    </style>      
  </head>
<body class="dark hi">
<div class="page-header">
    <h1 style="color: #fff;" align="center"><b>Tambah Artikel</b></h1>
</div>
<div class="row">
    <div class="col-sm-6">
        <?php if($_POST) include'aksi.php'?>
        <form method="post">
            <div class="form-group">
                <label style="color: #fff;">ID <span class="text-danger">*</span></label>
                <input class="form-control" type="text" name="id_artikel" value="<?=set_value('id_artikel', kode_oto('id_artikel', 'tb_artikel', 'A', 2))?>"/>
            </div>
            <div class="form-group">
                <label style="color: #fff;">Judul <span class="text-danger">*</span></label>
                <input class="form-control" type="text" name="judul" value="<?=set_value('judul')?>"/>
            </div>
            <div class="form-group">
                <label style="color: #fff;">Konten <span class="text-danger">*</span></label>
                <textarea class="form-control" name="konten"><?=set_value('konten')?></textarea>
            </div>
            <div class="form-group">
                <label style="color: #fff;">Tanggal <span class="text-danger">*</span></label>
                <input class="form-control" type="date" name="tanggal" value="<?=set_value('tanggal')?>"/>
            </div>
            <div class="form-group">
                <button class="btn edit"><span class="glyphicon glyphicon-save"></span> Simpan</button>
                <a class="btn edit" href="?m=data_artikel"><span class="glyphicon glyphicon-arrow-left"></span> Kembali</a>
            </div>
        </form>
    </div>
</div>
</body>
</html>
