[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
spmi
/
application
/
views
/
administrator
/
mod_berita
/
[
Home
]
File: view_berita_tambah.php
<?php echo "<div class='col-md-12'> <div class='box box-info'> <div class='box-header with-border'> <h3 class='box-title'>Tambah Berita Baru ".$this->session->disabled." </h3> </div> <div class='box-body'>"; $attributes = array('class'=>'form-horizontal','role'=>'form'); echo form_open_multipart('administrator/tambah_listberita',$attributes); echo "<div class='col-md-12'> <table class='table table-condensed table-bordered'> <tbody> <input type='hidden' name='id' value=''> <tr><th width='120px' scope='row'>Judul</th> <td><input type='text' class='form-control' name='b' required></td></tr> <tr><th scope='row'>Sub Judul</th> <td><input type='text' class='form-control' name='c'></td></tr> <tr><th scope='row'>Video Youtube</th> <td><input type='text' class='form-control' name='d' placeholder='Contoh link: http://www.youtube.com/embed/xbuEmoRWQHU'></td></tr> <tr><th scope='row'>Kategori</th> <td><select name='a' class='form-control' required> <option value='' selected>- Pilih Kategori -</option>"; foreach ($record as $row){ echo "<option value='$row[id_kategori]'>$row[nama_kategori]</option>"; } echo "</td></tr> <tr><th scope='row'>Headline</th> <td><input type='radio' name='e' value='Y'> Ya <input type='radio' name='e' value='N' checked> Tidak</td></tr> <tr><th scope='row'>Pilihan </th> <td><input type='radio' name='f' value='Y'> Ya <input type='radio' name='f' value='N' checked> Tidak</td></tr> <tr><th scope='row'>Berita Utama</th> <td><input type='radio' name='g' value='Y'> Ya <input type='radio' name='g' value='N' checked> Tidak</td></tr> <tr><th scope='row'>Isi Berita</th> <td><textarea id='editor1' class='form-control' name='h' style='height:260px' required></textarea></td></tr> <tr><th scope='row'>Gambar</th> <td><input type='file' class='form-control' name='k'></td></tr> <tr><th scope='row'>Ket. Gambar</th> <td><input type='text' class='form-control' name='i'></td></tr> <tr><th scope='row'>Tag</th> <td><div class='checkbox-scroll'>"; foreach ($tag as $tag){ echo "<span style='display:block;'><input type=checkbox value='$tag[tag_seo]' name=j[]> $tag[nama_tag] </span>"; } echo "</div></td></tr> </tbody> </table> </div> <div class='box-footer'> <button type='submit' name='submit' class='btn btn-info'>Tambahkan</button> <a href='index.php'><button type='button' class='btn btn-default pull-right'>Cancel</button></a> </div> </div></div></div>"; echo form_close();