Mwmpwerbaiki form inputan artikel

parent 47a9f038
......@@ -17,12 +17,13 @@
<div class="register">
<div class="container">
<h2>Tambah Data Artikel</h2>
<div class="login-form-grids">
<h5>Data Artikel</h5>
<div class="login-form-grids1">
<center><h1>Data Artikel</h1S></center>
<br>
<form action="addarticle_process.php" method="POST" enctype="multipart/form-data">
<input type="text" name="judul_artikel" placeholder="Judul Artikel" required=" " ><br>
<textarea name="isi_artikel" placeholder="Isi Artikel" required=" "></textarea>
<br><br> Pilih File Gambar : <br>
<textarea name="isi_artikel" placeholder="Isi Artikel" style="width:100%; height:450px" required=" "></textarea>
<br><br><b> Pilih File Gambar : </b><br><br>
<input type="file" name="gambar_artikel" accept="img/*" required=" ">
<input type="submit" name="tambah" value="tambah">
</form>
......
......@@ -935,7 +935,45 @@ a.w3_agile_vimeo:hover{
.login-form-grids ::-webkit-input-placeholder{
color:#999;
}
.forgot a{
.login-form-grids1{
width: 85%;
padding: 3em;
background:#F7F7F9;
margin:3em auto 0;
}
.login-form-grids1 input[type="email"],.login-form-grids1 input[type="password"],.login-form-grids1 input[type="text"]{
outline: none;
border: 1px solid #DBDBDB;
padding: 10px 10px 10px 10px;
font-size: 14px;
color: #999;
display: block;
width: 100%;
}
.login-form-grids1 input[type="password"]{
margin:1em 0 0;
}
.forgot {
margin: 1.5em 0 0;
}
.login-form-grids1 input[type="submit"]{
outline: none;
border: none;
padding: 10px 0;
font-size: 1em;
color: #fff;
display: block;
width: 100%;
background:#3399cc;
margin: 1.5em 0 0;
}
.login-form-grids1 input[type="submit"]:hover{
background:#fe9126;
}
.login-form-grids1 ::-webkit-input-placeholder{
color:#999;
}
a{
color:#212121;
font-size:14px;
text-decoration:none;
......
......@@ -17,8 +17,8 @@
<div class="register">
<div class="container">
<h2>Edit Data Artikel</h2>
<div class="login-form-grids">
<h5>Data Artikel</h5>
<div class="login-form-grids1">
<center><h1>Data Artikel</h1S></center>
<?php
$id_article = mysqli_real_escape_string($koneksi, $_GET['id']);
$cari = mysqli_query($koneksi, "SELECT * FROM t_artikel WHERE id_artikel='$id_article'")or die(mysqli_error());
......@@ -26,21 +26,21 @@
?>
<form action="editarticle_process.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id" placeholder="id_artikel" value="<?php echo $data['id_artikel'] ?>" >
<b>Judul Artikel :</b>
<input type="text" name="judul_artikel" placeholder="Judul Artikel" value="<?php echo $data['judul_artikel'] ?>" >
<b><br>Isi Artikel : <br></b>
<textarea name="isi_artikel" placeholder="<?php echo $data['isi_artikel'] ?>" value="<?php echo $data['isi_artikel'] ?>"></textarea>
<b><br>Gambar : <br></b>
<b> Judul Artikel : </b>
<input type="text" name="judul_artikel" style="width:100%" placeholder="Judul Artikel" value="<?php echo $data['judul_artikel'] ?>" ><br>
<b> Isi Artikel : </b>
<textarea name="isi_artikel" style="width:100%; height:450px" placeholder="<?php echo $data['isi_artikel'] ?>" value="<?php echo $data['isi_artikel'] ?>"></textarea><br>
<b> File Gambar : </b>
<input type="file" name="gambar_artikel" value=" ">
<input type="submit" name="edit" value="edit">
<input type="submit" name="edit" value="edit">
</form>
</div>
<?php
}
?>
</div>
<div class="register-home">
<a href="processarticle.php">BATAL</a>
</div>
<div class="register-home">
<a href="processarticle.php">BATAL</a>
</div>
</div>
</div>
<!-- //register -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment