<?php
    $row = $db->get_row("SELECT * FROM tb_artikel WHERE id_artikel='$_GET[ID]'"); 
?>
<body class="latar">
<div class="page-header">
    <h1 style="color: #fff;" align="center"><b>Ubah 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" readonly="readonly" value="<?=$row->id_artikel?>"/>
            </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', $row->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', $row->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', $row->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>