<!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>Program Sistem Pakar Diagnosa</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: #fff;
}
.trans{
  opacity: 1;
}
.modal-header{
  background-color: #2d3436;
}
.hehe{
  background-color: #2d3436;
}
.bulat{
  border-radius: 10px;
}
    </style>      
  </head>
<body class="dark hi">
<div class="page-header">
    <h1 style="color: #fff;" align="center"><b>Tambah Vitamin</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;">Kode <span class="text-danger">*</span></label>
                <input class="form-control" type="text" name="kode" value="<?=set_value('kode', kode_oto('kode_diagnosa', 'tb_diagnosa', 'V', 3))?>"/>
            </div>
            <div class="form-group">
                <label style="color: #fff;">Nama Vitamin <span class="text-danger">*</span></label>
                <input class="form-control" type="text" name="nama" value="<?=set_value('nama')?>"/>
            </div>
            <div class="form-group">
                <label style="color: #fff;">Solusi</label>
                <textarea class="form-control" name="solusi"><?=set_value('solusi')?></textarea>
            </div>
            <div class="form-group">
                <label style="color: #fff;">Dosis Vitamin</label>
                <textarea class="form-control" name="dosis_vitamin"><?=set_value('dosis_vitamin')?></textarea>
            </div>
            <div class="form-group">
                <button class="btn tambah"><span class="glyphicon glyphicon-save"></span> Simpan</button>
                <a class="btn edit" href="?m=diagnosa"><span class="glyphicon glyphicon-arrow-left"></span> Kembali</a>
            </div>
        </form>
    </div>
</div>